*/ // Get options. $section1_usage = esc_html( stripslashes( get_theme_mod( 'canuck_section1_usage', 'normal' ) ) ); $section1_text = stripslashes( get_theme_mod( 'canuck_section1_text', '' ) ); $section1_shortcode = stripslashes( get_theme_mod( 'canuck_section1_shortcode', '' ) ); $section1_include_link = get_theme_mod( 'canuck_include_section1_button', false ); $section1_link = get_theme_mod( 'canuck_section1_button_link', '#' ); $section1_button_label = stripslashes( get_theme_mod( 'canuck_section1_button_name', " " . esc_html__( 'more', 'canuck' ) ) ); $sec1_bg_image = get_theme_mod( 'canuck_section1_background_image', '' ); $sec1_use_parallax = get_theme_mod( 'canuck_section1_use_parallax', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( '' !== $sec1_bg_image ) { if ( true === $sec1_use_parallax ) { $string1 = ' class="home-1-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec1_bg_image ) . '" data-speed="0.3" data-bleed="20" style="background: transparent;"'; $string1a = ' style="margin: 0 0 -20px 0;"'; } elseif ( true === $use_lazyload ) { $string1 = ' class="home-1-wide lazyload" data-src="' . esc_url( $sec1_bg_image ) . '"'; $string1a = ''; } else { $string1 = ' class="home-1-wide" style="background-image: url( ' . esc_url( $sec1_bg_image ) . ' );"'; $string1a = ''; } } else { $string1 = ' class="home-1-wide"'; $string1a = ''; } ?>