From 781ec8d7c4989b39dd289071e16f156857b6acfb Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 3 Mar 2009 02:05:35 +0000 Subject: - 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 --- template/yoga/calendar_navbar.tpl | 13 ------------ template/yoga/month_calendar.tpl | 43 +++++++++++++++++++++++++++------------ 2 files changed, 30 insertions(+), 26 deletions(-) delete mode 100644 template/yoga/calendar_navbar.tpl (limited to 'template/yoga') 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} - - {if isset($data.url) and $data.url!=""} - {$data.label} - {else} - {$data.label} - {/if} - {if isset($data.nb_images) and $data.nb_images!=""} - ({$data.nb_images}) - {/if} - -{/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}
- {if isset($bar.previous)} -
« {$bar.previous.LABEL}
- {/if} - {if isset($bar.next)} -
{$bar.next.LABEL} »
- {/if} - {if isset($bar.CONTENT)} - {$bar.CONTENT} - {else} -   - {/if} + {if isset($bar.previous)} +
« {$bar.previous.LABEL}
+ {/if} + {if isset($bar.next)} +
{$bar.next.LABEL} »
+ {/if} + {if empty($bar.items)} +   + {else} + {foreach from=$bar.items item=item} + + {if isset($item.URL)} + {$item.LABEL} + {else} + {$item.LABEL} + {/if} + + {/foreach} + {/if}
{/foreach} {/if} @@ -21,8 +29,17 @@ {if !empty($chronology_calendar.calendar_bars) } {foreach from=$chronology_calendar.calendar_bars item=bar}
- {$bar.HEAD_LABEL} ({$bar.NB_IMAGES})
- {$bar.NAV_BAR} + {$bar.HEAD_LABEL} ({$bar.NB_IMAGES})
+ {foreach from=$bar.items item=item} + + {if isset($item.URL)} + {$item.LABEL} + {else} + {$item.LABEL} + {/if} + {if isset($item.NB_IMAGES)}({$item.NB_IMAGES}){/if} + + {/foreach}
{/foreach} {/if} -- cgit v1.2.3