'blue', 'newsflash_width' => 0, 'newsflash_fixedwidth' => '850', 'newsflash_breadcrumb' => 0, 'newsflash_iepngfix' => 0, 'newsflash_themelogo' => 0, 'newsflash_fontfamily' => 0, 'newsflash_customfont' => '', 'newsflash_uselocalcontent' => 0, 'newsflash_localcontentfile' => '', 'newsflash_leftsidebarwidth' => '210', 'newsflash_rightsidebarwidth' => '210', 'newsflash_suckerfish' => 0, 'newsflash_usecustomlogosize' => 0, 'newsflash_logowidth' => '100', 'newsflash_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 newsflash_regions() { return array( 'sidebar_left' => t('Left Sidebar'), 'sidebar_right' => t('Right Sidebar'), 'header' => t('Header'), 'suckerfish' => t('Suckerfish Menu'), 'user1' => t('User1'), 'user2' => t('User2'), 'user3' => t('User3'), 'content_top' => t('Content Top'), 'content_bottom' => t('Content Bottom'), 'user4' => t('User4'), 'user5' => t('User5'), 'user6' => t('User6'), 'footer_region' => t('Footer'), ); } function get_newsflash_style() { $style = theme_get_setting('newsflash_style'); if (!$style) { $style = 'blue'; } if (isset($_COOKIE["newsflashstyle"])) { $style = $_COOKIE["newsflashstyle"]; } return $style; } $style = get_newsflash_style(); drupal_add_css(drupal_get_path('theme', 'newsflash') .'/css/'. $style .'.css', 'theme'); if (theme_get_setting('newsflash_iepngfix')) { drupal_add_js(drupal_get_path('theme', 'newsflash') .'/js/jquery.pngFix.js', 'theme'); } if (theme_get_setting('newsflash_suckerfish')) { drupal_add_css(drupal_get_path('theme', 'newsflash') .'/css/suckerfish_'. $style .'.css', 'theme'); } if (theme_get_setting('newsflash_uselocalcontent')) { $local_content = drupal_get_path('theme', 'newsflash') .'/'. theme_get_setting('newsflash_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 = "