0, 'litejazz_width' => 0, 'litejazz_fixedwidth' => '850', 'litejazz_breadcrumb' => 0, 'litejazz_iepngfix' => 0, 'litejazz_themelogo' => 0, 'litejazz_fontfamily' => 0, 'litejazz_customfont' => '', 'litejazz_uselocalcontent' => 0, 'litejazz_localcontentfile' => '', 'litejazz_leftsidebarwidth' => '210', 'litejazz_rightsidebarwidth' => '210', 'litejazz_suckerfish' => 0, 'litejazz_usecustomlogosize' => 0, 'litejazz_logowidth' => '100', 'litejazz_logoheight' => '100', ); variable_set( str_replace('/', '_', 'theme_'. $theme_key .'_settings'), array_merge(theme_get_settings($theme_key), $defaults) ); // Force refresh of Drupal internals theme_get_setting('', TRUE); } function get_litejazz_style() { $style = theme_get_setting('litejazz_style'); if (!$style) { $style = 'blue'; } if (isset($_COOKIE["litejazzstyle"])) { $style = $_COOKIE["litejazzstyle"]; } return $style; } $style = get_litejazz_style(); drupal_add_css(drupal_get_path('theme', 'litejazz') .'/css/'. $style .'.css', 'theme'); if (theme_get_setting('litejazz_iepngfix')) { drupal_add_js(drupal_get_path('theme', 'litejazz') .'/js/jquery.pngFix.js', 'theme'); } if (theme_get_setting('litejazz_themelogo')) { function _phptemplate_variables($hook, $variables = array()) { $variables['logo'] = base_path() . path_to_theme() . '/images/' . theme_get_setting('litejazz_style') . '/logo.png'; return $variables; } } if (theme_get_setting('litejazz_suckerfish')) { drupal_add_css(drupal_get_path('theme', 'litejazz') .'/css/suckerfish_'. $style .'.css', 'theme'); } if (theme_get_setting('litejazz_uselocalcontent')) { $local_content = drupal_get_path('theme', 'litejazz') .'/'. theme_get_setting('litejazz_localcontentfile'); if (file_exists($local_content)) { drupal_add_css($local_content, 'theme'); } } function phptemplate_menu_links($links, $attributes = array()) { if (!count($links)) { return ''; } $level_tmp = explode('-', key($links)); $level = $level_tmp[0]; $output = "