Skip to content

Commit

Permalink
fixed image sizes as looks better
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Bayfield committed Sep 5, 2014
1 parent 089c76b commit b62be48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions template/mainpage_categories.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{define_derivative name='derivative_params' width=260 height=180 crop=true}
{foreach from=$category_thumbnails item=cat name=cat_loop}
{assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)}
<div class="col-xs-6 col-sm-4 col-md-3 col-equal-height">
<div class="thumbnail">
<a href="{$cat.URL}">
<img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">
</a>
Expand All @@ -19,6 +21,7 @@
<p>{$cat.DESCRIPTION}</p>
{/if}
</div>
</div>
</div>
{/foreach}

0 comments on commit b62be48

Please sign in to comment.