aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/comment_list.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-01-20 05:36:58 +0000
committerrvelices <rv-github@modusoptimus.com>2012-01-20 05:36:58 +0000
commitb7fff52095e774c9e905aafe980fec251ee3eaca (patch)
treee6b8c2fdad5d490749832f709d75f94a2ceaf659 /themes/default/template/comment_list.tpl
parent99b58aef93c2a681ded76d2ba44a28cdef397291 (diff)
feature 2548 multisize
- comments thumbnails + no more hard coded thumbnail sizes in css - removed admin thumbnail page + language cleanup git-svn-id: http://piwigo.org/svn/trunk@12930 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/template/comment_list.tpl')
-rw-r--r--themes/default/template/comment_list.tpl16
1 files changed, 13 insertions, 3 deletions
diff --git a/themes/default/template/comment_list.tpl b/themes/default/template/comment_list.tpl
index 2ff4d03e8..534d04bd7 100644
--- a/themes/default/template/comment_list.tpl
+++ b/themes/default/template/comment_list.tpl
@@ -1,12 +1,22 @@
-{* $Id$ *}
+{if isset($comment_derivative_params)}
+{strip}{html_style}
+.thumbnailCategory DIV.illustration{ldelim}
+ width: {$comment_derivative_params->max_width()+5}px;
+}
+
+.content .thumbnailCategory .description{ldelim}
+ height: {$comment_derivative_params->max_height()+5}px;
+}
+{/html_style}{/strip}
+{/if}
<ul class="thumbnailCategories">
{foreach from=$comments item=comment name=comment_loop}
<li>
<div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
- {if isset($comment.TN_SRC)}
+ {if isset($comment.src_image)}
<div class="illustration">
<a href="{$comment.U_PICTURE}">
- <img src="{$comment.TN_SRC}" alt="{$comment.ALT}">
+ <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}">
</a>
</div>
{/if}