From ee998864e680a735560468c096bb1ad545e72348 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Thu, 16 Aug 2012 18:21:33 +0100 Subject: [PATCH] Make Vier threaded comments not broken. These should be inherited from Quattro really, but aren't. --- view/theme/vier/threaded_conversation.tpl | 37 ++++++ view/theme/vier/wall_thread.tpl | 144 +++++++++++++++++++++ view/theme/vier/wallwall_thread.tpl | 151 ++++++++++++++++++++++ 3 files changed, 332 insertions(+) create mode 100644 view/theme/vier/threaded_conversation.tpl create mode 100644 view/theme/vier/wall_thread.tpl create mode 100644 view/theme/vier/wallwall_thread.tpl diff --git a/view/theme/vier/threaded_conversation.tpl b/view/theme/vier/threaded_conversation.tpl new file mode 100644 index 0000000000..13c38acb2b --- /dev/null +++ b/view/theme/vier/threaded_conversation.tpl @@ -0,0 +1,37 @@ +{{ for $threads as $item }} + +
+ + + {{ if $item.type == tag }} + {{ inc wall_item_tag.tpl }}{{ endinc }} + {{ else }} + {{ inc $item.template }}{{ endinc }} + {{ endif }} + +
+{{ endfor }} + +
+ +{{ if $dropping }} + + $dropping + +{{ endif }} + + + +{{ if $mode == display }} + +{{ endif }} + diff --git a/view/theme/vier/wall_thread.tpl b/view/theme/vier/wall_thread.tpl new file mode 100644 index 0000000000..01738b666b --- /dev/null +++ b/view/theme/vier/wall_thread.tpl @@ -0,0 +1,144 @@ +{{if $mode == display}} +{{ else }} +{{if $item.comment_firstcollapsed}} +
+ $item.num_comments + $item.hide_text + {{ if $item.thread_level==3 }} - + expand / + collapse thread{{ endif }} +
+ {{endif}} +{{ endif }} + +{{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}} +
$item.comment
+{{ endif }}{{ endif }}{{ endif }} + + +{{ if $item.flatten }} +
$item.comment
+{{ endif }} diff --git a/view/theme/vier/wallwall_thread.tpl b/view/theme/vier/wallwall_thread.tpl new file mode 100644 index 0000000000..93a8838ebd --- /dev/null +++ b/view/theme/vier/wallwall_thread.tpl @@ -0,0 +1,151 @@ +{{if $mode == display}} +{{ else }} +{{if $item.comment_firstcollapsed}} +
+ $item.num_comments + $item.hide_text + {{ if $item.thread_level==3 }} - + expand / + collapse thread{{ endif }} +
+ {{endif}} +{{ endif }} + +{{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}} +
$item.comment
+{{ endif }}{{ endif }}{{ endif }} + + +{{ if $item.flatten }} +
$item.comment
+{{ endif }}