Use css "pictomodule" for picto of modules

This commit is contained in:
Laurent Destailleur 2019-08-28 19:28:50 +02:00
parent 931586269a
commit 9fd4f839ec
4 changed files with 9 additions and 3 deletions

View File

@ -659,8 +659,8 @@ if ($mode == 'common')
//if (is_array($objMod->phpmin)) $alttext.=($alttext?' - ':'').'PHP >= '.join('.',$objMod->phpmin);
if (! empty($objMod->picto))
{
if (preg_match('/^\//i', $objMod->picto)) print img_picto($alttext, $objMod->picto, ' width="14px"', 1);
else print img_object($alttext, $objMod->picto, 'class="valignmiddle" width="14px"');
if (preg_match('/^\//i', $objMod->picto)) print img_picto($alttext, $objMod->picto, 'class="valignmiddle pictomodule"', 1);
else print img_object($alttext, $objMod->picto, 'class="valignmiddle pictomodule"');
}
else
{

View File

@ -338,7 +338,7 @@ if ($object->fetch($id) >= 0)
print '<div class="tagtd">';
if (empty($obj->picto)) $obj->picto='generic';
print img_object($langs->trans("EmailingTargetSelector").': '.get_class($obj), $obj->picto);
print img_object($langs->trans("EmailingTargetSelector").': '.get_class($obj), $obj->picto, 'class="valignmiddle pictomodule"');
print ' ';
print $obj->getDesc();
print '</div>';

View File

@ -1287,6 +1287,9 @@ div.nopadding {
.pictowarning {
vertical-align: text-bottom;
}
.pictomodule {
width: 14px;
}
.fiche .arearef img.pictoedit, .fiche .arearef span.pictoedit,
.fiche .fichecenter img.pictoedit, .fiche .fichecenter span.pictoedit,
.tagtdnote span.pictoedit {

View File

@ -1479,6 +1479,9 @@ table.noborder tr.liste_titre td {
.pictowarning {
vertical-align: text-bottom;
}
.pictomodule {
width: 14px;
}
.fiche .arearef img.pictoedit, .fiche .arearef span.pictoedit,
.fiche .fichecenter img.pictoedit, .fiche .fichecenter span.pictoedit,
.tagtdnote span.pictoedit {