*/ // Get the options. $section7_usage = get_theme_mod( 'canuck_section7_usage', 'normal' ); $section7_text = stripslashes( get_theme_mod( 'canuck_section7_text', '' ) ); $section7_shortcode = stripslashes( get_theme_mod( 'canuck_section7_shortcode', '' ) ); $section7_include_link = get_theme_mod( 'canuck_include_section7_button', false ); $section7_link = get_theme_mod( 'canuck_section7_button_link', '#' ); $section7_button_label = get_theme_mod( 'canuck_section7_button_name', " " . esc_html__( 'more', 'canuck' ) ); $sec7_bg_image = get_theme_mod( 'canuck_section7_background_image', '' ); $sec7_use_parallax = get_theme_mod( 'canuck_section7_use_parallax', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( '' !== $sec7_bg_image ) { if ( true === $sec7_use_parallax ) { $string7 = ' class="home-7-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec7_bg_image ) . '" data-speed="0.3" data-bleed="20" style="background: transparent;"'; $string7a = ' style="margin: 20px 0 -20px 0;"'; } elseif ( true === $use_lazyload ) { $string7 = ' class="home-7-wide lazyload" data-src="' . esc_url( $sec7_bg_image ) . '"'; $string7a = ''; } else { $string7 = ' class="home-7-wide" style="background-image: url( ' . esc_url( $sec7_bg_image ) . ' );"'; $string7a = ''; } } else { $string7 = ' class="home-7-wide"'; $string7a = ''; } ?>