Changeset 17845 for extensions
- Timestamp:
- Sep 10, 2012, 6:17:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped_black_bloc/template/mainpage_categories.tpl
r17843 r17845 7 7 {foreach from=$category_thumbnails item=cat} 8 8 {assign var=triplehigh value= $cat.representative.height+$cat.representative.height+$cat.representative.height} 9 {if $cat.representative.width gt $triplehigh}9 {if ($cat.representative.width > $triplehigh) and ($cat.representative.width>$stripped_black_bloc.column_width+$stripped_black_bloc.column_width+$stripped_black_bloc.column_width)} 10 10 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_wide, $cat.representative.src_image)} 11 {assign var=TN_CLASS value="twocol"} 12 {elseif ($cat.representative.width > $triplehigh) and ($cat.representative.width>$stripped_black_bloc.column_width+$stripped_black_bloc.column_width)} 13 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_wide, $cat.representative.src_image)} 14 {assign var=TN_CLASS value="twocol"} 15 {elseif $cat.representative.width < $cat.representative.height and $stripped_black_bloc.catthumb=="yes"} 16 {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 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)} 21 {assign var=TN_CLASS value="twocol"} 22 {else} 23 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_vert, $cat.representative.src_image)} 24 {assign var=TN_CLASS value="onecol"} 25 {/if} 26 {else} 27 {if $cat.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same"} 28 {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 {assign var=TN_CLASS value="twocol"} 33 {else} 34 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $cat.representative.src_image)} 35 {assign var=TN_CLASS value="onecol"} 36 {/if} 37 {/if} 11 38 {assign var='size' value=$derivative->get_size()} 12 <div class="bloc twocolalbum">39 <div class="bloc {$TN_CLASS} album"> 13 40 <a href="{$cat.URL}" style="background: url({$derivative->get_url()}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" > 14 41 {$cat.NAME} … … 16 43 <div class="title">{$cat.NAME}</div> 17 44 </div> 18 {else}19 {if $cat.representative.width < $cat.representative.height and $stripped_black_bloc.catthumb=="yes"}20 {if $cat.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same"}21 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)}22 {elseif $stripped_black_bloc.catthumb=="all"}23 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)}24 {else}25 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_vert, $cat.representative.src_image)}26 {/if}27 {else}28 {if $cat.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same"}29 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $cat.representative.src_image)}30 {elseif $stripped_black_bloc.catthumb=="all"}31 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $cat.representative.src_image)}32 {else}33 {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $cat.representative.src_image)}34 {/if}35 {/if}36 {assign var='size' value=$derivative->get_size()}37 <div class="bloc {if $stripped_black_bloc.catthumb=="all"}twocol{else}{$cat.TN_CLASS}{/if} album">38 <a href="{$cat.URL}" style="background: url({$derivative->get_url()}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" >39 {$cat.NAME}40 </a>41 <div class="title">{$cat.NAME}</div>42 </div>43 {/if}44 45 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.