' . __('by', 'aari') . ' : %3$s '; printf($authorof, esc_url(get_author_posts_url($get_author_id)), esc_url($get_author_gravatar), esc_attr(get_the_author()) ); $time_string = ''; 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()) ); $byline = sprintf( /* translators: %s: post author. */ esc_html_x('by %s', 'post author', 'aari'), '' . esc_html(get_the_author()) . '' ); /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(esc_html__(', ', 'aari')); if ($categories_list) { /* translators: 1: list of categories. */ printf('' . esc_html__('%1$s', 'aari') . '', $categories_list); // WPCS: XSS OK. } printf( /* translators: %s: post date. */ esc_html_x('%s', '', 'aari'), '' . $time_string . '' ); } endif; if (!function_exists('gutenbergtheme_entry_footer')) : /** * Prints HTML with meta information for the categories, tags and comments. */ function gutenbergtheme_entry_footer() { if (!is_single() && !post_password_required() && ( comments_open() || get_comments_number() )) { echo ''; comments_popup_link( __('Leave a comment', 'aari'), __('1 Comment', 'aari'), __('% Comments', 'aari') ); echo ''; } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __('Edit %s', 'aari'), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if (!function_exists('aari_single_post_header')) : /** * Prints HTML with meta information for the current post-date/time and author. */ function aari_single_post_header() { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(esc_html__(', ', 'aari')); if ($categories_list) { /* translators: 1: list of categories. */ //printf('
' . esc_html__('%1$s', 'aari') . '
', $categories_list); // WPCS: XSS OK. } echo (get_theme_mod('disable_post_breadcrumbs') ? '' : aari_breadcrumbs()); the_title('

', '

'); $time_string = ''; 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()) ); $get_author_id = get_the_author_meta('ID'); if (!get_theme_mod('disable_post_details')) { if (!is_page()): printf('
%2$s
%4$s
', get_day_link(get_post_time('Y'), get_post_time('m'), get_post_time('j')), $time_string, esc_url(get_author_posts_url($get_author_id)), esc_attr(get_the_author())); endif; } } endif; if (!function_exists('aari_single_tags_cloud')) : /** * Prints HTML with meta information for the current post-date/time and author. */ function aari_single_tags_cloud() { $categories_list = get_the_category_list(esc_html__(', ', 'aari')); if ($categories_list) { /* translators: 1: list of categories. */ if (!get_theme_mod('disable_category_cloud')) { printf('%1$s ' . esc_html__('%2$s', 'aari') . '', _x('Post Categories: ', 'aari','aari'), $categories_list); // WPCS: XSS OK. } } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', _x(' ', 'Used between list items, there is a space after the comma.', 'aari')); if ($tags_list && !is_wp_error($tags_list) && !get_theme_mod('disable_tag_cloud')) { printf( '%1$s %2$s', _x('Tags: ', 'Used before tag names.', 'aari'), $tags_list ); } } endif; if (!function_exists('aari_post_footer_author')) : /** * Prints HTML with meta information for the current post-date/time and author. */ function aari_post_footer_author() { $get_author_id = get_the_author_meta('ID'); $get_author_gravatar = get_avatar_url($get_author_id); $time_string = ''; 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()) ); $author_details = '
'; printf($author_details, esc_url($get_author_gravatar), esc_url(get_author_posts_url($get_author_id)), esc_attr(get_the_author()), $time_string ); } endif; if (!function_exists('aari_related_post_ext')) : function aari_related_post_ext() { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(esc_html__(', ', 'aari')); if ($categories_list) { /* translators: 1: list of categories. */ $cats = sprintf('' . esc_html__('%1$s', 'aari') . '', $categories_list); // WPCS: XSS OK. } $time_string = ''; 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()) ); $cats .= sprintf('%2$s', get_day_link(get_post_time('Y'), get_post_time('m'), get_post_time('j')), $time_string); return $cats; } endif;