From d83af2c27aad3a862a059f1096cef8615ea60821 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Wed, 9 May 2012 14:57:52 +0200 Subject: [PATCH] Adding tabs in the plugin settings --- main/admin/settings.lib.php | 7 +++---- main/admin/settings.php | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/main/admin/settings.lib.php b/main/admin/settings.lib.php index 9a019333dc..2e28457e89 100644 --- a/main/admin/settings.lib.php +++ b/main/admin/settings.lib.php @@ -81,7 +81,7 @@ function handle_regions() { } function handle_extensions() { - echo ''; + echo Display::page_subheader(get_lang('ConfigureExtensions')); echo ''.get_lang('Ppt2lp').''; } @@ -105,10 +105,10 @@ function handle_plugins() { $all_plugins = $plugin_obj->read_plugins_from_path(); $installed_plugins = $plugin_obj->get_installed_plugins(); - $not_installed = array_diff($all_plugins, $installed_plugins); + //Plugins NOT installed - echo ''; + echo Display::page_subheader(get_lang('Plugins')); echo '
'; echo ''; echo ''; @@ -167,7 +167,6 @@ function handle_plugins() { echo '
'; echo '
'; echo '
'; - echo '
'; } /** diff --git a/main/admin/settings.php b/main/admin/settings.php index a838f3a5b8..b0587bea39 100644 --- a/main/admin/settings.php +++ b/main/admin/settings.php @@ -378,9 +378,38 @@ if (!empty($_GET['category'])) { Display :: display_confirmation_message(get_lang('DashboardPluginsHaveBeenUpdatedSucesslly')); } } + + + + echo ''; + + + echo '
'; + + echo ''; + + echo '
'; handle_plugins(); + echo '
'; + + echo '
'; DashboardManager::handle_dashboard_plugins(); + echo '
'; + + echo '
'; handle_extensions(); + echo '
'; + + echo '
'; + break; case 'stylesheets': // Displaying the extensions: Stylesheets.