forked from Wavyzz/dolibarr
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2020-2022 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2020-2022 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -305,19 +306,19 @@ if ($object->url && !getDolUserInt('USER_PUBLIC_HIDE_URL', 0, $object)) {
|
|||||||
if ($object->office_phone && !getDolUserInt('USER_PUBLIC_HIDE_OFFICE_PHONE', 0, $object)) {
|
if ($object->office_phone && !getDolUserInt('USER_PUBLIC_HIDE_OFFICE_PHONE', 0, $object)) {
|
||||||
$usersection .= '<div class="flexitemsmall">';
|
$usersection .= '<div class="flexitemsmall">';
|
||||||
$usersection .= img_picto('', 'phone', 'class="pictofixedwidth"');
|
$usersection .= img_picto('', 'phone', 'class="pictofixedwidth"');
|
||||||
$usersection .= dol_print_phone($object->office_phone, $object->country_code, 0, $mysoc->id, 'tel', ' ', 0, '');
|
$usersection .= dol_print_phone($object->office_phone, $object->country_code, 0, $mysoc->id, 'tel', ' ', '', '');
|
||||||
$usersection .= '</div>';
|
$usersection .= '</div>';
|
||||||
}
|
}
|
||||||
if ($object->office_fax && !getDolUserInt('USER_PUBLIC_HIDE_OFFICE_FAX', 0, $object)) {
|
if ($object->office_fax && !getDolUserInt('USER_PUBLIC_HIDE_OFFICE_FAX', 0, $object)) {
|
||||||
$usersection .= '<div class="flexitemsmall">';
|
$usersection .= '<div class="flexitemsmall">';
|
||||||
$usersection .= img_picto('', 'phoning_fax', 'class="pictofixedwidth"');
|
$usersection .= img_picto('', 'phoning_fax', 'class="pictofixedwidth"');
|
||||||
$usersection .= dol_print_phone($object->office_fax, $object->country_code, 0, $mysoc->id, 'fax', ' ', 0, '');
|
$usersection .= dol_print_phone($object->office_fax, $object->country_code, 0, $mysoc->id, 'fax', ' ', '', '');
|
||||||
$usersection .= '</div>';
|
$usersection .= '</div>';
|
||||||
}
|
}
|
||||||
if ($object->user_mobile && !getDolUserInt('USER_PUBLIC_HIDE_USER_MOBILE', 0, $object)) {
|
if ($object->user_mobile && !getDolUserInt('USER_PUBLIC_HIDE_USER_MOBILE', 0, $object)) {
|
||||||
$usersection .= '<div class="flexitemsmall">';
|
$usersection .= '<div class="flexitemsmall">';
|
||||||
$usersection .= img_picto('', 'phone', 'class="pictofixedwidth"');
|
$usersection .= img_picto('', 'phone', 'class="pictofixedwidth"');
|
||||||
$usersection .= dol_print_phone($object->user_mobile, $object->country_code, 0, $mysoc->id, 'tel', ' ', 0, '');
|
$usersection .= dol_print_phone($object->user_mobile, $object->country_code, 0, $mysoc->id, 'tel', ' ', '', '');
|
||||||
$usersection .= '</div>';
|
$usersection .= '</div>';
|
||||||
}
|
}
|
||||||
if (getDolUserInt('USER_PUBLIC_SHOW_BIRTH', 0, $object) && !is_null($object->birth)) {
|
if (getDolUserInt('USER_PUBLIC_SHOW_BIRTH', 0, $object) && !is_null($object->birth)) {
|
||||||
@@ -393,13 +394,13 @@ if (!getDolUserInt('USER_PUBLIC_HIDE_COMPANY', 0, $object)) {
|
|||||||
if ($mysoc->phone) {
|
if ($mysoc->phone) {
|
||||||
$companysection .= '<div class="flexitemsmall">';
|
$companysection .= '<div class="flexitemsmall">';
|
||||||
$companysection .= img_picto('', 'phone', 'class="pictofixedwidth"');
|
$companysection .= img_picto('', 'phone', 'class="pictofixedwidth"');
|
||||||
$companysection .= dol_print_phone($mysoc->phone, $mysoc->country_code, 0, $mysoc->id, 'tel', ' ', 0, '');
|
$companysection .= dol_print_phone($mysoc->phone, $mysoc->country_code, 0, $mysoc->id, 'tel', ' ', '', '');
|
||||||
$companysection .= '</div>';
|
$companysection .= '</div>';
|
||||||
}
|
}
|
||||||
if ($mysoc->fax) {
|
if ($mysoc->fax) {
|
||||||
$companysection .= '<div class="flexitemsmall">';
|
$companysection .= '<div class="flexitemsmall">';
|
||||||
$companysection .= img_picto('', 'phoning_fax', 'class="pictofixedwidth"');
|
$companysection .= img_picto('', 'phoning_fax', 'class="pictofixedwidth"');
|
||||||
$companysection .= dol_print_phone($mysoc->fax, $mysoc->country_code, 0, $mysoc->id, 'fax', ' ', 0, '');
|
$companysection .= dol_print_phone($mysoc->fax, $mysoc->country_code, 0, $mysoc->id, 'fax', ' ', '', '');
|
||||||
$companysection .= '</div>';
|
$companysection .= '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ parameters:
|
|||||||
- '#EvalMath::trigger\(\) expects string, int given#'
|
- '#EvalMath::trigger\(\) expects string, int given#'
|
||||||
- '#get_next_value expects string, int given#'
|
- '#get_next_value expects string, int given#'
|
||||||
- '#pdf_writeLinkedObjects expects string, int given#'
|
- '#pdf_writeLinkedObjects expects string, int given#'
|
||||||
- '#dol_print_phone expects string, int given#'
|
|
||||||
- '#dol_move expects string, int given#'
|
- '#dol_move expects string, int given#'
|
||||||
- '#expects int, float#'
|
- '#expects int, float#'
|
||||||
- '#expects int, array\|string given.#'
|
- '#expects int, array\|string given.#'
|
||||||
|
|||||||
Reference in New Issue
Block a user