2
0
forked from Wavyzz/dolibarr

Debug v19

This commit is contained in:
Laurent Destailleur
2023-10-11 00:39:38 +02:00
parent 3e0e64ac41
commit a7ac0a248f
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ trait CommonSocialNetworks
print '<td><label for="'.$value['label'].'">'.$form->editfieldkey($value['label'], $key, '', $object, 0).'</label></td>'; print '<td><label for="'.$value['label'].'">'.$form->editfieldkey($value['label'], $key, '', $object, 0).'</label></td>';
print '<td colspan="3">'; print '<td colspan="3">';
if (!empty($value['icon'])) { if (!empty($value['icon'])) {
print '<span class="fa '.$value['icon'].' pictofixedwidth"></span>'; print '<span class="fab '.$value['icon'].' pictofixedwidth"></span>';
} }
print '<input type="text" name="'.$key.'" id="'.$key.'" class="minwidth100 maxwidth300 widthcentpercentminusx" maxlength="80" value="'.dol_escape_htmltag(GETPOSTISSET($key) ? GETPOST($key, 'alphanohtml') : (empty($object->socialnetworks[$key]) ? '' : $object->socialnetworks[$key])).'">'; print '<input type="text" name="'.$key.'" id="'.$key.'" class="minwidth100 maxwidth300 widthcentpercentminusx" maxlength="80" value="'.dol_escape_htmltag(GETPOSTISSET($key) ? GETPOST($key, 'alphanohtml') : (empty($object->socialnetworks[$key]) ? '' : $object->socialnetworks[$key])).'">';
print '</td>'; print '</td>';

View File

@@ -3311,7 +3311,7 @@ function dol_print_socialnetworks($value, $cid, $socid, $type, $dictsocialnetwor
if (!empty($type)) { if (!empty($type)) {
$htmllink = '<div class="divsocialnetwork inline-block valignmiddle">'; $htmllink = '<div class="divsocialnetwork inline-block valignmiddle">';
// Use dictionary definition for picto $dictsocialnetworks[$type]['icon'] // Use dictionary definition for picto $dictsocialnetworks[$type]['icon']
$htmllink .= '<span class="fa pictofixedwidth '.($dictsocialnetworks[$type]['icon'] ? $dictsocialnetworks[$type]['icon'] : 'fa-link').'"></span>'; $htmllink .= '<span class="fab pictofixedwidth '.($dictsocialnetworks[$type]['icon'] ? $dictsocialnetworks[$type]['icon'] : 'fa-link').'"></span>';
if ($type == 'skype') { if ($type == 'skype') {
$htmllink .= dol_escape_htmltag($value); $htmllink .= dol_escape_htmltag($value);
$htmllink .= '&nbsp; <a href="skype:'; $htmllink .= '&nbsp; <a href="skype:';