X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/be968860e16975c9829cd8d8a11ec6a8adc6c83a..fcb632a28d698e5e3c4463b2db184025555015a2:/templates/macros.tmpl diff --git a/templates/macros.tmpl b/templates/macros.tmpl index 1bfd97f..9f31132 100644 --- a/templates/macros.tmpl +++ b/templates/macros.tmpl @@ -47,7 +47,8 @@ and then redefines macros as desired. @# Standard menu @# @current is the name of the current page, e.g. choosealpha, login @define {stdmenu} {current} - {
+ -
+ +
+
} +@define {menuurl} {name} + {@if{@eq{name}{playing}} + {@url} + {@url?action=@name}} + @# Menu entry @# Used by @stdmenu @# @current is the name of the current page (not necessarily the action that @@ -69,16 +78,40 @@ and then redefines macros as desired. @# @define {menuitem} {current name available} {@if{@available} - { @label{menu.@name}} - { @label{menu.@name}}} + { @label{menu.@name}} + { @label{menu.@name}}} +@# Icon-based menu entry (very similar to @menuitem) +@# Used by @stdmenu +@# @current is the name of the current page +@# @name is the name of the menu item +@# @available is true if the menu item is available, else false +@# @icon is the name of the icon +@# +@define {menuicon} {current name available icon} + {@if{@available} + { + @label{menu.@name} + } + { + @label{menu.@name} + }} @# Standard footer text @define {credits} {}