' . __( 'Recommended image sizes', 'blue-planet' ) . '
'; $content .= '
' . sprintf( __( 'Secondary Slider : %dpx X %dpx', 'blue-planet' ), 720, 350 ); } return $content; } endif; add_filter( 'admin_post_thumbnail_html', 'blue_planet_featured_image_instruction', 10, 2 ); if ( ! function_exists( 'blue_planet_excerpt_readmore' ) ) : /** * Implement read more in excerpt. * * @since 1.0.0 * * @param string $more The string shown within the more link. * @return string The excerpt. */ function blue_planet_excerpt_readmore( $more ) { global $post; $read_more_text = blue_planet_get_option( 'read_more_text' ); if ( ! empty( $read_more_text ) ) { $more = '...'; } $output = $more . ' ' . esc_attr( $read_more_text ) . '"' . esc_html( get_the_title() ) . '"'; $output = apply_filters( 'blue_planet_filter_read_more_content' , $output ); return $output; } endif; add_filter( 'excerpt_more', 'blue_planet_excerpt_readmore' ); if ( ! function_exists( 'blue_planet_custom_excerpt_length' ) ) : /** * Implement excerpt length. * * @since 1.0.0 * * @param int $length The number of words. * @return int Excerpt length. */ function blue_planet_custom_excerpt_length( $length ) { $excerpt_length = blue_planet_get_option( 'excerpt_length' ); return apply_filters( 'blue_planet_filter_excerpt_length', esc_attr( $excerpt_length ) ); } endif; add_filter( 'excerpt_length', 'blue_planet_custom_excerpt_length', 999 ); if ( ! function_exists( 'blue_planet_add_secondary_slider_function' ) ) : /** * Implement secondary slider. * * @since 1.0.0 */ function blue_planet_add_secondary_slider_function() { $bp_options = blue_planet_get_option_all(); $slider_status_2 = blue_planet_get_option( 'slider_status_2' ); if ( 'none' !== $slider_status_2 && ( is_home() || is_front_page() ) ) { $slider_category_2 = absint( $bp_options['slider_category_2'] ); $number_of_slides_2 = absint( $bp_options['number_of_slides_2'] ); $args = array( 'posts_per_page' => $number_of_slides_2, 'meta_query' => array( array( 'key' => '_thumbnail_id' ), ), ); if ( absint( $slider_category_2 ) > 0 ) { $args['cat'] = absint( $slider_category_2 ); } $secondary_slider_query = new WP_Query( $args ); if ( $secondary_slider_query->have_posts() ) { ?>
have_posts() ) : $secondary_slider_query -> the_post();?>
'; ?>

' . apply_filters( 'blue_planet_filter_copyright_text_content', esc_html( $copyright_text ) ) . ''; } endif; add_action( 'blue_planet_credits', 'blue_planet_copyright_text_content' ); if ( ! function_exists( 'blue_planet_footer_powered_by' ) ) : /** * Implement powered by content in footer. * * @since 1.0.0 */ function blue_planet_footer_powered_by() { $extra_style = ''; $flg_hide_powered_by = blue_planet_get_option( 'flg_hide_powered_by' ); if ( 1 === $flg_hide_powered_by ) { $extra_style = 'display:none;'; } ?>
'; $link_close = ''; } ?> '; ?>
'. __( 'Go to top', 'blue-planet' ) . ''; } } endif; add_action( 'blue_planet_before_container_close','blue_planet_goto_top' ); if ( ! function_exists( 'blue_planet_header_content_stuff' ) ) : /** * Implement header content stuff. * * @since 1.0.0 */ function blue_planet_header_content_stuff() { ?>

'align' . $single_image_alignment, ); the_post_thumbnail( $single_image, $args ); } } } endif; add_action( 'blue_planet_single_image', 'blue_planet_add_image_in_single_display' );