aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/conv_item.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-14 22:14:19 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-14 22:14:19 +0200
commitb4e83b65375e62259671749c089d9cd7a2a2967a (patch)
tree3c4b8e18b2dc439530f9515147af4424e1726be1 /view/tpl/conv_item.tpl
parentd616099de6984ad8d45e3b8908367bf5a0b8ab31 (diff)
downloadvolse-hubzilla-b4e83b65375e62259671749c089d9cd7a2a2967a.tar.gz
volse-hubzilla-b4e83b65375e62259671749c089d9cd7a2a2967a.tar.bz2
volse-hubzilla-b4e83b65375e62259671749c089d9cd7a2a2967a.zip
allow photo-items to appear full width if large photos feature is enabled. in prepare_body() split off mentions, tags, categories folders and attachments from body for easier theming. some other little fixes.
Diffstat (limited to 'view/tpl/conv_item.tpl')
-rwxr-xr-xview/tpl/conv_item.tpl49
1 files changed, 31 insertions, 18 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index a9661d9b5..5bac5b412 100755
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -33,29 +33,42 @@
</div>
<div class="clear"></div>
</div>
- <div class="wall-item-content" id="wall-item-content-{{$item.id}}">
+ <div class="{{if $item.is_photo}}wall-photo-item{{else}}wall-item-content{{/if}}" id="wall-item-content-{{$item.id}}">
<div class="wall-item-body" id="wall-item-body-{{$item.id}}" >
{{$item.body}}
- {{if $item.tags}}
- <div class="body-tag">
- {{foreach $item.tags as $tag}}
- <span class='tag'>{{$tag}}</span>
- {{/foreach}}
- </div>
- {{/if}}
- {{if $item.has_cats}}
- <div class="categorytags">
- <span>{{$item.txt_cats}} {{foreach $item.categories as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
- </div>
- {{/if}}
- {{if $item.has_folders}}
- <div class="filesavetags">
- <span>{{$item.txt_folders}} {{foreach $item.folders as $cat}}{{$cat.name}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
- </div>
- {{/if}}
</div>
<div class="clear"></div>
</div>
+ {{if $item.has_tags}}
+ <div class="wall-item-tools">
+ {{if $item.mentions}}
+ <div class="body-tags" id="item-mentions">
+ <span class="tag">{{$item.mentions}}</span>
+ </div>
+ {{/if}}
+ {{if $item.tags}}
+ <div class="body-tags" id="item-tags">
+ <span class="tag">{{$item.tags}}</span>
+ </div>
+ {{/if}}
+ {{if $item.categories}}
+ <div class="body-tags" id="item-categories">
+ <span class="tag">{{$item.categories}}</span>
+ </div>
+ {{/if}}
+ {{if $item.folders}}
+ <div class="body-tags" id="item-folders">
+ <span class="tag">{{$item.folders}}</span>
+ </div>
+ {{/if}}
+ {{if $item.attachments}}
+ <div class="body-tags" id="item-attachments">
+ <span class='tag'>{{$item.attachments}}</span>
+ </div>
+ {{/if}}
+ <div class="clear"></div>
+ </div>
+ {{/if}}
<div class="wall-item-tools">
<div class="wall-item-tools-right btn-group pull-right">
{{if $item.like}}