*/ // Get the options. $section5_usage = get_theme_mod( 'canuck_section5_usage', 'normal' ); $section5_text = stripslashes( get_theme_mod( 'canuck_section5_text', '' ) ); $section5_shortcode = stripslashes( get_theme_mod( 'canuck_section5_shortcode', '' ) ); $section5_include_link = get_theme_mod( 'canuck_include_section5_button', false ); $section5_link = get_theme_mod( 'canuck_section5_button_link', '#' ); $section5_button_icon = get_theme_mod( 'canuck_section5_button_icon', 'no icon' ); $section5_button_label = get_theme_mod( 'canuck_section5_button_name', esc_html__( 'more', 'canuck' ) ); $sec5_bg_image = get_theme_mod( 'canuck_section5_background_image', '' ); $sec5_use_parallax = get_theme_mod( 'canuck_section5_use_parallax', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( '' !== $sec5_bg_image ) { if ( true === $sec5_use_parallax ) { $string5 = ' class="home-5-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec5_bg_image ) . '" data-speed="0.3" data-bleed="0" style="background: transparent;"'; } elseif ( true === $use_lazyload ) { $string5 = ' class="home-5-wide lazyload" data-src="' . esc_url( $sec5_bg_image ) . '"'; } else { $string5 = ' class="home-5-wide" style="background-image: url( ' . esc_url( $sec5_bg_image ) . ' );"'; } } else { $string5 = ' class="home-5-wide"'; } ?>