Actualización

This commit is contained in:
Xes
2025-04-10 12:36:07 +02:00
parent 1da7c3f3b9
commit 4aff98e77b
3147 changed files with 320647 additions and 0 deletions

4
plugin/static/README.md Normal file
View File

@@ -0,0 +1,4 @@
Static plugin
===
Displays static content in a selected region.

25
plugin/static/index.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
$plugin = StaticPlugin::create();
$content = $plugin->get_content();
$title = $plugin->get_block_title();
$title = $title ? "<h4>$title</h4>" : '';
$css = $plugin->get_css();
$css = $css ? "<style type=\"text/css\" scoped=\"scoped\">$css</style>" : '';
if (empty($content)) {
echo '';
}
echo <<<EOT
<div class="well sidebar-nav static">
$css
<div class="menusection">
$title
<div class="content">
$content
</div>
</div>
</div>
EOT;

View File

@@ -0,0 +1,11 @@
<?php
/**
* @copyright (c) 2012 University of Geneva
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
* @author Laurent Opprecht <laurent@opprecht.info>
*/
$strings['plugin_title'] = "Static";
$strings['plugin_comment'] = "Display static html content.";
$strings['block_title'] = "Block title";
//$strings['title'] = "Title";

View File

@@ -0,0 +1,9 @@
<?php
/**
* @copyright (c) 2012 University of Geneva
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
* @author Laurent Opprecht <laurent@opprecht.info>
*/
$strings['plugin_title'] = "Statique";
$strings['plugin_comment'] = "Affiche du contenu html.";
$strings['block_title'] = "Titre du bloc";

View File

@@ -0,0 +1,9 @@
<?php
/**
* @copyright (c) 2012 University of Geneva
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
* @author Laurent Opprecht <laurent@opprecht.info>
*/
$strings['plugin_title'] = "Texto estático";
$strings['plugin_comment'] = "Muestra contenido HTML.";
$strings['block_title'] = "Título del bloque";

View File

@@ -0,0 +1,36 @@
<?php
/**
* Description of static_plugin.
*
* @copyright (c) 2012 University of Geneva
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
* @author Laurent Opprecht <laurent@opprecht.info>
*/
class StaticPlugin extends Plugin
{
protected function __construct()
{
parent::__construct('1.1', 'Laurent Opprecht', ['block_title' => 'text', 'content' => 'wysiwyg']);
}
/**
* @return StaticPlugin
*/
public static function create()
{
static $result = null;
return $result ? $result : $result = new self();
}
public function get_block_title()
{
return $this->get('block_title');
}
public function get_content()
{
return $this->get('content');
}
}

8
plugin/static/plugin.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
/* For license terms, see /license.txt */
/**
* @copyright (c) 2011 University of Geneva
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
* @author Laurent Opprecht
*/
$plugin_info = StaticPlugin::create()->get_info();

View File

@@ -0,0 +1,4 @@
.well.sidebar-nav.rss
{
}