diff options
Diffstat (limited to 'themes/default/template/month_calendar.tpl')
-rw-r--r-- | themes/default/template/month_calendar.tpl | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/themes/default/template/month_calendar.tpl b/themes/default/template/month_calendar.tpl index 904570a10..ac8fed166 100644 --- a/themes/default/template/month_calendar.tpl +++ b/themes/default/template/month_calendar.tpl @@ -1,31 +1,28 @@ - -{if !empty($chronology_navigation_bars) } +{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> + <div style="float:left;margin-right:5px">« <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> + <div style="float:right;margin-left:5px"><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 photo', '%d photos', $item.NB_IMAGES)}"{/if}> - {if isset($item.URL)} - <a href="{$item.URL}">{$item.LABEL}</a> + {if !isset($item.URL)} + <span class="calItem">{$item.LABEL}</span> {else} - {$item.LABEL} + <a class="calItem"{if isset($item.NB_IMAGES)} title="{$item.NB_IMAGES|@translate_dec:'%d photo':'%d photos'}"{/if} href="{$item.URL}">{$item.LABEL}</a> {/if} - </span> {/foreach} {/if} </div> {/foreach} {/if} -{if !empty($chronology_calendar.calendar_bars) } +{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> @@ -43,7 +40,7 @@ {/foreach} {/if} -{if isset($chronology_calendar.month_view) } +{if isset($chronology_calendar.month_view)} <table class="calMonth"> <thead> <tr> @@ -52,13 +49,11 @@ {/foreach} </tr> </thead> -{html_head} {*add the style to html head for strict standard compliance*} -<style type="text/css"> -TABLE.calMonth TBODY TD, TABLE.calMonth TBODY TD DIV.calImg {ldelim} - width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px; +{html_style} +.calMonth TD, .calMonth .calImg{ + width:{$chronology_calendar.month_view.CELL_WIDTH}px;height:{$chronology_calendar.month_view.CELL_HEIGHT}px } -</style> -{/html_head} +{/html_style} {foreach from=$chronology_calendar.month_view.weeks item=week} <tr> {foreach from=$week item=day} @@ -68,7 +63,7 @@ TABLE.calMonth TBODY TD, TABLE.calMonth TBODY TD DIV.calImg {ldelim} <div class="calBackDate">{$day.DAY}</div><div class="calForeDate">{$day.DAY}</div> <div class="calImg"> <a href="{$day.U_IMG_LINK}"> - <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$pwg->l10n_dec('%d photo','%d photos', $day.NB_ELEMENTS)}"> + <img src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$day.NB_ELEMENTS|@translate_dec:'%d photo':'%d photos'}"> </a> </div> {else} @@ -78,9 +73,9 @@ TABLE.calMonth TBODY TD, TABLE.calMonth TBODY TD DIV.calImg {ldelim} <td> {/if} </td> - {/foreach} {*day in week*} + {/foreach}{*day in week*} </tr> - {/foreach} {*week in month*} + {/foreach}{*week in month*} </table> {/if} |