'; endif; } add_action( 'blog_postx_header_after_hook', 'blog_postx_progress_bar', 10 ); endif; if( ! function_exists( 'blog_postx_sticky_posts' ) ) : function blog_postx_sticky_posts(){ if( ! BPX\blog_postx_get_customizer_option( 'sticky_posts_option' ) || is_paged() || ! is_home() || ! is_front_page() ) return; $sticky_posts_position = BPX\blog_postx_get_customizer_option( 'sticky_posts_position' ); $posts_to_append = BPX\blog_postx_get_customizer_option( 'sticky_posts_posts_to_append' ); $posts_to_show = BPX\blog_postx_get_customizer_option( 'sticky_posts_to_show' ); $args[ 'sticky_posts_show_author' ] = true; $args[ 'sticky_posts_show_date' ] = true; $sectionClass = 'blog-postx-sticky-posts position-' . esc_html( $sticky_posts_position ); $posts_args = blog_postx_get_query_args( 'sticky' ); $posts_args[ 'posts_per_page' ] = absint( $posts_to_append - $posts_to_show ); ?>