]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/wall_thread.tpl
Normalize item action label key name
[friendica.git] / view / theme / frio / templates / wall_thread.tpl
index b4cd291b013e5b8cabdae41d3674ce2021ea20a8..29e0c64636341aa6fa7e66523cc56178f7b52097 100644 (file)
@@ -4,7 +4,7 @@ It would be better if it would be done in friendica core but since core lacks th
 it is done in the theme
 
 In short: the piece of code counts the total number of children of the toplevelpost
-- this are usaly all posts with thread_level = 2 - and stores it in variable $top_children_total.
+- this are usually all posts with thread_level = 2 - and stores it in variable $top_children_total.
 The first time a children which hits thread_level = 2 and $top_child = 1 opens the div.
 
 Everytime when a children with top_level = 2 comes up $top_child_nr rises with 1.
@@ -22,7 +22,7 @@ as the value of $top_child_total (this is done at the end of this file)
 {{if $item.thread_level==2 && $top_child_nr==1}}
 <div class="comment-container"> <!--top-child-begin-->
 {{/if}}
-{{* end of hacky part to count childrens *}}
+{{* end of hacky part to count children *}}
 
 
 {{if $mode == display}}
@@ -46,17 +46,6 @@ as the value of $top_child_total (this is done at the end of this file)
 {{/if}}
 {{/if}}
 
-{{* TODO => Unknown block *}}
-<div class="wall-item-decor" style="display:none;">
-       {{if $item.star}}
-       <span class="icon s22 star {{$item.isstarred}}" id="starred-{{$item.id}}" title="{{$item.star.starred}}">{{$item.star.starred}}</span>
-       {{/if}}
-       {{if $item.lock}}<span class="navicon lock fakelink" onclick="lockview(event, 'item', {{$item.id}});" title="{{$item.lock}}"></span><span class="fa fa-lock"></span>
-       {{elseif $item.connector}}<span class="fa fa-lock" title="{{$item.connector}}"></span>{{/if}}
-</div>
-{{* /TODO => Unknown block *}}
-
-
 {{* Use a different div container in dependence max thread-level = 7 *}}
 {{if $item.thread_level<7}}
 <div class="item-{{$item.id}} wall-item-container {{$item.indent}} {{$item.network}} thread_level_{{$item.thread_level}} {{if $item.thread_level==1}}panel-body h-entry{{else}}u-comment h-cite{{/if}}" id="item-{{$item.guid}}"><!-- wall-item-container -->
@@ -91,7 +80,7 @@ as the value of $top_child_total (this is done at the end of this file)
                                </a>
                        </div>
 
-                       {{* The litle overlay avatar picture if someone is posting directly to a wall or a forum *}}
+                       {{* The little overlay avatar picture if someone is posting directly to a wall or a group *}}
                        {{if $item.owner_url}}
                        <div aria-hidden="true" class="contact-photo-wrapper mframe wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}">
                                <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="contact-photo-link" id="wall-item-ownerphoto-link-{{$item.id}}">
@@ -187,6 +176,13 @@ as the value of $top_child_total (this is done at the end of this file)
                        <div class="contact-info-xs hidden-lg hidden-md"><!-- <= For smartphone (responsive) -->
                                <h5 class="media-heading">
                                        <a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card"><span>{{$item.name}}</span></a>
+                {{if $item.connector}}
+                                       <small><i class="fa fa-plug" title="{{$item.connector}}" aria-hidden="true"></i></small>
+                {{else}}
+                                       <span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.privacy}}" data-toggle="tooltip">
+                                               <small><i class="fa {{if $item.private == 1}}fa-lock{{elseif $item.private == 0}}fa-globe{{else}}fa-low-vision{{/if}}" aria-hidden="true"></i></small>
+                                       </span>
+                {{/if}}
                                        <p class="text-muted">
                                                <small>
                                                        <a href="{{$item.plink.orig}}">
@@ -236,7 +232,7 @@ as the value of $top_child_total (this is done at the end of this file)
 
                <div class="clearfix"></div>
 
-               {{* Insert Line to seperate item header and item content visually *}}
+               {{* Insert Line to separate item header and item content visually *}}
                {{if $item.thread_level==1}}<hr />{{/if}}
 
                {{* item content *}}
@@ -394,18 +390,24 @@ as the value of $top_child_total (this is done at the end of this file)
 
                                         {{if $item.drop && $item.drop.dropping}}
                                         <li role="menuitem">
-                                                <a class="btn-link navicon delete" href="javascript:dropItem('item/drop/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.drop.delete}}"><i class="fa fa-trash" aria-hidden="true"></i> {{$item.drop.delete}}</a>
+                                                <a class="btn-link navicon delete" href="javascript:dropItem('item/drop/{{$item.id}}', 'item-{{$item.guid}}');" title="{{$item.drop.label}}"><i class="fa fa-trash" aria-hidden="true"></i> {{$item.drop.label}}</a>
                                         </li>
                                         {{/if}}
 
                                         {{if $item.block}}
                                         <li role="menuitem">
-                                                <a class="btn-link navicon block" href="javascript:blockAuthor('item/block/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.block.block}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.block.block}}</a>
+                                                <a class="btn-link navicon block" href="javascript:blockAuthor('item/block/{{$item.id}}', 'item-{{$item.guid}}');" title="{{$item.block.label}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.block.label}}</a>
                                         </li>
                                         {{/if}}
                                         {{if $item.ignore_author}}
                                         <li role="menuitem">
-                                                <a class="btn-link navicon ignore" href="javascript:ignoreAuthor('item/ignore/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.ignore_author.ignore}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.ignore_author.ignore}}</a>
+                                                <a class="btn-link navicon ignore" href="javascript:ignoreAuthor('item/ignore/{{$item.id}}', 'item-{{$item.guid}}');" title="{{$item.ignore_author.label}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.ignore_author.label}}</a>
+                                        </li>
+                                        {{/if}}
+                                        {{if $item.collapse}}
+                                        <li role="menuitem">
+                                                <a class="btn-link navicon collapse" href="javascript:collapseAuthor('item/collapse/{{$item.id}}', 'item-{{$item.guid}}');" title="{{$item.collapse.label}}"><i class="fa fa-ban" aria-hidden="true"></i> {{$item.collapse.label}}</a>
+                                        </li>
                                         </li>
                                         {{/if}}
                                     </ul>
@@ -558,7 +560,7 @@ as the value of $top_child_total (this is done at the end of this file)
 
                                                        {{if $item.drop && $item.drop.dropping}}
                                                                <li role="menuitem">
-                                                               <a class="btn-link navicon delete" href="javascript:dropItem('item/drop/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.drop.delete}}"><i class="fa fa-trash" aria-hidden="true"></i> {{$item.drop.delete}}</a>
+                                                               <a class="btn-link navicon delete" href="javascript:dropItem('item/drop/{{$item.id}}', 'item-{{$item.guid}}');" title="{{$item.drop.label}}"><i class="fa fa-trash" aria-hidden="true"></i> {{$item.drop.label}}</a>
                                                        </li>
                                                        {{/if}}
                                                </ul>