| 1 |
<?php
|
| 2 |
// $Id: theme-settings-init.php,v 1.1.2.1 2008/02/14 11:38:36 johnalbin Exp $
|
| 3 |
|
| 4 |
if (is_null(theme_get_setting('zen_block_editing'))) {
|
| 5 |
global $theme_key;
|
| 6 |
|
| 7 |
/*
|
| 8 |
* Modify the values in $defaults below if you want the subtheme to have
|
| 9 |
* different defaults than the main Zen theme. Make sure $defaults exactly
|
| 10 |
* matches the $defaults in the theme-settings.php file.
|
| 11 |
*/
|
| 12 |
$defaults = array(
|
| 13 |
'zen_block_editing' => 1,
|
| 14 |
'zen_breadcrumb' => 'yes',
|
| 15 |
'zen_breadcrumb_separator' => ' › ',
|
| 16 |
'zen_breadcrumb_home' => 1,
|
| 17 |
'zen_breadcrumb_trailing' => 1,
|
| 18 |
'zen_wireframes' => 0,
|
| 19 |
);
|
| 20 |
|
| 21 |
// Save default theme settings
|
| 22 |
variable_set(
|
| 23 |
str_replace('/', '_', 'theme_'. $theme_key .'_settings'),
|
| 24 |
array_merge($defaults, theme_get_settings($theme_key))
|
| 25 |
);
|
| 26 |
// Force refresh of Drupal internals
|
| 27 |
theme_get_setting('', TRUE);
|
| 28 |
}
|