*/ // Get the options. $section10_usage = stripslashes( get_theme_mod( 'canuck_section10_media_area_usage', 'image' ) ); $section10_image = get_theme_mod( 'canuck_section10_image', '' ); $section10_title = stripslashes( get_theme_mod( 'canuck_section10_title', '' ) ); $section10_shortcode = stripslashes( get_theme_mod( 'canuck_section10_shortcode', '' ) ); $section10_text = stripslashes( get_theme_mod( 'canuck_section10_text', '' ) ); $section10_include_link = get_theme_mod( 'canuck_section10_include_link', false ); $section10_button_link = get_theme_mod( 'canuck_section10_button_link', '#' ); $section10_button_icon = get_theme_mod( 'canuck_section10_button_icon', 'no icon' ); $section10_button_label = get_theme_mod( 'canuck_section10_button_title', esc_html__( 'more', 'canuck' ) ); $sec10_bg_image = get_theme_mod( 'canuck_section10_background_image', '' ); $sec10_use_parallax = get_theme_mod( 'canuck_section10_use_parallax', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; // Set up the button link. if ( true === $section10_include_link ) { if ( '' === $section10_button_label ) { if ( 'no icon' !== $section10_button_icon ) { $section10_button_title = canuck_svg( $section10_button_icon, '14', '#7f7f7f' ) . esc_html__( 'more', 'canuck' );// phpcs:ignore } else { $section10_button_title = esc_html__( '...more', 'canuck' ); } } else { if ( 'no icon' !== $section10_button_icon ) { $section10_button_title = canuck_svg( $section10_button_icon, '14', '#7f7f7f' ) . esc_html( $section10_button_label );// phpcs:ignore } else { $section10_button_title = esc_html( $section10_button_label ); } } } if ( '' !== $sec10_bg_image ) { if ( true === $sec10_use_parallax ) { $string10 = ' class="home-10-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec10_bg_image ) . '" data-speed="0.3" data-bleed="0" style="background: transparent;"'; } elseif ( true === $use_lazyload ) { $string10 = ' class="home-10-wide lazyload" data-src="' . esc_url( $sec10_bg_image ) . '"'; } else { $string10 = ' class="home-10-wide" style="background-image: url( ' . esc_url( $sec10_bg_image ) . ' );"'; } } else { $string10 = ' class="home-10-wide"'; } ?>