|
@@ -398,6 +398,34 @@ if (api_is_platform_admin()) {
|
|
|
$blocks['skills']['search_form'] = null;
|
|
|
}
|
|
|
|
|
|
+ /* Plugins */
|
|
|
+ global $_plugins;
|
|
|
+ if(count($_plugins['menu_administrator']) > 0) {
|
|
|
+ $blocks['plugins']['icon'] = Display::return_icon(
|
|
|
+ 'plugins.png',
|
|
|
+ get_lang('Plugins'),
|
|
|
+ array(),
|
|
|
+ ICON_SIZE_MEDIUM,
|
|
|
+ false
|
|
|
+ );
|
|
|
+ $blocks['plugins']['label'] = api_ucfirst(get_lang('Plugins'));
|
|
|
+ $blocks['plugins']['class'] = 'block-admin-platform';
|
|
|
+ $blocks['plugins']['editable'] = true;
|
|
|
+
|
|
|
+ $plugin_obj = new AppPlugin();
|
|
|
+ $items = array();
|
|
|
+ foreach ( $_plugins['menu_administrator'] as $plugin_name){
|
|
|
+ $plugin_info = $plugin_obj->getPluginInfo($plugin_name);
|
|
|
+ $items[] = array(
|
|
|
+ 'url' => api_get_path(WEB_CODE_PATH) . '../plugin/'.$plugin_name.'/start.php',
|
|
|
+ 'label' => $plugin_info['title']
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ $blocks['plugins']['items'] = $items;
|
|
|
+ $blocks['plugins']['extra'] = null;
|
|
|
+ }
|
|
|
+
|
|
|
/* Chamilo.org */
|
|
|
|
|
|
$blocks['chamilo']['icon'] = Display::return_icon('logo.png', 'Chamilo.org', array(), ICON_SIZE_MEDIUM, false);
|