7 {
include="page.header"}
10 <div class=
"pure-g new-version-message pure-alert pure-alert-warning">
11 <div class=
"pure-u-2-24"></div>
12 <div class=
"pure-u-20-24">
13 {'You need to enable Javascript to change plugin loading order.'|t}
16 <div class=
"clear"></div>
19 <form method=
"POST" action=
"?do=save_pluginadmin" name=
"pluginform" id=
"pluginform">
21 <div class=
"pure-u-lg-1-6 pure-u-1-8"></div>
22 <div class=
"pure-u-lg-2-3 pure-u-3-4 page-form page-form-complete">
23 <h2>{'Plugin administration'|t}
</h2>
25 <section id=
"enabled_plugins">
26 <h3>{'Enabled Plugins'|t}
</h3>
29 {
if="count($enabledPlugins)==
0"}
30 <p>{'No plugin enabled.'|t}
</p>
32 <table id=
"plugin_table">
35 <th class=
"center">{'Disable'|t}
</th>
36 <th class=
"center">{'Order'|t}
</th>
38 <th>{'Description'|t}
</th>
42 {
loop="$enabledPlugins"}
43 <tr data-line=
"{$key}" data-order=
"{$counter}">
44 <td class=
"center"><input type=
"checkbox" name=
"{$key}" id=
"{$key}" checked=
"checked"></td>
46 {
if="count($enabledPlugins)
>1"}
47 <a href="#
" class="order
"
48 onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));
">
51 <a href="#
" class="order
"
52 onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));
">
56 <input type="hidden
" name="order_{$key}
" value="{$counter}
">
58 <td class="center
"><label for="{$key}
">{function="str_replace('_', ' ', $key)"}
</label></td>
59 <td><label for=
"{$key}">{$value.description}
</label></td>
68 <section id=
"disabled_plugins">
69 <h3>{'Disabled Plugins'|t}
</h3>
72 {
if="count($disabledPlugins)==
0"}
73 <p>{'No plugin disabled.'|t}
</p>
77 <th class=
"center">{'Enable'|t}
</th>
79 <th>{'Description'|t}
</th>
81 {
loop="$disabledPlugins"}
83 <td class=
"center"><input type=
"checkbox" name=
"{$key}" id=
"{$key}"></td>
84 <td class=
"center"><label for=
"{$key}">{
function="str_replace('_', ' ', $key)"}
</label></td>
85 <td><label for=
"{$key}">{$value.description}
</label></td>
95 <input type=
"submit" value=
"{'Save'|t}" name=
"save">
99 <input type=
"hidden" name=
"token" value=
"{$token}">
102 <form action=
"?do=save_pluginadmin" method=
"POST">
104 <div class=
"pure-u-lg-1-6 pure-u-1-8"></div>
105 <div class=
"pure-u-lg-2-3 pure-u-3-4 page-form page-form-light">
106 <h2>{'Plugin configuration'|t}
</h2>
107 <section id=
"plugin_parameters">
109 {
if="count($enabledPlugins)==
0"}
110 <p>{'No plugin enabled.'|t}
</p>
112 {
loop="$enabledPlugins"}
113 {
if="count($value.parameters)
> 0"}
114 <div class="plugin_parameters
">
115 <h3>{function="str_replace('_', ' ', $key)"}
</h3>
116 {
loop="$value.parameters"}
117 <div class=
"plugin_parameter">
118 <div class=
"float_label">
123 <div class=
"float_input">
124 <input name=
"{$key}" value=
"{$value}" id=
"{$key}" type=
"text" />
133 <input type=
"submit" name=
"parameters_form" value=
"{'Save'|t}"/>
141 {
include="page.footer"}
142 <script src=
"inc/plugin_admin.js#"></script>