forked from Wavyzz/dolibarr
Debug v19
This commit is contained in:
@@ -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>';
|
||||||
|
|||||||
@@ -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 .= ' <a href="skype:';
|
$htmllink .= ' <a href="skype:';
|
||||||
|
|||||||
Reference in New Issue
Block a user