X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftemplates%2Fwall_thread.tpl;h=2e05cf7523c87469a29f4a75cfcc21f1391fa46c;hb=c5260c0f2f4f5246a2b5a01fc7d8e752f4e2effb;hp=50ae8c575f4303d1eff50b482a07eb7bcdc8758f;hpb=2a33882fe03a52eb27a0c7154bac57e9fcd081b3;p=friendica.git diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 50ae8c575f..2e05cf7523 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -3,7 +3,7 @@ It would be better if it would be done in friendica core but since core lacks this functionality it is done in the theme -In short: the piece of code counts the total number of children of the toplevelpost +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. The first time a children which hits thread_level = 2 and $top_child = 1 opens the div. @@ -41,9 +41,9 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.thread_level<3}}
@@ -59,7 +59,6 @@ as the value of $top_child_total (this is done at the end of this file) @@ -67,49 +66,49 @@ 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}} -
{{if $item.plink}} {{*link to the original source of the item *}}-
- {{$item.plink.title}}
+ {{$item.plink.title}}
{{/if}}
{{if $item.edpost}} {{* edit the posting *}}
-
- {{$item.edpost.1}}
+ {{$item.edpost.1}}
{{/if}}
{{if $item.tagger}} {{* tag the post *}}
-
- {{$item.tagger.add}}
+ {{$item.tagger.add}}
{{/if}}
{{if $item.filer}}
-
- {{$item.filer}}
+ {{$item.filer}}
{{/if}}
{{if $item.star}}
-
- {{$item.star.do}}
- {{$item.star.undo}}
+ {{$item.star.do}}
+ {{$item.star.undo}}
{{/if}}
@@ -119,10 +118,10 @@ as the value of $top_child_total (this is done at the end of this file)
{{if $item.ignore}}
-
- {{$item.ignore.do}}
+ {{$item.ignore.do}}
-
- {{$item.ignore.undo}}
+ {{$item.ignore.undo}}
{{/if}}
@@ -140,10 +139,10 @@ as the value of $top_child_total (this is done at the end of this file)
{{* The avatar picture and the photo-menu *}}
{{if $item.thread_level==1}}
-
-
+
+
-
+
@@ -168,10 +167,10 @@ as the value of $top_child_total (this is done at the end of this file)
{{* The avatar picture for comments *}}
{{if $item.thread_level!=1}}
-
-
+
+
-
+
@@ -190,7 +189,8 @@ as the value of $top_child_total (this is done at the end of this file)
- {{$item.ago}}
+
+
{{if $item.location}}
@@ -207,7 +207,7 @@ as the value of $top_child_total (this is done at the end of this file)
@@ -239,10 +239,10 @@ as the value of $top_child_total (this is done at the end of this file)
{{/if}}
{{if $item.title}}
- {{$item.body}}
+ {{$item.body}}
@@ -259,11 +259,11 @@ as the value of $top_child_total (this is done at the end of this file)
{{/foreach}}
{{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}}
@@ -284,30 +284,35 @@ as the value of $top_child_total (this is done at the end of this file)
{{* Buttons for like and dislike *}}
{{if $item.vote}}
-
- {{$item.vote.like.0}}
+ {{if $item.vote.like}}
+ {{$item.vote.like.1}}
+ {{/if}}
+
+ {{if $item.vote.like AND $item.vote.dislike}}
+ â¢
+ {{/if}}
{{if $item.vote.dislike}}
- â¢
- {{$item.vote.dislike.0}}
+ {{$item.vote.dislike.1}}
{{/if}}
- {{if $item.comment}} ⢠{{/if}}
-
+ {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}}
+ â¢
+ {{/if}}
{{/if}}
{{* Butten to open the comment text field *}}
{{if $item.comment}}
-
- {{$item.switchcomment}}
-
+ {{$item.switchcomment}}
{{/if}}
{{* Button for sharing the item *}}
{{if $item.vote}}
+ {{if ($item.vote.like OR $item.vote.dislike OR $item.comment) AND $item.vote.share}}
+ â¢
+ {{/if}}
{{if $item.vote.share}}
- â¢
- {{$item.vote.share.0}}
+ {{$item.vote.share.1}}
{{/if}}
{{/if}}
@@ -316,9 +321,9 @@ as the value of $top_child_total (this is done at the end of this file)
{{* Event attendance buttons *}}
{{if $item.isevent}}
- {{$item.attend.0}}
- {{$item.attend.1}}
- {{$item.attend.2}}
+ {{$item.attend.0}}
+ {{$item.attend.1}}
+ {{$item.attend.2}}
{{/if}}
{{$item.name}}
- {{$item.ago}} {{if $item.location}} — ({{$item.location}}){{/if}} + {{$item.ago}} {{if $item.location}} — ({{$item.location}}){{/if}}
{{$item.title}}
+
{{$item.title}}
{{/if}} -