*/ // 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_label = get_theme_mod( 'canuck_section3_button_name', " " . __( 'more', 'canuck' ) ); $sec3_bg_image = get_theme_mod( 'canuck_section3_background_image', '' ); $sec3_use_parallax = get_theme_mod( 'canuck_section3_use_parallax', false ); if ( '' !== $sec3_bg_image && false !== $sec3_use_parallax ) { ?>
'; echo wp_kses_post( $section3_text ); echo '
'; } if ( true === $section3_include_link ) { if ( '' === $section3_button_label ) { $section3_button_label = " " . __( 'more', 'canuck' ); } echo ''; } echo '
'; if ( 'shortcode' === $section3_usage ) { echo '
'; echo do_shortcode( wp_kses_post( $section3_shortcode ) ); echo '
'; } elseif ( 'widgetized' === $section3_usage ) { echo '
'; if ( !dynamic_sidebar('canuck_home_section3_sidebar') ) { echo esc_html__( 'Section 3 is set up as a widget area.', 'canuck' ) . '
' . esc_html__( 'Go to Appearance->Widgets or the Customizer Widgets panel and add a widget to Home Page Section 1.', 'canuck' ) . ''; } echo '
'; } ?>