%s ', get_custom_logo() ); ?>

%s

'. $description .'

', esc_url( home_url('/') ), get_bloginfo('name') ); ?>

'. $description .'

', esc_url( home_url('/') ), get_bloginfo('name') ); ?> %2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( esc_html_x( ' %s', 'post date', 'blackwhite-lite' ), '' . $time_string . '' ); $byline = sprintf( esc_html_x( ' %s', 'post author', 'blackwhite-lite' ), '' . esc_html( get_the_author() ) . '' ); echo '' . $byline . ''; echo '' . $posted_on . ''; // WPCS: XSS OK. // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'blackwhite-lite' ) ); if ( $categories_list && blackwhite_lite_categorized_blog() ) { printf( '' . esc_html__( ' %1$s', 'blackwhite-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__( ', ', 'blackwhite-lite' ) ); if ( $tags_list ) { printf( '' . esc_html__( ' %1$s', 'blackwhite-lite' ) . '', $tags_list ); // WPCS: XSS OK. } } edit_post_link( sprintf( /* translators: %s: Name of current post */ esc_html__( 'Edit %s', 'blackwhite-lite' ), the_title( '"', '"', false ) ), '', '' ); } endif; if ( ! function_exists( 'blackwhite_lite_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function blackwhite_lite_posted_on() { $blackwhite_lite_theme_options = blackwhite_lite_theme_options(); $meta_items = array_flip($blackwhite_lite_theme_options['post_meta_info']); $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; //$time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( esc_html_x( '%s ', 'post date', 'blackwhite-lite' ), '' . $time_string . '' ); $byline = sprintf( esc_html_x( '%s', 'post author', 'blackwhite-lite' ), '' . esc_html( get_the_author() ) . '' ); echo '' . esc_html__( 'By ', 'blackwhite-lite' ) . $byline . ''; // WPCS: XSS OK. echo '' . $posted_on . ''; } endif; if ( ! function_exists( 'blackwhite_lite_primary_category' ) ) { function blackwhite_lite_primary_category() { $firstCategory = get_the_category_list( esc_html__( ', ', 'blackwhite-lite' ) ); echo $firstCategory; } } if ( ! function_exists( 'blackwhite_lite_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function blackwhite_lite_entry_footer() { $theme_options = blackwhite_lite_theme_options(); $meta_items = array_flip($theme_options['post_meta_info']); if ( is_single() ) { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { if ( isset( $meta_items['meta-cat'] ) ) : /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'blackwhite-lite' ) ); if ( $categories_list && blackwhite_lite_categorized_blog() ) { printf( '' . esc_html__( '%1$s', 'blackwhite-lite' ) . '', $categories_list ); // WPCS: XSS OK. } endif; if ( isset( $meta_items['meta-tag'] ) ) : /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html__( ', ', 'blackwhite-lite' ) ); if ( $tags_list ) { printf( '' . esc_html__( '%1$s', 'blackwhite-lite' ) . '', $tags_list ); // WPCS: XSS OK. } endif; } } if ( isset( $meta_items['meta-comment'] ) ) : if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; /* translators: %s: post title */ comments_popup_link( sprintf( wp_kses( __( '0 on %s', 'blackwhite-lite' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) ); echo ''; } endif; edit_post_link( sprintf( /* translators: %s: Name of current post */ esc_html__( 'Edit %s', 'blackwhite-lite' ), the_title( '"', '"', false ) ), '', '' ); } endif; if ( ! function_exists( 'blackwhite_lite_meta_category' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function blackwhite_lite_meta_category() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'blackwhite-lite' ) ); if ( $categories_list && blackwhite_lite_categorized_blog() ) { printf( '' . esc_html__( '%1$s', 'blackwhite-lite' ) . '', $categories_list ); // WPCS: XSS OK. } } } endif; /** * Returns true if a blog has more than 1 category. * * @return bool */ function blackwhite_lite_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( 'blackwhite_lite_categories' ) ) ) { // Create an array of all the categories that are attached to posts. $all_the_cool_cats = get_categories( array( 'fields' => 'ids', 'hide_empty' => 1, 'number' => 2, ) ); // Count the number of categories that are attached to the posts. $all_the_cool_cats = count( $all_the_cool_cats ); set_transient( 'blackwhite_lite_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { // This blog has more than 1 category so blackwhite_lite_categorized_blog should return true. return true; } else { // This blog has only 1 category so blackwhite_lite_categorized_blog should return false. return false; } } /** * Flush out the transients used in blackwhite_lite_categorized_blog. */ function blackwhite_lite_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } // Like, beat it. Dig? delete_transient( 'blackwhite_lite_categories' ); } add_action( 'edit_category', 'blackwhite_lite_category_transient_flusher' ); add_action( 'save_post', 'blackwhite_lite_category_transient_flusher' ); if ( ! function_exists( 'blackwhite_lite_footer_copyright' ) ) : function blackwhite_lite_footer_copyright() { printf( __( 'BlackWhite Lite powered by WordPress', 'blackwhite-lite' ), 'https://themecountry.com/blackwhite-lite/'); } endif; if ( ! function_exists( 'blackwhite_lite_the_posts_navigation' ) ) : /** |------------------------------------------------------------------------------ | Display navigation to next/previous set of posts when applicable. |------------------------------------------------------------------------------ | | @todo Remove this function when WordPress 4.3 is released. | */ function blackwhite_lite_the_posts_navigation() { $theme_options = blackwhite_lite_theme_options(); $nav_style = $theme_options['paging']; // Don't print empty markup if there's only one page. if ( $GLOBALS['wp_query']->max_num_pages < 2 ) { return; } if ( $nav_style == 'paging-numberal') : echo '
'; the_posts_pagination( array( 'prev_text' => __( '', 'blackwhite-lite' ), 'next_text' => __( '', 'blackwhite-lite' ), 'before_page_number' => '' . __( 'Page', 'blackwhite-lite' ) . ' ', ) ); echo '
'; else : ?> max_num_pages < 2 ) { return; } $theme_options = blackwhite_lite_theme_options(); $nav_style = $theme_options['paging']; if ( $nav_style == 'paging-numberal') : // Previous/next page navigation. the_posts_pagination( array( 'prev_text' => __( '', 'blackwhite-lite' ), 'next_text' => __( '', 'blackwhite-lite' ), 'before_page_number' => '' . __( 'Page', 'blackwhite-lite' ) . ' ', ) ); else : ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?>