'; $thelist = ''; $i = 0; foreach (get_the_category() as $category) { if (0 < $i) $thelist .= ' '; $thelist .= '' . $category->name . ''; $i++; } echo $thelist; echo ''; } } endif; // Category Badge End // Category if (!function_exists('bootscore_category')) : function bootscore_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__(', ', 'aspace')); if ($categories_list) { /* translators: 1: list of categories. */ printf('', $categories_list); // WPCS: XSS OK. } } } endif; // Category End // Date if (!function_exists('bootscore_date')) : /** * Prints HTML with meta information for the current post-date/time. */ function bootscore_date() { $time_string = ''; if (get_the_time('U') !== get_the_modified_time('U')) { $time_string = ' / '; } $time_string = sprintf( $time_string, esc_attr(get_the_date(DATE_W3C)), esc_html(get_the_date()), esc_attr(get_the_modified_date(DATE_W3C)), esc_html(get_the_modified_date()) ); $posted_on = sprintf( /* translators: %s: post date. */ '%s', '' . $time_string . '' ); echo '' . $posted_on . ''; // WPCS: XSS OK. } endif; // Date End // Author if (!function_exists('bootscore_author')) : function bootscore_author() { $byline = sprintf( esc_html_x('by %s', 'post author', 'aspace'), '' ); echo ''; // WPCS: XSS OK. } endif; // Author End // Comments if (!function_exists('bootscore_comments')) : /** * Prints HTML with meta information for the categories, tags and comments. */ function bootscore_comments() { if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) { echo ' | '; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __('Leave a Comment', 'aspace'), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } endif; // Comments End // Edit Link if (!function_exists('bootscore_edit')) : /** * Prints HTML with the comment count for the current post. */ function bootscore_edit() { edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __('Edit', 'aspace'), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), ' | ', '' ); } endif; // Edit Link End // Single Comments Count if (!function_exists('bootscore_comment_count')) : /** * Prints HTML with the comment count for the current post. */ function bootscore_comment_count() { if (!post_password_required() && (comments_open() || get_comments_number())) { echo ' | '; /* translators: %s: Name of current post. Only visible to screen readers. */ // comments_popup_link( sprintf( __( 'Leave a comment on %s', 'aspace' ), get_the_title() ) ); comments_popup_link(sprintf(__('Leave a comment', 'aspace'), get_the_title())); echo ''; } } endif; // Single Comments Count End // Tags if (!function_exists('bootscore_tags')) : /** * Prints HTML with meta information for the categories, tags and comments. */ function bootscore_tags() { // Hide category and tag text for pages. if ('post' === get_post_type()) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', ' '); if ($tags_list) { /* translators: 1: list of tags. */ printf('
', $tags_list); // WPCS: XSS OK. } } } add_filter("term_links-post_tag", 'add_tag_class'); function add_tag_class($links) { return str_replace(' 'rounded mb-3')); ?> the_title_attribute(array( 'echo' => false, )), )); ?>