| 1 |
<?php |
<?php |
| 2 |
// $Id: template.php,v 1.1.2.2 2009/04/13 21:22:20 skiquel Exp $ |
// $Id: template.php,v 1.1.2.3 2009/04/20 09:52:45 skiquel Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 176 |
'!datetime' => format_date($node->created), |
'!datetime' => format_date($node->created), |
| 177 |
)); |
)); |
| 178 |
} |
} |
| 179 |
|
|
| 180 |
|
if ($GLOBALS['theme'] == 'splender') { // If we're in the main theme |
| 181 |
|
if (theme_get_setting('splender_layout') == 'border-politics-fixed') { |
| 182 |
|
drupal_add_css(drupal_get_path('theme', 'splender') . '/layout-fixed.css', 'theme', 'all'); |
| 183 |
|
} |
| 184 |
|
else { |
| 185 |
|
drupal_add_css(drupal_get_path('theme', 'splender') . '/layout-liquid.css', 'theme', 'all'); |
| 186 |
|
} |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
/** |
| 190 |
|
* Implements hook_color() |
| 191 |
|
* Color replacement method(s): 'shift' (using base) |
| 192 |
|
*/ |
| 193 |
|
function splender_color() { |
| 194 |
|
/** |
| 195 |
|
* $color = array() (Required) |
| 196 |
|
* For essential scheme information. |
| 197 |
|
* |
| 198 |
|
*/ |
| 199 |
|
$color = array( |
| 200 |
|
/** |
| 201 |
|
* 'replacement methods' |
| 202 |
|
* Declare replacement replacement methods in the 'replacement methods' array, |
| 203 |
|
* in the order you want them to work. |
| 204 |
|
* They are comprised different algorithms to change your colors. |
| 205 |
|
* replacement methods like 'shift' can accept different options and behave differently. |
| 206 |
|
* To change the order of the replacement methods color replacement, put them in order. |
| 207 |
|
*/ |
| 208 |
|
'replacement methods' => array( |
| 209 |
|
/** |
| 210 |
|
* 'shift' method |
| 211 |
|
* Requires 'base-only', or 'base', and/or'link' and/or 'text' |
| 212 |
|
*/ |
| 213 |
|
'shift' => array('base'), |
| 214 |
|
), |
| 215 |
|
|
| 216 |
|
/** |
| 217 |
|
* 'fields' (Required) |
| 218 |
|
* The machine-readable names of color fields. The name will help you |
| 219 |
|
* and your theme users identify colors. |
| 220 |
|
*/ |
| 221 |
|
'fields' => array('base'), |
| 222 |
|
|
| 223 |
|
/** |
| 224 |
|
* 'premade schemes' (Required) |
| 225 |
|
* A list of pre-made schemes that will be available for install by default. |
| 226 |
|
* The scheme name, human-readable, is followed by hex values separated by |
| 227 |
|
* commas (no spaces). The colors are to be ordered respectable to 'fields'. |
| 228 |
|
* |
| 229 |
|
* This scheme uses a special shift feature called 'base-only'. |
| 230 |
|
* So we only mention a single color, and the rest of the work |
| 231 |
|
* is done for us. |
| 232 |
|
*/ |
| 233 |
|
'premade schemes' => array( |
| 234 |
|
'Blue' => array('base' => '#15316a'), |
| 235 |
|
'Gold' => array('base' => '#6E720D'), |
| 236 |
|
'Green' => array('base' => '#11551c'), |
| 237 |
|
'Orange' => array('base' => '#72380D'), |
| 238 |
|
'Purple' => array('base' => '#24156A'), |
| 239 |
|
'Red' => array('base' => '#a00025'), |
| 240 |
|
'Rose' => array('base' => '#72170D'), |
| 241 |
|
'Aqua' => array('base' => '#0075a0'), |
| 242 |
|
|
| 243 |
|
), |
| 244 |
|
|
| 245 |
|
/** |
| 246 |
|
* 'default scheme' (Required) |
| 247 |
|
* A scheme name from one in your 'premade schemes' list. |
| 248 |
|
*/ |
| 249 |
|
'default scheme' => 'Blue', |
| 250 |
|
|
| 251 |
|
/** |
| 252 |
|
* 'reference scheme' (Required) |
| 253 |
|
* A scheme name from one in your 'premade schemes' list. |
| 254 |
|
* On schemes which use the 'base', 'link' or 'text' flag, always mention this. |
| 255 |
|
* Other schemes will be shifted against the fields of the reference one. |
| 256 |
|
*/ |
| 257 |
|
'reference scheme' => 'Blue', |
| 258 |
|
|
| 259 |
|
/** |
| 260 |
|
* 'stylesheets' (Required) |
| 261 |
|
* Path to your CSS file relevant to the root of your theme directory. |
| 262 |
|
* Can mention an array of stylesheets. |
| 263 |
|
*/ |
| 264 |
|
'stylesheets' => array('splender.css'), |
| 265 |
|
|
| 266 |
|
/** |
| 267 |
|
* 'blend target' (Required) |
| 268 |
|
* Used as a target color for image and shifting colors to and fro. |
| 269 |
|
* Usually #ffffff, #000000, or #666666 can do. |
| 270 |
|
*/ |
| 271 |
|
'blend target' => '#ffffff' |
| 272 |
|
); |
| 273 |
|
|
| 274 |
|
return $color; |
| 275 |
|
} |