X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftemplates%2Fwall_thread.tpl;h=a5a785af7eaf1c466664a4834cc9394dac616c94;hb=0acb5d4558d3641c47f01a056751c4410b7c4953;hp=c149b58a515edabedab9fc051469d09eb653614d;hpb=3aa77685fcccff9739384136b4894de43200fa8c;p=friendica.git diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index c149b58a51..a5a785af7e 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -20,7 +20,7 @@ as the value of $top_child_total (this is done at the end of this file) {{/if}} {{if $item.thread_level==2 && $top_child_nr==1}} -
-- {{$item.network_name}}
-
- {{if $item.plink || $item.drop.dropping || $item.edpost || $item.ignore || $item.tagger || $item.star || $item.filer || $item.subthread}}
- -
-
-
-
- {{/if}}
-
- - +- {{if $item.plink}} {{*link to the original source of the item *}} --
- {{$item.plink.title}}
-
- {{/if}}
-
- {{if $item.edpost}} {{* edit the posting *}}
- -
-
-
- {{/if}}
-
- {{if $item.tagger}} {{* tag the post *}}
- -
-
-
- {{/if}}
-
- {{if $item.filer}}
- -
-
-
- {{/if}}
-
- {{if $item.star}}
- -
-
-
-
- {{/if}}
-
- {{if $item.subthread}}
- -
-
-
- {{/if}}
-
- {{if $item.ignore || $item.drop.dropping}}
-
- {{/if}}
-
- {{if $item.ignore}}
- -
-
-
- -
-
-
- {{/if}}
-
- {{if $item.drop.dropping}}
- -
-
-
- {{/if}}
-
-{{$item.name}} - {{if $item.owner_url}}{{$item.via}} {{$item.owner_name}}{{/if}} - {{if $item.lock}} {{/if}} +
@@ -211,6 +155,14 @@ as the value of $top_child_total (this is done at the end of this file)
{{if $item.owner_self}}
{{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
{{/if}}
+ {{if $item.direction}}
+ {{include file="sub/direction.tpl" direction=$item.direction}}
+ {{/if}}
+ {{if $item.pinned}}
+ •
+ {{$item.pinned}}
+ {{/if}}
+
@@ -226,7 +178,7 @@ as the value of $top_child_total (this is done at the end of this file)
{{* contact info header for smartphones *}}
{{*this is the media body for comments - this div must be closed at the end of the file *}}
{{/if}}
+
+ {{if $item.network_icon != ""}}
+
+ {{else}}
+ {{$item.network_name}}
+ {{/if}}
+ {{if $item.plink}} {{*link to the original source of the item *}}
+
+
+
+
+ {{/if}}
+
+
{{* Insert Line to seperate item header and item content visually *}}
@@ -266,11 +238,6 @@ as the value of $top_child_total (this is done at the end of this file)
{{* item content *}}
- {{* insert some space if it's an top-level post *}}
- {{if $item.thread_level==1}}
-
- {{/if}}
-
{{if $item.title}}
{{if $item.edited}}{{$item.edited['label']}} ({{$item.edited['relative']}}) {{/if}}
@@ -307,67 +277,247 @@ 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 $item.threaded}}{{/if}}
+ {{* Buttons for like and dislike *}}
+ {{if $item.vote}}
+ {{if $item.vote.like}}
+
+ {{/if}}
+ {{if $item.vote.like AND $item.vote.dislike}}
+
+ {{/if}}
+ {{if $item.vote.dislike}}
+
+ {{/if}}
- {{* Buttons for like and dislike *}}
- {{if $item.vote}}
- {{if $item.vote.like}}
-
- {{/if}}
- {{if $item.vote.like AND $item.vote.dislike}}
- â¢
- {{/if}}
- {{if $item.vote.dislike}}
-
- {{/if}}
+ {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}}
+
+ {{/if}}
+ {{/if}}
+
+ {{if $item.remote_comment}}
+ {{$item.remote_comment.1}}
+ {{/if}}
+
+ {{* Button to open the comment text field *}}
+ {{if $item.comment}}
+
+ {{/if}}
- {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}}
- â¢
+ {{* Button for sharing the item *}}
+ {{if $item.vote}}
+ {{if $item.vote.share}}
+ {{if $item.vote.like OR $item.vote.dislike OR $item.comment}}
+
{{/if}}
+
{{/if}}
+ {{/if}}
- {{* Button to open the comment text field *}}
- {{if $item.comment}}
-
- {{/if}}
+ {{* Put additional actions in a dropdown menu *}}
+ {{if $item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.subthread || $item.ignore || $item.drop.dropping}}
+
+
+
+
+ {{/if}}
+
+
-
+
{{* Event attendance buttons *}}
- {{if $item.isevent}}
-
+ {{if $item.isevent}}
+
-
- {{/if}}
+
+ {{/if}}
-
- {{if $item.drop.pagedrop}}
+
+ {{if $item.drop.pagedrop}}
+ {{/if}}
+
+
+
+
+ {{* Buttons for like and dislike *}}
+ {{if $item.vote}}
+
+ {{if $item.vote.like}}
+
+ {{/if}}
+ {{if $item.vote.dislike}}
+
{{/if}}
+ {{/if}}
+
+ {{* Button to open the comment text field *}}
+ {{if $item.comment}}
+
+
+
+ {{/if}}
+
+ {{* Button for sharing the item *}}
+ {{if $item.vote.share}}
+
+
+
+ {{/if}}
+
+ {{* Put additional actions in a dropdown menu *}}
+
+
+
+
+
+
+ {{* Event attendance buttons *}}
+ {{if $item.isevent}}
+
+
+
+
+
+ {{/if}}
+
+ {{if $item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.subthread || $item.ignore || $item.drop.dropping}}
+
+
+
+ {{/if}}
+
+ {{if $item.drop.pagedrop}}
+
+
+ {{/if}}
+
-
@@ -381,61 +531,39 @@ 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}}
+
+ {{$item.comment nofilter}}
+
+ {{/if}}
+
{{if $item.thread_level!=1}}
-
- {{$item.comment nofilter}}
-
- {{/if}}{{/if}}{{/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 *}}
+
+ {{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}}
- {{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}}
- {{$item.comment nofilter}}
- {{/if}}{{/if}}{{/if}}
-
- {{if $item.flatten}}
- {{$item.comment nofilter}}
- {{/if}}
+
+
+
{{/if}}
-
+ {{$item.comment nofilter}}
+ {{/if}}
+ + {{$item.name}} + + {{if $item.owner_url}} + {{$item.via}} + + {{$item.owner_name}} + + {{/if}} + {{if $item.lock}} + + + + {{/if}}
- {{$item.name}} + {{$item.name}}
{{$item.ago}} @@ -234,6 +186,9 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.owner_self}} {{include file="sub/delivery_count.tpl" delivery=$item.delivery}} {{/if}} + {{if $item.direction}} + {{include file="sub/direction.tpl" direction=$item.direction}} + {{/if}}
@@ -245,7 +200,7 @@ as the value of $top_child_total (this is done at the end of this file)- {{$item.name}} + {{$item.name}} {{$item.ago}} @@ -253,12 +208,29 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.owner_self}} {{include file="sub/delivery_count.tpl" delivery=$item.delivery}} {{/if}} + {{if $item.direction}} + {{include file="sub/direction.tpl" direction=$item.direction}} + {{/if}}
{{$item.title}}
{{/if}} @@ -290,14 +257,17 @@ as the value of $top_child_total (this is done at the end of this file) {{foreach $item.mentions as $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}} {{/foreach}} {{foreach $item.categories as $cat}} - {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} + {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} {{/foreach}}
+ {{if $item.edpost}} {{* edit the posting *}} +-
+ {{$item.edpost.1}}
+
+ {{/if}}
- {{* Button for sharing the item *}}
- {{if $item.vote}}
- {{if $item.vote.share}}
- {{if $item.vote.like OR $item.vote.dislike OR $item.comment}}
- â¢
+ {{if $item.tagger}} {{* tag the post *}}
+ -
+ {{$item.tagger.add}}
+
{{/if}}
-
- {{/if}}
- {{/if}}
+
+ {{if $item.filer}}
+ -
+ {{$item.filer}}
+
+ {{/if}}
+
+ {{if $item.pin}}
+ -
+ {{$item.pin.do}}
+ {{$item.pin.undo}}
+
+ {{/if}}
+
+ {{if $item.star}}
+ -
+ {{$item.star.do}}
+ {{$item.star.undo}}
+
+ {{/if}}
+
+ {{if $item.subthread}}
+ -
+ {{$item.subthread.title}}
+
+ {{/if}}
+
+ {{if ($item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.subthread) && ($item.ignore || $item.drop.dropping)}}
+
+ {{/if}}
+
+ {{if $item.ignore}}
+ -
+ {{$item.ignore.do}}
+
+ -
+ {{$item.ignore.undo}}
+
+ {{/if}}
+
+ {{if $item.drop.dropping}}
+ -
+ {{$item.drop.delete}}
+
+ {{/if}}
+
+ + + {{else}} -+ {{if $item.edpost}} {{* edit the posting *}} +-
+ {{$item.edpost.1}}
+
+ {{/if}}
+
+ {{if $item.tagger}} {{* tag the post *}}
+ -
+ {{$item.tagger.add}}
+
+ {{/if}}
+
+ {{if $item.filer}}
+ -
+ {{$item.filer}}
+
+ {{/if}}
+
+ {{if $item.pin}}
+ -
+ {{$item.pin.do}}
+ {{$item.pin.undo}}
+
+ {{/if}}
+
+ {{if $item.star}}
+ -
+ {{$item.star.do}}
+ {{$item.star.undo}}
+
+ {{/if}}
+
+ {{if $item.subthread}}
+ -
+ {{$item.subthread.title}}
+
+ {{/if}}
+
+ {{if $item.ignore || $item.drop.dropping}}
+
+ {{/if}}
+
+ {{if $item.ignore}}
+ -
+ {{$item.ignore.do}}
+
+ -
+ {{$item.ignore.undo}}
+
+ {{/if}}
+
+ {{if $item.drop.dropping}}
+ -
+ {{$item.drop.delete}}
+
+ {{/if}}
+
+ +{{/if}} - - - {{* Insert comment box of threaded children *}} - {{if $item.threaded}}{{if $item.comment}}{{if $item.indent==comment}} -