ID) . '" class="readmore">' .$bp_options['read_more_text'] . ''; } add_filter('excerpt_more', 'blue_planet_excerpt_readmore'); //// //Changing excerpt length function blue_planet_custom_excerpt_length( $length ){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; return $bp_options['excerpt_length']; } add_filter( 'excerpt_length', 'blue_planet_custom_excerpt_length', 999 ); // // function blue_planet_add_secondary_slider_function(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if('none' != $bp_options['slider_status_2'] && is_home() ) { $slider_category_2 = $bp_options['slider_category_2']; $number_of_slides_2 = $bp_options['number_of_slides_2']; $args = array( 'cat' => $slider_category_2, 'posts_per_page' => $number_of_slides_2, ); $secondary_slider_query = new WP_Query( $args ); if ( $secondary_slider_query->have_posts() ){ ?>
have_posts() ) : $secondary_slider_query -> the_post();?> '; ?>

' . "\n"; $output .= $bp_options['custom_css']; $output .= ''; echo $output; } add_action( 'wp_head', 'blue_planet_custom_css' ); /** * Redirect WordPress Feeds To FeedBurner */ function blue_planet_rss_redirect() { global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if (isset($bp_options['feed_url']) && '' != $bp_options['feed_url']) { $url = 'Location: '.$bp_options['feed_url']; if ( is_feed() && !preg_match('/feedburner|feedvalidator/i', $_SERVER['HTTP_USER_AGENT'])) { header($url); header('HTTP/1.1 302 Temporary Redirect'); } } } add_action('template_redirect', 'blue_planet_rss_redirect'); // function blue_planet_copyright_text_content(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if( empty( $bp_options['copyright_text']) ){ return; } echo ''; } add_action('blue_planet_credits', 'blue_planet_copyright_text_content'); ////// function blue_planet_footer_powered_by(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if( isset( $bp_options['flg_hide_powered_by'] ) && $bp_options['flg_hide_powered_by'] != 1 ){ ?>
'; ?> '; ?> '; ?>
'; $num_footer = $bp_options['number_of_footer_widgets']; $grid = 12/$num_footer; for($i = 1 ; $i <= $num_footer; $i++){ echo ''; } } add_action('blue_planet_after_content_close','blue_planet_footer_widgets'); ///header masthead function blue_planet_header_searchbox(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if($bp_options['flg_hide_search_box'] != 1) { echo '
'; get_search_form(); echo '
'; } } add_action('blue_planet_before_masthead_close','blue_planet_header_searchbox'); //header social icons function blue_planet_header_social(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if($bp_options['flg_hide_social_icons'] != 1) { blue_planet_generate_social_links(); } } add_action('blue_planet_after_container_open','blue_planet_header_social'); //footer social icons function blue_planet_footer_social(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if($bp_options['flg_hide_footer_social_icons'] != 1) { blue_planet_generate_social_links(); } } add_action('blue_planet_before_page_close','blue_planet_footer_social'); function blue_planet_generate_social_links(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; echo '
'; if('' != $bp_options['social_email']){ echo ''; } $social_sites = array('facebook','twitter','googleplus','youtube','pinterest','linkedin','flickr','tumblr','dribbble','deviantart','rss','instagram','skype','digg','stumbleupon','forrst','500px','vimeo'); $social_sites = array_reverse($social_sites); foreach ($social_sites as $key => $site) { if('' != $bp_options["social_$site"]){ echo ''; } } echo '
'; } //// function blue_planet_goto_top() { global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; if ($bp_options['flg_enable_goto_top']) { wp_enqueue_style('blue-planet-goto-top-style', get_stylesheet_directory_uri(). '/thirdparty/goto-top/goto-top.css' ); echo ''; wp_enqueue_script('blue-planet-goto-top-script', get_stylesheet_directory_uri().'/thirdparty/goto-top/goto-top.js', array('jquery')); } } add_action('blue_planet_before_container_close','blue_planet_goto_top'); function blue_planet_header_content_stuff(){ global $blueplanet_options_settings; $bp_options = $blueplanet_options_settings; ?>

'; echo 'header#masthead{background-color: '.$bp_options['banner_background_color'].';}'; echo ''; } add_action('wp_head','blue_planet_header_style_custom'); // function blue_planet_add_editor_styles() { add_editor_style( 'editor-style.css' ); } add_action( 'init', 'blue_planet_add_editor_styles' );