Merge branch '1.10.x' of https://github.com/chamilo/chamilo-lms into 1.10.0-rc
	
		
	
				
					
				
			
						commit
						221253f3dd
					
				@ -0,0 +1,10 @@ | 
				
			||||
<?php | 
				
			||||
/* See license terms in /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * @package chamilo.plugin.text | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
if (!empty($plugin_info['settings']['text_content'])) { | 
				
			||||
    echo $plugin_info['settings']['text_content']; | 
				
			||||
} | 
				
			||||
@ -0,0 +1,2 @@ | 
				
			||||
<?php | 
				
			||||
/* See license terms in /license.txt */ | 
				
			||||
@ -0,0 +1,40 @@ | 
				
			||||
<?php | 
				
			||||
/* See license terms in /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * 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 config */ | 
				
			||||
 | 
				
			||||
//the plugin title | 
				
			||||
$plugin_info['title'] = 'Text'; | 
				
			||||
//the comments that go with the plugin | 
				
			||||
$plugin_info['comment'] = "Displays a text message"; | 
				
			||||
//the plugin version | 
				
			||||
$plugin_info['version'] = '1.0'; | 
				
			||||
//the plugin author | 
				
			||||
$plugin_info['author'] = 'Julio Montoya'; | 
				
			||||
 | 
				
			||||
/* Plugin optional settings */ | 
				
			||||
 | 
				
			||||
$form = new FormValidator('text_form'); | 
				
			||||
$form->addTextarea('content', get_lang('Content')); | 
				
			||||
$form->addButtonSave(get_lang('Save'), 'submit_button'); | 
				
			||||
 | 
				
			||||
$content = ''; | 
				
			||||
$setting = api_get_setting('text_content'); | 
				
			||||
 | 
				
			||||
if (!empty($setting) && is_array($setting)) { | 
				
			||||
    if (isset($setting['text'])) { | 
				
			||||
        $content = $setting['text']; | 
				
			||||
    } | 
				
			||||
} | 
				
			||||
 | 
				
			||||
$form->setDefaults(array('content' => $content)); | 
				
			||||
 | 
				
			||||
$plugin_info['settings_form'] = $form; | 
				
			||||
@ -0,0 +1,3 @@ | 
				
			||||
README | 
				
			||||
 | 
				
			||||
Display a text in a region. | 
				
			||||
@ -0,0 +1,2 @@ | 
				
			||||
<?php | 
				
			||||
/* See license terms in /license.txt */ | 
				
			||||
					Loading…
					
					
				
		Reference in new issue