2012-01-19 22:47:09 +04:00
|
|
|
<?php foreach( $_['contacts'] as $contact ):
|
|
|
|
$display = trim($contact['fullname']);
|
|
|
|
if(!$display) {
|
|
|
|
$vcard = OC_Contacts_App::getContactVCard($contact['id']);
|
|
|
|
if(!is_null($vcard)) {
|
|
|
|
$struct = OC_Contacts_VCard::structureContact($vcard);
|
|
|
|
$display = isset($struct['EMAIL'][0])?$struct['EMAIL'][0]['value']:'[UNKNOWN]';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
2012-05-10 22:43:40 +04:00
|
|
|
<li role="button" book-id="<?php echo $contact['addressbookid']; ?>" data-id="<?php echo $contact['id']; ?>"><?php echo $display; ?></li>
|
2011-08-07 00:32:06 +04:00
|
|
|
<?php endforeach; ?>
|