From dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 3 Oct 2009 10:30:17 -0400 Subject: 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 --- theme/images/Fourm.gif | Bin 0 -> 23001 bytes theme/images/Fourm_ro.gif | Bin 0 -> 23013 bytes theme/images/Home.gif | Bin 0 -> 22992 bytes theme/images/Home_ro.gif | Bin 0 -> 23014 bytes theme/images/Links.gif | Bin 0 -> 22985 bytes theme/images/Links_ro.gif | Bin 0 -> 23005 bytes theme/images/Login.gif | Bin 0 -> 23311 bytes theme/images/Login_ro.gif | Bin 0 -> 23552 bytes theme/images/Logout.gif | Bin 0 -> 23470 bytes theme/images/Logout_ro.gif | Bin 0 -> 23613 bytes theme/images/Panel.gif | Bin 0 -> 23368 bytes theme/images/Panel_ro.gif | Bin 0 -> 23577 bytes theme/images/Poll.gif | Bin 0 -> 23161 bytes theme/images/Poll_ro.gif | Bin 0 -> 23476 bytes theme/images/Projects.gif | Bin 0 -> 23098 bytes theme/images/Projects_ro.gif | Bin 0 -> 23033 bytes theme/images/Quotes.gif | Bin 0 -> 23969 bytes theme/images/Quotes_ro.gif | Bin 0 -> 23717 bytes theme/images/Random.gif | Bin 0 -> 23142 bytes theme/images/Random_ro.gif | Bin 0 -> 23043 bytes theme/images/Wiki.gif | Bin 0 -> 23256 bytes theme/images/Wiki_ro.gif | Bin 0 -> 23551 bytes theme/images/bg_body_short.gif | Bin 0 -> 384 bytes theme/images/bg_footer.gif | Bin 0 -> 114 bytes theme/images/bg_header.gif | Bin 0 -> 642 bytes theme/images/bg_navbar.gif | Bin 0 -> 206 bytes theme/images/bg_search.gif | Bin 0 -> 837 bytes theme/images/corners_bottom.gif | Bin 0 -> 708 bytes theme/images/corners_left.png | Bin 0 -> 195 bytes theme/images/corners_right.png | Bin 0 -> 201 bytes theme/images/fourisland_header.png | Bin 0 -> 24124 bytes theme/images/fourisland_header_night.png | Bin 0 -> 19678 bytes theme/images/headers/ctnh.png | Bin 0 -> 20000 bytes theme/images/headers/fourm.png | Bin 0 -> 10596 bytes theme/images/headers/hatkirbybday.png | Bin 0 -> 12384 bytes theme/images/headers/islandYearly.png | Bin 0 -> 4527 bytes theme/images/headers/kfm.png | Bin 0 -> 10819 bytes theme/images/headers/links.png | Bin 0 -> 10711 bytes theme/images/headers/main.png | Bin 0 -> 12479 bytes theme/images/headers/main.xcf | Bin 0 -> 62769 bytes theme/images/headers/memorial.png | Bin 0 -> 11355 bytes theme/images/headers/mothers.png | Bin 0 -> 12532 bytes theme/images/headers/potw.png | Bin 0 -> 10919 bytes theme/images/headers/projects.png | Bin 0 -> 12846 bytes theme/images/headers/projects.xcf | Bin 0 -> 87437 bytes theme/images/headers/quotes.png | Bin 0 -> 12260 bytes theme/images/headers/random.png | Bin 0 -> 11632 bytes theme/images/headers/short.png | Bin 0 -> 10776 bytes theme/images/sides_top.gif | Bin 0 -> 2559 bytes 49 files changed, 0 insertions(+), 0 deletions(-) create mode 100755 theme/images/Fourm.gif create mode 100755 theme/images/Fourm_ro.gif create mode 100755 theme/images/Home.gif create mode 100755 theme/images/Home_ro.gif create mode 100755 theme/images/Links.gif create mode 100755 theme/images/Links_ro.gif create mode 100755 theme/images/Login.gif create mode 100755 theme/images/Login_ro.gif create mode 100755 theme/images/Logout.gif create mode 100755 theme/images/Logout_ro.gif create mode 100755 theme/images/Panel.gif create mode 100755 theme/images/Panel_ro.gif create mode 100755 theme/images/Poll.gif create mode 100755 theme/images/Poll_ro.gif create mode 100755 theme/images/Projects.gif create mode 100755 theme/images/Projects_ro.gif create mode 100755 theme/images/Quotes.gif create mode 100755 theme/images/Quotes_ro.gif create mode 100755 theme/images/Random.gif create mode 100755 theme/images/Random_ro.gif create mode 100755 theme/images/Wiki.gif create mode 100755 theme/images/Wiki_ro.gif create mode 100755 theme/images/bg_body_short.gif create mode 100755 theme/images/bg_footer.gif create mode 100755 theme/images/bg_header.gif create mode 100755 theme/images/bg_navbar.gif create mode 100755 theme/images/bg_search.gif create mode 100755 theme/images/corners_bottom.gif create mode 100755 theme/images/corners_left.png create mode 100755 theme/images/corners_right.png create mode 100755 theme/images/fourisland_header.png create mode 100644 theme/images/fourisland_header_night.png create mode 100755 theme/images/headers/ctnh.png create mode 100755 theme/images/headers/fourm.png create mode 100755 theme/images/headers/hatkirbybday.png create mode 100755 theme/images/headers/islandYearly.png create mode 100755 theme/images/headers/kfm.png create mode 100755 theme/images/headers/links.png create mode 100755 theme/images/headers/main.png create mode 100755 theme/images/headers/main.xcf create mode 100755 theme/images/headers/memorial.png create mode 100755 theme/images/headers/mothers.png create mode 100755 theme/images/headers/potw.png create mode 100755 theme/images/headers/projects.png create mode 100755 theme/images/headers/projects.xcf create mode 100755 theme/images/headers/quotes.png create mode 100755 theme/images/headers/random.png create mode 100755 theme/images/headers/short.png create mode 100755 theme/images/sides_top.gif (limited to 'theme/images') diff --git a/theme/images/Fourm.gif b/theme/images/Fourm.gif new file mode 100755 index 0000000..1365fd6 Binary files /dev/null and b/theme/images/Fourm.gif differ diff --git a/theme/images/Fourm_ro.gif b/theme/images/Fourm_ro.gif new file mode 100755 index 0000000..8a1cad6 Binary files /dev/null and b/theme/images/Fourm_ro.gif differ diff --git a/theme/images/Home.gif b/theme/images/Home.gif new file mode 100755 index 0000000..e3e523d Binary files /dev/null and b/theme/images/Home.gif differ diff --git a/theme/images/Home_ro.gif b/theme/images/Home_ro.gif new file mode 100755 index 0000000..b409d75 Binary files /dev/null and b/theme/images/Home_ro.gif differ diff --git a/theme/images/Links.gif b/theme/images/Links.gif new file mode 100755 index 0000000..a223b3e Binary files /dev/null and b/theme/images/Links.gif differ diff --git a/theme/images/Links_ro.gif b/theme/images/Links_ro.gif new file mode 100755 index 0000000..d540220 Binary files /dev/null and b/theme/images/Links_ro.gif differ diff --git a/theme/images/Login.gif b/theme/images/Login.gif new file mode 100755 index 0000000..3573589 Binary files /dev/null and b/theme/images/Login.gif differ diff --git a/theme/images/Login_ro.gif b/theme/images/Login_ro.gif new file mode 100755 index 0000000..404f305 Binary files /dev/null and b/theme/images/Login_ro.gif differ diff --git a/theme/images/Logout.gif b/theme/images/Logout.gif new file mode 100755 index 0000000..12696fe Binary files /dev/null and b/theme/images/Logout.gif differ diff --git a/theme/images/Logout_ro.gif b/theme/images/Logout_ro.gif new file mode 100755 index 0000000..ff103a2 Binary files /dev/null and b/theme/images/Logout_ro.gif differ diff --git a/theme/images/Panel.gif b/theme/images/Panel.gif new file mode 100755 index 0000000..42075dc Binary files /dev/null and b/theme/images/Panel.gif differ diff --git a/theme/images/Panel_ro.gif b/theme/images/Panel_ro.gif new file mode 100755 index 0000000..e64c5ad Binary files /dev/null and b/theme/images/Panel_ro.gif differ diff --git a/theme/images/Poll.gif b/theme/images/Poll.gif new file mode 100755 index 0000000..08815d2 Binary files /dev/null and b/theme/images/Poll.gif differ diff --git a/theme/images/Poll_ro.gif b/theme/images/Poll_ro.gif new file mode 100755 index 0000000..6a4549f Binary files /dev/null and b/theme/images/Poll_ro.gif differ diff --git a/theme/images/Projects.gif b/theme/images/Projects.gif new file mode 100755 index 0000000..bf0cfc7 Binary files /dev/null and b/theme/images/Projects.gif differ diff --git a/theme/images/Projects_ro.gif b/theme/images/Projects_ro.gif new file mode 100755 index 0000000..718ab03 Binary files /dev/null and b/theme/images/Projects_ro.gif differ diff --git a/theme/images/Quotes.gif b/theme/images/Quotes.gif new file mode 100755 index 0000000..8bf0289 Binary files /dev/null and b/theme/images/Quotes.gif differ diff --git a/theme/images/Quotes_ro.gif b/theme/images/Quotes_ro.gif new file mode 100755 index 0000000..f15831c Binary files /dev/null and b/theme/images/Quotes_ro.gif differ diff --git a/theme/images/Random.gif b/theme/images/Random.gif new file mode 100755 index 0000000..94cb4be Binary files /dev/null and b/theme/images/Random.gif differ diff --git a/theme/images/Random_ro.gif b/theme/images/Random_ro.gif new file mode 100755 index 0000000..4e62f24 Binary files /dev/null and b/theme/images/Random_ro.gif differ diff --git a/theme/images/Wiki.gif b/theme/images/Wiki.gif new file mode 100755 index 0000000..e4a0cc7 Binary files /dev/null and b/theme/images/Wiki.gif differ diff --git a/theme/images/Wiki_ro.gif b/theme/images/Wiki_ro.gif new file mode 100755 index 0000000..b8d9438 Binary files /dev/null and b/theme/images/Wiki_ro.gif differ diff --git a/theme/images/bg_body_short.gif b/theme/images/bg_body_short.gif new file mode 100755 index 0000000..b396204 Binary files /dev/null and b/theme/images/bg_body_short.gif differ diff --git a/theme/images/bg_footer.gif b/theme/images/bg_footer.gif new file mode 100755 index 0000000..ff3f511 Binary files /dev/null and b/theme/images/bg_footer.gif differ diff --git a/theme/images/bg_header.gif b/theme/images/bg_header.gif new file mode 100755 index 0000000..46c22e8 Binary files /dev/null and b/theme/images/bg_header.gif differ diff --git a/theme/images/bg_navbar.gif b/theme/images/bg_navbar.gif new file mode 100755 index 0000000..d96c6ea Binary files /dev/null and b/theme/images/bg_navbar.gif differ diff --git a/theme/images/bg_search.gif b/theme/images/bg_search.gif new file mode 100755 index 0000000..79e040e Binary files /dev/null and b/theme/images/bg_search.gif differ diff --git a/theme/images/corners_bottom.gif b/theme/images/corners_bottom.gif new file mode 100755 index 0000000..bea794f Binary files /dev/null and b/theme/images/corners_bottom.gif differ diff --git a/theme/images/corners_left.png b/theme/images/corners_left.png new file mode 100755 index 0000000..256bde3 Binary files /dev/null and b/theme/images/corners_left.png differ diff --git a/theme/images/corners_right.png b/theme/images/corners_right.png new file mode 100755 index 0000000..df41823 Binary files /dev/null and b/theme/images/corners_right.png differ diff --git a/theme/images/fourisland_header.png b/theme/images/fourisland_header.png new file mode 100755 index 0000000..35f7886 Binary files /dev/null and b/theme/images/fourisland_header.png differ diff --git a/theme/images/fourisland_header_night.png b/theme/images/fourisland_header_night.png new file mode 100644 index 0000000..25502a0 Binary files /dev/null and b/theme/images/fourisland_header_night.png differ diff --git a/theme/images/headers/ctnh.png b/theme/images/headers/ctnh.png new file mode 100755 index 0000000..b9542fc Binary files /dev/null and b/theme/images/headers/ctnh.png differ diff --git a/theme/images/headers/fourm.png b/theme/images/headers/fourm.png new file mode 100755 index 0000000..e7bebde Binary files /dev/null and b/theme/images/headers/fourm.png differ diff --git a/theme/images/headers/hatkirbybday.png b/theme/images/headers/hatkirbybday.png new file mode 100755 index 0000000..ba7bff0 Binary files /dev/null and b/theme/images/headers/hatkirbybday.png differ diff --git a/theme/images/headers/islandYearly.png b/theme/images/headers/islandYearly.png new file mode 100755 index 0000000..099d963 Binary files /dev/null and b/theme/images/headers/islandYearly.png differ diff --git a/theme/images/headers/kfm.png b/theme/images/headers/kfm.png new file mode 100755 index 0000000..cc568ec Binary files /dev/null and b/theme/images/headers/kfm.png differ diff --git a/theme/images/headers/links.png b/theme/images/headers/links.png new file mode 100755 index 0000000..b24ded0 Binary files /dev/null and b/theme/images/headers/links.png differ diff --git a/theme/images/headers/main.png b/theme/images/headers/main.png new file mode 100755 index 0000000..009d3ac Binary files /dev/null and b/theme/images/headers/main.png differ diff --git a/theme/images/headers/main.xcf b/theme/images/headers/main.xcf new file mode 100755 index 0000000..fd37ee4 Binary files /dev/null and b/theme/images/headers/main.xcf differ diff --git a/theme/images/headers/memorial.png b/theme/images/headers/memorial.png new file mode 100755 index 0000000..b68b97d Binary files /dev/null and b/theme/images/headers/memorial.png differ diff --git a/theme/images/headers/mothers.png b/theme/images/headers/mothers.png new file mode 100755 index 0000000..e656d7d Binary files /dev/null and b/theme/images/headers/mothers.png differ diff --git a/theme/images/headers/potw.png b/theme/images/headers/potw.png new file mode 100755 index 0000000..9ce3174 Binary files /dev/null and b/theme/images/headers/potw.png differ diff --git a/theme/images/headers/projects.png b/theme/images/headers/projects.png new file mode 100755 index 0000000..d59f47a Binary files /dev/null and b/theme/images/headers/projects.png differ diff --git a/theme/images/headers/projects.xcf b/theme/images/headers/projects.xcf new file mode 100755 index 0000000..f1950ad Binary files /dev/null and b/theme/images/headers/projects.xcf differ diff --git a/theme/images/headers/quotes.png b/theme/images/headers/quotes.png new file mode 100755 index 0000000..9fb966e Binary files /dev/null and b/theme/images/headers/quotes.png differ diff --git a/theme/images/headers/random.png b/theme/images/headers/random.png new file mode 100755 index 0000000..e7db228 Binary files /dev/null and b/theme/images/headers/random.png differ diff --git a/theme/images/headers/short.png b/theme/images/headers/short.png new file mode 100755 index 0000000..4d4d267 Binary files /dev/null and b/theme/images/headers/short.png differ diff --git a/theme/images/sides_top.gif b/theme/images/sides_top.gif new file mode 100755 index 0000000..a84383a Binary files /dev/null and b/theme/images/sides_top.gif differ -- cgit 1.4.1