]> git.mxchange.org Git - friendica.git/commitdiff
Wall to wall items should now be threaded too.
authorDomovoy <domovoy@errlock.org>
Tue, 7 Aug 2012 10:08:36 +0000 (12:08 +0200)
committerDomovoy <domovoy@errlock.org>
Tue, 7 Aug 2012 10:08:36 +0000 (12:08 +0200)
view/wallwall_thread.tpl

index b7cca3fab9c9839ee71e6a6ac0aa16fefc6d6680..3986b065c198c438f420ba90782b9657bdab035b 100644 (file)
@@ -1,3 +1,10 @@
+{{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>
+       </div>
+       <div id="collapsed-comments-$item.id" class="collapsed-comments" style="display: none;">
+{{endif}}
+<div id="tread-wrapper-$item.id" class="tread-wrapper $item.toplevel">
 <a name="$item.id" ></a>
 <div class="wall-item-outside-wrapper$item.indent$item.previewing wallwall" id="wall-item-outside-wrapper-$item.id" >
        <div class="wall-item-content-wrapper$item.indent" id="wall-item-content-wrapper-$item.id" >
                        </div>
                                {{ if $item.drop.dropping }}<input type="checkbox" onclick="checkboxhighlight(this);" title="$item.drop.select" class="item-select" name="itemselected[]" value="$item.id" />{{ endif }}
                        <div class="wall-item-delete-end"></div>
+                       {{ if $item.threaded }}
+                       {{ if $item.comment }}
+                       <div class="wall-item-comment-wrapper" >
+                               $item.comment
+                       </div>
+                       {{ endif }}
+                       {{ endif }}
                </div>
        </div>  
        <div class="wall-item-wrapper-end"></div>
 
 <div class="wall-item-outside-wrapper-end$item.indent" ></div>
 </div>
+{{ for $item.children as $item }}
+       {{ inc $item.template }}{{ endinc }}
+{{ endfor }}
 
+{{ if $item.flatten }}
+<div class="wall-item-comment-wrapper" >
+       $item.comment
+</div>
+{{ endif }}
+</div>
+{{if $item.comment_lastcollapsed}}</div>{{endif}}