Debug v18
This commit is contained in:
parent
c02fc4e177
commit
93125e7841
@ -421,6 +421,9 @@ class vCard
|
||||
|
||||
if (!empty($object->socialnetworks)) {
|
||||
foreach ($object->socialnetworks as $key => $val) {
|
||||
if (empty($val)) { // Disacard social network if empty
|
||||
continue;
|
||||
}
|
||||
$urlsn = '';
|
||||
if ($key == 'linkedin') {
|
||||
if (!preg_match('/^http/', $val)) {
|
||||
|
||||
@ -262,8 +262,8 @@ if ($showbarcode) {
|
||||
$qrcodecontent = $output = $v->buildVCardString($object, $company, $langs);
|
||||
|
||||
print '<br>';
|
||||
print '<div class="floatleft inline-block valignmiddle divphotoref">';
|
||||
print '<img src="'.$dolibarr_main_url_root.'/viewimage.php?modulepart=barcode&entity='.((int) $conf->entity).'&generator=tcpdfbarcode&encoding=QRCODE&code='.urlencode($qrcodecontent).'">';
|
||||
print '<div class="floatleft inline-block valignmiddle paddingleft paddingright">';
|
||||
print '<img style="max-width: 100%" src="'.$dolibarr_main_url_root.'/viewimage.php?modulepart=barcode&entity='.((int) $conf->entity).'&generator=tcpdfbarcode&encoding=QRCODE&code='.urlencode($qrcodecontent).'">';
|
||||
print '</div>';
|
||||
print '<br>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user