*/ // Get the options. $section9_title = stripslashes( get_theme_mod( 'canuck_section9_title', '' ) ); $section9_text = stripslashes( get_theme_mod( 'canuck_section9_text', '' ) ); $section9_portfolio_category = get_theme_mod( 'canuck_section9_portfolio_category', '' ); $section9_portfolio_columns = get_theme_mod( 'canuck_section9_portfolio_columns', '3' ); $sec9_bg_image = get_theme_mod( 'canuck_section9_background_image', '' ); $sec9_use_parallax = get_theme_mod( 'canuck_section9_use_parallax', false ); $include_pinterest_pinit = get_theme_mod( 'canuck_include_pinit' ) ? true : false; $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( '' !== $sec9_bg_image ) { if ( true === $sec9_use_parallax ) { $string9 = ' class="home-9-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec9_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 ( '9' === $section ) { if ( 1 === $area ) { $string9a = ' 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 ) { $string9a = ' style="margin: 20px 0 -20px 0;"'; } else { $string9a = ' style="margin: 0 0 -20px 0;"'; } } } } } elseif ( true === $use_lazyload ) { $string9 = ' class="home-9-wide lazyload" data-src="' . esc_url( $sec9_bg_image ) . '"'; $string9a = ''; } else { $string9 = ' class="home-9-wide" style="background-image: url( ' . esc_url( $sec9_bg_image ) . ' );"'; $string9a = ''; } } else { $string9 = ' class="home-9-wide"'; $string9a = ''; } ?>