46 lines
1.3 KiB
Perl
46 lines
1.3 KiB
Perl
package WebGUI::i18n::English::Macro_AdminToggle;
|
|
|
|
our $I18N = {
|
|
|
|
'macroName' => {
|
|
message => q|Admin Toggle|,
|
|
lastUpdated => 1128837629,
|
|
},
|
|
|
|
'admin toggle title' => {
|
|
message => q|Admin Toggle Macro|,
|
|
lastUpdated => 1112466408,
|
|
},
|
|
|
|
'admin toggle body' => {
|
|
message => q|
|
|
|
|
<b>^AdminToggle();</b><br>
|
|
<b>^AdminToggle([<i>enable admin</i>], [<i>disable admin</i>], [<i>template name</i>]);</b><br>
|
|
Places a link on the page which is only visible to content managers and administrators. The link toggles on/off admin mode. You can optionally specify other messages to display like this: ^AdminToggle("Edit On","Edit Off"); This macro optionally takes a third parameter that allows you to specify an alternate template name in the Macro/AdminToggle namespace.
|
|
<p>
|
|
The following variables are available in the template:
|
|
<p/>
|
|
<b>toggle.url</b><br/>
|
|
The URL to activate or deactivate Admin mode.
|
|
<p/>
|
|
<b>toggle.text</b><br/>
|
|
The Internationalized label for turning on or off Admin (depending on the state of the macro), or the text that you supply to the macro.
|
|
<p/>
|
|
|
|
|,
|
|
lastUpdated => 1112466919,
|
|
},
|
|
|
|
'516' => {
|
|
message => q|Turn Admin On!|,
|
|
lastUpdated => 1031514049
|
|
},
|
|
|
|
'517' => {
|
|
message => q|Turn Admin Off!|,
|
|
lastUpdated => 1031514049
|
|
},
|
|
};
|
|
|
|
1;
|