X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftemplates%2Fwall_thread.tpl;h=bd069f5cd7e87f3cb6ed28784911f89f7d195a80;hb=b06fc578804fdc0073631e7c97eccd25543e769e;hp=0ecceab0f16a98c7d07ff0a4b2a620c4d81bdce2;hpb=c407fb7963cd40813531e29bdc8a6b43c16725d8;p=friendica.git diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 0ecceab0f1..bd069f5cd7 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -12,15 +12,15 @@ The div get's closed if thread_level = 2 and the value of $top_child_nr is the s as the value of $top_child_total (this is done at the end of this file) *}} {{if $item.thread_level==1}} - {{assign var="top_child_total" count($item.children)}} - {{assign var="top_child_nr" 0}} + {{assign var="top_child_total" value=count($item.children)}} + {{assign var="top_child_nr" value=0}} {{/if}} {{if $item.thread_level==2}} {{assign var="top_child_nr" value=$top_child_nr+1 scope=parent}} {{/if}} {{if $item.thread_level==2 && $top_child_nr==1}} -
+
{{/if}} {{* end of hacky part to count childrens *}} @@ -41,12 +41,15 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.thread_level<3}}
-
@@ -233,7 +250,13 @@ as the value of $top_child_total (this is done at the end of this file)
{{$item.name}} - {{$item.ago}} {{if $item.location}} — ({{$item.location}}){{/if}} + + {{$item.ago}} + {{if $item.location}} — ({{$item.location nofilter}}){{/if}} + {{if $item.owner_self}} + {{include file="sub/delivery_count.tpl" delivery=$item.delivery}} + {{/if}} +
@@ -264,20 +287,23 @@ as the value of $top_child_total (this is done at the end of this file)
{{if !$item.suppress_tags}} {{foreach $item.hashtags as $tag}} - {{$tag}} + {{$tag nofilter}} {{/foreach}} {{foreach $item.mentions as $tag}} - {{$tag}} + {{$tag nofilter}} {{/foreach}} - {{/if}} + {{*foreach $item.implicit_mentions as $tag}} + {{$tag nofilter}} + {{/foreach*}} + {{/if}} {{foreach $item.folders as $cat}} - {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} + {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} {{/foreach}} {{foreach $item.categories as $cat}} - {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} + {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} {{/foreach}}
{{if $item.edited}}
{{$item.edited['label']}} ({{$item.edited['relative']}})
{{/if}} @@ -285,9 +311,9 @@ as the value of $top_child_total (this is done at the end of this file) -
+

{{* Action buttons to interact with the item (like: like, dislike, share and so on *}} -

+ + {{/if}} + + +

@@ -361,20 +386,17 @@ as the value of $top_child_total (this is done at the end of this file)
{{/if}} + {{* Insert comment box of threaded children *}} + {{if $item.threaded && $item.comment && $item.indent==comment}} + + {{/if}} + {{if $item.thread_level!=1}}
-
{{/if}} - - {{* Insert comment box of threaded children *}} - {{if $item.threaded}}{{if $item.comment}}{{if $item.indent==comment}} - - {{/if}}{{/if}}{{/if}} - - {{foreach $item.children as $child}} {{* {{if $child.type == tag}} @@ -389,33 +411,22 @@ as the value of $top_child_total (this is done at the end of this file) {{* 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.total_comments_num}} - {{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}} -
{{$item.comment nofilter}}
- {{/if}}{{/if}}{{/if}} - - {{if $item.flatten}} -
{{$item.comment nofilter}}
- {{/if}} - {{else}} - {{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}} - - {{/if}}{{/if}}{{/if}} - - {{if $item.flatten}} - + {{if $item.comment && $item.thread_level==1}} + {{if $item.total_comments_num}} +
+ +
{{/if}} + {{/if}}
- {{if $mode == display}} {{else}} {{if $item.comment_lastcollapsed}}{{/if}} {{/if}} - {{* close the comment-container div if no more thread_level = 2 children are left *}} {{if $item.thread_level==2 && $top_child_nr==$top_child_total}}