Lines Matching refs:plugin
19 * plugin should use this method to register its handlers with the DokuWiki's event controller
79 * Turn a plugin on or off
91 $pname = $INPUT->str('plugin');
96 if (!isset($plugins[$pname])) die('no such plugin');
97 $plugin = $plugins[$pname];
100 if ($plugin['isdefault']) {
101 $new = (int) !$plugin['actual'];
109 $plugin = $plugins[$pname];
111 echo $this->createPluginMatrixCell($plugin, $animal);
115 * Create a matrix of all animals and plugin states
135 foreach ($plugins as $plugin) {
136 echo '<th><div>' . hsc($plugin['name']) . '</div></th>';
145 foreach ($plugins as $plugin) {
146 echo $this->createPluginMatrixCell($plugin, $this->getLang('plugin_default'), true);
154 foreach ($plugins as $plugin) {
155 echo $this->createPluginMatrixCell($plugin, $animal);
167 * @param array $plugin
172 protected function createPluginMatrixCell($plugin, $animal, $defaults = false)
175 $current = $plugin['default'];
179 $current = $plugin['actual'];
180 $isdefault = $plugin['isdefault'];
196 'title' => $animal . ': ' . $plugin['name'],
198 'data-plugin' => $plugin['name']
223 echo '<th>' . $this->getLang('plugin') . '</th>';
229 foreach ($plugins as $plugin) {
231 echo '<th>' . hsc($plugin['name']) . '</th>';
236 $attr['name'] = 'bulk_plugins[' . $plugin['name'] . ']';
238 if ($plugin['isdefault']) {
243 if ($plugin['default']) {
254 $attr['name'] = 'bulk_plugins[' . $plugin['name'] . ']';
256 if (!$plugin['isdefault'] && $plugin['actual']) {
268 $attr['name'] = 'bulk_plugins[' . $plugin['name'] . ']';
270 if (!$plugin['isdefault'] && !$plugin['actual']) {