diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-11-08 11:33:46 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-11-08 11:33:46 +0000 |
| commit | 2c5ee7b5467a9703b6467b8a892d79e06b69b62f (patch) | |
| tree | c92ebe4dedb0984299f767dbb9954520c338c061 /templates | |
| parent | d5a8088cfcc57e59101dd9c22f0c08ea5651d325 (diff) | |
| download | calendar-2c5ee7b5467a9703b6467b8a892d79e06b69b62f.tar.gz calendar-2c5ee7b5467a9703b6467b8a892d79e06b69b62f.tar.bz2 calendar-2c5ee7b5467a9703b6467b8a892d79e06b69b62f.zip | |
Fix linking of minical css since it can be used from a {minical} tag or in a module and <link> has to be in <head>. Need to figure out how to tell if the minical has been rendered at all or will be by a module to not require the css all the time.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/header_inc.tpl | 2 | ||||
| -rw-r--r-- | templates/minical.tpl | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl index e53d8d0..ae1a1d1 100644 --- a/templates/header_inc.tpl +++ b/templates/header_inc.tpl @@ -1,3 +1,5 @@ {if $smarty.const.ACTIVE_PACKAGE == 'calendar'} <link rel="stylesheet" title="{$style}" type="text/css" href="{$smarty.const.CALENDAR_PKG_URL}styles/plain.css" media="all" /> {/if} +<link rel="stylesheet" title="{$style}" type="text/css" href="{$smarty.const.CALENDAR_PKG_URL}styles/minical.css" media="all" /> + diff --git a/templates/minical.tpl b/templates/minical.tpl index e129c5b..4b40f4c 100644 --- a/templates/minical.tpl +++ b/templates/minical.tpl @@ -1,5 +1,4 @@ {strip} -<link rel="stylesheet" title="{$style}" type="text/css" href="{$smarty.const.CALENDAR_PKG_URL}styles/plain.css" media="all" /> {assign var=calendar_url value="`$smarty.const.CALENDAR_PKG_URL`index.php?todate="} {assign var=calendar_day_url value="`$smarty.const.CALENDAR_PKG_URL`index.php?view_mode=day&todate="} <table class="minical" border="0" cellpadding="1" cellspacing="1"> @@ -10,7 +9,7 @@ </tr> <tr> <td colspan="3" class="last"> - <a href="{$calendar_url}{$last_month}"> < < </a> + <a href="{$calendar_url}{$last_month}"> < < </a> </td> <td colspan="4" class="next"> <a href="{$calendar_url}{$next_month}"> > > </a> |
