X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.display_phones.php;h=8e4a4938e98c6fba8e847ac161c7cd82ca5ef4d5;hb=01bb23e6f5ae192ffaa6afbbd94b21b2b37f2138;hp=db21384bf32a8677a9b98ad2c7e8b898939b3298;hpb=2b921a8064ea14cd554f03e5f561eb98e79a9246;p=platal.git diff --git a/plugins/function.display_phones.php b/plugins/function.display_phones.php index db21384..8e4a493 100644 --- a/plugins/function.display_phones.php +++ b/plugins/function.display_phones.php @@ -1,6 +1,6 @@ type) { + case Phone::TYPE_FIXED: + $tel_type .= 'Tél'; break; - case 'fax': - $tel_type = 'Fax'; + case Phone::TYPE_FAX: + $tel_type .= 'Fax'; break; - case 'mobile': - $tel_type = 'Mob'; + case Phone::TYPE_MOBILE: + $tel_type .= 'Mob'; break; - default: - $tel_type = $tel['tel_type']; + default: + $tel_type .= $tel->type; } - $txthtml .= "
\n" . $tel_type . " : \n" . $tel['tel'] . "\n"; + $txthtml .= "
\n" . $tel_type . " : \n" . $tel->display . "\n"; $comment = ""; - if ($tel['comment'] != "") { - $commentHtml = str_replace(array('&', '"'), array('&', '"'), $tel['comment']); + if ($tel->comment != "") { + $commentHtml = str_replace(array('&', '"'), array('&', '"'), $tel->comment); $commentJs = str_replace(array('\\', '\''), array('\\\\', '\\\''), $commentHtml); $txthtml .= "