*/ // 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', " " . __( 'more', 'canuck' ) ) ); $sec1_bg_image = get_theme_mod( 'canuck_section1_background_image', '' ); $sec1_use_parallax = get_theme_mod( 'canuck_section1_use_parallax', false ); if ( '' !== $sec1_bg_image && false !== $sec1_use_parallax ) { ?>
'; echo wp_kses_post( $section1_text ); echo '
'; } if ( true === $section1_include_link ) { if ( '' === $section1_button_label ) { $section1_button_label = " " . __( 'more', 'canuck' ); } echo ''; } echo '
'; if ( 'shortcode' === $section1_usage ) { echo '
'; echo do_shortcode( wp_kses_post( $section1_shortcode ) ); echo '
'; } elseif ( 'widgetized' === $section1_usage ) { echo '
'; if ( !dynamic_sidebar('canuck_home_section1_sidebar') ) { echo esc_html__( 'Section 1 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 '
'; } ?>