]> git.mxchange.org Git - friendica.git/blob - view/templates/groupeditor.tpl
Merge pull request #9367 from annando/issue-9366
[friendica.git] / view / templates / groupeditor.tpl
1
2 {{* Template for the contact group list *}}
3
4 {{if $editable == 1}}
5 {{* The contacts who are already members of the contact group *}}
6 <div id="group">
7         <h3>{{$groupeditor.label_members}}</h3>
8         <div id="group-members" class="contact_list">
9
10                 {{if $groupeditor.members }}
11
12                 {{foreach $groupeditor.members as $c}}
13                         {{* If there are too many contacts we use another view mode *}}
14                         {{if $shortmode}}
15                         <div class="contact-block-textdiv mpgroup">
16                                 <a class="contact-block-link mpgroup  fakelink" target="redir" onclick="groupChangeMember({{$c.change_member.gid}},{{$c.change_member.cid}},'{{$c.change_member.sec_token}}'); return true;" title="{{$c.name}} [{{$c.itemurl}}]" alt="{{$c.name}}">
17                                         {{$c.name}}"
18                                 </a>
19                         </div>
20                         {{else}}
21                         {{* The normal view mode *}}
22                         <div class="contact-block-div mpgroup">
23                                 <a class="contact-block-link mpgroup  fakelink" target="redir" onclick="groupChangeMember({{$c.change_member.gid}},{{$c.change_member.cid}},'{{$c.change_member.sec_token}}'); return true;">
24                                         <img class="contact-block-img mpgroup " src="{{$c.thumb}}" title="{{$c.name}} [{{$c.itemurl}}]" alt="{{$c.name}}">
25                                 </a>
26                         </div>
27                         {{/if}}
28                 {{/foreach}}
29
30                 {{else}}
31                 {{$groupeditor.group_is_empty}}
32                 {{/if}}
33         </div>
34
35         <div id="group-members-end"></div>
36                 <hr id="group-separator" />
37 </div>
38 {{/if}}
39
40 {{* The contacts who are not members of the contact group *}}
41 <div id="contacts">
42         <h3>{{$groupeditor.label_contacts}}</h3>
43         <div id="group-all-contacts" class="contact_list">
44                 {{foreach $groupeditor.contacts as $m}}
45                         <div class="contact-block-textdiv mpall">
46                                 {{if $editable == 1}}
47                                 <a class="contact-block-link mpall  fakelink" target="redir" onclick="groupChangeMember({{$m.change_member.gid}},{{$m.change_member.cid}},'{{$m.change_member.sec_token}}'); return true;" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
48                                 {{else}}
49                                 <a class="contact-block-link mpall" href="{{$m.url}}" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
50                                 {{/if}}
51                                         {{* If there are too many contacts we use another view mode *}}
52                                         {{if $shortmode}}
53                                                 {{$m.name}}
54                                         {{else}}
55                                                 <img class="contact-block-img mpall " src="{{$m.thumb}}" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
56                                         {{/if}}
57                                 </a>
58                         </div>
59                 {{/foreach}}
60         </div>
61         <div id="group-all-contacts-end"></div>
62 </div>