Example #1
0
<?php

/**
 * @copyright (c) 2011 University of Geneva
 * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
 * @author Laurent Opprecht
 */
require_once api_get_path(LIBRARY_PATH) . 'plugin.class.php';
require_once dirname(__FILE__) . '/lib/static_plugin.class.php';
$plugin_info = StaticPlugin::create()->get_info();
Example #2
0
<?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
;