ID) ) . '" class="readmore">' . esc_attr( $read_more_text ) . ''; $output = apply_filters( 'blue_planet_filter_read_more_content' , $output ); return $output; } endif; // blue_planet_excerpt_readmore add_filter('excerpt_more', 'blue_planet_excerpt_readmore'); if ( ! function_exists( 'blue_planet_custom_excerpt_length' ) ) : // Changing excerpt length function blue_planet_custom_excerpt_length( $length ){ $excerpt_length = blueplanet_get_option('excerpt_length'); return apply_filters( 'blue_planet_filter_excerpt_length', esc_attr( $excerpt_length ) ); } endif; // blue_planet_custom_excerpt_length add_filter( 'excerpt_length', 'blue_planet_custom_excerpt_length', 999 ); if ( ! function_exists( 'blue_planet_add_secondary_slider_function' ) ) : // Secondary slider function blue_planet_add_secondary_slider_function(){ $bp_options = blueplanet_get_option_all(); $slider_status_2 = blueplanet_get_option( 'slider_status_2' ); if('none' != $slider_status_2 && ( is_home() || is_front_page() ) ) { $slider_category_2 = esc_attr( $bp_options['slider_category_2'] ); $number_of_slides_2 = esc_attr( $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 .= esc_textarea( $custom_css ) ; $output .= ''; echo $output; } endif; // blue_planet_custom_css add_action( 'wp_head', 'blue_planet_custom_css' ); /** * Redirect WordPress Feeds To FeedBurner */ if ( ! function_exists( 'blue_planet_rss_redirect' ) ) : function blue_planet_rss_redirect() { $feed_url = blueplanet_get_option('feed_url'); if ( ! empty( $feed_url ) ) { $url = 'Location: '.esc_url( $feed_url ) ; if ( is_feed() && !preg_match('/feedburner|feedvalidator/i', $_SERVER['HTTP_USER_AGENT'])) { header($url); header('HTTP/1.1 302 Temporary Redirect'); } } } endif; // blue_planet_rss_redirect add_action('template_redirect', 'blue_planet_rss_redirect'); if ( ! function_exists( 'blue_planet_copyright_text_content' ) ) : // Copyright text in footer function blue_planet_copyright_text_content(){ $copyright_text = blueplanet_get_option('copyright_text'); if( empty( $copyright_text ) ){ return; } echo ''; } endif; // blue_planet_copyright_text_content add_action('blue_planet_credits', 'blue_planet_copyright_text_content'); if ( ! function_exists( 'blue_planet_footer_powered_by' ) ) : // Powered by content in footer function blue_planet_footer_powered_by(){ $flg_hide_powered_by = blueplanet_get_option('flg_hide_powered_by'); if( 1 != $flg_hide_powered_by ){ ?>
'; ?> '; ?> '; ?>
'; $num_footer = $bp_options['number_of_footer_widgets']; $grid = 12 / $num_footer; for($i = 1 ; $i <= $num_footer; $i++){ echo ''; } } endif; // blue_planet_footer_widgets add_action('blue_planet_after_content_close','blue_planet_footer_widgets'); if ( ! function_exists( 'blue_planet_header_social' ) ) : // header social icons function blue_planet_header_social(){ $flg_hide_social_icons = blueplanet_get_option( 'flg_hide_social_icons' ); if( 1 != $flg_hide_social_icons ) { blue_planet_generate_social_links(); } } endif; // blue_planet_header_social add_action('blue_planet_after_container_open','blue_planet_header_social'); if ( ! function_exists( 'blue_planet_footer_social' ) ) : // footer social icons function blue_planet_footer_social(){ $flg_hide_footer_social_icons = blueplanet_get_option( 'flg_hide_footer_social_icons' ); if( 1 != $flg_hide_footer_social_icons ) { blue_planet_generate_social_links(); } } endif; // blue_planet_footer_social add_action('blue_planet_before_page_close','blue_planet_footer_social'); if ( ! function_exists( 'blue_planet_generate_social_links' ) ) : function blue_planet_generate_social_links(){ $bp_options = blueplanet_get_option_all(); echo '
'; if('' != $bp_options['social_email']){ echo ''; } $social_sites = array( 'facebook' => 'facebook', 'twitter' => 'twitter', 'googleplus' => 'googleplus', 'youtube' => 'youtube', 'pinterest' => 'pinterest', 'linkedin' => 'linkedin', 'flickr' => 'flickr', 'tumblr' => 'tumblr', 'dribbble' => 'dribbble', 'deviantart' => 'deviantart', 'rss' => 'rss', 'instagram' => 'instagram', 'skype' => 'skype', 'digg' => 'digg', 'stumbleupon' => 'stumbleupon', 'forrst' => 'forrst', '500px' => '500px', 'vimeo' => 'vimeo', ); $social_sites = apply_filters( 'blue_planet_filter_social_sites', $social_sites ); $social_sites = array_reverse($social_sites); $link_target = apply_filters( 'blue_planet_filter_social_sites_link_target', '_blank' ); foreach ($social_sites as $key => $site) { if('' != $bp_options["social_$site"]){ if ('skype' == $site ) { echo ''; } else{ echo ''; } } } echo '
'; } endif; // blue_planet_generate_social_links //// if ( ! function_exists( 'blue_planet_goto_top' ) ) : function blue_planet_goto_top() { $flg_enable_goto_top = blueplanet_get_option( 'flg_enable_goto_top' ); if ( $flg_enable_goto_top ) { wp_enqueue_style('blue-planet-goto-top-style', get_template_directory_uri(). '/thirdparty/goto-top/goto-top.css' ); echo ''; wp_enqueue_script('blue-planet-goto-top-script', get_template_directory_uri().'/thirdparty/goto-top/goto-top.js', array('jquery')); } } endif; // blue_planet_goto_top add_action('blue_planet_before_container_close','blue_planet_goto_top'); if ( ! function_exists( 'blue_planet_header_content_stuff' ) ) : function blue_planet_header_content_stuff(){ ?>

'; echo 'header#masthead{background-color: '.esc_attr( $banner_background_color ).';}'; echo ''; } endif; // blue_planet_header_style_custom add_action('wp_head','blue_planet_header_style_custom'); if ( ! function_exists( 'blue_planet_header_add_favicon' ) ) : function blue_planet_header_add_favicon(){ $custom_favicon = blueplanet_get_option( 'custom_favicon' ); if ( ! empty( $custom_favicon ) ) { echo ''; } } endif; // blue_planet_header_add_favicon add_action('wp_head','blue_planet_header_add_favicon'); // if ( ! function_exists( 'blue_planet_add_editor_styles' ) ) : function blue_planet_add_editor_styles() { add_editor_style( 'editor-style.css' ); } endif; // blue_planet_add_editor_styles add_action( 'init', 'blue_planet_add_editor_styles' );