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

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

[memories] link in bloc

File size: 1.9 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{footer_script}
36  jQuery('.calItempfoya').click(function(even){
37    var memodate= jQuery(this).data('memodate');
38    $.ajax({
39          url: "ws.php?format=json&method=memories.photos.list",
40          type:"POST",
41          async:false,
42          data: {
43                memodate : memodate,
44          },
45        success: function(){
46        }
47      });
48    });
49
50{/footer_script}
51
52{if isset($pfoya)}
53  <div class="calendarBar">
54        {foreach from=$pfoyas item=pfoya}
55          {if ($pfoya.NB_IMAGES==0)}
56                <span class="calItem">{$pfoya.LABEL}</span>
57          {else}
58                <a class="calItem calItempfoya" data-memodate="{$pfoya.MEMODATE}" {if isset($pfoya.NB_IMAGES)} title="{$pfoya.NB_IMAGES|@translate_dec:'%d photo':'%d photos'}"{/if} href="{$pfoya.URL}">{$pfoya.LABEL}</a>
59          {/if}
60        {/foreach}
61  </div>
62{/if}
63{if isset($pfoyadata)}
64<div class="pfoyat">{$pfoyadata}</div>
65{/if}
66
67
68<ul class="thumbnails stuffs_block_{$block.ID}" id="thumbnails">
69{include file='thumbnails.tpl'|@get_extent:'index_thumbnails'}
70</ul>
71
72{if $pfoya !='a'}
73<div class="pfoya"><a href="{$PFOAYALINK}">{'more photos'|@translate} ...</a></div>
74{/if}
Note: See TracBrowser for help on using the repository browser.