*/ // 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 :(. } elseif ( true === $use_lazyload ) { $string9 = ' class="home-9-wide lazyload" data-src="' . esc_url( $sec9_bg_image ) . '"'; } else { $string9 = ' class="home-9-wide" style="background-image: url( ' . esc_url( $sec9_bg_image ) . ' );"'; } } else { $string9 = ' class="home-9-wide"'; } ?>