diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/template/comment_list.tpl | 16 | ||||
-rw-r--r-- | themes/default/template/comments.tpl | 2 | ||||
-rw-r--r-- | themes/default/theme.css | 9 |
3 files changed, 14 insertions, 13 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} diff --git a/themes/default/theme.css b/themes/default/theme.css index 0477d5a7d..00cb89482 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -683,15 +683,6 @@ IMG.ui-datepicker-trigger { cursor : pointer; } -/* Set some sizes according to your maximum thumbnail width and height */ -.thumbnailCategory DIV.illustration { - width: 140px; /* max thumbnail width + 2px */ -} - -.content .thumbnailCategory .description { - height: 140px; /* max thumbnail height + 2px */ -} - /* Set defaults for thumbnails legend */ .thumbnails SPAN.thumbLegend { display: block; /* display: none; if you don't want legend */ |