*/ // Get the options. $section3_usage = esc_html( get_theme_mod( 'canuck_section3_usage', 'normal' ) ); $section3_text = stripslashes( get_theme_mod( 'canuck_section3_text', '' ) ); $section3_shortcode = stripslashes( get_theme_mod( 'canuck_section3_shortcode', '' ) ); $section3_include_link = get_theme_mod( 'canuck_include_section3_button', false ); $section3_link = get_theme_mod( 'canuck_section3_button_link', '#' ); $section3_button_icon = get_theme_mod( 'canuck_section3_button_icon', 'no icon' ); $section3_button_label = get_theme_mod( 'canuck_section3_button_name', esc_html__( 'more', 'canuck' ) ); $sec3_bg_image = get_theme_mod( 'canuck_section3_background_image', '' ); $sec3_use_parallax = get_theme_mod( 'canuck_section3_use_parallax', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( '' !== $sec3_bg_image ) { if ( true === $sec3_use_parallax ) { $string3 = ' class="home-3-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec3_bg_image ) . '" data-speed="0.3" data-bleed="0" style="background: transparent;"'; } elseif ( true === $use_lazyload ) { $string3 = ' class="home-3-wide lazyload" data-src="' . esc_url( $sec3_bg_image ) . '"'; } else { $string3 = ' class="home-3-wide" style="background-image: url( ' . esc_url( $sec3_bg_image ) . ' );"'; } } else { $string3 = ' class="home-3-wide"'; } ?>