123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class PluginsadminpanelAction extends AdminPanelAction
- {
-
- function title()
- {
-
- return _m('TITLE','Plugins');
- }
-
- function getInstructions()
- {
-
- return _('Additional plugins can be enabled and configured manually. ' .
- 'See the <a href="https://git.gnu.io/gnu/gnu-social/blob/master/plugins/README.md">online plugin ' .
- 'documentation</a> for more details.');
- }
-
- function showForm()
- {
- $this->elementStart('fieldset', array('id' => 'settings_plugins_default'));
-
- $this->element('legend', null, _('Default plugins'), 'default');
- $this->showDefaultPlugins();
- $this->elementEnd('fieldset');
- }
-
- protected function showDefaultPlugins()
- {
- $plugins = array_keys(common_config('plugins', 'default'));
- natsort($plugins);
- if ($plugins) {
- $list = new PluginList($plugins, $this);
- $list->show();
- } else {
- $this->element('p', null,
-
- _('All default plugins have been disabled from the ' .
- 'site\'s configuration file.'));
- }
- }
- }
|