query_vars['page']) ? $page = $wp_query->query_vars['page'] : $page = null; // temporary - resetting below $wp_query->query_vars['page'] = null; remove_filter('the_excerpt', 'st_add_widget'); $about_query = new WP_Query('pagename=about'); while ($about_query->have_posts()) { $about_query->the_post(); $about_text = get_the_excerpt().sprintf(__('more →', 'carrington'), get_permalink()); } $wp_query->query_vars['page'] = $page; if (!empty($orig_post)) { $post = $orig_post; setup_postdata($post); } } if (function_exists('st_add_widget')) { add_filter('the_excerpt', 'st_add_widget'); } return $about_text; } /** * Gets custom colors to be used with a themes * * @return string Custom color * **/ function cfct_get_custom_colors($type = 'option') { global $cfct_color_options; $colors = array(); foreach ($cfct_color_options as $option => $value) { switch ($type) { case 'preview': !empty($_GET[$option]) ? $colors[$option] = strip_tags(stripslashes($_GET[$option])) : $colors[$option] = ''; break; case 'option': default: $colors[$option] = cfct_get_option($option); break; } } return $colors; } if (!defined('CFCT_DEBUG')) { define('CFCT_DEBUG', false); } ?>