Changeset 17858 for extensions/stripped_black_bloc/template
- Timestamp:
- Sep 11, 2012, 2:59:30 PM (12 years ago)
- Location:
- extensions/stripped_black_bloc/template
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped_black_bloc/template/mainpage_categories.tpl
r17845 r17858 13 13 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_wide, $cat.representative.src_image)} 14 14 {assign var=TN_CLASS value="twocol"} 15 {elseif $cat.representative.width < $cat.representative.height and $stripped_black_bloc.catthumb=="yes"} 15 {elseif $stripped_black_bloc.catthumb=="all"} 16 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)} 17 {assign var=TN_CLASS value="twocol"} 18 {elseif $cat.representative.width < $cat.representative.height and $stripped_black_bloc.orientation_option=="max_heigth"} 16 19 {if $cat.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same"} 17 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)}18 {assign var=TN_CLASS value="twocol"}19 {elseif $stripped_black_bloc.catthumb=="all"}20 20 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)} 21 21 {assign var=TN_CLASS value="twocol"} … … 24 24 {assign var=TN_CLASS value="onecol"} 25 25 {/if} 26 {elseif $stripped_black_bloc.orientation_option=="big_landscape"} 27 {if (($cat.representative.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same") or $cat.representative.width > $cat.representative.height) and ($cat.representative.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width)} 28 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $cat.representative.src_image)} 29 {assign var=TN_CLASS value='twocol'} 30 {else} 31 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $cat.representative.src_image)} 32 {assign var=TN_CLASS value='onecol'} 33 {/if} 26 34 {else} 27 35 {if $cat.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same"} 28 36 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $cat.representative.src_image)} 29 {assign var=TN_CLASS value="twocol"}30 {elseif $stripped_black_bloc.catthumb=="all"}31 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $cat.representative.src_image)}{assign var=TN_CLASS value="twocol"}32 37 {assign var=TN_CLASS value="twocol"} 33 38 {else} -
extensions/stripped_black_bloc/template/stuffs_thumbnails.tpl
r17843 r17858 5 5 {if !empty($thumbnails)} 6 6 {foreach from=$thumbnails item=thumbnail} 7 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)} 8 {assign var='size' value=$derivative->get_size()} 9 <div class="bloc {$thumbnail.TN_CLASS}"> 7 {assign var=triplehigh value=$thumbnail.height+$thumbnail.height+$thumbnail.height} 8 {if ($thumbnail.width > $triplehigh) and ($thumbnail.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width+$stripped_black_bloc.column_width)} 9 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_wide, $thumbnail.src_image)} 10 {assign var=TN_CLASS value='threecol'} 11 {elseif ($thumbnail.width > $triplehigh) and ($thumbnail.width>$stripped_black_bloc.column_width+$stripped_black_bloc.column_width)} 12 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)} 13 {assign var=TN_CLASS value='twocol'} 14 {elseif (($thumbnail.width < $thumbnail.height) and $stripped_black_bloc.orientation_option=="max_heigth")} 15 {if $thumbnail.TN_CLASS=="twocol" and $thumbnail.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width} 16 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $thumbnail.src_image)} 17 {assign var=TN_CLASS value='twocol'} 18 {else} 19 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_vert, $thumbnail.src_image)} 20 {assign var=TN_CLASS value='onecol'} 21 {/if} 22 {elseif $stripped_black_bloc.orientation_option=="big_landscape"} 23 {if ($thumbnail.TN_CLASS=="twocol" or $thumbnail.width > $thumbnail.height) and ($thumbnail.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width)} 24 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)} 25 {assign var=TN_CLASS value='twocol'} 26 {else} 27 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)} 28 {assign var=TN_CLASS value='onecol'} 29 {/if} 30 {else} 31 {if $thumbnail.TN_CLASS=="twocol" and $thumbnail.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width} 32 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)} 33 {assign var=TN_CLASS value='twocol'} 34 {else} 35 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)} 36 {assign var=TN_CLASS value='onecol'} 37 {/if} 38 {/if} 39 {assign var='size' value=$derivative->get_size()} 40 <div class="bloc {$TN_CLASS}"> 10 41 <a href="{$thumbnail.URL}" style="background: url({if $derivative->is_cached()}{$derivative->get_url()}{else}{$ROOT_URL}{$themeconf.img_dir}/loading.gif{/if}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" {if !$derivative->is_cached()}data-src="{$derivative->get_url()}"{/if}> 11 42 {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if} -
extensions/stripped_black_bloc/template/thumbnails.tpl
r17844 r17858 15 15 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)} 16 16 {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")} 18 18 {if $thumbnail.TN_CLASS=="twocol" and $thumbnail.width>$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width} 19 19 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $thumbnail.src_image)} … … 21 21 {else} 22 22 {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)} 23 31 {assign var=TN_CLASS value='onecol'} 24 32 {/if}
Note: See TracChangeset
for help on using the changeset viewer.