ID) ) . '" class="readmore">' . esc_attr( $bp_options['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 ){
global $blueplanet_options_settings;
$bp_options = $blueplanet_options_settings;
return apply_filters( 'blue_planet_filter_excerpt_length', esc_attr( $bp_options['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(){
global $blueplanet_options_settings;
$bp_options = $blueplanet_options_settings;
if('none' != $bp_options['slider_status_2'] && is_home() ) {
$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() ){
?>
' . apply_filters( 'blue_planet_filter_copyright_text_content', esc_html( $bp_options['copyright_text'] ) ) . '
';
}
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(){
global $blueplanet_options_settings;
$bp_options = $blueplanet_options_settings;
if( isset( $bp_options['flg_hide_powered_by'] ) && 1 != $bp_options['flg_hide_powered_by'] ){ ?>
';
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);
foreach ($social_sites as $key => $site) {
if('' != $bp_options["social_$site"]){
echo '
';
}
}
echo '
';
}
endif; // blue_planet_generate_social_links
////
if ( ! function_exists( 'blue_planet_goto_top' ) ) :
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_template_directory_uri(). '/thirdparty/goto-top/goto-top.css' );
echo '