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 | |
| 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.
| -rw-r--r-- | styles/minical.css | 7 | ||||
| -rw-r--r-- | styles/plain.css | 7 | ||||
| -rw-r--r-- | templates/header_inc.tpl | 2 | ||||
| -rw-r--r-- | templates/minical.tpl | 3 |
4 files changed, 10 insertions, 9 deletions
diff --git a/styles/minical.css b/styles/minical.css new file mode 100644 index 0000000..80ecec5 --- /dev/null +++ b/styles/minical.css @@ -0,0 +1,7 @@ +.minical td.day { text-align: center; } +.minical .prev { text-align: left; float:left; } +.minical .next { text-align: right; float:right; } +.minical th.dow { font-size: 10pt; } +.minical td.today { font-weight: bold; text-align: center;} +.minical td.selected {background-color: #B0B0B0; text-align: center;} +.minical td.dim {font-size:8pt; background-color: #FFFFFF; } diff --git a/styles/plain.css b/styles/plain.css index 59a05b7..7e9ade8 100644 --- a/styles/plain.css +++ b/styles/plain.css @@ -36,10 +36,3 @@ .caloptions .calbitpage ,.calitems .calbitpage a {background:#bbb;} */ -.minical td.day { text-align: center; } -.minical .prev { text-align: left; float:left; } -.minical .next { text-align: right; float:right; } -.minical th.dow { font-size: 10pt; } -.minical td.today { font-weight: bold; text-align: center;} -.minical td.selected {background-color: #B0B0B0; text-align: center;} -.minical td.dim {font-size:8pt; background-color: #FFFFFF; } 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> |
