diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2009-10-03 10:30:17 -0400 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2009-10-03 10:30:17 -0400 |
| commit | dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893 (patch) | |
| tree | 511b0f752889172163f3801cdbe311f0efc55540 /theme/layouts/4.5/holiday.php | |
| parent | 0e4089184a44719fbd1284acb047ab7547674412 (diff) | |
| download | fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.tar.gz fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.tar.bz2 fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.zip | |
Created Theme Switcher
Also rewrote the way layouts work. Now, each layout requires a "layout.tpl" file (which contains the header and footer for the layout) and a "style.php"
file (which contains and can include other files that contain the CSS for the layout). Each layout has it's own folder in theme/layouts and you can switch
between them using a combo box in the Hatbar.
Layouts 6.2 and 4.5 have been modified to work with new Layout 7 features such as AJAX, and they should be relatively free of bugs. Layout 3 has not yet
been transferred because since it is pre-The New Four Island, it will be very difficult to do so.
This changeset requires manual external code changes:
* The line below must be added above the functions.php include in The Fourm's funnctions.php
require('/svr/www/hatkirby/fourisland/main/includes/session.php');
* The block of Four Island code in The Fourm's page_header() function should be replaced with:
global $fi_pagetitle;
$fi_pagetitle = $page_title;
ob_start();
* The block of Four Island code in The Fourm's page_footer() function should be replaced with:
global $fi_pagetitle;
$content = ob_get_contents();
ob_end_clean();
$noRightbar = 1;
$onFourm = 1;
$pageCategory = 'fourm';
if ($fi_pagetitle == 'Index page')
{
$title = 'The Fourm';
} else if (strpos($fi_pagetitle, 'View topic') !== FALSE)
{
$title = str_replace('View topic - ', 'Topic: ', $fi_pagetitle) . ' - The Fourm';
} else if (strpos($fi_pagetitle, 'View forum') !== FALSE)
{
$title = str_replace('View forum - ', 'Fourm: ', $fi_pagetitle) . ' - The Fourm';
} else if (strpos($fi_pagetitle, 'Viewing profile') !== FALSE)
{
$title = str_replace('Viewing profile - ', 'Member: ', $fi_pagetitle) . ' - The Fourm';
} else {
$title = $fi_pagetitle . ' - The Fourm';
}
if ($_GET['view'] != 'print')
{
include('/svr/www/hatkirby/fourisland/main/includes/layout.php');
} else {
echo $content;
}
Closes #117
Diffstat (limited to 'theme/layouts/4.5/holiday.php')
| -rw-r--r-- | theme/layouts/4.5/holiday.php | 112 |
1 files changed, 112 insertions, 0 deletions
| diff --git a/theme/layouts/4.5/holiday.php b/theme/layouts/4.5/holiday.php new file mode 100644 index 0000000..65c1826 --- /dev/null +++ b/theme/layouts/4.5/holiday.php | |||
| @@ -0,0 +1,112 @@ | |||
| 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/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 | |||
| 25 | if (sd_isSpecialDay('Four Island A')) | ||
| 26 | { | ||
| 27 | $bgimgm = 'islandYearly'; | ||
| 28 | } elseif (sd_isSpecialDay('Christmas Eve')) | ||
| 29 | { | ||
| 30 | $bgimgm = 'christmasEve'; | ||
| 31 | $bgcolor = 'black'; | ||
| 32 | } elseif (sd_isSpecialDay('Christmas Day')) | ||
| 33 | { | ||
| 34 | $bgimgm = 'christmas'; | ||
| 35 | } elseif (sd_isSpecialDay('New Years Eve')) | ||
| 36 | { | ||
| 37 | $bgimgm = 'newYearsEve'; | ||
| 38 | $bgcolor = 'black'; | ||
| 39 | } elseif (sd_isSpecialDay('Veterans Day')) | ||
| 40 | { | ||
| 41 | $bgimgm = 'veterans'; | ||
| 42 | } elseif (sd_isSpecialDay('Independance Day')) | ||
| 43 | { | ||
| 44 | $bgimgm = '4ofjuly'; | ||
| 45 | $bgcolor = 'black'; | ||
| 46 | } elseif (sd_isSpecialDay('Fathers Day')) | ||
| 47 | { | ||
| 48 | $bgimgm = 'fathers'; | ||
| 49 | } elseif (sd_isSpecialDay('Hatkirbys B-Day')) | ||
| 50 | { | ||
| 51 | $bgimgm = 'hatkirbybday'; | ||
| 52 | } elseif (sd_isSpecialDay('Kirby Week')) | ||
| 53 | { | ||
| 54 | $bgimgm = 'kirbyweek'; | ||
| 55 | } elseif (sd_isSpecialDay('Memorial Day')) | ||
| 56 | { | ||
| 57 | $bgimgm = 'memorial'; | ||
| 58 | $bgcolor = 'gray'; | ||
| 59 | } elseif (sd_isSpecialDay('Mothers Day')) | ||
| 60 | { | ||
| 61 | $bgimgm = 'mothers'; | ||
| 62 | } elseif (sd_isSpecialDay('New Years Day')) | ||
| 63 | { | ||
| 64 | $bgimgm = 'newYear'; | ||
| 65 | } elseif (sd_isSpecialDay('Ash Wednesday')) | ||
| 66 | { | ||
| 67 | $bgimgm = 'ashWeds'; | ||
| 68 | } elseif (sd_isSpecialDay('Columbus Day')) | ||
| 69 | { | ||
| 70 | $bgimgm = 'columbus'; | ||
| 71 | } elseif (sd_isSpecialDay('Easter')) | ||
| 72 | { | ||
| 73 | $bgimgm = 'easter'; | ||
| 74 | } elseif (sd_isSpecialDay('Flag Day')) | ||
| 75 | { | ||
| 76 | $bgimgm = 'flagDay'; | ||
| 77 | } elseif (sd_isSpecialDay('Good Friday')) | ||
| 78 | { | ||
| 79 | $bgimgm = 'goodFriday'; | ||
| 80 | } elseif (sd_isSpecialDay('Groundhog Day')) | ||
| 81 | { | ||
| 82 | $bgimgm = 'groundhog'; | ||
| 83 | } elseif (sd_isSpecialDay('Halloween')) | ||
| 84 | { | ||
| 85 | $bgimgm = 'halloween'; | ||
| 86 | $bgcolor = 'black'; | ||
| 87 | } elseif (sd_isSpecialDay('Mardi Gras')) | ||
| 88 | { | ||
| 89 | $bgimgm = 'mardiGras'; | ||
| 90 | } elseif (sd_isSpecialDay('Martin Luther King Day')) | ||
| 91 | { | ||
| 92 | $bgimgm = 'martinLuther'; | ||
| 93 | } elseif (sd_isSpecialDay('Valentines Day')) | ||
| 94 | { | ||
| 95 | $bgimgm = 'valentines'; | ||
| 96 | } | ||
| 97 | |||
| 98 | $bodyID = $_GET['id']; | ||
| 99 | if (!isset($bgcolor)) | ||
| 100 | { | ||
| 101 | $bgcolor='aqua'; | ||
| 102 | |||
| 103 | include("css/day.css"); | ||
| 104 | } else { | ||
| 105 | include("css/night.css"); | ||
| 106 | } | ||
| 107 | |||
| 108 | ?> | ||
| 109 | |||
| 110 | body { | ||
| 111 | background-image: url(/theme/images/backgrounds/<?php echo($bgimgm); ?>.PNG) !important; | ||
| 112 | } | ||
