/** * The default template for displaying content * * Used for both single and index/archive/search. */ // woodmart_setup_loop(); $woodmart_loop = woodmart_loop_prop( 'woodmart_loop' ); $blog_design = woodmart_loop_prop( 'blog_design' ); $columns = woodmart_loop_prop( 'blog_columns' ); $is_shortcode = woodmart_loop_prop( 'blog_type' ) == 'shortcode'; $is_large_image = woodmart_get_opt( 'single_post_design' ) == 'large_image'; $classes = array(); if ( is_single() && $is_large_image ) $classes[] = 'post-single-large-image'; if( is_single() && !$is_shortcode ) { $classes[] = 'post-single-page'; } else { $classes[] = 'blog-design-' . $blog_design; $classes[] = 'blog-post-loop'; if( $blog_design == 'chess' ) { $classes[] = 'blog-design-small-images'; } } if( ! is_single() || $is_shortcode ) { $classes[] = 'blog-style-' . woodmart_get_opt( 'blog_style' ); } if( is_single() && !$is_shortcode ) { $blog_design = 'default'; } if( ( $blog_design == 'masonry' || $blog_design == 'mask' ) && ( $is_shortcode || ! is_single() ) ){ $classes[] = woodmart_get_grid_el_class( $woodmart_loop, $columns, false, 12 ); } if( get_the_title() == '' ){ $classes[] = 'post-no-title'; } $gallery_slider = apply_filters( 'woodmart_gallery_slider', true ); $gallery = array(); if( get_post_format() == 'gallery' && $gallery_slider ) { $gallery = get_post_gallery( false, false ); } $random = 'carousel-' . rand(100,999); ?> /** * The default template for displaying content * * Used for both single and index/archive/search. */ // woodmart_setup_loop(); $woodmart_loop = woodmart_loop_prop( 'woodmart_loop' ); $blog_design = woodmart_loop_prop( 'blog_design' ); $columns = woodmart_loop_prop( 'blog_columns' ); $is_shortcode = woodmart_loop_prop( 'blog_type' ) == 'shortcode'; $is_large_image = woodmart_get_opt( 'single_post_design' ) == 'large_image'; $classes = array(); if ( is_single() && $is_large_image ) $classes[] = 'post-single-large-image'; if( is_single() && !$is_shortcode ) { $classes[] = 'post-single-page'; } else { $classes[] = 'blog-design-' . $blog_design; $classes[] = 'blog-post-loop'; if( $blog_design == 'chess' ) { $classes[] = 'blog-design-small-images'; } } if( ! is_single() || $is_shortcode ) { $classes[] = 'blog-style-' . woodmart_get_opt( 'blog_style' ); } if( is_single() && !$is_shortcode ) { $blog_design = 'default'; } if( ( $blog_design == 'masonry' || $blog_design == 'mask' ) && ( $is_shortcode || ! is_single() ) ){ $classes[] = woodmart_get_grid_el_class( $woodmart_loop, $columns, false, 12 ); } if( get_the_title() == '' ){ $classes[] = 'post-no-title'; } $gallery_slider = apply_filters( 'woodmart_gallery_slider', true ); $gallery = array(); if( get_post_format() == 'gallery' && $gallery_slider ) { $gallery = get_post_gallery( false, false ); } $random = 'carousel-' . rand(100,999); ?>