diff options
author | rvelices <rv-github@modusoptimus.com> | 2009-03-03 02:05:35 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2009-03-03 02:05:35 +0000 |
commit | 781ec8d7c4989b39dd289071e16f156857b6acfb (patch) | |
tree | 8c0b321c3c55de2042d30193b0843b56e6665094 /template/yoga/month_calendar.tpl | |
parent | 54902df0a4d0c9cd0c93bc285c7388f6c9e5205e (diff) |
- improvement: show the number of images in the chronology upper navigation bar on mouseover (title element);
git-svn-id: http://piwigo.org/svn/trunk@3168 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/month_calendar.tpl')
-rw-r--r-- | template/yoga/month_calendar.tpl | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/template/yoga/month_calendar.tpl b/template/yoga/month_calendar.tpl index 410824b23..8fd0eb25f 100644 --- a/template/yoga/month_calendar.tpl +++ b/template/yoga/month_calendar.tpl @@ -3,17 +3,25 @@ {if !empty($chronology_navigation_bars) } {foreach from=$chronology_navigation_bars item=bar} <div class="calendarBar"> - {if isset($bar.previous)} - <div style="float:left">« <a href="{$bar.previous.URL}">{$bar.previous.LABEL}</a></div> - {/if} - {if isset($bar.next)} - <div style="float:right"><a href="{$bar.next.URL}">{$bar.next.LABEL}</a> »</div> - {/if} - {if isset($bar.CONTENT)} - {$bar.CONTENT} - {else} - - {/if} + {if isset($bar.previous)} + <div style="float:left">« <a href="{$bar.previous.URL}">{$bar.previous.LABEL}</a></div> + {/if} + {if isset($bar.next)} + <div style="float:right"><a href="{$bar.next.URL}">{$bar.next.LABEL}</a> »</div> + {/if} + {if empty($bar.items)} + + {else} + {foreach from=$bar.items item=item} + <span class="calItem{if !isset($item.URL)}Empty{/if}" {if isset($item.NB_IMAGES)}title="{$pwg->l10n_dec('%d element', '%d elements', $item.NB_IMAGES)}"{/if}> + {if isset($item.URL)} + <a href="{$item.URL}">{$item.LABEL}</a> + {else} + {$item.LABEL} + {/if} + </span> + {/foreach} + {/if} </div> {/foreach} {/if} @@ -21,8 +29,17 @@ {if !empty($chronology_calendar.calendar_bars) } {foreach from=$chronology_calendar.calendar_bars item=bar} <div class="calendarCalBar"> - <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a> ({$bar.NB_IMAGES})</span><br/> - {$bar.NAV_BAR} + <span class="calCalHead"><a href="{$bar.U_HEAD}">{$bar.HEAD_LABEL}</a> ({$bar.NB_IMAGES})</span><br/> + {foreach from=$bar.items item=item} + <span class="calCal{if !isset($item.URL)}Empty{/if}"> + {if isset($item.URL)} + <a href="{$item.URL}">{$item.LABEL}</a> + {else} + {$item.LABEL} + {/if} + {if isset($item.NB_IMAGES)}({$item.NB_IMAGES}){/if} + </span> + {/foreach} </div> {/foreach} {/if} |