aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/template')
-rw-r--r--themes/default/template/comment_list.tpl16
-rw-r--r--themes/default/template/comments.tpl2
2 files changed, 14 insertions, 4 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}
diff --git a/themes/default/template/comments.tpl b/themes/default/template/comments.tpl
index fd2cace00..92c1cc2db 100644
--- a/themes/default/template/comments.tpl
+++ b/themes/default/template/comments.tpl
@@ -73,7 +73,7 @@
{if isset($comments)}
<div id="comments">
- {include file='comment_list.tpl'}
+ {include file='comment_list.tpl' comment_derivative_params=$derivative_params}
</div>
{/if}