]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/contact_template.tpl
Merge branch 'master' of ../save/merge/frio into frio_merge
[friendica.git] / view / theme / frio / templates / contact_template.tpl
1
2 <div class="contact-wrapper media" id="contact-entry-wrapper-{{$contact.id}}" >
3
4                 {{* This is a wrapper for the contact picture and the dropdown menu with contact relating actions *}}
5                 <div class="contact-photo-wrapper dropdown pull-left" >
6                         <div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}" >
7
8                                 <a class="dropdown-toggle" id="contact-photo-menu-{{$contact.id}}" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
9                                         <div class="contact-photo-image-wrapper hidden-xs">
10                                                 <img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
11
12                                                 {{* Overlay background on hover the avatar picture *}}
13                                                 <div class="contact-photo-overlay">
14                                                         <span class="contact-photo-overlay-content xl"><i class="fa fa-angle-down"></i></span>
15                                                 </div>
16                                         </div>
17
18                                         {{* use a smaller picture on very small displays (e.g. mobiles) *}}
19                                         <div class="contact-photo-image-wrapper hidden-lg hidden-md hidden-sm">
20                                                 <img class="contact-photo-xs media-object" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
21
22                                                 {{* Overlay background on hover the avatar picture *}}
23                                                 <div class="contact-photo-overlay">
24                                                         <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down"></i></span>
25                                                 </div>
26                                         </div>
27                                 </a>
28
29
30                                 {{if $contact.photo_menu}}
31                                 <ul class="contact-photo-menu menu-popup dropdown-menu " id="contact-photo-menu-{{$contact.id}}" role="menu" aria-labelledby="contact-photo-menu-{{$contact.id}}">
32                                         {{foreach $contact.photo_menu as $c}}
33                                         {{if $c.2}}
34                                         <li role="menuitem"><a target="redir" href="{{$c.1}}">{{$c.0}}</a></li>
35                                         {{elseif $c.3}}
36                                         <li role="menuitem"><a onclick="addToModal('{{$c.1}}')">{{$c.0}}</a></li>
37                                         {{else}}
38                                         <li role="menuitem"><a href="{{$c.1}}">{{$c.0}}</a></li>
39                                         {{/if}}
40                                         {{/foreach}}
41                                 </ul>
42
43                                 {{/if}}
44                         </div>
45
46                 </div>
47
48                 <div class="media-body">
49                         {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
50                         <div class="contact-entry-desc">
51                                 <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >
52                                         <h4 class="media-heading">{{$contact.name}}
53                                         {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
54                                         {{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
55                                         {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
56                                         </h4>
57                                 </div>
58                                 {{if $contact.alt_text}}<div class="contact-entry-details" id="contact-entry-rel-{{$contact.id}}" >{{$contact.alt_text}}</div>{{/if}}
59                                 {{if $contact.itemurl}}<div class="contact-entry-details" id="contact-entry-url-{{$contact.id}}" >{{$contact.itemurl}}</div>{{/if}}
60                                 {{if $contact.tags}}<div class="contact-entry-details" id="contact-entry-tags-{{$contact.id}}" >{{$contact.tags}}</div>{{/if}}
61                                 {{if $contact.details}}<div class="contact-entry-details" id="contact-entry-details-{{$contact.id}}" >{{$contact.details}}</div>{{/if}}
62                                 {{if $contact.network}}<div class="contact-entry-details" id="contact-entry-network-{{$contact.id}}" >{{$contact.network}}</div>{{/if}}
63                         </div>
64
65                         {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
66                         {{* if !$no_contacts_checkbox *}}
67                         {{if $multiselect}}
68                         <div class="checkbox contact-entry-checkbox pull-right">
69                                 <input id="checkbox-{{$contact.id}}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{{$contact.id}}">
70                                 <label for="checkbox-{{$contact.id}}"></label>
71                         </div>
72                         {{/if}}
73                 </div>
74
75 </div>
76
77                 
78 {{* the following part is a nearly a copy of the part above but it is modyfied for working with js.
79 We use this part to filter the contacts with jquery.textcomplete *}}
80 <div class="javascript-template" rel="contact-template" style="display: none">
81         <div class="contact-wrapper media" id="contact-entry-wrapper-{$id}" >
82
83                         {{* This is a wrapper for the contact picture and the dropdown menu with contact relating actions *}}
84                         <div class="contact-photo-wrapper dropdown pull-left" >
85                                 <div class="contact-entry-photo mframe" id="contact-entry-photo-{$id}" >
86
87                                         <a class="dropdown-toggle" id="contact-photo-menu-{$id}" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
88                                                 <div class="contact-photo-image-wrapper hidden-xs">
89                                                         <img class="contact-photo media-object xl" src="{$thumb}" {11} alt="{$name}" />
90
91                                                         {{* Overlay background on hover the avatar picture *}}
92                                                         <div class="contact-photo-overlay">
93                                                                 <span class="contact-photo-overlay-content xl"><i class="fa fa-angle-down"></i></span>
94                                                         </div>
95                                                 </div>
96
97                                                 {{* use a smaller picture on very small displays (e.g. mobiles) *}}
98                                                 <div class="contact-photo-image-wrapper hidden-lg hidden-md hidden-sm">
99                                                         <img class="contact-photo-xs media-object" src="{$thumb}" {11} alt="{$name}" />
100
101                                                         {{* Overlay background on hover the avatar picture *}}
102                                                         <div class="contact-photo-overlay">
103                                                                 <span class="contact-photo-overlay-content overlay-xs"><i class="fa fa-angle-down"></i></span>
104                                                         </div>
105                                                 </div>
106                                         </a>
107
108
109                                         {if $photo_menu}
110                                         <ul class="contact-photo-menu menu-popup dropdown-menu " id="contact-photo-menu-{$id}" role="menu" aria-labelledby="contact-photo-menu-{$id}">
111                                                 {foreach $photo_menu as $c}
112                                                 {if $c.2}
113                                                 <li role="menuitem"><a target="redir" href="{$c.1}">{$c.0}</a></li>
114                                                 {elseif $c.3}
115                                                 <li role="menuitem"><a onclick="addToModal('{$c.1}')">{$c.0}</a></li>
116                                                 {else}
117                                                 <li role="menuitem"><a href="{$c.1}">{$c.0}</a></li>
118                                                 {/if}
119                                                 {/foreach}
120                                         </ul>
121
122                                         {/if}
123                                 </div>
124
125                         </div>
126
127                         <div class="media-body"> {{* @todo There is a bug with this class - the browser freezes if the screensize is to small - but only fith textcomplete*}}
128                                 {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
129                                 <div class="contact-entry-desc">
130                                         <div class="contact-entry-name" id="contact-entry-name-{$id}" >
131                                                 <h4 class="media-heading">{$name}
132                                                 {if $account_type} <small class="contact-entry-details" id="contact-entry-accounttype-{$id}">({$account_type})</small>{/if}
133                                                 {if $account_type == 'Forum'}<i class="fa fa-comments-o" aria-hidden="true"></i>{/if}
134                                                 {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}
135                                                 </h4>
136                                         </div>
137                                         {if $alt_text}<div class="contact-entry-details" id="contact-entry-rel-{$id}" >{$alt_text}</div>{/if}
138                                         {if $itemurl}<div class="contact-entry-details" id="contact-entry-url-{$id}" >{$itemurl}</div>{/if}
139                                         {if $tags}<div class="contact-entry-details" id="contact-entry-tags-{$id}" >{$tags}</div>{/if}
140                                         {if $details}<div class="contact-entry-details" id="contact-entry-details-{$id}" >{$details}</div>{/if}
141                                         {if $network}<div class="contact-entry-details" id="contact-entry-network-{$id}" >{$network}</div>{/if}
142                                 </div>
143
144                                 {{* The checkbox to perform batch actions to these contacts (for batch actions have a look at contacts-template.tpl) *}}
145                                 {{* if !$no_contacts_checkbox *}}
146                                 {{if $multiselect}}
147                                 <div class="checkbox contact-entry-checkbox pull-right">
148                                         <input id="checkbox-{$id}" type="checkbox" class="contact-select pull-right" name="contact_batch[]" value="{$id}">
149                                         <label for="checkbox-{$id}"></label>
150                                 </div>
151                                 {{/if}}
152                         </div>
153
154         </div>
155 </div>