summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-21 21:06:36 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-21 21:06:36 +0000
commita0f952bf6b0dfc41004688e5c15d678426046241 (patch)
treea34383d30beed4b71ccee5e7c8bef7141dd8a07e
parent6f608b98078078ffaf34477ca0a220953a121d39 (diff)
downloadcalendar-a0f952bf6b0dfc41004688e5c15d678426046241.tar.gz
calendar-a0f952bf6b0dfc41004688e5c15d678426046241.tar.bz2
calendar-a0f952bf6b0dfc41004688e5c15d678426046241.zip
remove superfluous template and clean up module further
-rw-r--r--modules/mod_calendar.tpl2
-rw-r--r--templates/calendar_inc.tpl71
2 files changed, 1 insertions, 72 deletions
diff --git a/modules/mod_calendar.tpl b/modules/mod_calendar.tpl
index 21d1ad6..36315be 100644
--- a/modules/mod_calendar.tpl
+++ b/modules/mod_calendar.tpl
@@ -36,7 +36,7 @@
{cycle values="notmonth" print=false advance=false}
{/if}
- <td class="{cycle}" style="text-align:right;">
+ <td class="calday {cycle}">
{if $day.day|date_format:"%m" eq $modCalNavigation.focus_month}
{if $day.day eq $modCalNavigation.focus_date}<strong>{/if}
<a href="{$smarty.const.CALENDAR_PKG_URL}index.php?todate={$day.day}&amp;{$url_string}">{$day.day|date_format:"%d"}</a>
diff --git a/templates/calendar_inc.tpl b/templates/calendar_inc.tpl
deleted file mode 100644
index 042d4fd..0000000
--- a/templates/calendar_inc.tpl
+++ /dev/null
@@ -1,71 +0,0 @@
-<table class="data {$smarty.session.calendar.view_mode}">
- <caption>{tr}Selection: {$navigation.focus_date|bit_long_date}{/tr}</caption>
- {if $smarty.session.calendar.view_mode eq 'day'}
- <tr>
- <th style="width:15%;">{tr}Time{/tr}</th>
- <th>{tr}Events{/tr}</th>
- </tr>
- {foreach item=t from=$calDay}
- <tr class="{cycle values="odd,even"}">
- <td style="text-align:right; vertical-align:top; padding-right:15px;">{$t.time|date_format:"%R"}</td>
- <td>
- {foreach from=$t.items item=item}
- {assign var=over value=$item.over}
- <div class="cal cal{$item.content_type_guid}">
- {$item.last_modified|date_format:"%R"}: &nbsp;
- <a href="{$smarty.const.BIT_ROOT_URL}index.php?content_id={$item.content_id}" {popup fullhtml="1" text=$over|escape:"javascript"|escape:"html"}>
- {$item.title|default:"..."}
- </a>
- </div>
- {/foreach}
- </td>
- </tr>
- {/foreach}
- {else}
- <tr>
- <th style="width:2%;"></th>
- {foreach from=$dayNames item=name}
- <th width="14%">{$name}</th>
- {/foreach}
- </tr>
-
- {foreach from=$calMonth key=week_num item=week}
- <tr style="height:6em;">
- <th>{$week_num}</th>
- {foreach from=$week item=day}
- {if $smarty.session.calendar.view_mode eq "month"}
- {if $day.day|date_format:"%m" eq $navigation.focus_month}
- {cycle values="odd,even" print=false advance=false}
- {else}
- {cycle values="notmonth" print=false advance=false}
- {/if}
- {else}
- {cycle values="odd,even" print=false advance=false}
- {/if}
-
- <td class="calday {cycle}" style="vertical-align:top;">
- {if $day.day|date_format:"%m" eq $navigation.focus_month or $smarty.session.calendar.view_mode eq "week"}
- {if $day.day eq $navigation.focus_date}<strong>{/if}
- <a href="{$gBitLoc.CALENDAR_PKG_URL}index.php?todate={$day.day}&amp;{$url_string}">{$day.day|date_format:"%d"}</a>
- {if $day.day eq $navigation.focus_date}</strong>{/if}
- <hr />
-
- {* - Calendar Content - *}
- {foreach from=$day.items item=item}
- {assign var=over value=$item.over}
- <div class="cal{$item.content_type_guid}">
- <a href="{$smarty.const.BIT_ROOT_URL}index.php?content_id={$item.content_id}" {popup fullhtml="1" text=$over|escape:"javascript"|escape:"html"}>
- {$item.title|truncate:$trunc:"..."|default:"?"}
- </a>
- </div>
- {/foreach}
- {else}
- &nbsp;
- {/if}
- </td>
- {/foreach}
- </tr>
- {/foreach}
- {/if}
-</table>
-