2011-10-22 21:22:01 +04:00
|
|
|
<li class="contacts_property" data-checksum="<?php echo $_['property']['checksum']; ?>">
|
|
|
|
<?php if($_['property']['name'] == 'BDAY'): ?>
|
|
|
|
<p class="contacts_property_name"><?php echo $l->t('Birthday'); ?></p>
|
|
|
|
<p class="contacts_property_data">
|
|
|
|
<?php echo $l->l('date',new DateTime($_['property']['value'])); ?>
|
2011-08-13 07:27:50 +04:00
|
|
|
<span style="display:none;" data-use="delete"><img class="svg action" src="<?php echo image_path('', 'actions/delete.svg'); ?>" /></span>
|
2011-10-22 21:22:01 +04:00
|
|
|
</p>
|
2011-08-09 15:53:58 +04:00
|
|
|
<?php elseif($_['property']['name'] == 'ORG'): ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
<p class="contacts_property_name"><?php echo $l->t('Organization'); ?></p>
|
|
|
|
<p class="contacts_property_data">
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value']); ?>
|
2011-08-13 07:27:50 +04:00
|
|
|
<span style="display:none;" data-use="edit"><img class="svg action" src="<?php echo image_path('', 'actions/rename.svg'); ?>" /></span>
|
|
|
|
<span style="display:none;" data-use="delete"><img class="svg action" src="<?php echo image_path('', 'actions/delete.svg'); ?>" /></span>
|
2011-10-22 21:22:01 +04:00
|
|
|
</p>
|
2011-08-09 15:53:58 +04:00
|
|
|
<?php elseif($_['property']['name'] == 'EMAIL'): ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
<p class="contacts_property_name"><?php echo $l->t('Email'); ?></p>
|
|
|
|
<p class="contacts_property_data">
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value']); ?>
|
2011-08-13 07:27:50 +04:00
|
|
|
<span style="display:none;" data-use="edit"><img class="svg action" src="<?php echo image_path('', 'actions/rename.svg'); ?>" /></span>
|
|
|
|
<span style="display:none;" data-use="delete"><img class="svg action" src="<?php echo image_path('', 'actions/delete.svg'); ?>" /></span>
|
2011-10-22 21:22:01 +04:00
|
|
|
</p>
|
2011-08-09 15:53:58 +04:00
|
|
|
<?php elseif($_['property']['name'] == 'TEL'): ?>
|
2011-12-19 02:05:36 +04:00
|
|
|
<p class="contacts_property_name"><?php echo (isset($_['property']['parameters']['PREF']) && $_['property']['parameters']['PREF']) ? $l->t('Preferred').' ' : '' ?><?php echo $l->t('Phone'); ?></p>
|
2011-10-22 21:22:01 +04:00
|
|
|
<p class="contacts_property_data">
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value']); ?>
|
2011-11-24 00:06:51 +04:00
|
|
|
<?php if(isset($_['property']['parameters']['TYPE']) && !empty($_['property']['parameters']['TYPE'])): ?>
|
2011-11-18 02:54:14 +04:00
|
|
|
<?php
|
2012-01-09 04:17:04 +04:00
|
|
|
foreach($_['property']['parameters']['TYPE'] as $type) {
|
2011-11-24 00:06:51 +04:00
|
|
|
if (isset($_['phone_types'][strtoupper($type)])){
|
|
|
|
$types[]=$_['phone_types'][strtoupper($type)];
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$types[]=$l->t(ucwords(strtolower($type)));
|
|
|
|
}
|
2012-01-09 04:17:04 +04:00
|
|
|
}
|
2011-11-24 00:06:51 +04:00
|
|
|
$label = join(' ', $types);
|
2011-11-18 02:54:14 +04:00
|
|
|
?>
|
|
|
|
(<?php echo $label; ?>)
|
2011-08-09 19:42:54 +04:00
|
|
|
<?php endif; ?>
|
2011-08-13 07:27:50 +04:00
|
|
|
<span style="display:none;" data-use="edit"><img class="svg action" src="<?php echo image_path('', 'actions/rename.svg'); ?>" /></span>
|
|
|
|
<span style="display:none;" data-use="delete"><img class="svg action" src="<?php echo image_path('', 'actions/delete.svg'); ?>" /></span>
|
2011-10-22 21:22:01 +04:00
|
|
|
</p>
|
2011-08-09 15:53:58 +04:00
|
|
|
<?php elseif($_['property']['name'] == 'ADR'): ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
<p class="contacts_property_name">
|
2011-08-09 19:42:54 +04:00
|
|
|
<?php echo $l->t('Address'); ?>
|
|
|
|
<?php if(isset($_['property']['parameters']['TYPE'])): ?>
|
|
|
|
<br>
|
2011-11-18 02:54:14 +04:00
|
|
|
<?php
|
|
|
|
$type = $_['property']['parameters']['TYPE'];
|
|
|
|
if (isset($_['adr_types'][strtoupper($type)])){
|
|
|
|
$label=$_['adr_types'][strtoupper($type)];
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$label=$l->t(ucwords(strtolower($type)));
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
(<?php echo $label; ?>)
|
2011-08-09 19:42:54 +04:00
|
|
|
<?php endif; ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
</p>
|
|
|
|
<p class="contacts_property_data">
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php if(!empty($_['property']['value'][0])): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value'][0]); ?><br>
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($_['property']['value'][1])): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value'][1]); ?><br>
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($_['property']['value'][2])): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value'][2]); ?><br>
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($_['property']['value'][3])): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value'][3]); ?><br>
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($_['property']['value'][4])): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value'][4]); ?><br>
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($_['property']['value'][5])): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value'][5]); ?><br>
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($_['property']['value'][6])): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<?php echo htmlspecialchars($_['property']['value'][6]); ?>
|
2011-09-09 17:54:29 +04:00
|
|
|
<?php endif; ?>
|
2011-08-13 07:27:50 +04:00
|
|
|
<span style="display:none;" data-use="edit"><img class="svg action" src="<?php echo image_path('', 'actions/rename.svg'); ?>" /></span>
|
|
|
|
<span style="display:none;" data-use="delete"><img class="svg action" src="<?php echo image_path('', 'actions/delete.svg'); ?>" /></span>
|
2011-10-22 21:22:01 +04:00
|
|
|
</p>
|
2011-08-09 15:53:58 +04:00
|
|
|
<?php endif; ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
</li>
|