X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftemplates%2Fwall_thread.tpl;h=1977f541c231562bad5b0d529b1ac3fb811f8ed8;hb=98945eb6fa4e9d9becbeebf41648ead49e32d4da;hp=cea58e18b3cf8f60f5d39ec0a488d3f90f2cc353;hpb=8bcf52d1805f63ab28bc1ad099265abd2e76069c;p=friendica.git diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index cea58e18b3..1977f541c2 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}}
@@ -57,9 +57,10 @@ as the value of $top_child_total (this is done at the end of this file) @@ -67,49 +68,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 +120,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 +141,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 +169,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 +191,8 @@ as the value of $top_child_total (this is done at the end of this file)
- {{$item.ago}}
+
+
{{if $item.location}}
@@ -239,10 +241,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 +261,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 +286,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 +323,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.title}}
+
{{$item.title}}
{{/if}} -