Ignore:
Timestamp:
Sep 11, 2012, 2:59:30 PM (12 years ago)
Author:
flop25
Message:

new value and name change of parameter : Display big thumbnails for landscape pictures (thumbnails.tpl&mainpage_categories.tpl)
all the parameters are applied to stuff thumbnails
mistake corrected in mainpage_categories.tpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/template/thumbnails.tpl

    r17844 r17858  
    1515      {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)}
    1616      {assign var=TN_CLASS value='twocol'}
    17     {elseif (($thumbnail.width < $thumbnail.height) and $stripped_black_bloc.portrait_limitation=="yes")}
     17    {elseif (($thumbnail.width < $thumbnail.height) and $stripped_black_bloc.orientation_option=="max_heigth")}
    1818      {if $thumbnail.TN_CLASS=="twocol" and $thumbnail.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width}
    1919        {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $thumbnail.src_image)}
     
    2121      {else}
    2222        {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_vert, $thumbnail.src_image)}
     23        {assign var=TN_CLASS value='onecol'}
     24      {/if}
     25    {elseif $stripped_black_bloc.orientation_option=="big_landscape"}
     26      {if ($thumbnail.TN_CLASS=="twocol" or $thumbnail.width > $thumbnail.height) and ($thumbnail.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width)}
     27        {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)}
     28        {assign var=TN_CLASS value='twocol'}
     29      {else}
     30        {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)}
    2331        {assign var=TN_CLASS value='onecol'}
    2432      {/if}
Note: See TracChangeset for help on using the changeset viewer.