summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2007-11-08 11:45:16 +0000
committerNick Palmer <nick@sluggardy.net>2007-11-08 11:45:16 +0000
commitd6d48143a5445fc87ccc11a9362414aa988dade3 (patch)
treee037b6219cc21cc7b709fb89b60be79f1bd62ad3
parent2c5ee7b5467a9703b6467b8a892d79e06b69b62f (diff)
downloadcalendar-d6d48143a5445fc87ccc11a9362414aa988dade3.tar.gz
calendar-d6d48143a5445fc87ccc11a9362414aa988dade3.tar.bz2
calendar-d6d48143a5445fc87ccc11a9362414aa988dade3.zip
Set a flag to indicate the minical has been rendered and only include minical css if it has.
-rw-r--r--templates/header_inc.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl
index ae1a1d1..ee92384 100644
--- a/templates/header_inc.tpl
+++ b/templates/header_inc.tpl
@@ -1,5 +1,7 @@
{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" />
+{if $minical}
+ <link rel="stylesheet" title="{$style}" type="text/css" href="{$smarty.const.CALENDAR_PKG_URL}styles/minical.css" media="all" />
+{/if}