From 3cabddcdec98731bfef0b9921d046c01321b5943 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 16 Feb 2019 18:40:05 -0500 Subject: [PATCH] [frio] Hide fake comment form when comment form isn't present --- view/theme/frio/templates/wall_thread.tpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 0fcb84bad..591e102c7 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -408,24 +408,22 @@ as the value of $top_child_total (this is done at the end of this file) {{* 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.total_comments_num}} + {{if $item.comment && $item.thread_level==1}} + {{if $item.total_comments_num}}
- {{/if}} - {{if $item.comment && $item.thread_level==1}} + {{/if}} {{/if}} - {{if $mode == display}} {{else}} {{if $item.comment_lastcollapsed}}{{/if}} {{/if}} - {{* close the comment-container div if no more thread_level = 2 children are left *}} {{if $item.thread_level==2 && $top_child_nr==$top_child_total}}