%2$s', esc_url( admin_url( 'customize.php?autofocus[control]=bigbang_blog_subtitle' ) ), __( 'Customizer', 'bigbang' ) ) ) );
} else {
$bigbang_blog_subtitle = get_theme_mod( 'bigbang_blog_subtitle' );
}
$bigbang_blog_title = get_theme_mod( 'bigbang_blog_title', __( 'Blog', 'bigbang' ) );
if ( $is_shortcode ) {
$bigbang_blog_title = '';
$bigbang_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';
bigbang_before_blog_section_trigger(); ?>
>
' . wp_kses_post( $bigbang_blog_title ) . '';
}
if ( ! empty( $bigbang_blog_subtitle ) || is_customize_preview() ) {
echo '
' . bigbang_sanitize_string( $bigbang_blog_subtitle ) . '
';
}
?>
true,
);
$args['posts_per_page'] = ! empty( $bigbang_blog_items ) ? absint( $bigbang_blog_items ) : 3;
$bigbang_blog_categories = get_theme_mod( 'bigbang_blog_categories' );
if ( ! empty( $bigbang_blog_categories[0] ) && sizeof( $bigbang_blog_categories ) >= 1 ) {
$args['tax_query'] = array(
array(
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $bigbang_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 ) {
?>