upgrade
This commit is contained in:
4
plugin/show_regions/README.md
Normal file
4
plugin/show_regions/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
Show Regions plugin
|
||||
===
|
||||
|
||||
This plugin fills the different regions to make it easier to understand what regions are and where they are located in Chamilo.
|
||||
9
plugin/show_regions/index.php
Normal file
9
plugin/show_regions/index.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// Only show the region information if the admin is logged in.
|
||||
if (api_is_platform_admin()) {
|
||||
echo '<div style="color:black;height:50px;width:200px;background-color:#FFE378">';
|
||||
//We can have access to the current block and the block information with the variable $plugin_info (see your plugin.php)
|
||||
echo $plugin_info['current_region'];
|
||||
echo '</div>';
|
||||
}
|
||||
21
plugin/show_regions/plugin.php
Normal file
21
plugin/show_regions/plugin.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different).
|
||||
* These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins).
|
||||
*
|
||||
* @package chamilo.plugin
|
||||
*
|
||||
* @author Julio Montoya <gugli100@gmail.com>
|
||||
*/
|
||||
/**
|
||||
* Plugin details (must be present).
|
||||
*/
|
||||
|
||||
//the plugin title
|
||||
$plugin_info['title'] = 'Show regions';
|
||||
//the comments that go with the plugin
|
||||
$plugin_info['comment'] = "This is useful when trying to find the Chamilo regions, (<strong>only the admin </strong>can view this plugin). You have to activate all the items in the Regions area";
|
||||
//the plugin version
|
||||
$plugin_info['version'] = '1.0';
|
||||
//the plugin author
|
||||
$plugin_info['author'] = 'Julio Montoya';
|
||||
Reference in New Issue
Block a user