'primary', 'container' => '', 'fallback_cb' => 'bellyrn_primary_navigation_fallback', ) ); ?>
'footer', 'container' => 'div', 'container_id' => 'footer-navigation', 'depth' => 1, 'fallback_cb' => false, ) ); ?>
| WPBellyrn' ); ?>
ID, 'bellyrn_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( 'bellyrn_action_sidebar', 'bellyrn_add_sidebar' ); if ( ! function_exists( 'bellyrn_custom_posts_navigation' ) ) : /** * Posts navigation. * * @since 1.0.0 */ function bellyrn_custom_posts_navigation() { the_posts_pagination(); } endif; add_action( 'bellyrn_action_posts_navigation', 'bellyrn_custom_posts_navigation' ); if ( ! function_exists( 'bellyrn_add_image_in_single_display' ) ) : /** * Add image in single template. * * @since 1.0.0 */ function bellyrn_add_image_in_single_display() { if ( has_post_thumbnail() ) { $args = array( 'class' => 'bellyrn-post-thumb aligncenter', ); the_post_thumbnail( 'large', $args ); } } endif; add_action( 'bellyrn_single_image', 'bellyrn_add_image_in_single_display' ); if ( ! function_exists( 'bellyrn_add_breadcrumb' ) ) : /** * Add breadcrumb. * * @since 1.0.0 */ function bellyrn_add_breadcrumb() { $breadcrumb_type = bellyrn_get_option( 'breadcrumb_type' ); // Bail if breadcrumb is disabled. if ( 'disabled' === $breadcrumb_type ) { return; } // Bail if home page. if ( is_front_page() || is_home() ) { return; } echo ''; return; } endif; add_action( 'bellyrn_action_before_content', 'bellyrn_add_breadcrumb', 7 ); if ( ! function_exists( 'bellyrn_footer_goto_top' ) ) : /** * Go to top. * * @since 1.0.0 */ function bellyrn_footer_goto_top() { echo ''; } endif; add_action( 'bellyrn_action_after', 'bellyrn_footer_goto_top', 20 ); if ( ! function_exists( 'bellyrn_add_footer_widgets' ) ) : /** * Add footer widgets. * * @since 1.0.0 */ function bellyrn_add_footer_widgets() { get_template_part( 'template-parts/footer-widgets' ); } endif; add_action( 'bellyrn_action_before_footer', 'bellyrn_add_footer_widgets', 5 ); if ( ! function_exists( 'bellyrn_add_featured_news_block' ) ) : /** * Add featured news block. * * @since 1.0.0 */ function bellyrn_add_featured_news_block() { $featured_news_status = bellyrn_get_option( 'featured_news_status' ); if ( true !== $featured_news_status ) { return; } if ( is_front_page() && ! is_home() ) { get_template_part( 'template-parts/featured' ); } } endif; add_action( 'bellyrn_action_before_content', 'bellyrn_add_featured_news_block', 8 ); if ( ! function_exists( 'bellyrn_add_related_posts' ) ) : /** * Add related posts. * * @since 1.0.0 */ function bellyrn_add_related_posts() { $show_related_posts = bellyrn_get_option( 'show_related_posts' ); if ( true === $show_related_posts && is_singular( 'post' ) ) { get_template_part( 'template-parts/related' ); } } endif; add_action( 'bellyrn_action_related_posts', 'bellyrn_add_related_posts', 10 );