diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 00:05:02 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 00:05:02 +0000 |
commit | 1b3512f61edbde3c3d071df064d58efd49911b2d (patch) | |
tree | 859e01a57a9536426b262d68db55c392a177cf80 /views/default/admin/plugins/simple.php | |
parent | 947eda7867df1f4846f18fc0326ff0ed20626c34 (diff) | |
download | elgg-1b3512f61edbde3c3d071df064d58efd49911b2d.tar.gz elgg-1b3512f61edbde3c3d071df064d58efd49911b2d.tar.bz2 |
fixed a few issues with the admin backend - need to look into better ways to structure admin sub views
git-svn-id: http://code.elgg.org/elgg/trunk@7764 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/plugins/simple.php')
-rw-r--r-- | views/default/admin/plugins/simple.php | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/views/default/admin/plugins/simple.php b/views/default/admin/plugins/simple.php deleted file mode 100644 index e53ecb0c1..000000000 --- a/views/default/admin/plugins/simple.php +++ /dev/null @@ -1,94 +0,0 @@ -<?php -/** - * Elgg administration simple plugin screen - * - * Shows an alphabetical list of "simple" plugins. - * - * @package Elgg - * @subpackage Core - */ - -regenerate_plugin_list(); -$installed_plugins = get_installed_plugins(); -$plugin_list = array(); -$title = elgg_view_title(elgg_echo('admin:plugins')); - -foreach ($installed_plugins as $installed_name => $plugin) { - if (!isset($plugin['manifest']['admin_interface']) || $plugin['manifest']['admin_interface'] == 'advanced') { - continue; - } - - $plugin['installed_name'] = $installed_name; - - $plugin_list[$plugin['manifest']['name']] = $plugin; -} - -ksort($plugin_list); -$form_body .= <<<___END - <div id="content_header" class="clearfix"> - <div class="content-header-title">$title</div> - </div> - <ul class="admin_plugins margin-top"> -___END; - -foreach ($plugin_list as $name => $info) { - $manifest = $info['manifest']; - $version_valid = (isset($manifest['elgg_version'])) ? check_plugin_compatibility($manifest['elgg_version']) : FALSE; - if ($info['active']) { - $active_class = 'active'; - $checked = 'checked="checked"'; - } else { - $active_class = 'not_active'; - $checked = ''; - } - - $author = $link = $version = $settings = ''; - - if (isset($manifest['author'])) { - $author = elgg_echo('admin:plugins:author', array($manifest['author'])); - } - - if (isset($manifest['version'])) { - $version = ' | ' . elgg_echo('admin:plugins:version', array($manifest['version'])); - } - - if (isset($manifest['website'])) { - $link = " | <a href=\"{$manifest['website']}\">" . elgg_echo('admin:plugins:plugin_website') . '</a>'; - } - - if (elgg_view_exists("settings/{$info['installed_name']}/edit")) { - $settings_href = elgg_get_site_url()."pg/admin/plugin_settings/{$info['installed_name']}"; - $settings = " | <a class='plugin_settings link' href='$settings_href'>". elgg_echo('settings') ."</a>"; - } - - $form_body .= <<<___END - <li class="plugin_details $active_class"> - <span class="plugin_controls"> - <input type="checkbox" id="{$info['installed_name']}" class="plugin_enabled" $checked name="enabled_plugins[]" value="{$info['installed_name']}"/> - <label for="{$info['installed_name']}">$name</label> - </span> - - <span class="plugin_info"> - <span class="plugin_description"> - {$manifest['description']} - </span> - <span class="plugin_metadata small"> - $author - $version - $link - $settings - </span> - </span> - </li> -___END; -} - -$form_body .= '</ul>'; -$form_body .= elgg_view('input/submit', array('value' => elgg_echo('save'))); -$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'elgg-action-button disabled')); - -echo elgg_view('input/form', array( - 'action' => "action/admin/plugins/simple_update_states", - 'body' => $form_body, - 'class' => 'admin_plugins_simpleview' -));
\ No newline at end of file |