From ed42fa7d59f0eb979b3b5c86b6969c53d6b6573b Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 1 Mar 2012 11:46:08 +0100 Subject: conversation: remove templating items in code and move it to template. --- view/theme/duepuntozero/conversation.tpl | 14 ++++- view/theme/duepuntozero/search_item.tpl | 54 +++++++++--------- view/theme/duepuntozero/wall_item.tpl | 84 ++++++++++++++-------------- view/theme/duepuntozero/wallwall_item.tpl | 92 +++++++++++++++---------------- 4 files changed, 128 insertions(+), 116 deletions(-) (limited to 'view/theme/duepuntozero') diff --git a/view/theme/duepuntozero/conversation.tpl b/view/theme/duepuntozero/conversation.tpl index 33cedfb1e..43bb1dd47 100755 --- a/view/theme/duepuntozero/conversation.tpl +++ b/view/theme/duepuntozero/conversation.tpl @@ -1,6 +1,18 @@ {{ for $threads as $thread }}
- $thread.html + {{ for $thread.items as $item }} + {{if $item.comment_firstcollapsed}} +
+ $thread.num_comments $thread.hide_text +
+ {{endif}} + + {{ inc $item.template }}{{ endinc }} + + + {{ endfor }}
{{ endfor }} diff --git a/view/theme/duepuntozero/search_item.tpl b/view/theme/duepuntozero/search_item.tpl index f046e41ec..bfad1b7b7 100755 --- a/view/theme/duepuntozero/search_item.tpl +++ b/view/theme/duepuntozero/search_item.tpl @@ -1,53 +1,53 @@ -
-
-
-
- - $name - menu -
+
+
+
+
+ + $item.name + menu +
    - $item_photo_menu + $item.item_photo_menu
-
- {{ if $lock }}
$lock
+
+ {{ if $item.lock }}
$item.lock
{{ else }}
{{ endif }} -
$location
+
$item.location
- $name -
$ago
+ $item.name +
$item.ago
-
-
$title
+
+
$item.title
-
$body
+
$item.body
-
-
- {{ if $drop.dropping }}{{ endif }} +
+
+ {{ if $item.drop.dropping }}{{ endif }}
- {{ if $drop.dropping }}{{ endif }} + {{ if $item.drop.dropping }}{{ endif }}
-
- {{ if $conv }} - $conv.title +
+ {{ if $item.conv }} + $item.conv.title {{ endif }}
-
+
diff --git a/view/theme/duepuntozero/wall_item.tpl b/view/theme/duepuntozero/wall_item.tpl index a5136eed3..d165d9801 100755 --- a/view/theme/duepuntozero/wall_item.tpl +++ b/view/theme/duepuntozero/wall_item.tpl @@ -1,76 +1,76 @@ -
-
-
-
- - $name +
+
+
+
+ + $item.name - menu -
+ menu +
    - $item_photo_menu + $item.item_photo_menu
-
- {{ if $lock }}
$lock
+
+ {{ if $item.lock }}
$item.lock
{{ else }}
{{ endif }} -
$location
+
$item.location
- $name -
$ago
+ $item.name +
$item.ago
-
-
$title
+
+
$item.title
-
$body +
$item.body
- {{ for $tags as $tag }} - $tag + {{ for $item.tags as $item.tag }} + $item.tag {{ endfor }}
-
- {{ if $vote }} - diff --git a/view/theme/duepuntozero/wallwall_item.tpl b/view/theme/duepuntozero/wallwall_item.tpl index 4675f1e00..75cd5f65e 100755 --- a/view/theme/duepuntozero/wallwall_item.tpl +++ b/view/theme/duepuntozero/wallwall_item.tpl @@ -1,82 +1,82 @@ -
-
-
-
- - $owner_name +
+
+
+
+ + $item.owner_name
-
$wall
-
- - $name - menu -
+
$item.wall
+
+ + $item.name + menu +
    - $item_photo_menu + $item.item_photo_menu
-
- {{ if $lock }}
$lock
+
+ {{ if $item.lock }}
$item.lock
{{ else }}
{{ endif }} -
$location
+
$item.location
- $name $to $owner_name $vwall
-
$ago
+ $item.name $item.to $item.owner_name $item.vwall
+
$item.ago
-
-
$title
+
+
$item.title
-
$body +
$item.body
- {{ for $tags as $tag }} - $tag + {{ for $item.tags as $item.tag }} + $item.tag {{ endfor }}
-
- {{ if $vote }} - -- cgit v1.2.3