diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 17:27:03 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 17:27:03 -0500 |
commit | 24503e3abe705acde2df159aeae61be0d009f92e (patch) | |
tree | 8debbd53dcd0db2f5934c5e2af4e697e3787781d /theme/css/backgrounds.php | |
download | fourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.gz fourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.bz2 fourisland-24503e3abe705acde2df159aeae61be0d009f92e.zip |
Imported sources
Diffstat (limited to 'theme/css/backgrounds.php')
-rwxr-xr-x | theme/css/backgrounds.php | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/theme/css/backgrounds.php b/theme/css/backgrounds.php new file mode 100755 index 0000000..51e7dbf --- /dev/null +++ b/theme/css/backgrounds.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/css/backgrounds.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 | ?> | ||
25 | /* Four Island Background CSS */ | ||
26 | <?php | ||
27 | |||
28 | include_once('../includes/specialdates.php'); | ||
29 | |||
30 | if (sd_ifNoSpecialDay()) | ||
31 | { | ||
32 | $bgimgm = 'island6'; | ||
33 | } elseif (sd_isSpecialDay('Four Island A')) | ||
34 | { | ||
35 | $bgimgm = 'islandYearly'; | ||
36 | } elseif (sd_isSpecialDay('Christmas Eve')) | ||
37 | { | ||
38 | $bgimgm = 'christmasEve'; | ||
39 | $bgcolor = 'black'; | ||
40 | } elseif (sd_isSpecialDay('Christmas Day')) | ||
41 | { | ||
42 | $bgimgm = 'christmas'; | ||
43 | } elseif (sd_isSpecialDay('New Years Eve')) | ||
44 | { | ||
45 | $bgimgm = 'newYearsEve'; | ||
46 | $bgcolor = 'black'; | ||
47 | } elseif (sd_isSpecialDay('Veterans Day')) | ||
48 | { | ||
49 | $bgimgm = 'veterans'; | ||
50 | } elseif (sd_isSpecialDay('Independance Day')) | ||
51 | { | ||
52 | $bgimgm = '4ofjuly'; | ||
53 | $bgcolor = 'black'; | ||
54 | } elseif (sd_isSpecialDay('Fathers Day')) | ||
55 | { | ||
56 | $bgimgm = 'fathers'; | ||
57 | } elseif (sd_isSpecialDay('Hatkirbys B-Day')) | ||
58 | { | ||
59 | $bgimgm = 'hatkirbybday'; | ||
60 | } elseif (sd_isSpecialDay('Kirby Week')) | ||
61 | { | ||
62 | $bgimgm = 'kirbyweek'; | ||
63 | } elseif (sd_isSpecialDay('Memorial Day')) | ||
64 | { | ||
65 | $bgimgm = 'memorial'; | ||
66 | $bgcolor = 'gray'; | ||
67 | } elseif (sd_isSpecialDay('Mothers Day')) | ||
68 | { | ||
69 | $bgimgm = 'mothers'; | ||
70 | } elseif (sd_isSpecialDay('New Years Day')) | ||
71 | { | ||
72 | $bgimgm = 'newYear'; | ||
73 | } elseif (sd_isSpecialDay('Ash Wednesday')) | ||
74 | { | ||
75 | $bgimgm = 'ashWeds'; | ||
76 | } elseif (sd_isSpecialDay('Columbus Day')) | ||
77 | { | ||
78 | $bgimgm = 'columbus'; | ||
79 | } elseif (sd_isSpecialDay('Easter')) | ||
80 | { | ||
81 | $bgimgm = 'easter'; | ||
82 | } elseif (sd_isSpecialDay('Flag Day')) | ||
83 | { | ||
84 | $bgimgm = 'flagDay'; | ||
85 | } elseif (sd_isSpecialDay('Good Friday')) | ||
86 | { | ||
87 | $bgimgm = 'goodFriday'; | ||
88 | } elseif (sd_isSpecialDay('Groundhog Day')) | ||
89 | { | ||
90 | $bgimgm = 'groundhog'; | ||
91 | } elseif (sd_isSpecialDay('Halloween')) | ||
92 | { | ||
93 | $bgimgm = 'halloween'; | ||
94 | $bgcolor = 'black'; | ||
95 | } elseif (sd_isSpecialDay('Mardi Gras')) | ||
96 | { | ||
97 | $bgimgm = 'mardiGras'; | ||
98 | } elseif (sd_isSpecialDay('Martin Luther King Day')) | ||
99 | { | ||
100 | $bgimgm = 'martinLuther'; | ||
101 | } elseif (sd_isSpecialDay('Valentines Day')) | ||
102 | { | ||
103 | $bgimgm = 'valentines'; | ||
104 | } else { | ||
105 | $bgimgm = 'island6'; | ||
106 | } | ||
107 | |||
108 | if (isset($_GET['nolayout'])) | ||
109 | { | ||
110 | if ((date('G') >= 20) || (date('G') <= 6)) | ||
111 | { | ||
112 | // $bodyID = 'night'; | ||
113 | } else { | ||
114 | $bodyID = 'day'; | ||
115 | } | ||
116 | } else { | ||
117 | $bodyID = $_GET['id']; | ||
118 | } | ||
119 | |||
120 | if (!isset($bgcolor)) {$bgcolor='aqua';} | ||
121 | if (($bgimgm == 'island6') && ($bodyID == 'night')) {$bgcolor='black';} | ||
122 | |||
123 | ?> | ||
124 | /* Body */ | ||
125 | |||
126 | body { | ||
127 | background-color: <?php echo($bgcolor); ?>; | ||
128 | background-image: url(/theme/images/backgrounds/<?php echo($bgimgm); ?>.PNG); | ||
129 | background-repeat: repeat-x; | ||
130 | background-attachment: fixed; | ||
131 | background-position: bottom left; | ||
132 | font-family: Arial, FreeSans; | ||
133 | margin: 0px; | ||
134 | padding: 0px 0px 30px !important; | ||
135 | } | ||
136 | |||
137 | <?php | ||
138 | |||
139 | if ($bgimgm == 'island6') | ||
140 | { | ||
141 | ?> | ||
142 | body#night { | ||
143 | background: black url(/theme/images/backgrounds/island6night.PNG) repeat-x fixed bottom left; | ||
144 | } | ||
145 | |||
146 | <?php | ||
147 | } | ||
148 | ?> | ||