]> git.mxchange.org Git - friendica.git/blob - view/theme/diabook/templates/wall_thread.tpl
Merge pull request #2193 from fabrixxm/changelog
[friendica.git] / view / theme / diabook / templates / wall_thread.tpl
1
2 {{if $item.comment_firstcollapsed}}
3         <div class="hide-comments-outer">
4         <span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">{{$item.num_comments}}</span> <span id="hide-comments-{{$item.id}}" class="hide-comments fakelink" onclick="showHideComments({{$item.id}});">{{$item.hide_text}}</span>
5         </div>
6         <div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
7 {{/if}}
8 <div id="tread-wrapper-{{$item.id}}" class="tread-wrapper {{$item.toplevel}}">
9 {{if $item.indent}}{{else}}
10 <div class="wall-item-decor">
11         <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
12 </div>
13 {{/if}}
14 <div class="wall-item-container {{$item.indent}}">
15         <div class="wall-item-item">
16                 <div class="wall-item-info">
17                         <div class="contact-photo-wrapper"
18                                 onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')" 
19                                 onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
20                                 <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="contact-photo-link" id="wall-item-photo-link-{{$item.id}}">
21                                         <img src="{{$item.thumb}}" class="contact-photo{{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
22                                 </a>
23                                 <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>
24                                 <ul class="contact-menu menu-popup" id="wall-item-photo-menu-{{$item.id}}">
25                                 {{$item.item_photo_menu}}
26                                 </ul>
27                                 
28                         </div>
29                 </div>
30                         <div class="wall-item-actions-author">
31                                 <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}">{{$item.name}}</span></a> 
32                         <span class="wall-item-ago">-
33                         {{if $item.plink}}<a class="link{{$item.sparkle}}" title="{{$item.plink.title}}" href="{{$item.plink.href}}" style="color: #999">{{$item.ago}}</a>{{else}} {{$item.ago}} {{/if}}
34                         {{if $item.lock}} - <span class="fakelink" style="color: #999" onclick="lockview(event,{{$item.id}});">{{$item.lock}}</span> {{/if}}
35                         </span>
36                         </div>
37                 <div class="wall-item-content">
38                         {{if $item.title}}<h2><a href="{{$item.plink.href}}">{{$item.title}}</a></h2>{{/if}}
39                         {{$item.body}}
40                         {{if $item.has_cats}}
41                         <div class="categorytags"><span>{{$item.txt_cats}} {{foreach $item.categories as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
42                         </div>
43                         {{/if}}
44
45                         {{if $item.has_folders}}
46                         <div class="filesavetags"><span>{{$item.txt_folders}} {{foreach $item.folders as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
47                         </div>
48                         {{/if}}
49                 </div>
50         </div>
51         <div class="wall-item-bottom">
52                 <div class="wall-item-links">
53                 </div>
54                 <div class="wall-item-tags">
55                         {{foreach $item.tags as $tag}}
56                                 <span class='tag'>{{$tag}}</span>
57                         {{/foreach}}
58                 </div>
59         </div>
60         <div class="wall-item-bottom">
61                 <div class="">
62
63                 </div>
64                 <div class="wall-item-actions">
65
66                         <div class="wall-item-actions-social">
67                         
68                         
69                         {{if $item.vote}}
70                                 <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>
71                                 {{if $item.vote.dislike}}
72                                 <a href="#" id="dislike-{{$item.id}}" class="icon dislike" title="{{$item.vote.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false"></a>
73                                 {{/if}}
74                                                 
75                                 {{if $item.vote.share}}
76                                 <a href="#" id="share-{{$item.id}}" class="icon recycle" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false"></a>
77                                 {{/if}} 
78                         {{/if}}
79
80
81                         {{if $item.star}}
82                                 <a href="#" id="starred-{{$item.id}}" onclick="dostar({{$item.id}}); return false;" class="star-item icon {{$item.isstarred}}" title="{{$item.star.toggle}}">
83                                 <img src="images/star_dummy.png" class="icon star" alt="{{$item.star.do}}" /> </a>
84                         {{/if}}
85
86                         {{if $item.tagger}}
87                                 <a href="#" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="tag-item icon tagged" title="{{$item.tagger.add}}"></a>                                        
88                         {{/if}} 
89                         
90                         {{if $item.filer}}
91                         <a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item icon file-as" title="{{$item.star.filer}}"></a>
92                         {{/if}}                         
93                         
94                         {{if $item.plink}}<a class="icon link" title="{{$item.plink.title}}" href="{{$item.plink.href}}">{{$item.plink.title}}</a>{{/if}}
95                         
96                                         
97                                         
98                         </div>
99                         
100                         <div class="wall-item-actions-tools">
101
102                                 {{if $item.drop.pagedrop}}
103                                         <input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
104                                 {{/if}}
105                                 {{if $item.drop.dropping}}
106                                         <a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon drop" title="{{$item.drop.delete}}">{{$item.drop.delete}}</a>
107                                 {{/if}}
108                                 {{if $item.edpost}}
109                                         <a class="icon pencil" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"></a>
110                                 {{/if}}
111                         </div>
112                         <div class="wall-item-location">{{$item.location}}&nbsp;</div>
113                 </div>
114         </div>
115         <div class="wall-item-bottom">
116                 <div class="wall-item-links"></div>
117                 <div class="wall-item-like" id="wall-item-like-{{$item.id}}">{{$item.like}}</div>
118                 <div class="wall-item-dislike" id="wall-item-dislike-{{$item.id}}">{{$item.dislike}}</div>      
119         </div>
120 </div>
121
122 {{if $item.threaded}}
123 {{if $item.comment}}
124 <div class="wall-item-comment-wrapper {{$item.indent}}" >
125         {{$item.comment}}
126 </div>
127 {{/if}}
128 {{/if}}
129
130 {{if $item.flatten}}
131 <div class="wall-item-comment-wrapper" >
132         {{$item.comment}}
133 </div>
134 {{/if}}
135
136
137 {{foreach $item.children as $child_item}}
138         {{include file="{{$child_item.template}}" item=$child_item}}
139 {{/foreach}}
140
141 </div>
142 {{if $item.comment_lastcollapsed}}</div>{{/if}}