From 30e86284af3cdf64cf4f5f6a0e1ced04cfb73258 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 21 Aug 2012 20:03:25 -0700 Subject: upstream --- include/conversation.php | 10 +++++++++- view/theme/duepuntozero/css/style.css | 3 +++ view/theme/duepuntozero/tpl/comment_item.tpl | 4 ++++ view/tpl/comment_item.tpl | 4 ++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index 2edb551a5..3bbaf0cba 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -496,6 +496,13 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr } } + if(intval(get_config('system','thread_allow')) && $a->theme_thread_allow) { + $comments_threaded = true; + } + else { + $comments_threaded = false; + } + if($page_writeable) { $buttons = array( 'like' => array( t("I like this \x28toggle\x29"), t("like")), @@ -512,7 +519,8 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr $qcomment = (($qc) ? explode("\n",$qc) : null); } $comment = replace_macros($cmnt_tpl,array( - '$return_path' => '', + '$return_path' => '', + '$threaded' => $comments_threaded, '$jsreload' => (($mode === 'display') ? $_SESSION['return_url'] : ''), '$type' => (($mode === 'profile') ? 'wall-comment' : 'net-comment'), '$id' => $item['item_id'], diff --git a/view/theme/duepuntozero/css/style.css b/view/theme/duepuntozero/css/style.css index 18f620110..bbb4cb54f 100644 --- a/view/theme/duepuntozero/css/style.css +++ b/view/theme/duepuntozero/css/style.css @@ -934,6 +934,9 @@ input#dfrn-url { #network-bmark-link { margin-top: 10px; } +.tread-wrapper .wall-item-comment-wrapper { + margin-left: 50px; +} .wall-item-content-wrapper { margin-top: 10px; diff --git a/view/theme/duepuntozero/tpl/comment_item.tpl b/view/theme/duepuntozero/tpl/comment_item.tpl index 63c05f335..f64ae753b 100755 --- a/view/theme/duepuntozero/tpl/comment_item.tpl +++ b/view/theme/duepuntozero/tpl/comment_item.tpl @@ -1,6 +1,10 @@
+ {{ if $threaded }} $comment