', ''); break; case 'breadcrumb' : Blogin_Aarambha_Breadcrumb::get_breadcrumb(); break; case 'excerpt' : echo '
'; Blogin_Aarambha_Helper::post_excerpt(); echo '
'; break; case 'post-meta' : echo ''; break; case 'post-desc' : if ( ! is_404() ) { the_archive_description( '
', '
' ); } break; endswitch; endforeach; ?>
>
'; } endif; if ( ! function_exists( 'blogin_aarambha_page_section_end' ) ) : /** * Close custom wrapper div after content */ function blogin_aarambha_page_section_end() { if ( is_404() ) { return; } echo '
'; } endif; if ( ! function_exists( 'blogin_aarambha_site_content_end' ) ) : /** * Close custom wrapper div after content */ function blogin_aarambha_site_content_end() { echo '
'; } endif; /* ------------------------------ BLOG CONTENT ------------------------------ */ if ( ! function_exists( 'blogin_aarambha_blog_posts_wrapper' ) ) : /** * Blog Posts Wrapper */ function blogin_aarambha_blog_posts_wrapper() { global $post; $content_layout = get_post_meta( $post->ID, 'blogin_aarambha_content_layout', true ); $classes = ['post-detail-wrap d-flex']; if( $content_layout && $content_layout === 'landscape' ) { $classes[] = 'flex-column'; } else { $classes[] = 'align-items-center flex-row'; } ob_start(); ?>
'; foreach ( $posts_elements as $post_element ) : switch ( $post_element ) : case 'post-title' : Blogin_Aarambha_Helper::post_title(); break; case 'post-meta' : Blogin_Aarambha_Helper::post_meta( get_the_ID() ); break; case 'categories' : Blogin_Aarambha_Helper::post_meta( get_the_ID(), ['categories'] ); break; endswitch; endforeach; echo ''; endif; } endif; if ( ! function_exists( 'blogin_aarambha_blog_entry_content' ) ) : /** * Entry Blog Post Content */ function blogin_aarambha_blog_entry_content() { $content_elements = get_theme_mod('blogin_aarambha_blog_content_elements',['post-excerpt','read-more']); ?>
'; if ( 'post' === get_post_type() ) { $categories_list = get_the_category_list( ' ' ); $tags_list = get_the_tag_list( '', ' ' ); echo '
'; if ( $categories_list ) { printf( '' . esc_html__( 'Posted in %1$s', 'blogin-aarambha' ) . '', $categories_list ); // WPCS: XSS OK. } if ( $tags_list ) { printf( ' ' . esc_html__( 'and', 'blogin-aarambha' ) . ' ' . esc_html__( 'Tagged %1$s', 'blogin-aarambha' ) . '', $tags_list ); // WPCS: XSS OK. } echo '
'; } echo ''; break; endswitch; endforeach; endif; ?>
ID, 'blogin_aarambha_content_layout', true ); $classes = ['entry-header-wrap d-flex']; if( $content_layout && $content_layout === 'landscape' ) { $classes[] = 'flex-column'; } else { $classes[] = 'flex-row align-items-center'; } echo '
'; blogin_aarambha_get_post_thumbnail(); blogin_aarambha_post_entry_header(); echo '
'; } endif; if ( ! function_exists( 'blogin_aarambha_get_post_thumbnail' ) ) : /** * Post Thumbnail */ function blogin_aarambha_get_post_thumbnail() { global $post; $content_layout = get_post_meta( $post->ID, 'blogin_aarambha_content_layout', true ); $img_ratio = ( Blogin_Aarambha_Helper::get_sidebar_layout() != 'none' ) ? '4x3' : '21x11'; if( $content_layout && $content_layout === 'landscape' || is_page() ) { $img_ratio = '16x9'; } // Is Singular if ( is_singular() ) { $img_size = is_single() ? get_theme_mod('blogin_aarambha_post_image_size',['desktop' => 'medium_large'] ) : get_theme_mod( 'blogin_aarambha_page_image_size', ['desktop' => 'medium_large'] ); blogin_aarambha_singular_post_thumbnail( $img_size['desktop'],$img_ratio ); } else { $img_size = get_theme_mod( 'blogin_aarambha_blog_image_size', ['desktop' => 'medium_large'] ); blogin_aarambha_post_thumbnail( $img_size['desktop'],$img_ratio ); } } endif; if ( ! function_exists( 'blogin_aarambha_post_entry_header' ) ) : /** * Single post entry header */ function blogin_aarambha_post_entry_header() { $posts_elements = get_theme_mod( 'blogin_aarambha_post_header_elements', ['post-title','post-meta'] ); if ( ! empty( $posts_elements ) ) : echo '
'; foreach ( $posts_elements as $post_element ) : switch ( $post_element ) : case 'post-title' : Blogin_Aarambha_Helper::post_title(); break; case 'post-meta' : Blogin_Aarambha_Helper::post_meta( get_the_ID() ); break; case 'categories' : Blogin_Aarambha_Helper::post_meta( get_the_ID(), ['categories'] ); break; endswitch; endforeach; echo '
'; endif; } endif; if ( ! function_exists( 'blogin_aarambha_post_entry_content' ) ) : /** * Entry Post Content */ function blogin_aarambha_post_entry_content() { $content_elements = get_theme_mod('blogin_aarambha_post_content_elements',['post-content','cats-tags']); ?>
'; if ( 'post' === get_post_type() ) { $categories_list = get_the_category_list( ' ' ); $tags_list = get_the_tag_list( '', ' ' ); echo '
'; if ( $categories_list ) { printf( '' . esc_html__( 'Posted in %1$s', 'blogin-aarambha' ) . '', $categories_list ); // WPCS: XSS OK. } if ( $tags_list ) { printf( ' ' . esc_html__( 'and', 'blogin-aarambha' ) . ' ' . esc_html__( 'Tagged %1$s', 'blogin-aarambha' ) . '', $tags_list ); // WPCS: XSS OK. } echo '
'; } echo ''; break; endswitch; endforeach; endif; ?>
'; foreach ( $elements as $element ) : switch ( $element ) : case 'post-image' : blogin_aarambha_get_post_thumbnail(); break; case 'post-title' : blogin_aarambha_page_entry_header(); break; endswitch; endforeach; echo ''; endif; } endif; if ( ! function_exists( 'blogin_aarambha_page_entry_header' ) ) : /** * Single Page entry header */ function blogin_aarambha_page_entry_header() { $posts_elements = get_theme_mod( 'blogin_aarambha_page_entry_header_elements', ['post-title'] ); if ( ! empty( $posts_elements ) ) : echo '
'; foreach ( $posts_elements as $post_element ) : switch ( $post_element ) : case 'post-title' : Blogin_Aarambha_Helper::post_title(); break; endswitch; endforeach; echo '
'; endif; } endif; if ( ! function_exists( 'blogin_aarambha_page_entry_content' ) ) : /** * Entry Page Content */ function blogin_aarambha_page_entry_content() { $content_elements = get_theme_mod('blogin_aarambha_page_content_elements',['page-content']); ?>
'; $comment_count = (int) get_comments_number(); if ( 1 === $comment_count ) { $title_output .= esc_html__( 'One Comment', 'blogin-aarambha' ); } else { $title_output .= sprintf( /* translators: 1: comment count number */ esc_html( _nx( '%1$s Comment', '%1$s Comments', $comment_count, 'comments title', 'blogin-aarambha' ) ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped number_format_i18n( $comment_count ) ); } $title_output .= ''; echo wp_kses_post( apply_filters( 'blogin_aarambha_post_comments_title', $title_output ) ); the_comments_navigation(); echo '
    '; wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 60, ) ); echo '
      '; the_comments_navigation(); /** * Functions hooked into blogin_aarambha_comments_list_after action * */ do_action( 'blogin_aarambha_comments_list_after' ); } } endif; if ( ! function_exists( 'blogin_aarambha_comment_form' ) ) : /** * comment form */ function blogin_aarambha_comment_form() { // You can start editing here -- including this comment! if ( have_comments() ) : // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() ) : ?>

      'true'] ); if ( $back_to_top && array_key_exists( 'desktop', $back_to_top ) ) : ?>
      '; $output .= ''; $output .= ''; // @codingStandardsIgnoreStart echo $output; // @codingStandardsIgnoreEnd } endif; if ( ! function_exists( 'blogin_aarambha_mobile_menu_fallback' ) ) : /** * Menu fallback for mobile menu. * * Contains wp_list_pages to display pages created, */ function blogin_aarambha_mobile_menu_fallback() { $output = ''; $output .= ''; // @codingStandardsIgnoreStart echo $output; // @codingStandardsIgnoreEnd } endif;