diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-11-15 11:52:07 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-11-15 11:52:07 -0500 |
commit | de53fc452a22beedf28a92defe19168153e078cd (patch) | |
tree | bf38e3ae1df07089608a039b071c05c791b4c486 | |
parent | b0aabd0559eb6ca70af2ffeb35299b63d7edf097 (diff) | |
download | fourisland-de53fc452a22beedf28a92defe19168153e078cd.tar.gz fourisland-de53fc452a22beedf28a92defe19168153e078cd.tar.bz2 fourisland-de53fc452a22beedf28a92defe19168153e078cd.zip |
Added holidays to Layouts 4.5 and 6.2
-rw-r--r-- | theme/css.php | 1 | ||||
-rw-r--r-- | theme/css/blog.php | 8 | ||||
-rw-r--r-- | theme/layouts/4.5/holiday.php | 4 | ||||
-rwxr-xr-x | theme/layouts/6.2/holiday.php | 148 | ||||
-rwxr-xr-x | theme/layouts/6.2/style.php | 2 | ||||
-rwxr-xr-x | theme/layouts/7/holiday.php (renamed from theme/css/holiday.php) | 4 | ||||
-rwxr-xr-x | theme/layouts/7/style.php | 1 | ||||
-rwxr-xr-x | theme/post.tpl | 4 |
8 files changed, 165 insertions, 7 deletions
diff --git a/theme/css.php b/theme/css.php index e65d5c6..74e7c09 100644 --- a/theme/css.php +++ b/theme/css.php | |||
@@ -29,6 +29,5 @@ include('layouts/' . getLayout() . '/style.php'); | |||
29 | include('css/blog.php'); | 29 | include('css/blog.php'); |
30 | include('css/bubbles.css'); | 30 | include('css/bubbles.css'); |
31 | include('css/quotes.css'); | 31 | include('css/quotes.css'); |
32 | include('css/holiday.php'); | ||
33 | 32 | ||
34 | ?> | 33 | ?> |
diff --git a/theme/css/blog.php b/theme/css/blog.php index 4c69e57..b84db08 100644 --- a/theme/css/blog.php +++ b/theme/css/blog.php | |||
@@ -36,11 +36,19 @@ span.back-post { | |||
36 | font-size: 0.9em; | 36 | font-size: 0.9em; |
37 | } | 37 | } |
38 | 38 | ||
39 | span.back-post:before { | ||
40 | content: "\ab\a0"; | ||
41 | } | ||
42 | |||
39 | span.next-post { | 43 | span.next-post { |
40 | float: right; | 44 | float: right; |
41 | font-size: 0.9em; | 45 | font-size: 0.9em; |
42 | } | 46 | } |
43 | 47 | ||
48 | span.next-post:after { | ||
49 | content: "\a0\bb"; | ||
50 | } | ||
51 | |||
44 | div.post-date-1 { | 52 | div.post-date-1 { |
45 | width: 45px; | 53 | width: 45px; |
46 | height: 49px; | 54 | height: 49px; |
diff --git a/theme/layouts/4.5/holiday.php b/theme/layouts/4.5/holiday.php index 65c1826..775e52a 100644 --- a/theme/layouts/4.5/holiday.php +++ b/theme/layouts/4.5/holiday.php | |||
@@ -100,9 +100,9 @@ if (!isset($bgcolor)) | |||
100 | { | 100 | { |
101 | $bgcolor='aqua'; | 101 | $bgcolor='aqua'; |
102 | 102 | ||
103 | include("css/day.css"); | 103 | include("layouts/4.5/day.css"); |
104 | } else { | 104 | } else { |
105 | include("css/night.css"); | 105 | include("layouts/4.5/night.css"); |
106 | } | 106 | } |
107 | 107 | ||
108 | ?> | 108 | ?> |
diff --git a/theme/layouts/6.2/holiday.php b/theme/layouts/6.2/holiday.php new file mode 100755 index 0000000..697e2cc --- /dev/null +++ b/theme/layouts/6.2/holiday.php | |||
@@ -0,0 +1,148 @@ | |||
1 | <?php | ||
2 | /* | ||
3 | 444444444 | ||
4 | 4::::::::4 | ||
5 | 4:::::::::4 | ||
6 | 4::::44::::4 | ||
7 | 4::::4 4::::4 Four Island | ||
8 | 4::::4 4::::4 | ||
9 | 4::::4 4::::4 Written and maintained by Starla Insigna | ||
10 | 4::::444444::::444 | ||
11 | 4::::::::::::::::4 theme/layouts/6.2/holiday.php | ||
12 | 4444444444:::::444 | ||
13 | 4::::4 Please do not use, reproduce or steal the | ||
14 | 4::::4 contents of this file without explicit | ||
15 | 4::::4 permission from Hatkirby. | ||
16 | 44::::::44 | ||
17 | 4::::::::4 | ||
18 | 4444444444 | ||
19 | */ | ||
20 | |||
21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | ||
22 | |||
23 | require('headerproc.php'); | ||
24 | include_once('../includes/specialdates.php'); | ||
25 | |||
26 | $bgcolor='aqua'; | ||
27 | |||
28 | if (sd_isSpecialDay('Four Island A')) | ||
29 | { | ||
30 | $bgimgm = 'islandYearly'; | ||
31 | } elseif (sd_isSpecialDay('Christmas Eve')) | ||
32 | { | ||
33 | $bgimgm = 'christmasEve'; | ||
34 | $bgcolor = 'black'; | ||
35 | } elseif (sd_isSpecialDay('Christmas Day')) | ||
36 | { | ||
37 | $bgimgm = 'christmas'; | ||
38 | } elseif (sd_isSpecialDay('New Years Eve')) | ||
39 | { | ||
40 | $bgimgm = 'newYearsEve'; | ||
41 | $bgcolor = 'black'; | ||
42 | } elseif (sd_isSpecialDay('Veterans Day')) | ||
43 | { | ||
44 | $bgimgm = 'veterans'; | ||
45 | } elseif (sd_isSpecialDay('Independance Day')) | ||
46 | { | ||
47 | $bgimgm = '4ofjuly'; | ||
48 | $bgcolor = 'black'; | ||
49 | } elseif (sd_isSpecialDay('Fathers Day')) | ||
50 | { | ||
51 | $bgimgm = 'fathers'; | ||
52 | } elseif (sd_isSpecialDay('Hatkirbys B-Day')) | ||
53 | { | ||
54 | $bgimgm = 'hatkirbybday'; | ||
55 | } elseif (sd_isSpecialDay('Kirby Week')) | ||
56 | { | ||
57 | $bgimgm = 'kirbyweek'; | ||
58 | } elseif (sd_isSpecialDay('Memorial Day')) | ||
59 | { | ||
60 | $bgimgm = 'memorial'; | ||
61 | $bgcolor = 'gray'; | ||
62 | } elseif (sd_isSpecialDay('Mothers Day')) | ||
63 | { | ||
64 | $bgimgm = 'mothers'; | ||
65 | } elseif (sd_isSpecialDay('New Years Day')) | ||
66 | { | ||
67 | $bgimgm = 'newYear'; | ||
68 | } elseif (sd_isSpecialDay('Ash Wednesday')) | ||
69 | { | ||
70 | $bgimgm = 'ashWeds'; | ||
71 | } elseif (sd_isSpecialDay('Columbus Day')) | ||
72 | { | ||
73 | $bgimgm = 'columbus'; | ||
74 | } elseif (sd_isSpecialDay('Easter')) | ||
75 | { | ||
76 | $bgimgm = 'easter'; | ||
77 | } elseif (sd_isSpecialDay('Flag Day')) | ||
78 | { | ||
79 | $bgimgm = 'flagDay'; | ||
80 | } elseif (sd_isSpecialDay('Good Friday')) | ||
81 | { | ||
82 | $bgimgm = 'goodFriday'; | ||
83 | } elseif (sd_isSpecialDay('Groundhog Day')) | ||
84 | { | ||
85 | $bgimgm = 'groundhog'; | ||
86 | } elseif (sd_isSpecialDay('Halloween')) | ||
87 | { | ||
88 | $bgimgm = 'halloween'; | ||
89 | $bgcolor = 'black'; | ||
90 | } elseif (sd_isSpecialDay('Mardi Gras')) | ||
91 | { | ||
92 | $bgimgm = 'mardiGras'; | ||
93 | } elseif (sd_isSpecialDay('Martin Luther King Day')) | ||
94 | { | ||
95 | $bgimgm = 'martinLuther'; | ||
96 | } elseif (sd_isSpecialDay('Valentines Day')) | ||
97 | { | ||
98 | $bgimgm = 'valentines'; | ||
99 | } else { | ||
100 | $bgimgm = 'island6'; | ||
101 | } | ||
102 | |||
103 | ?> | ||
104 | |||
105 | body { | ||
106 | background-color: <?php echo($bgcolor); ?>; | ||
107 | background-image: url(/theme/images/backgrounds/<?php echo($bgimgm); ?>.PNG); | ||
108 | background-position: bottom left; | ||
109 | background-repeat: repeat-x; | ||
110 | background-attachment: fixed; | ||
111 | } | ||
112 | |||
113 | <?php | ||
114 | |||
115 | if ($bgcolor == 'aqua') | ||
116 | { | ||
117 | ?> | ||
118 | |||
119 | div#wrap { | ||
120 | background-color: rgba(255, 255, 255, 0.5); | ||
121 | } | ||
122 | |||
123 | <?php | ||
124 | } else { | ||
125 | ?> | ||
126 | |||
127 | div#wrap { | ||
128 | background-color: rgba(0, 0, 0, 0.75); | ||
129 | } | ||
130 | |||
131 | div#banner { | ||
132 | background-color: black; | ||
133 | background-image: url(/theme/images/fourisland_header_night.png); | ||
134 | } | ||
135 | |||
136 | div#fi-navbar ul li.active img { | ||
137 | background-color: black; | ||
138 | outline: black solid .5em; | ||
139 | } | ||
140 | |||
141 | .light-at-night, .light-at-night-l6p2 { | ||
142 | color: #555555; | ||
143 | } | ||
144 | |||
145 | <?php | ||
146 | } | ||
147 | |||
148 | ?> | ||
diff --git a/theme/layouts/6.2/style.php b/theme/layouts/6.2/style.php index 73bce49..0d619e5 100755 --- a/theme/layouts/6.2/style.php +++ b/theme/layouts/6.2/style.php | |||
@@ -29,4 +29,6 @@ if (((date('G') >= 20) || (date('G') <= 6)) || isset($_GET['night']) && !isset($ | |||
29 | include('layouts/6.2/night.css'); | 29 | include('layouts/6.2/night.css'); |
30 | } | 30 | } |
31 | 31 | ||
32 | include('layouts/6.2/holiday.php'); | ||
33 | |||
32 | ?> | 34 | ?> |
diff --git a/theme/css/holiday.php b/theme/layouts/7/holiday.php index a1639c7..d9a9c10 100755 --- a/theme/css/holiday.php +++ b/theme/layouts/7/holiday.php | |||
@@ -8,7 +8,7 @@ | |||
8 | 4::::4 4::::4 | 8 | 4::::4 4::::4 |
9 | 4::::4 4::::4 Written and maintained by Starla Insigna | 9 | 4::::4 4::::4 Written and maintained by Starla Insigna |
10 | 4::::444444::::444 | 10 | 4::::444444::::444 |
11 | 4::::::::::::::::4 theme/css/holiday.php | 11 | 4::::::::::::::::4 theme/layouts/7/holiday.php |
12 | 4444444444:::::444 | 12 | 4444444444:::::444 |
13 | 4::::4 Please do not use, reproduce or steal the | 13 | 4::::4 Please do not use, reproduce or steal the |
14 | 4::::4 contents of this file without explicit | 14 | 4::::4 contents of this file without explicit |
@@ -21,7 +21,7 @@ | |||
21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | 21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} |
22 | 22 | ||
23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
24 | include('../includes/specialdates.php'); | 24 | include_once('../includes/specialdates.php'); |
25 | 25 | ||
26 | $bgcolor='aqua'; | 26 | $bgcolor='aqua'; |
27 | 27 | ||
diff --git a/theme/layouts/7/style.php b/theme/layouts/7/style.php index 3c44d1e..1062e77 100755 --- a/theme/layouts/7/style.php +++ b/theme/layouts/7/style.php | |||
@@ -23,5 +23,6 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | |||
23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
24 | 24 | ||
25 | include('layouts/7/style.css'); | 25 | include('layouts/7/style.css'); |
26 | include('layouts/7/holiday.php'); | ||
26 | 27 | ||
27 | ?> | 28 | ?> |
diff --git a/theme/post.tpl b/theme/post.tpl index 7bf5481..f17fd45 100755 --- a/theme/post.tpl +++ b/theme/post.tpl | |||
@@ -1,6 +1,6 @@ | |||
1 | <!--BEGIN INTERNAL--> | 1 | <!--BEGIN INTERNAL--> |
2 | <!--BEGIN BACK--><span class="back-post">« <a href="/blog/<!--BACK.CODED-->/"><!--BACK.TITLE--></a></span><!--END BACK--> | 2 | <!--BEGIN BACK--><span class="back-post"><a href="/blog/<!--BACK.CODED-->/"><!--BACK.TITLE--></a></span><!--END BACK--> |
3 | <!--BEGIN NEXT--><span class="next-post"><a href="/blog/<!--NEXT.CODED-->/"><!--NEXT.TITLE--></a> »</span><!--END NEXT--> | 3 | <!--BEGIN NEXT--><span class="next-post"><a href="/blog/<!--NEXT.CODED-->/"><!--NEXT.TITLE--></a></span><!--END NEXT--> |
4 | <!--END INTERNAL--> | 4 | <!--END INTERNAL--> |
5 | 5 | ||
6 | <script type="text/javascript"> | 6 | <script type="text/javascript"> |