'primary', 'container' => '', 'fallback_cb' => 'best_commerce_primary_navigation_fallback', ) ); ?>
'footer', 'container' => 'div', 'container_id' => 'footer-navigation', 'depth' => 1, 'fallback_cb' => false, ) ); ?>
Axle Themes' ); ?>
ID, 'best_commerce_settings', true ); if ( isset( $post_options['post_layout'] ) && ! empty( $post_options['post_layout'] ) ) { $global_layout = $post_options['post_layout']; } } // Include primary sidebar. if ( 'no-sidebar' !== $global_layout ) { get_sidebar(); } // Include secondary sidebar. switch ( $global_layout ) { case 'three-columns': get_sidebar( 'secondary' ); break; default: break; } } endif; add_action( 'best_commerce_action_sidebar', 'best_commerce_add_sidebar' ); if ( ! function_exists( 'best_commerce_custom_posts_navigation' ) ) : /** * Posts navigation. * * @since 1.0.0 */ function best_commerce_custom_posts_navigation() { the_posts_pagination(); } endif; add_action( 'best_commerce_action_posts_navigation', 'best_commerce_custom_posts_navigation' ); if ( ! function_exists( 'best_commerce_add_image_in_single_display' ) ) : /** * Add image in single template. * * @since 1.0.0 */ function best_commerce_add_image_in_single_display() { if ( has_post_thumbnail() ) { $args = array( 'class' => 'best-commerce-post-thumb aligncenter', ); the_post_thumbnail( 'large', $args ); } } endif; add_action( 'best_commerce_single_image', 'best_commerce_add_image_in_single_display' ); if ( ! function_exists( 'best_commerce_footer_goto_top' ) ) : /** * Go to top. * * @since 1.0.0 */ function best_commerce_footer_goto_top() { echo ''; } endif; add_action( 'best_commerce_action_after', 'best_commerce_footer_goto_top', 20 ); if ( ! function_exists( 'best_commerce_add_footer_widgets' ) ) : /** * Add footer widgets. * * @since 1.0.0 */ function best_commerce_add_footer_widgets() { get_template_part( 'template-parts/footer-widgets' ); } endif; add_action( 'best_commerce_action_before_footer', 'best_commerce_add_footer_widgets', 5 ); if ( ! function_exists( 'best_commerce_add_custom_header' ) ) : /** * Add custom header. * * @since 1.0.0 */ function best_commerce_add_custom_header() { if ( is_front_page() || is_home() || is_page_template('elementor_header_footer') ) { return; } $image = get_header_image(); $extra_style = ''; if ( ! empty( $image ) ) { $extra_style .= 'style="background-image:url(\'' . esc_url( $image ) . '\');"'; } ?>
>
'; if ( is_home() ) { echo esc_html( best_commerce_get_option( 'blog_page_title' ) ); } elseif ( is_singular() ) { echo single_post_title( '', false ); } elseif ( is_archive() ) { the_archive_title(); } elseif ( is_search() ) { printf( esc_html__( 'Search Results for: %s', 'best-commerce' ), get_search_query() ); } elseif ( is_404() ) { esc_html_e( '404 Error', 'best-commerce' ); } echo ''; } endif; add_action( 'best_commerce_action_custom_header_title', 'best_commerce_add_title_in_custom_header' ); if ( ! function_exists( 'best_commerce_add_breadcrumb' ) ) : /** * Add breadcrumb. * * @since 1.0.0 */ function best_commerce_add_breadcrumb() { // Bail if home page. if ( is_front_page() || is_home() ) { return; } echo''; } endif; add_action( 'best_commerce_add_breadcrumb', 'best_commerce_add_breadcrumb', 10 );