]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/wall_thread.tpl
Merge pull request #7540 from vinzv/patch-1
[friendica.git] / view / theme / frio / templates / wall_thread.tpl
index 591e102c770f6423314300217c4da7e13d3a49e9..21923737c03d2523a79010ec32b667296a33a399 100644 (file)
@@ -42,11 +42,11 @@ as the value of $top_child_total (this is done at the end of this file)
                <div class="hide-comments-outer-wrapper">
                        <div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
                                <span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">
-                                       <i class="fa fa-plus-square" aria-hidden="true"></i>
+                                       <i class="fa fa-caret-right" aria-hidden="true"></i>
                                        {{$item.num_comments}} - {{$item.show_text}}
                                </span>
                                <span id="hide-comments-{{$item.id}}" class="hide-comments" style="display: none">
-                                       <i class="fa fa-minus-square" aria-hidden="true"></i>
+                                       <i class="fa fa-caret-down" aria-hidden="true"></i>
                                        {{$item.num_comments}} - {{$item.hide_text}}
                                </span>
                        </div>
@@ -70,9 +70,9 @@ as the value of $top_child_total (this is done at the end of this file)
 
 {{* 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.shiny}} {{$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 -->
+<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 -->
 {{else}}
-<div class="item-{{$item.id}} wall-item-container {{$item.indent}} {{$item.shiny}} {{$item.network}} thread_level_7 u-comment h-cite" id="item-{{$item.guid}}">
+<div class="item-{{$item.id}} wall-item-container {{$item.indent}} {{$item.network}} thread_level_7 u-comment h-cite" id="item-{{$item.guid}}">
 {{/if}}
 {{if $item.thread_level==1}}
 <span class="commented" style="display: none;">{{$item.commented}}</span>
@@ -80,7 +80,7 @@ as the value of $top_child_total (this is done at the end of this file)
 <span class="created" style="display: none;">{{$item.created_date}}</span>
 <span class="id" style="display: none;">{{$item.id}}</span>
 {{/if}}
-       <div class="media">
+       <div class="media {{$item.shiny}}">
                {{* Put addional actions in a top-right dropdown menu *}}
 
                <ul class="nav nav-pills preferences">
@@ -269,11 +269,6 @@ as the value of $top_child_total (this is done at the end of this file)
 
                {{* item content *}}
                <div class="wall-item-content {{$item.type}}" id="wall-item-content-{{$item.id}}">
-                       {{* insert some space if it's an top-level post *}}
-                       {{if $item.thread_level==1}}
-                       <div class="wall-spacer">&nbsp;</div> <!-- use padding/margin instead-->
-                       {{/if}}
-
                        {{if $item.title}}
                        <span class="wall-item-title" id="wall-item-title-{{$item.id}}"><h4 class="media-heading"><a href="{{$item.plink.href}}" class="{{$item.sparkle}} p-name">{{$item.title}}</a></h4><br /></span>
                        {{/if}}
@@ -293,8 +288,11 @@ as the value of $top_child_total (this is done at the end of this file)
                        {{foreach $item.mentions as $tag}}
                                <span class="mention label btn-warning sm">{{$tag nofilter}} <i class="fa fa-user" aria-hidden="true"></i></span>
                        {{/foreach}}
-               {{/if}}
 
+                       {{*foreach $item.implicit_mentions as $tag}}
+                               <span class="mention label label-default sm">{{$tag nofilter}} <i class="fa fa-eye-slash" aria-hidden="true"></i></span>
+                       {{/foreach*}}
+               {{/if}}
                        {{foreach $item.folders as $cat}}
                                <span class="folder label btn-danger sm p-category">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
                        {{/foreach}}
@@ -393,30 +391,22 @@ as the value of $top_child_total (this is done at the end of this file)
                {{if $item.thread_level!=1}}
                </div><!--./media-body from for comments-->
                {{/if}}
-
-               {{foreach $item.children as $child}}
-                       {{*
-                       {{if $child.type == tag}}
-                               {{include file="wall_item_tag.tpl" item=$child}}
-                       {{else}}
-                               {{include file="{{$item.template}}" item=$child}}
-                       {{/if}}
-                       *}}
-                       {{include file="{{$item.template}}" item=$child}}
-               {{/foreach}}
-
-               {{* Insert the comment box of the top level post at the bottom of the thread.
-                       Display this comment box if there are any comments. If not hide it. In this
-                       case it could be opend with the "comment" button *}}
-               {{if $item.comment && $item.thread_level==1}}
-                       {{if $item.total_comments_num}}
-                       <div class="comment-fake-form" id="comment-fake-form-{{$item.id}}">
-                               <textarea id="comment-fake-text-{{$item.id}}" class="comment-fake-text-empty form-control" placeholder="{{$item.reply_label}}" onFocus="commentOpenUI(this, {{$item.id}});"  rows="1"></textarea>
-                       </div>
-                       {{/if}}
-                       <div class="wall-item-comment-wrapper well well-small" id="item-comments-{{$item.id}}" data-display="block" style="display: none">{{$item.comment nofilter}}</div>
+       </div>
+       {{foreach $item.children as $child}}
+               {{include file="{{$item.template}}" item=$child}}
+       {{/foreach}}
+
+       {{* Insert the comment box of the top level post at the bottom of the thread.
+               Display this comment box if there are any comments. If not hide it. In this
+               case it could be opend with the "comment" button *}}
+       {{if $item.comment && $item.thread_level==1}}
+               {{if $item.total_comments_num}}
+               <div class="comment-fake-form" id="comment-fake-form-{{$item.id}}">
+                       <textarea id="comment-fake-text-{{$item.id}}" class="comment-fake-text-empty form-control" placeholder="{{$item.reply_label}}" onFocus="commentOpenUI(this, {{$item.id}});"  rows="1"></textarea>
+               </div>
                {{/if}}
-       </div><!-- /media -->
+               <div class="wall-item-comment-wrapper well well-small" id="item-comments-{{$item.id}}" data-display="block" style="display: none">{{$item.comment nofilter}}</div>
+       {{/if}}
 </div><!-- ./panel-body or ./wall-item-container -->
 
 {{if $mode == display}}