%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', 'opus-blog'), '' . $time_string . '' ); $byline = sprintf( esc_html_x('By %s', 'post author', 'opus-blog'), '' . esc_html(get_the_author()) . '' ); if ( $meta === 1 ) { echo '' . $posted_on . ''; } } endif; if (!function_exists('opus_blog_posted_by')) : /** * Prints HTML with meta information for the current author. */ function opus_blog_posted_by() { $byline = sprintf( /* translators: %s: post author. */ esc_html_x('by %s', 'post author', 'opus-blog'), '' . esc_html(get_the_author()) . '' ); global $opus_blog_theme_options; $meta = absint($opus_blog_theme_options['opus-blog-content-meta-hide']); if ( $meta === 1 ) { echo ' ' . $byline . ''; // WPCS: XSS OK. } } endif; if (!function_exists('opus_blog_entry_footer')) : /** * Prints HTML with meta information for the categories, tags and comments. */ function opus_blog_entry_footer() { // 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__(', ', 'opus-blog')); global $opus_blog_theme_options; $meta = absint($opus_blog_theme_options['opus-blog-content-meta-hide']); if ($categories_list && $meta === 1 ) { printf('' . '' . esc_html__('%1$s', 'opus-blog') . '', $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__(', ', 'opus-blog')); if ($tags_list && $meta === 1 ) { printf('' . '' . esc_html__('%1$s', 'opus-blog') . '', $tags_list); // WPCS: XSS OK. } if( $meta === 1 ) { ?> ' . /* translators: %s: Name of current post */ esc_html__('Edit %s', 'opus-blog'), the_title('"', '"', false) ), '', '' ); } endif; /** * Post Thumbnail * * @since Opus Blog 1.0.0 */ if (!function_exists('opus_blog_post_thumbnail')) : /** * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. */ function opus_blog_post_thumbnail() { if (post_password_required() || is_attachment() || !has_post_thumbnail()) { return; } if (is_singular()) : ?>