*/ // Get the options. $section11_usage = stripslashes( get_theme_mod( 'canuck_section11_media_area_usage', 'image' ) ); $section11_image = get_theme_mod( 'canuck_section11_image', '' ); $section11_title = stripslashes( get_theme_mod( 'canuck_section11_title', '' ) ); $section11_shortcode = stripslashes( get_theme_mod( 'canuck_section11_shortcode', '' ) ); $section11_text = stripslashes( get_theme_mod( 'canuck_section11_text', '' ) ); $section11_include_link = get_theme_mod( 'canuck_section11_include_link', false ); $section11_button_link = get_theme_mod( 'canuck_section11_button_link', '#' ); $section11_button_icon = get_theme_mod( 'canuck_section11_button_icon', 'no icon' ); $section11_button_label = get_theme_mod( 'canuck_section11_button_title', esc_html__( 'more', 'canuck' ) ); $sec11_bg_image = get_theme_mod( 'canuck_section11_background_image', '' ); $sec11_use_parallax = get_theme_mod( 'canuck_section11_use_parallax', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; // Set up the button link. if ( true === $section11_include_link ) { if ( '' === $section11_button_label ) { if ( 'no icon' !== $section11_button_icon ) { $section11_button_title = canuck_svg( $section11_button_icon, '14', '#7f7f7f' ) . esc_html__( 'more', 'canuck' );// phpcs:ignore } else { $section11_button_title = esc_html__( '...more', 'canuck' ); } } else { if ( 'no icon' !== $section11_button_icon ) { $section11_button_title = canuck_svg( $section11_button_icon, '14', '#7f7f7f' ) . esc_html( $section11_button_label );// phpcs:ignore } else { $section11_button_title = esc_html( $section11_button_label ); } } } if ( '' !== $sec11_bg_image ) { if ( true === $sec11_use_parallax ) { $string11 = ' class="home-11-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec11_bg_image ) . '" data-speed="0.3" data-bleed="0" style="background: transparent;"'; } elseif ( true === $use_lazyload ) { $string11 = ' class="home-11-wide lazyload" data-src="' . esc_url( $sec11_bg_image ) . '"'; } else { $string11 = ' class="home-11-wide" style="background-image: url( ' . esc_url( $sec11_bg_image ) . ' );"'; } } else { $string11 = ' class="home-11-wide"'; } ?>
>
' . esc_html__( 'Go to Appearance->Widgets or the Customizer Widgets panel and add a widget to Home Page Section 11.', 'canuck' ) . ''; } ?>
<?php echo esc_attr( $section11_title ); ?> <?php esc_attr( $section11_title ); ?>