';
echo '
';
blog_postx_breadcrumb_html();
echo '';
echo '
';
echo '
';
echo '';
}
add_action( 'blog_postx_page_header_hook', 'blog_postx_archive_header_html' );
endif;
if( ! function_exists( 'blog_postx_shooting_star_animation_html' ) ) :
/**
* Background animation one
*
* @package Blog Postx Pro
* @since 1.0.0
*/
function blog_postx_shooting_star_animation_html() {
if( BPX\blog_postx_get_customizer_option( 'site_background_animation' ) === 'none' ) return;
$show_background_animation_on_mobile = BPX\blog_postx_get_customizer_option( 'show_background_animation_on_mobile' );
$elementClass = 'blog-postx-background-animation';
if( ! $show_background_animation_on_mobile ) $elementClass .= ' hide-on-mobile';
?>
';
}
add_action( 'blog_postx_main_content_opening', 'blog_postx_get_opening_div_container', 40 );
endif;
if( ! function_exists( 'blog_postx_get_single_content_exclude_layout_three' ) ) :
/**
* Renders contents of single post excluding layout three
*
* @since 1.0.0
*/
function blog_postx_get_single_content_exclude_layout_three() {
/**
* hook - blog_postx_before_main_content
*
* hooked - blog_postx_breadcrumb_html - 10
* hooked - blog_postx_single_header_html - 20
*/
$single_post_layout = BPX\blog_postx_get_customizer_option( 'single_post_layout' );
$single_layout_post_meta = metadata_exists( 'post', get_the_ID(), 'single_layout' ) ? get_post_meta( get_the_ID(), 'single_layout', true ) : 'customizer-layout';
$is_customizer_layout = ( $single_layout_post_meta == 'customizer-layout' );
$is_seven = ( ( $single_post_layout === 'layout-seven' ) && $is_customizer_layout ) || ( ! $is_customizer_layout && ( $single_layout_post_meta === 'layout-seven' ) );
if( ! $is_seven ) {
if( $single_layout_post_meta !== 'customizer-layout' && is_single() ) {
if( ! in_array( $single_layout_post_meta, [ 'layout-three', 'layout-six' ] ) ) do_action( 'blog_postx_before_main_content' );
} else {
if( ! in_array( $single_post_layout, [ 'layout-three', 'layout-six' ] ) && is_single() ) do_action( 'blog_postx_before_main_content' );
}
}
if( ! is_single() && ! is_archive() ) do_action( 'blog_postx_before_main_content' );
}
add_action( 'blog_postx_main_content_opening', 'blog_postx_get_single_content_exclude_layout_three', 50 );
endif;
if( ! function_exists( 'blog_postx_get_opening_div_row' ) ) :
/**
* Renders the opening div for .row class
*
* @since 1.0.0
*/
function blog_postx_get_opening_div_row() {
echo '
';
}
add_action( 'blog_postx_main_content_opening', 'blog_postx_get_opening_div_row', 60 );
endif;
if( ! function_exists( 'blog_postx_get_closing_div_row' ) ) :
/**
* Renders the opening div for .row class
*
* @since 1.0.0
*/
function blog_postx_get_closing_div_row() {
echo '
';
}
add_action( 'blog_postx_main_content_closing', 'blog_postx_get_closing_div_row', 10 );
endif;
if( ! function_exists( 'blog_postx_get_closing_div_container' ) ) :
/**
* Renders the opening div for .row class
*
* @since 1.0.0
*/
function blog_postx_get_closing_div_container() {
echo '
';
}
add_action( 'blog_postx_main_content_closing', 'blog_postx_get_closing_div_container', 20 );
endif;
if( ! function_exists( 'blog_postx_get_closing_div_main_wrap' ) ) :
/**
* Renders the opening div for .row class
*
* @since 1.0.0
*/
function blog_postx_get_closing_div_main_wrap() {
echo '';
}
add_action( 'blog_postx_main_content_closing', 'blog_postx_get_closing_div_main_wrap', 30);
endif;