/[drupal]/contributions/themes/ranch/theme-settings-init.php
ViewVC logotype

Contents of /contributions/themes/ranch/theme-settings-init.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Fri May 23 21:13:14 2008 UTC (18 months ago) by crashtest
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, DRUPAL-5--1-0, DRUPAL-5--1-2, HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
Initial commit of the Ranch theme, a standards compliant CSS theme with easy to change color.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2