Welcome to mirror list, hosted at ThFree Co, Russian Federation.

part.details.php « templates « contacts « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5048349abc5dee3ae48598657122fa9303f36b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php if(array_key_exists('FN',$_['details'])): ?>
	<table>
		<?php if(isset($_['details']['PHOTO'])): // Emails first ?>
			<tr class="contacts_details_property">
				<td class="contacts_details_left">&nbsp;</td>
				<td class="contacts_details_right">
					<img src="photo.php?id=<?php echo $_['id']; ?>">
				</td>
			</tr>
		<?php endif; ?>
		
		<?php echo $this->inc('part.property', array('property' => $_['details']['FN'][0])); ?>
		
		<?php if(isset($_['details']['BDAY'])): // Emails first ?>
			<?php echo $this->inc('part.property', array('property' => $_['details']['BDAY'][0])); ?>
		<?php endif; ?>

		<?php if(isset($_['details']['ORG'])): // Emails first ?>
			<?php echo $this->inc('part.property', array('property' => $_['details']['ORG'][0])); ?>
		<?php endif; ?>

		<?php foreach(array('EMAIL','TEL','ADR') as $type): ?>
			<?php if(isset($_['details'][$type])): // Emails first ?>
				<?php foreach($_['details'][$type] as $property): ?>
					<?php echo $this->inc('part.property',array('property' => $property )); ?>
				<?php endforeach; ?>
			<?php endif; ?>
		<?php endforeach; ?>
	</table>
<?php endif; ?>

<div id="contacts_cardoptions">
	<a id="contacts_deletecard"><img class="svg action" src="<?php echo image_path('', 'actions/delete.svg'); ?>" /></a>
	<a id="contacts_addproperty"><img class="svg action" src="<?php echo image_path('', 'actions/download.svg'); ?>" /></a>
</div>