%2$s', esc_url( admin_url( 'customize.php?autofocus[control]=hestia_blog_subtitle' ) ), __( 'Customizer', 'hestia' ) ) ) ); } else { $hestia_blog_subtitle = get_theme_mod( 'hestia_blog_subtitle' ); } $hestia_blog_title = get_theme_mod( 'hestia_blog_title', __( 'Blog', 'hestia' ) ); if ( $is_shortcode ) { $hestia_blog_title = ''; $hestia_blog_subtitle = ''; } /** * In case this function is called as shortcode, we remove the container and we add 'is-shortcode' class. */ $wrapper_class = $is_shortcode === true ? 'is-shortcode' : ''; $container_class = $is_shortcode === true ? '' : 'container'; hestia_before_blog_section_trigger(); ?>
>
' . wp_kses_post( $hestia_blog_title ) . ''; } if ( ! empty( $hestia_blog_subtitle ) || is_customize_preview() ) { echo '
' . hestia_sanitize_string( $hestia_blog_subtitle ) . '
'; } ?>
true, ); $args['posts_per_page'] = ! empty( $hestia_blog_items ) ? absint( $hestia_blog_items ) : 3; $hestia_blog_categories = get_theme_mod( 'hestia_blog_categories' ); if ( ! empty( $hestia_blog_categories[0] ) && sizeof( $hestia_blog_categories ) >= 1 ) { $args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $hestia_blog_categories, ), ); } $loop = new WP_Query( $args ); $allowed_html = array( 'br' => array(), 'em' => array(), 'strong' => array(), 'i' => array( 'class' => array(), ), 'span' => array(), ); if ( $loop->have_posts() ) : $i = 1; echo '
'; while ( $loop->have_posts() ) : $loop->the_post(); ?> '; echo '
'; } $i++; endwhile; echo '
'; wp_reset_postdata(); endif; if ( ! $is_callback ) { ?>