' . esc_html( get_the_date() ) . ''; // show author ?> ' . esc_html__( 'Posted in %1$s', 'awesome-blog-lite' ) . '', $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html__( ', ', 'awesome-blog-lite' ) ); if ( $tags_list ) { printf( '', $tags_list ); // WPCS: XSS OK. } } if ( ! is_single() && ! is_search() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( esc_html__( 'Leave a comment', 'awesome-blog-lite' ), esc_html__( '1 Comment', 'awesome-blog-lite' ), esc_html__( '% Comments', 'awesome-blog-lite' ) ); echo ''; } edit_post_link( sprintf( /* translators: %s: Name of current post */ esc_html__( 'Edit %s', 'awesome-blog-lite' ), the_title( '"', '"', false ) ), '', '' ); } endif; /** * Multi-page navigation. */ if ( ! function_exists( 'awesome_blog_multipage_nav' ) ) : function awesome_blog_multipage_nav() { wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '', 'pagelink' => '' . esc_html__( 'Page', 'awesome-blog-lite' ) . ' %', 'separator' => ', ', ) ); } endif; /** * Blog pagination when more than one page of post summaries. * Add classes to next_posts_link and previous_posts_link */ add_filter('next_posts_link_attributes', 'awesome_blog_posts_link_attributes_1'); add_filter('previous_posts_link_attributes', 'awesome_blog_posts_link_attributes_2'); function awesome_blog_posts_link_attributes_1() { return 'class="post-nav-older"'; } function awesome_blog_posts_link_attributes_2() { return 'class="post-nav-newer"'; } /** * Single Post previous or next navigation. */ if ( ! function_exists( 'awesome_blog_post_pagination' ) ) : function awesome_blog_post_pagination() { the_post_navigation( array( 'next_text' => ' ' . '' . esc_html__( 'Next Post:', 'awesome-blog-lite' ) . ' ' . '%title', 'prev_text' => ' ' . '' . esc_html__( 'Previous Post:', 'awesome-blog-lite' ) . ' ' . '%title', ) ); } endif; /** * Category dropdown */ if ( !function_exists( 'awesome_blog_categories_dropdown' ) ) : /** * Category dropdown * * @return array(); */ function awesome_blog_categories_dropdown() { $awesome_blog_categories = get_categories( array( 'hide_empty' => 1 ) ); $awesome_blog_categories_lists = array(); $awesome_blog_categories_lists['0'] = esc_html__( 'Select Category', 'awesome-blog-lite' ); foreach( $awesome_blog_categories as $category ) { $awesome_blog_categories_lists[esc_attr( $category->slug )] = esc_html( $category->name ); } return $awesome_blog_categories_lists; } endif; /** * Category checkbox list */ if ( !function_exists( 'awesome_blog_categories_checklist' ) ) : /** * Category list * * @return array(); */ function awesome_blog_categories_checklist() { $awesome_blog_categories = get_categories( array( 'hide_empty' => 1 ) ); $awesome_blog_categories_lists = array(); foreach( $awesome_blog_categories as $category ) { $awesome_blog_categories_lists[esc_attr( $category->slug )] = esc_html( $category->name ) .' ('. absint( $category->count ) .')'; } return $awesome_blog_categories_lists; } endif; /** * awesome_blog_entry_meta */ if ( !function_exists( 'awesome_blog_entry_meta' ) ) : /** * Category list * * @return array(); */ function awesome_blog_entry_meta() { ?>
' . esc_html( get_the_date() ) . ''; // show author ?>