<?php
/**
 * Plugins module
 * 
 * Provide an online help related to current module
 * 
 * @package linea21\core\plugins
 * @author $Author$ - linea21 <info@linea21.com>
 * @version $Id$ 
 * @access public
 * @license http://opensource.org/licenses/gpl-3.0.html
 */
//////////// Check Inclusion de pages ////////////
if (!class_exists('auth')){
  include_once("../lib/lib_common.php");
  ReloadIndex('admin');
}
?>

<?php
// rely on plugin help file if exists
if(isset($_REQUEST['current']) && in_array($_REQUEST['current'], availablePlugins()) && file_exists(SITE_PATH.'plugins/'.$_REQUEST['current'].'/help.php')) {
  
	include_once SITE_PATH.'plugins/'.$_REQUEST['current'].'/help.php';
  
} else { ?>

<div class="headerhelp">
<div class="help">
<a href="#aide-ancre" class="aide-ancre" id="aide-ancre" title="<?php echo _t('help','title');?>"><i class="icon-lifebuoy"></i> <?php echo _t('help','title');?></a>
<div id="aide">
</div> <!-- closing #aide -->
</div> <!-- closing .help -->
</div> <!-- closing ."headerhelp" -->
<?php } ?>