forked from Wavyzz/dolibarr
More picto using fontawesome.
This commit is contained in:
@@ -699,12 +699,12 @@ if ($mode == 'common' || $mode == 'commonkanban')
|
|||||||
//if (is_array($objMod->phpmin)) $alttext.=($alttext?' - ':'').'PHP >= '.join('.',$objMod->phpmin);
|
//if (is_array($objMod->phpmin)) $alttext.=($alttext?' - ':'').'PHP >= '.join('.',$objMod->phpmin);
|
||||||
if (!empty($objMod->picto))
|
if (!empty($objMod->picto))
|
||||||
{
|
{
|
||||||
if (preg_match('/^\//i', $objMod->picto)) print img_picto($alttext, $objMod->picto, 'class="valignmiddle pictomodule"', 1);
|
if (preg_match('/^\//i', $objMod->picto)) print img_picto($alttext, $objMod->picto, 'class="valignmiddle pictomodule paddingrightonly"', 1);
|
||||||
else print img_object($alttext, $objMod->picto, 'class="valignmiddle pictomodule"');
|
else print img_object($alttext, $objMod->picto, 'class="valignmiddle pictomodule paddingrightonly"');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print img_object($alttext, 'generic', 'class="valignmiddle"');
|
print img_object($alttext, 'generic', 'class="valignmiddle paddingrightonly"');
|
||||||
}
|
}
|
||||||
print ' <span class="valignmiddle">'.$objMod->getName().'</span>';
|
print ' <span class="valignmiddle">'.$objMod->getName().'</span>';
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|||||||
@@ -3132,11 +3132,12 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
|
|
||||||
if (empty($srconly) && in_array($pictowithouttext, array(
|
if (empty($srconly) && in_array($pictowithouttext, array(
|
||||||
'1downarrow', '1uparrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected',
|
'1downarrow', '1uparrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected',
|
||||||
'object_accounting', 'object_category', 'address', 'barcode', 'bank', 'bookmark', 'building', 'cash-register', 'check', 'close_title', 'cubes', 'delete', 'dolly', 'edit', 'ellipsis-h',
|
'address', 'barcode', 'bank', 'bookmark', 'building', 'cash-register', 'check', 'close_title', 'cubes', 'delete', 'dolly', 'edit', 'ellipsis-h',
|
||||||
'filter', 'file-code', 'folder', 'folder-open', 'grip', 'grip_title', 'language', 'list', 'listlight', 'note',
|
'filter', 'file-code', 'folder', 'folder-open', 'grip', 'grip_title', 'language', 'list', 'listlight', 'note',
|
||||||
'object_barcode', 'object_phoning', 'object_phoning_fax', 'object_email',
|
'object_account', 'object_barcode', 'object_phoning', 'object_phoning_fax', 'object_email',
|
||||||
'object_bookmark', 'object_generic', 'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
'object_bookmark', 'object_bug', 'object_generic', 'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
||||||
'object_cash-register', 'object_printer', 'object_technic',
|
'object_cash-register', 'object_holiday', 'object_hrm', 'object_accounting', 'object_category', 'object_multicurrency',
|
||||||
|
'object_printer', 'object_technic', 'object_trip', 'object_user', 'object_group', 'object_member',
|
||||||
'off', 'on', 'play', 'playdisabled', 'printer', 'resize', 'stats',
|
'off', 'on', 'play', 'playdisabled', 'printer', 'resize', 'stats',
|
||||||
'note', 'setup', 'sign-out', 'split', 'switch_off', 'switch_on', 'tools', 'unlink', 'uparrow', 'user', 'wrench', 'globe',
|
'note', 'setup', 'sign-out', 'split', 'switch_off', 'switch_on', 'tools', 'unlink', 'uparrow', 'user', 'wrench', 'globe',
|
||||||
'jabber', 'skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp',
|
'jabber', 'skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp',
|
||||||
@@ -3149,46 +3150,35 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
$fakey = $pictowithouttext;
|
$fakey = $pictowithouttext;
|
||||||
$facolor = ''; $fasize = '';
|
$facolor = ''; $fasize = '';
|
||||||
$fa = 'fas';
|
$fa = 'fas';
|
||||||
if (in_array($pictowithouttext, array('off', 'on', 'object_bookmark', 'bookmark'))) {
|
if (in_array($pictowithouttext, array('object_generic', 'note', 'off', 'on', 'object_bookmark', 'bookmark'))) {
|
||||||
$fa = 'far';
|
$fa = 'far';
|
||||||
}
|
}
|
||||||
if (in_array($pictowithouttext, array('skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp'))) {
|
if (in_array($pictowithouttext, array('skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp'))) {
|
||||||
$fa = 'fab';
|
$fa = 'fab';
|
||||||
}
|
}
|
||||||
|
|
||||||
$pictowithouttext = str_replace('object_', '', $pictowithouttext);
|
$pictowithouttext = str_replace('object_', '', $pictowithouttext);
|
||||||
|
|
||||||
$arrayconvpictotofa = array(
|
$arrayconvpictotofa = array(
|
||||||
'address'=> 'address-book', 'setup'=>'cog', 'companies'=>'building', 'products'=>'cube', 'commercial'=>'suitcase', 'invoicing'=>'coins', 'accountancy'=>'money-check-alt',
|
'address'=> 'address-book', 'setup'=>'cog', 'companies'=>'building', 'products'=>'cube', 'commercial'=>'suitcase', 'invoicing'=>'coins', 'accountancy'=>'money-check-alt',
|
||||||
'accounting'=>'chart-line', 'category'=>'tag',
|
'account'=>'university', 'accounting'=>'chart-line', 'category'=>'tag',
|
||||||
'hrm'=>'umbrella-beach', 'members'=>'users', 'ticket'=>'ticket-alt', 'generic'=>'folder-open', 'globe'=>'external-link-alt',
|
'hrm'=>'umbrella-beach', 'members'=>'users', 'ticket'=>'ticket-alt', 'globe'=>'external-link-alt',
|
||||||
'phoning'=>'phone', 'phoning_fax'=>'fax', 'email'=>'at',
|
'email'=>'at',
|
||||||
'generic'=>'file',
|
'edit'=>'pencil-alt', 'grip_title'=>'arrows-alt', 'grip'=>'arrows-alt',
|
||||||
|
'generic'=>'file', 'holiday'=>'umbrella-beach', 'member'=>'users', 'trip'=>'wallet', 'group'=>'users',
|
||||||
|
'sign-out'=>'sign-out-alt',
|
||||||
'switch_off'=>'toggle-off', 'switch_on'=>'toggle-on', 'check'=>'check', 'bookmark'=>'star', 'bookmark'=>'star', 'stats' => 'chart-bar',
|
'switch_off'=>'toggle-off', 'switch_on'=>'toggle-on', 'check'=>'check', 'bookmark'=>'star', 'bookmark'=>'star', 'stats' => 'chart-bar',
|
||||||
'bank'=>'university', 'close_title'=>'window-close', 'delete'=>'trash', 'edit'=>'pencil', 'filter'=>'filter', 'split'=>'code-branch',
|
'bank'=>'university', 'close_title'=>'window-close', 'delete'=>'trash', 'edit'=>'pencil', 'filter'=>'filter', 'split'=>'code-branch',
|
||||||
'list-alt'=>'list-alt', 'calendar'=>'calendar-alt', 'calendarweek'=>'calendar-week', 'calendarmonth'=>'calendar-alt', 'calendarday'=>'calendar-day', 'calendarperuser'=>'table',
|
'list-alt'=>'list-alt', 'calendar'=>'calendar-alt', 'calendarweek'=>'calendar-week', 'calendarmonth'=>'calendar-alt', 'calendarday'=>'calendar-day', 'calendarperuser'=>'table',
|
||||||
|
'multicurrency'=>'dollar-sign',
|
||||||
'error'=>'exclamation-triangle', 'warning'=>'exclamation-triangle',
|
'error'=>'exclamation-triangle', 'warning'=>'exclamation-triangle',
|
||||||
'printer'=>'print', 'technic'=>'cogs',
|
'phoning'=>'phone', 'phoning_fax'=>'fax', 'printer'=>'print', 'technic'=>'cogs',
|
||||||
'title_setup'=>'tools', 'title_accountancy'=>'money-check-alt', 'title_bank'=>'university', 'title_hrm'=>'umbrella-beach', 'title_agenda'=>'calendar-alt',
|
'title_setup'=>'tools', 'title_accountancy'=>'money-check-alt', 'title_bank'=>'university', 'title_hrm'=>'umbrella-beach', 'title_agenda'=>'calendar-alt',
|
||||||
'preview'=>'binoculars', 'project'=>'sitemap'
|
'playdisabled'=>'play', 'preview'=>'binoculars', 'project'=>'sitemap', 'resize'=>'crop',
|
||||||
|
'uparrow'=>'mail-forward',
|
||||||
|
'jabber'=>'comment-o'
|
||||||
);
|
);
|
||||||
if ($pictowithouttext == 'error' || $pictowithouttext == 'warning') {
|
if ($pictowithouttext == 'off') {
|
||||||
$facolor = '';
|
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
$marginleftonlyshort = 0;
|
|
||||||
$morecss .= ($morecss ? ' ' : '').('picto'.$pictowithouttext);
|
|
||||||
} elseif ($pictowithouttext == 'switch_off') {
|
|
||||||
$facolor = '#999';
|
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'switch_on') {
|
|
||||||
$morecss .= ($morecss ? ' ' : '').'font-status4';
|
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'check') {
|
|
||||||
$morecss .= ($morecss ? ' ' : '').'font-status4';
|
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'off') {
|
|
||||||
$fakey = 'fa-square';
|
$fakey = 'fa-square';
|
||||||
$fasize = '1.3em';
|
$fasize = '1.3em';
|
||||||
}
|
}
|
||||||
@@ -3196,85 +3186,65 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
$fakey = 'fa-check-square';
|
$fakey = 'fa-check-square';
|
||||||
$fasize = '1.3em';
|
$fasize = '1.3em';
|
||||||
}
|
}
|
||||||
elseif ($pictowithouttext == 'bank') {
|
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'stats') {
|
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
$facolor = '#444';
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'delete') {
|
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'edit') {
|
|
||||||
$facolor = '#444';
|
|
||||||
$fakey = 'fa-pencil-alt';
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'grip_title' || $pictowithouttext == 'grip') {
|
|
||||||
$fakey = 'fa-arrows-alt';
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'listlight') {
|
elseif ($pictowithouttext == 'listlight') {
|
||||||
$fakey = 'fa-download';
|
$fakey = 'fa-download';
|
||||||
$facolor = '#999';
|
|
||||||
$marginleftonlyshort = 1;
|
$marginleftonlyshort = 1;
|
||||||
}
|
}
|
||||||
elseif ($pictowithouttext == 'printer') {
|
elseif ($pictowithouttext == 'printer') {
|
||||||
$fakey = 'fa-print';
|
$fakey = 'fa-print';
|
||||||
$fasize = '1.2em';
|
$fasize = '1.2em';
|
||||||
$facolor = '#444';
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'resize') {
|
|
||||||
$fakey = 'fa-crop';
|
|
||||||
$facolor = '#444';
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'generic') {
|
|
||||||
$fakey = 'fa-file';
|
|
||||||
$fa = 'far';
|
|
||||||
}
|
}
|
||||||
elseif ($pictowithouttext == 'note') {
|
elseif ($pictowithouttext == 'note') {
|
||||||
$fakey = 'fa-sticky-note';
|
$fakey = 'fa-sticky-note';
|
||||||
$fa = 'far';
|
|
||||||
$facolor = '#999';
|
|
||||||
$marginleftonlyshort = 1;
|
$marginleftonlyshort = 1;
|
||||||
}
|
}
|
||||||
elseif ($pictowithouttext == 'uparrow') {
|
|
||||||
$fakey = 'fa-mail-forward';
|
|
||||||
$facolor = '#555';
|
|
||||||
}
|
|
||||||
elseif (in_array($pictowithouttext, array('1uparrow', '1downarrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected'))) {
|
elseif (in_array($pictowithouttext, array('1uparrow', '1downarrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected'))) {
|
||||||
$convertarray = array('1uparrow'=>'caret-up', '1downarrow'=>'caret-down', '1leftarrow'=>'caret-left', '1rightarrow'=>'caret-right', '1uparrow_selected'=>'caret-up', '1downarrow_selected'=>'caret-down', '1leftarrow_selected'=>'caret-left', '1rightarrow_selected'=>'caret-right');
|
$convertarray = array('1uparrow'=>'caret-up', '1downarrow'=>'caret-down', '1leftarrow'=>'caret-left', '1rightarrow'=>'caret-right', '1uparrow_selected'=>'caret-up', '1downarrow_selected'=>'caret-down', '1leftarrow_selected'=>'caret-left', '1rightarrow_selected'=>'caret-right');
|
||||||
$fakey = 'fa-'.$convertarray[$pictowithouttext];
|
$fakey = 'fa-'.$convertarray[$pictowithouttext];
|
||||||
if (preg_match('/selected/', $pictowithouttext)) $facolor = '#888';
|
if (preg_match('/selected/', $pictowithouttext)) $facolor = '#888';
|
||||||
$marginleftonlyshort = 1;
|
$marginleftonlyshort = 1;
|
||||||
}
|
}
|
||||||
elseif ($pictowithouttext == 'sign-out') {
|
|
||||||
$fakey = 'fa-sign-out-alt';
|
|
||||||
$marginleftonlyshort = 0;
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'playdisabled') {
|
|
||||||
$fakey = 'fa-play';
|
|
||||||
$facolor = '#ccc';
|
|
||||||
}
|
|
||||||
elseif ($pictowithouttext == 'jabber') {
|
|
||||||
$fakey = 'fa-comment-o';
|
|
||||||
}
|
|
||||||
// Img for type of views
|
|
||||||
elseif (in_array($pictowithouttext, array('list-alt', 'calendar', 'calendarweek', 'calendarmonth', 'calendarday', 'calendarperuser'))) {
|
|
||||||
$fakey = 'imgforviewmode fa-'.$arrayconvpictotofa[$pictowithouttext];
|
|
||||||
$marginleftonlyshort = 0;
|
|
||||||
}
|
|
||||||
elseif (!empty($arrayconvpictotofa[$pictowithouttext]))
|
elseif (!empty($arrayconvpictotofa[$pictowithouttext]))
|
||||||
{
|
{
|
||||||
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
$fakey = 'fa-'.$arrayconvpictotofa[$pictowithouttext];
|
||||||
$marginleftonlyshort = 0;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$fakey = 'fa-'.$pictowithouttext;
|
$fakey = 'fa-'.$pictowithouttext;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Define $marginleftonlyshort
|
||||||
|
$arrayconvpictotomarginleftonly = array(
|
||||||
|
'bank', 'check', 'delete', 'generic', 'grip', 'grip_title', 'jabber',
|
||||||
|
'grip_title', 'grip', 'listlight', 'note', 'on', 'off', 'playdisabled', 'printer', 'resize', 'sign-out', 'stats', 'switch_on', 'switch_off',
|
||||||
|
'uparrow', '1uparrow', '1downarrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected'
|
||||||
|
);
|
||||||
|
if (! isset($arrayconvpictotomarginleftonly[$pictowithouttext])) {
|
||||||
$marginleftonlyshort = 0;
|
$marginleftonlyshort = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//this snippet only needed since function img_edit accepts only one additional parameter: no separate one for css only.
|
// Add CSS
|
||||||
//class/style need to be extracted to avoid duplicate class/style validation errors when $moreatt is added to the end of the attributes
|
$arrayconvpictotomorcess = array(
|
||||||
|
'account'=>'bg-infoxbox-bank_account', 'multicurrency'=>'bg-infoxbox-bank_account',
|
||||||
|
'check'=>'font-status4', 'hrm'=>'bg-infoxbox-adherent', 'group'=>'bg-infoxbox-adherent', 'member'=>'bg-infoxbox-adherent', 'user'=>'bg-infoxbox-adherent', 'users'=>'bg-infoxbox-adherent',
|
||||||
|
'error'=>'pictoerror', 'warning'=>'pictowarning', 'switch_on'=>'font-status4',
|
||||||
|
'holiday'=>'bg-infoxbox-holiday', 'trip'=>'bg-infoxbox-expensereport',
|
||||||
|
'list-alt'=>'imgforviewmode', 'calendar'=>'imgforviewmode', 'calendarweek'=>'imgforviewmode', 'calendarmonth'=>'imgforviewmode', 'calendarday'=>'imgforviewmode', 'calendarperuser'=>'imgforviewmode'
|
||||||
|
);
|
||||||
|
if (! empty($arrayconvpictotomorcess[$pictowithouttext])) {
|
||||||
|
$morecss .= ($morecss ? ' ' : '').$arrayconvpictotomorcess[$pictowithouttext];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Define $color
|
||||||
|
$arrayconvpictotocolor = array(
|
||||||
|
'category'=>'#666', 'edit'=>'#444', 'note'=>'#999', 'error'=>'', 'listlight'=>'#999', 'playdisabled'=>'#ccc', 'printer'=>'#444', 'resize'=>'#444',
|
||||||
|
'stats'=>'#444', 'switch_off'=>'#999', 'uparrow'=>'#555', 'warning'=>''
|
||||||
|
);
|
||||||
|
if (isset($arrayconvpictotocolor[$pictowithouttext])) {
|
||||||
|
$facolor = $arrayconvpictotocolor[$pictowithouttext];
|
||||||
|
}
|
||||||
|
|
||||||
|
// This snippet only needed since function img_edit accepts only one additional parameter: no separate one for css only.
|
||||||
|
// class/style need to be extracted to avoid duplicate class/style validation errors when $moreatt is added to the end of the attributes.
|
||||||
$reg = array();
|
$reg = array();
|
||||||
if (preg_match('/class="([^"]+)"/', $moreatt, $reg)) {
|
if (preg_match('/class="([^"]+)"/', $moreatt, $reg)) {
|
||||||
$morecss .= ($morecss ? ' ' : '').$reg[1];
|
$morecss .= ($morecss ? ' ' : '').$reg[1];
|
||||||
|
|||||||
@@ -2305,7 +2305,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||||||
print '</div>
|
print '</div>
|
||||||
<div class="info-box-content info-box-text-module">
|
<div class="info-box-content info-box-text-module">
|
||||||
<span class="info-box-title">'.$this->getName().'</span>
|
<span class="info-box-title">'.$this->getName().'</span>
|
||||||
<span class="info-box-desc twolinesmax">'.nl2br($this->getDesc()).'</span>';
|
<span class="info-box-desc twolinesmax" title="'.dol_escape_htmltag($this->getDesc()).'">'.nl2br($this->getDesc()).'</span>';
|
||||||
|
|
||||||
print '<a href="javascript:document_preview(\''.DOL_URL_ROOT.'/admin/modulehelp.php?id='.$this->numero.'\',\'text/html\',\''.dol_escape_js($langs->trans("Module")).'\')">'.img_picto($langs->trans("ClickToShowDescription"), $imginfo).'</a>';
|
print '<a href="javascript:document_preview(\''.DOL_URL_ROOT.'/admin/modulehelp.php?id='.$this->numero.'\',\'text/html\',\''.dol_escape_js($langs->trans("Module")).'\')">'.img_picto($langs->trans("ClickToShowDescription"), $imginfo).'</a>';
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class modAdherent extends DolibarrModules
|
|||||||
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
|
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
|
||||||
$this->version = 'dolibarr';
|
$this->version = 'dolibarr';
|
||||||
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
||||||
$this->picto = 'user';
|
$this->picto = 'member';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array("/adherent/temp");
|
$this->dirs = array("/adherent/temp");
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class modHRM extends DolibarrModules
|
|||||||
// Name of image file used for this module.
|
// Name of image file used for this module.
|
||||||
// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
|
// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
|
||||||
// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
|
// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
|
||||||
$this->picto='generic';
|
$this->picto='hrm';
|
||||||
|
|
||||||
// define triggers
|
// define triggers
|
||||||
$this->module_parts = array();
|
$this->module_parts = array();
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class modModuleBuilder extends DolibarrModules
|
|||||||
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
|
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
|
||||||
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
||||||
// Name of image file used for this module.
|
// Name of image file used for this module.
|
||||||
$this->picto='technic';
|
$this->picto='bug';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class modSocialNetworks extends DolibarrModules
|
|||||||
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
|
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
|
||||||
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
||||||
// Name of image file used for this module.
|
// Name of image file used for this module.
|
||||||
$this->picto='generic';
|
$this->picto='email';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class modZapier extends DolibarrModules
|
|||||||
// It is used to group modules by family in module setup page
|
// It is used to group modules by family in module setup page
|
||||||
$this->family = "interface";
|
$this->family = "interface";
|
||||||
// Module position in the family on 2 digits ('01', '10', '20', ...)
|
// Module position in the family on 2 digits ('01', '10', '20', ...)
|
||||||
$this->module_position = '13';
|
$this->module_position = '22';
|
||||||
// Gives the possibility for the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
// Gives the possibility for the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
||||||
//$this->familyinfo = array('myownfamily' => array('position' => '01', 'label' => $langs->trans("MyOwnFamily")));
|
//$this->familyinfo = array('myownfamily' => array('position' => '01', 'label' => $langs->trans("MyOwnFamily")));
|
||||||
// Module label (no space allowed), used if translation string 'ModuleZapierName' not found (Zapier is name of module).
|
// Module label (no space allowed), used if translation string 'ModuleZapierName' not found (Zapier is name of module).
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.info-box-module .info-box-icon > img {
|
.info-box-module .info-box-icon > img {
|
||||||
max-width: 70%;
|
max-width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-box-icon-text{
|
.info-box-icon-text{
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ span.info-box-icon-text { /* hide box text number due to problems */
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.info-box-module .info-box-icon > img {
|
.info-box-module .info-box-icon > img {
|
||||||
max-width: 70%;
|
max-width: 50%;
|
||||||
}
|
}
|
||||||
.info-box-content {
|
.info-box-content {
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
|
|||||||
Reference in New Issue
Block a user