<?php /** * This script define the settings needed by the themes object * to handle site themes. * * * store_type : how do we remember client theme choice ? SESS, COOK * store_ref : which cookies, sessions channel do we use to store that choice ? * default : The reference of the theme to use when negotiation fails. * * A list of themes, and for each * * name : The name displayed into the theme selection box * class: the object used to handle header,footer generation (thm_???) * browser : An relationship array linking a Browsers to a value, used to negotiate best theme for client browser * * + a list of path, where we can expect find required files * tpl : path to templates files (relative to called script), can be a list of path separated by the value of PATH_SEPARATOR constant * js : path to javascript scripts (relative to docroot) * * + a List of possible variant based on image en css (skins) * each variant is defined by a name and a path (relative to docroot) * * @author Benjamin Gillissen <hide@address.com> * * ************************************************************** Copyright (C) 2007 Benjamin Gillissen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at: http://www.gnu.org/copyleft/gpl.html * ************************************************************** */ $o['default'] = 0; $i=0; $o['themes'][$i]['name'] = 'Swun Default Theme'; $o['themes'][$i]['class'] = 'swun'; $o['themes'][$i]['browser'] = Array( 'Firefox' => 20, 'Mozilla' => 20, 'Konqueror' => 20); $o['themes'][$i]['custum_img'] = TRUE; $o['themes'][$i]['custum_css'] = TRUE; $o['themes'][$i]['vars']['tpl'] = './themes/swun/templates'; $o['themes'][$i]['vars']['js'] = browsing::basedir().'/themes/swun/js'; $o['themes'][$i]['vars']['img'][0]['name'] = 'Default Image Set'; $o['themes'][$i]['vars']['img'][0]['img'] = browsing::basedir().'/themes/swun/image'; $o['themes'][$i]['vars']['css'][0]['name'] = 'Darkgray Skin'; $o['themes'][$i]['vars']['css'][0]['css'] = browsing::basedir().'/themes/swun/css/dark'; /*broken $o['themes'][$i]['vars']['css'][1]['name'] = 'Lightgray Skin'; $o['themes'][$i]['vars']['css'][1]['css'] = browsing::basedir().'/themes/swun/css/light'; */ /* $i++; $o['themes'][$i]['name'] = 'CORE Failsave Theme'; $o['themes'][$i]['class'] = 'failsave'; $o['themes'][$i]['browser'] = Array(); $o['themes'][$i]['vars']['tpl'] = './themes/swun/templates'; $o['themes'][$i]['vars']['js'] = browsing::basedir().'/themes/swun/js'; $o['themes'][$i]['vars']['img'][0]['name'] = 'Default Image Set'; $o['themes'][$i]['vars']['img'][0]['img'] = browsing::basedir().'/themes/swun/image'; $o['themes'][$i]['vars']['css'][0]['name'] = 'Default Skin'; $o['themes'][$i]['vars']['css'][0]['css'] = browsing::basedir().'/themes/swun/css/dark'; */ return $o;