*/ global $post; $section13_title = stripslashes( get_theme_mod( 'canuck_section13_title', '' ) ); $section13_text = stripslashes( get_theme_mod( 'canuck_section13_text', '' ) ); $section13_portfolio_category = get_theme_mod( 'canuck_section13_portfolio_category', '' ); $section13_portfolio_columns = get_theme_mod( 'canuck_section13_portfolio_columns', '3' ); $sec13_bg_image = get_theme_mod( 'canuck_section13_background_image', '' ); $sec13_use_parallax = get_theme_mod( 'canuck_section13_use_parallax', false ); $category_id = get_cat_ID( $section13_portfolio_category ); $args = array( 'category' => $category_id, 'numberposts' => 20, ); $custom_posts = get_posts( $args ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( '' !== $sec13_bg_image ) { if ( true === $sec13_use_parallax ) { $string13 = ' class="home-13-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec13_bg_image ) . '" data-speed="0.3" data-bleed="20" style="background: transparent;"'; // Workaround for overlays on parralax sections :( $home_final_setup = canuck_home_area_setup(); foreach ( $home_final_setup as $area => $section ) { if ( '13' === $section ) { if ( 1 === $area ) { $string13a = ' style="margin: 0 0 -20px 0;"'; } else { $previous_section = $home_final_setup[ $area - 1 ]; $prev_sec_use_parallax = get_theme_mod( 'canuck_section' . $previous_section . '_use_parallax', false ); if ( true === $prev_sec_use_parallax ) { $string13a = ' style="margin: 20px 0 -20px 0;"'; } else { $string13a = ' style="margin: 0 0 -20px 0;"'; } } } } } elseif ( true === $use_lazyload ) { $string13 = ' class="home-13-wide lazyload" data-src="' . esc_url( $sec13_bg_image ) . '"'; $string13a = ''; } else { $string13 = ' class="home-13-wide" style="background-image: url( ' . esc_url( $sec13_bg_image ) . ' );"'; $string13a = ''; } } else { $string13 = ' class="home-13-wide"'; $string13a = ''; } ?>
>
>