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