X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=templates%2Fwall_thread.tpl;h=4f6e9898deaf6eaa6dc1ee420731ae26ed95df1b;hb=HEAD;hp=3fa53764d0fca7c369e15c60d13c255f7786309a;hpb=b13eb01d3c690baf406b87e457956d1de88f2d02;p=friendica.git diff --git a/templates/wall_thread.tpl b/templates/wall_thread.tpl deleted file mode 100644 index 3fa53764d0..0000000000 --- a/templates/wall_thread.tpl +++ /dev/null @@ -1,418 +0,0 @@ - -{{* This is a little bit hacky. This is needed to have some sort comments container. -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 -- 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. - -Everytime when a children with top_level = 2 comes up $top_child_nr rises with 1. -The div get's closed if thread_level = 2 and the value of $top_child_nr is the same -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}} -{{/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}} -
-
-- {{$item.network_name}}
-
- {{if $item.plink || $item.drop.dropping || $item.edpost || $item.ignore || $item.tagger || $item.star || $item.filer}}
- -
-
-
-
- {{/if}}
-
- - - {{* The avatar picture and the photo-menu *}} -- {{if $item.plink}} {{*link to the original source of the item *}} --
- {{$item.plink.title}}
-
- {{/if}}
-
- {{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.star}}
- -
- {{$item.star.do}}
- {{$item.star.undo}}
-
- {{/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}}
-
-{{$item.name}} - {{if $item.owner_url}}{{$item.via}} {{$item.owner_name}}{{/if}} - {{if $item.lock}} {{/if}} - 4> - -
-
- {{$item.ago}}
-
-
- {{if $item.location}}
-
- ({{$item.location}})
-
- {{/if}}
-
- {{* @todo $item.created have to be inserted *}}
-
- {{$item.name}} -
- {{$item.ago}} {{if $item.location}} — ({{$item.location}}){{/if}} -
- -- {{$item.name}} - - {{$item.ago}} {{if $item.location}} — ({{$item.location}}){{/if}} - -
-{{/if}} - - {{* item content *}} -
{{$item.title}}
- {{/if}} - -
- {{/if}} - - - {{* Insert comment box of threaded children *}} - {{if $item.threaded}}{{if $item.comment}}{{if $item.indent==comment}} -