]> git.mxchange.org Git - friendica.git/commitdiff
quattro: fix tag item template
authorFabrixxm <fabrix.xm@gmail.com>
Mon, 12 Nov 2012 17:45:49 +0000 (12:45 -0500)
committerFabrixxm <fabrix.xm@gmail.com>
Mon, 12 Nov 2012 17:45:49 +0000 (12:45 -0500)
add correct initial and final divs

view/theme/quattro/wall_item_tag.tpl

index fd0c59ea356a6a6738e8ee0219e706fb0892cb72..63373ab163fef5da82102689690c7263ec3a76fe 100644 (file)
@@ -1,5 +1,27 @@
+{{if $mode == display}}
+{{ else }}
+{{if $item.comment_firstcollapsed}}
+       <div class="hide-comments-outer">
+               <span id="hide-comments-total-$item.id" 
+                       class="hide-comments-total">$item.num_comments</span>
+                       <span id="hide-comments-$item.id" 
+                               class="hide-comments fakelink" 
+                               onclick="showHideComments($item.id);">$item.hide_text</span>
+                       {{ if $item.thread_level==3 }} - 
+                       <span id="hide-thread-$item-id"
+                               class="fakelink"
+                               onclick="showThread($item.id);">expand</span> /
+                       <span id="hide-thread-$item-id"
+                               class="fakelink"
+                               onclick="hideThread($item.id);">collapse</span> thread{{ endif }}
+       </div>
+       <div id="collapsed-comments-$item.id" class="collapsed-comments" style="display: none;">
+{{endif}}
+{{ endif }}
+
 {{ if $item.thread_level!=1 }}<div class="children">{{ endif }}
 
+
 <div class="wall-item-container item-tag $item.indent $item.shiny">
        <div class="wall-item-item">
                <div class="wall-item-info">
 
 {{ if $item.thread_level!=1 }}</div>{{ endif }}
 
+{{if $mode == display}}
+{{ else }}
+{{if $item.comment_lastcollapsed}}</div>{{endif}}
+{{ endif }}
+
+{# top thread comment box #}
+{{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
+<div class="wall-item-comment-wrapper" >$item.comment</div>
+{{ endif }}{{ endif }}{{ endif }}
+
 {{ if $item.flatten }}
 <div class="wall-item-comment-wrapper" >$item.comment</div>
 {{ endif }}