diff --git a/plugin/text/index.php b/plugin/text/index.php new file mode 100644 index 0000000000..ed87cdb12f --- /dev/null +++ b/plugin/text/index.php @@ -0,0 +1,10 @@ +Plugins) + * @package chamilo.plugin + * @author Julio Montoya + */ + +/* 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; diff --git a/plugin/text/readme.txt b/plugin/text/readme.txt new file mode 100644 index 0000000000..789b4b4a89 --- /dev/null +++ b/plugin/text/readme.txt @@ -0,0 +1,3 @@ +README + +Display a text in a region. diff --git a/plugin/text/uninstall.php b/plugin/text/uninstall.php new file mode 100644 index 0000000000..beaa5e8ea9 --- /dev/null +++ b/plugin/text/uninstall.php @@ -0,0 +1,2 @@ +