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 | |
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')
-rw-r--r-- | template/yoga/calendar_navbar.tpl | 13 | ||||
-rw-r--r-- | template/yoga/month_calendar.tpl | 43 |
2 files changed, 30 insertions, 26 deletions
diff --git a/template/yoga/calendar_navbar.tpl b/template/yoga/calendar_navbar.tpl deleted file mode 100644 index 8e35c766b..000000000 --- a/template/yoga/calendar_navbar.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -{foreach from=$datas item=data} - <span class="{$data.classname}"> - {if isset($data.url) and $data.url!=""} - <a href="{$data.url}">{$data.label}</a> - {else} - {$data.label} - {/if} - {if isset($data.nb_images) and $data.nb_images!=""} - ({$data.nb_images}) - {/if} - </span> -{/foreach}
\ No newline at end of file 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} |