28include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
52 $this->family =
"interface";
54 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
56 $this->
description =
"This module include an external web site or page into Dolibarr menus and view it into a Dolibarr frame.";
58 $this->version =
'dolibarr';
60 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
62 $this->picto =
'website';
64 $this->langfiles = array(
"externalsite");
67 $this->dirs = array();
70 $this->config_page_url = array(
"index.php@externalsite");
73 $this->depends = array();
74 $this->requiredby = array();
81 $this->
const = array(0=>array(
'EXTERNALSITE_LABEL',
'chaine',
'ExternalSite',
'To declare label to use into external site menu entry', 0));
84 $this->boxes = array();
95 $this->rights_class =
'externalsite';
96 $this->rights = array();
102 $this->menu[$r] = array(
105 'titre'=>
'__[EXTERNALSITE_LABEL]__',
106 'prefix' =>
img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth em092"'),
107 'mainmenu'=>
'externalsite',
108 'url'=>
'/externalsite/frames.php',
112 'enabled'=>
'$conf->externalsite->enabled',
Description and activation class for module ExternalSite.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.