source: extensions/memories/blockhome/stuffs_homepfoya.tpl @ 32202

Last change on this file since 32202 was 32196, checked in by ddtddt, 4 years ago

[photos_from_one_year_ago] admin panel / block menu

File size: 1.6 KB
Line 
1{assign var='thumbnails' value=$block.thumbnails}
2{assign var='derivative_params' value=$block.derivative_params}
3
4{html_style}
5{*Set some sizes according to maximum thumbnail width and height*}
6.stuffs_block_{$block.ID} SPAN,
7.stuffs_block_{$block.ID} .wrap2 A,
8.stuffs_block_{$block.ID} LABEL{ldelim}
9        width: {$derivative_params->max_width()+2}px !important;
10}
11
12.stuffs_block_{$block.ID} .wrap2{ldelim}
13        height: {$derivative_params->max_height()+3}px !important;
14}
15{if $derivative_params->max_width() > 600}
16.stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 130% !important}
17{else}
18{if $derivative_params->max_width() > 400}
19.stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 110% !important}
20{else}
21.stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 90% !important}
22{/if}
23{/if}
24
25.pfoya{
26float:right;
27padding-right:100px;
28}
29
30.pfoyat{
31        padding-left:50px;
32        font-size:2em;
33}
34{/html_style}
35
36{if isset($pfoya)}
37  <div class="calendarBar">
38        {foreach from=$pfoyas item=pfoya}
39          {if ($pfoya.NB_IMAGES==0)}
40                <span class="calItem">{$pfoya.LABEL}</span>
41          {else}
42                <a class="calItem calItempfoya"{if isset($pfoya.NB_IMAGES)} title="{$pfoya.NB_IMAGES|@translate_dec:'%d photo':'%d photos'}"{/if} href="{$pfoya.URL}">{$pfoya.LABEL}</a>
43          {/if}
44        {/foreach}
45  </div>
46{/if}
47{if isset($pfoyadata)}
48<div class="pfoyat">{$pfoyadata}</div>
49{/if}
50
51
52<ul class="thumbnails stuffs_block_{$block.ID}" id="thumbnails">
53{include file='thumbnails.tpl'|@get_extent:'index_thumbnails'}
54</ul>
55
56{if $pfoya !='a'}
57<div class="pfoya"><a href="{$PFOAYALINK}">{'more photos'|@translate} ...</a></div>
58{/if}
Note: See TracBrowser for help on using the repository browser.