*/ // Get the options. $section5_usage = get_theme_mod( 'canuck_section5_usage', 'normal' ); $section5_text = stripslashes( get_theme_mod( 'canuck_section5_text', '' ) ); $section5_shortcode = stripslashes( get_theme_mod( 'canuck_section5_shortcode', '' ) ); $section5_include_link = get_theme_mod( 'canuck_include_section5_button', false ); $section5_link = get_theme_mod( 'canuck_section5_button_link', '#' ); $section5_button_label = get_theme_mod( 'canuck_section5_button_name', " " . esc_html__( 'more', 'canuck' ) ); $sec5_bg_image = get_theme_mod( 'canuck_section5_background_image', '' ); $sec5_use_parallax = get_theme_mod( 'canuck_section5_use_parallax', false ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( '' !== $sec5_bg_image ) { if ( true === $sec5_use_parallax ) { $string5 = ' class="home-5-wide parallax-window" data-parallax="scroll" data-image-src="' . esc_url( $sec5_bg_image ) . '" data-speed="0.3" data-bleed="20" style="background: transparent;"'; // Workaround for overlays on parralax sections :( $home_final_setup = canuck_home_area_setup(); foreach ( $home_final_setup as $area => $section ) { if ( '5' === $section ) { if ( 1 === $area ) { $string5a = ' style="margin: 0 0 -20px 0;"'; } else { $previous_section = $home_final_setup[ $area - 1 ]; $prev_sec_use_parallax = get_theme_mod( 'canuck_section' . $previous_section . '_use_parallax', false ); if ( true === $prev_sec_use_parallax ) { $string5a = ' style="margin: 20px 0 -20px 0;"'; } else { $string5a = ' style="margin: 0 0 -20px 0;"'; } } } } } elseif ( true === $use_lazyload ) { $string5 = ' class="home-5-wide lazyload" data-src="' . esc_url( $sec5_bg_image ) . '"'; $string5a = ''; } else { $string5 = ' class="home-5-wide" style="background-image: url( ' . esc_url( $sec5_bg_image ) . ' );"'; $string5a = ''; } } else { $string5 = ' class="home-5-wide"'; $string5a = ''; } ?>
>
>
" . esc_html__( 'more', 'canuck' ); } ?>

Widgets or the Customizer Widgets panel and add a widget to Home Page Section 5.', 'canuck' ); ?>