]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/smarty3/wall_thread.tpl
b60a4fea83f672e905d1b647c0e020161b8023f7
[friendica.git] / view / theme / quattro / smarty3 / wall_thread.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}{{if $mode == display}}
6 {{else}}
7 {{if $item.comment_firstcollapsed}}
8         <div class="hide-comments-outer">
9                 <span id="hide-comments-total-{{$item.id}}" 
10                         class="hide-comments-total">{{$item.num_comments}}</span>
11                         <span id="hide-comments-{{$item.id}}" 
12                                 class="hide-comments fakelink" 
13                                 onclick="showHideComments({{$item.id}});">{{$item.hide_text}}</span>
14                         {{if $item.thread_level==3}} - 
15                         <span id="hide-thread-{{$item}}-id"
16                                 class="fakelink"
17                                 onclick="showThread({{$item.id}});">expand</span> /
18                         <span id="hide-thread-{{$item}}-id"
19                                 class="fakelink"
20                                 onclick="hideThread({{$item.id}});">collapse</span> thread{{/if}}
21         </div>
22         <div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
23 {{/if}}
24 {{/if}}
25
26 {{if $item.thread_level!=1}}<div class="children">{{/if}}
27
28 <div class="wall-item-decor">
29         <span class="icon s22 star {{$item.isstarred}}" id="starred-{{$item.id}}" title="{{$item.star.starred}}">{{$item.star.starred}}</span>
30         {{if $item.lock}}<span class="icon s22 lock fakelink" onclick="lockview(event,{{$item.id}});" title="{{$item.lock}}">{{$item.lock}}</span>{{/if}}       
31         <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
32 </div>
33
34 <div class="wall-item-container {{$item.indent}} {{$item.shiny}}" id="item-{{$item.id}}">
35         <div class="wall-item-item">
36                 <div class="wall-item-info">
37                         <div class="contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}}"
38                                 onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" 
39                                 onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
40                                 <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="contact-photo-link" id="wall-item-photo-link-{{$item.id}}">
41                                         <img src="{{$item.thumb}}" class="contact-photo {{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
42                                 </a>
43                                 <a href="#" rel="#wall-item-photo-menu-{{$item.id}}" class="contact-photo-menu-button icon s16 menu" id="wall-item-photo-menu-button-{{$item.id}}">menu</a>
44                                 <ul class="contact-menu menu-popup" id="wall-item-photo-menu-{{$item.id}}">
45                                 {{$item.item_photo_menu}}
46                                 </ul>
47                                 
48                         </div>  
49                         {{if $item.owner_url}}
50                         <div class="contact-photo-wrapper mframe wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}" >
51                                 <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="contact-photo-link" id="wall-item-ownerphoto-link-{{$item.id}}">
52                                         <img src="{{$item.owner_photo}}" class="contact-photo {{$item.osparkle}}" id="wall-item-ownerphoto-{{$item.id}}" alt="{{$item.owner_name}}" />
53                                 </a>
54                         </div>
55                         {{/if}}                 
56                         <div class="wall-item-location">{{$item.location}}</div>        
57                 </div>
58                 <div class="wall-item-content">
59                         {{if $item.title}}<h2><a href="{{$item.plink.href}}" class="{{$item.sparkle}}">{{$item.title}}</a></h2>{{/if}}
60                         {{$item.body}}
61                 </div>
62         </div>
63         <div class="wall-item-bottom">
64                 <div class="wall-item-links">
65                 </div>
66                 <div class="wall-item-tags">
67                         {{foreach $item.hashtags as $tag}}
68                                 <span class='tag'>{{$tag}}</span>
69                         {{/foreach}}
70                         {{foreach $item.mentions as $tag}}
71                                 <span class='mention'>{{$tag}}</span>
72                         {{/foreach}}
73                {{foreach $item.folders as $cat}}
74                     <span class='folder'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
75                {{/foreach}}
76                 {{foreach $item.categories as $cat}}
77                     <span class='category'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
78                 {{/foreach}}
79                 </div>
80         </div>  
81         <div class="wall-item-bottom">
82                 <div class="wall-item-links">
83                         {{if $item.plink}}<a class="icon s16 link{{$item.sparkle}}" title="{{$item.plink.title}}" href="{{$item.plink.href}}">{{$item.plink.title}}</a>{{/if}}
84                 </div>
85                 <div class="wall-item-actions">
86                         <div class="wall-item-actions-author">
87                                 <a href="{{$item.profile_url}}" target="redir"
88                                 title="{{$item.linktitle}}"
89                                 class="wall-item-name-link"><span
90                                 class="wall-item-name{{$item.sparkle}}">{{$item.name}}</span></a>
91                                 <span class="wall-item-ago" title="{{$item.localtime}}">{{$item.ago}}</span>
92                                  {{if $item.owner_url}}<br/>{{$item.to}} <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a> {{$item.vwall}}
93                                  {{/if}}
94                         </div>
95                         
96                         <div class="wall-item-actions-social">
97                         {{if $item.star}}
98                                 <a href="#" id="star-{{$item.id}}" onclick="dostar({{$item.id}}); return false;"  class="{{$item.star.classdo}}"  title="{{$item.star.do}}">{{$item.star.do}}</a>
99                                 <a href="#" id="unstar-{{$item.id}}" onclick="dostar({{$item.id}}); return false;"  class="{{$item.star.classundo}}"  title="{{$item.star.undo}}">{{$item.star.undo}}</a>
100                         {{/if}}
101                         {{if $item.tagger}}
102                                 <a href="#" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="{{$item.tagger.class}}" title="{{$item.tagger.add}}">{{$item.tagger.add}}</a>
103                         {{/if}}
104                         {{if $item.filer}}
105                                 <a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon" title="{{$item.filer}}">{{$item.filer}}</a>
106                         {{/if}}                 
107                         
108                         {{if $item.vote}}
109                                 <a href="#" id="like-{{$item.id}}" title="{{$item.vote.like.0}}" onclick="dolike({{$item.id}},'like'); return false">{{$item.vote.like.1}}</a>
110                                 {{if $item.vote.dislike}}
111                                 <a href="#" id="dislike-{{$item.id}}" title="{{$item.vote.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false">{{$item.vote.dislike.1}}</a>
112                                 {{/if}}
113                         {{/if}}
114                                                 
115                         {{if $item.vote.share}}
116                                 <a href="#" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false">{{$item.vote.share.1}}</a>
117                         {{/if}}                 
118                         </div>
119                         
120                         <div class="wall-item-actions-tools">
121
122                                 {{if $item.drop.pagedrop}}
123                                         <input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
124                                 {{/if}}
125                                 {{if $item.drop.dropping}}
126                                         <a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon delete s16" title="{{$item.drop.delete}}">{{$item.drop.delete}}</a>
127                                 {{/if}}
128                                 {{if $item.edpost}}
129                                         <a class="icon edit s16" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"></a>
130                                 {{/if}}
131                         </div>
132                         
133                 </div>
134         </div>
135         <div class="wall-item-bottom">
136                 <div class="wall-item-links"></div>
137                 <div class="wall-item-like" id="wall-item-like-{{$item.id}}">{{$item.like}}</div>
138                 <div class="wall-item-dislike" id="wall-item-dislike-{{$item.id}}">{{$item.dislike}}</div>      
139         </div>
140         
141         {{if $item.threaded}}{{if $item.comment}}{{if $item.indent==comment}}
142         <div class="wall-item-bottom commentbox">
143                 <div class="wall-item-links"></div>
144                 <div class="wall-item-comment-wrapper">
145                                         {{$item.comment}}
146                 </div>
147         </div>
148         {{/if}}{{/if}}{{/if}}
149 </div>
150
151
152 {{foreach $item.children as $child}}
153         {{if $child.type == tag}}
154                 {{include file="wall_item_tag.tpl" item=$child}}
155         {{else}}
156                 {{include file="{{$item.template}}" item=$child}}
157         {{/if}}
158 {{/foreach}}
159
160 {{if $item.thread_level!=1}}</div>{{/if}}
161
162
163 {{if $mode == display}}
164 {{else}}
165 {{if $item.comment_lastcollapsed}}</div>{{/if}}
166 {{/if}}
167
168 {{* top thread comment box *}}
169 {{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
170 <div class="wall-item-comment-wrapper" >{{$item.comment}}</div>
171 {{/if}}{{/if}}{{/if}}
172
173
174 {{if $item.flatten}}
175 <div class="wall-item-comment-wrapper" >{{$item.comment}}</div>
176 {{/if}}