'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 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 = "
' . var_export($vars['settings']['view_name'], true) . ''); drupal_set_message('
' . var_export($vars['content'][0], true) . ''); if ($vars['settings']['view_name'] == 'news_items') { if (!empty($vars['content'])) { foreach ($vars['content'] as $key1 => $result) { // add slide_image variable if (isset($result->node_data_field_pager_item_text_field_image_fid)) { // get image id $fid = $result->node_data_field_pager_item_text_field_image_fid; // get path to image $filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid)); // use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes) if (module_exists('imagecache') && is_array(imagecache_presets()) && $vars['imgcache_slide'] <> '
' . var_export($vars['pager_settings'], true) . ''); drupal_set_message('
' . var_export($vars['content'][0], true) . ''); if (($vars['output_type'] == 'view_fields') && ($vars['pager_settings']['pager'] == 'custom-pager')){ $content = array(); // Add pager_items for the template // If you use the devel module uncomment the following lines to see the theme variables // dsm($vars['pager_settings']['view_name']); // dsm($vars['content'][0]); // If you don't use the devel module uncomment the following lines to see the theme variables drupal_set_message('
' . var_export($vars['pager_settings'], true) . ''); drupal_set_message('
' . var_export($vars['content'][0], true) . ''); if ($vars['pager_settings']['view_name'] == 'news_items') { if (!empty($vars['content'])) { foreach ($vars['content'] as $key1 => $result) { // add pager_item_image variable if (isset($result->node_data_field_pager_item_text_field_image_fid)) { $fid = $result->node_data_field_pager_item_text_field_image_fid; $filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid)); // use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes) if (module_exists('imagecache') && is_array(imagecache_presets()) && $vars['imgcache_pager_item'] <> '