]> git.mxchange.org Git - friendica.git/blob - view/theme/diabook/templates/wall_thread.tpl
Merge pull request #2826 from annando/1610-utf8mb4
[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}} {{if $item.toplevel}} h-entry {{else}} u-comment h-cite {{/if}}">
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                 <span class="p-author h-card">
32                                 <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="wall-item-name-link u-url"><span class="wall-item-name{{$item.sparkle}} p-name">{{$item.name}}</span></a> 
33                 </span>
34                         <span class="wall-item-ago">-
35                         {{if $item.plink}}<a class="link{{$item.sparkle}} u-url" title="{{$item.plink.title}}" href="{{$item.plink.href}}" style="color: #999"><time class="dt-published" datetime="{{$item.localtime}}">{{$item.ago}}</time></a>{{else}} <time class="dt-published" datetime="{{$item.localtime}}">{{$item.ago}}</time> {{/if}}
36                         {{if $item.lock}} - <span class="fakelink" style="color: #999" onclick="lockview(event,{{$item.id}});">{{$item.lock}}</span> {{/if}}
37                         </span>
38                         </div>
39                 <div class="wall-item-content">
40                         {{if $item.title}}<h2><a href="{{$item.plink.href}}" class="p-name">{{$item.title}}</a></h2>{{/if}}
41                         <span class="e-content {{if !$item.title}}p-name{{/if}}">{{$item.body}}</span>
42                         {{if $item.has_cats}}
43                         <div class="categorytags"><span>{{$item.txt_cats}} {{foreach $item.categories as $cat}}<span class="p-category">{{$cat.name}}</span> <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
44                         </div>
45                         {{/if}}
46
47                         {{if $item.has_folders}}
48                         <div class="filesavetags"><span>{{$item.txt_folders}} {{foreach $item.folders as $cat}}<span class="p-category">{{$cat.name}}</span> <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
49                         </div>
50                         {{/if}}
51                 </div>
52         </div>
53         <div class="wall-item-bottom">
54                 <div class="wall-item-links">
55                 </div>
56                 <div class="wall-item-tags">
57                         {{foreach $item.tags as $tag}}
58                                 <span class='tag'>{{$tag}}</span>
59                         {{/foreach}}
60                 </div>
61         </div>
62         <div class="wall-item-bottom">
63                 <div class="">
64
65                 </div>
66                 <div class="wall-item-actions">
67
68                         <div class="wall-item-actions-social">
69                         
70                         
71                         {{if $item.vote}}
72                                 <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>
73                                 {{if $item.vote.dislike}}
74                                 <a href="#" id="dislike-{{$item.id}}" class="icon dislike" title="{{$item.vote.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false"></a>
75                                 {{/if}}
76                                                 
77                                 {{if $item.vote.share}}
78                                 <a href="#" id="share-{{$item.id}}" class="icon recycle" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false"></a>
79                                 {{/if}} 
80                         {{/if}}
81
82
83                         {{if $item.star}}
84                                 <a href="#" id="starred-{{$item.id}}" onclick="dostar({{$item.id}}); return false;" class="star-item icon {{$item.isstarred}}" title="{{$item.star.toggle}}">
85                                 <img src="images/star_dummy.png" class="icon star" alt="{{$item.star.do}}" /> </a>
86                         {{/if}}
87
88                         {{if $item.tagger}}
89                                 <a href="#" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="tag-item icon tagged" title="{{$item.tagger.add}}"></a>                                        
90                         {{/if}} 
91                         
92                         {{if $item.filer}}
93                         <a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item icon file-as" title="{{$item.star.filer}}"></a>
94                         {{/if}}                         
95                         
96                         {{if $item.plink}}<a class="icon link" title="{{$item.plink.title}}" href="{{$item.plink.href}}">{{$item.plink.title}}</a>{{/if}}
97                         
98                                         
99                                         
100                         </div>
101                         
102                         <div class="wall-item-actions-tools">
103
104                                 {{if $item.drop.pagedrop}}
105                                         <input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
106                                 {{/if}}
107                                 {{if $item.drop.dropping}}
108                                         <a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon drop" title="{{$item.drop.delete}}">{{$item.drop.delete}}</a>
109                                 {{/if}}
110                                 {{if $item.edpost}}
111                                         <a class="icon pencil" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"></a>
112                                 {{/if}}
113                         </div>
114                         <div class="wall-item-location">{{$item.location}}&nbsp;</div>
115                 </div>
116         </div>
117         <div class="wall-item-bottom">
118                 <div class="wall-item-links"></div>
119                 <div class="wall-item-like" id="wall-item-like-{{$item.id}}">{{$item.like}}</div>
120                 <div class="wall-item-dislike" id="wall-item-dislike-{{$item.id}}">{{$item.dislike}}</div>      
121         </div>
122 </div>
123
124 {{if $item.threaded}}
125 {{if $item.comment}}
126 <div class="wall-item-comment-wrapper {{$item.indent}}" >
127         {{$item.comment}}
128 </div>
129 {{/if}}
130 {{/if}}
131
132 {{if $item.flatten}}
133 <div class="wall-item-comment-wrapper" >
134         {{$item.comment}}
135 </div>
136 {{/if}}
137
138
139 {{foreach $item.children as $child_item}}
140         {{include file="{{$child_item.template}}" item=$child_item}}
141 {{/foreach}}
142
143 </div>
144 {{if $item.comment_lastcollapsed}}</div>{{/if}}