'footer', 'container' => 'div', 'container_id' => 'footer-navigation', 'depth' => 1, 'fallback_cb' => false, 'echo' => false, ) ); // Copyright content. $copyright_text = blogism_get_option( 'copyright_text' ); $copyright_text = apply_filters( 'blogism_filter_copyright_text', $copyright_text ); if ( ! empty( $copyright_text ) ) { $copyright_text = wp_kses_data( $copyright_text ); } // Powered by content. $powered_by_text = sprintf( esc_html__( 'Blogism by %s', 'blogism' ), '' . esc_html__( 'WEN Themes', 'blogism' ) . '' ); $show_social_in_footer = blogism_get_option( 'show_social_in_footer' ); $column_count = 0; if ( $footer_menu_content ) { $column_count++; } if ( $copyright_text ) { $column_count++; } if ( $powered_by_text ) { $column_count++; } if ( true === $show_social_in_footer && has_nav_menu( 'social' ) ) { $column_count++; } ?>
ID, 'blogism_theme_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( 'blogism_action_sidebar', 'blogism_add_sidebar' ); if ( ! function_exists( 'blogism_custom_posts_navigation' ) ) : /** * Posts navigation. * * @since 1.0.0 */ function blogism_custom_posts_navigation() { $pagination_type = blogism_get_option( 'pagination_type' ); switch ( $pagination_type ) { case 'default': the_posts_navigation(); break; case 'numeric': the_posts_pagination(); break; default: break; } } endif; add_action( 'blogism_action_posts_navigation', 'blogism_custom_posts_navigation' ); if ( ! function_exists( 'blogism_add_image_in_single_display' ) ) : /** * Add image in single post. * * @since 1.0.0 */ function blogism_add_image_in_single_display() { global $post; if ( has_post_thumbnail() ) { $values = get_post_meta( $post->ID, 'blogism_theme_settings', true ); $blogism_theme_settings_single_image = isset( $values['single_image'] ) ? esc_attr( $values['single_image'] ) : ''; if ( ! $blogism_theme_settings_single_image ) { $blogism_theme_settings_single_image = blogism_get_option( 'single_image' ); } if ( 'disable' !== $blogism_theme_settings_single_image ) { $args = array( 'class' => 'aligncenter', ); the_post_thumbnail( esc_attr( $blogism_theme_settings_single_image ), $args ); } } } endif; add_action( 'blogism_single_image', 'blogism_add_image_in_single_display' ); if ( ! function_exists( 'blogism_add_breadcrumb' ) ) : /** * Add breadcrumb. * * @since 1.0.0 */ function blogism_add_breadcrumb() { // Bail if Breadcrumb disabled. $breadcrumb_type = blogism_get_option( 'breadcrumb_type' ); if ( 'disabled' === $breadcrumb_type ) { return; } // Bail if Home Page. if ( is_front_page() || is_home() ) { return; } echo ''; } endif; add_action( 'blogism_action_before_content', 'blogism_add_breadcrumb' , 7 ); if ( ! function_exists( 'blogism_footer_goto_top' ) ) : /** * Go to top. * * @since 1.0.0 */ function blogism_footer_goto_top() { echo ''; } endif; add_action( 'blogism_action_after', 'blogism_footer_goto_top', 20 ); if ( ! function_exists( 'blogism_add_author_bio_in_single' ) ) : /** * Display Author bio. * * @since 1.0.0 */ function blogism_add_author_bio_in_single() { // Bail if not singular post. if ( ! is_singular( 'post' ) ) { return; } $author_description = get_the_author_meta( 'description' ); if ( $author_description ) { get_template_part( 'template-parts/author-bio', 'single' ); } } endif; add_action( 'blogism_author_bio', 'blogism_add_author_bio_in_single' ); if ( ! function_exists( 'blogism_header_top_content' ) ) : /** * Header Top. * * @since 1.0.0 */ function blogism_header_top_content() { $search_in_header = blogism_get_option( 'search_in_header' ); $show_social_in_header = blogism_get_option( 'show_social_in_header' ); if ( false === $search_in_header && ( false === $show_social_in_header || false === has_nav_menu( 'social' ) ) ) { return; } ?>