本文整理汇总了PHP中get_post_format_string函数的典型用法代码示例。如果您正苦于以下问题:PHP get_post_format_string函数的具体用法?PHP get_post_format_string怎么用?PHP get_post_format_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_post_format_string函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: twentysixteen_entry_meta
function twentysixteen_entry_meta()
{
ob_start();
if ('post' === get_post_type()) {
ob_start();
twentysixteen_entry_date();
$postedOn = ob_get_clean();
$author_avatar_size = apply_filters('twentysixteen_author_avatar_size', 49);
printf('<div class="name-date"><div class="name"><span class="screen-reader-text">%2$s </span> <a class="url fn n" href="%3$s">%4$s</a></div><div class="date">%5$s</div></div><div class="avatar">%1$s</div>', get_avatar(get_the_author_meta('user_email'), $author_avatar_size), _x('Author', 'Used before post author name.', 'twentysixteen'), esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_the_author(), $postedOn);
}
if (in_array(get_post_type(), array('attachment'))) {
twentysixteen_entry_date();
}
$authordate = ob_get_clean();
printf('<div class="author-date">%s</div>', $authordate);
$format = get_post_format();
if (current_theme_supports('post-formats', $format)) {
printf('<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf('<span class="screen-reader-text">%s </span>', _x('Format', 'Used before post format.', 'twentysixteen')), esc_url(get_post_format_link($format)), get_post_format_string($format));
}
echo '<div class="taxonomies">';
if ('post' === get_post_type()) {
twentysixteen_entry_taxonomies();
}
echo '</div>';
if (!is_singular() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<span class="comments-link">';
comments_popup_link(sprintf(__('Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen'), get_the_title()));
echo '</span>';
}
}
示例2: get_value
/**
* @see CPAC_Column::get_value()
* @since 2.0
*/
function get_value($post_id)
{
if (!($format = $this->get_raw_value($post_id))) {
return false;
}
return esc_html(get_post_format_string($format));
}
示例3: warrior_archive_title
function warrior_archive_title()
{
global $wp_query;
$title = '';
if (is_category()) {
$title = sprintf(__('%s <span>Category Archives</span>', 'familia'), single_cat_title('', false));
} elseif (is_tag()) {
$title = sprintf(__('%s <span>Tag Archives</span>', 'familia'), single_tag_title('', false));
} elseif (get_post_format()) {
$title = sprintf(__('Post Format: %s', 'familia'), get_post_format_string(get_post_format()));
} elseif (is_day()) {
$title = sprintf(__('%s <span>Daily Archives</span>', 'familia'), date_i18n('d', strtotime(get_the_date('Y-m-d'), false)));
} elseif (is_month()) {
$title = sprintf(__('%s <span>Monthly Archives</span>', 'familia'), date_i18n('F', strtotime(get_the_date('Y-m-d'), false)));
} elseif (is_year()) {
$title = sprintf(__('%s <span>Yearly Archives</span>', 'familia'), date_i18n('F', strtotime(get_the_date('Y-m-d'), false)));
} elseif (is_author()) {
$author = get_user_by('slug', get_query_var('author_name'));
$title = sprintf(__('%s <span>Author Archives</span>', 'familia'), get_the_author_meta('display_name', $author->ID));
} elseif (is_search()) {
if ($wp_query->found_posts) {
$title = sprintf(__('Search Results for: "%s"', 'familia'), esc_attr(get_search_query()));
} else {
$title = sprintf(__('No Results for: "%s"', 'familia'), esc_attr(get_search_query()));
}
} elseif (is_404()) {
$title = __('Not Found', 'familia');
} elseif (is_home() || is_front_page() || is_single()) {
$title = '';
} else {
$title = __('Blog', 'familia');
}
return $title;
}
示例4: directory_theme_entry_meta
function directory_theme_entry_meta()
{
if (is_sticky() && is_home() && !is_paged()) {
printf('<span class="sticky-post">%s</span>', __('Featured', 'directory-starter'));
}
$format = get_post_format();
if (current_theme_supports('post-formats', $format)) {
printf('<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf('<span class="screen-reader-text">%s </span>', _x('Format', 'Used before post format.', 'directory-starter')), esc_url(get_post_format_link($format)), get_post_format_string($format));
}
if (in_array(get_post_type(), array('post', 'attachment'))) {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
$time_string = sprintf($time_string, esc_attr(get_the_date('c')), get_the_date(), esc_attr(get_the_modified_date('c')), get_the_modified_date());
printf('<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', _x('Posted on', 'Used before publish date.', 'directory-starter'), esc_url(get_permalink()), $time_string);
}
if ('post' == get_post_type()) {
if (is_singular() || is_multi_author()) {
printf('<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>', _x('Author', 'Used before post author name.', 'directory-starter'), esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_the_author());
}
$categories_list = get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'directory-starter'));
if ($categories_list) {
printf('<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', _x('Categories', 'Used before category names.', 'directory-starter'), $categories_list);
}
$tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'directory-starter'));
if ($tags_list) {
printf('<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', _x('Tags', 'Used before tag names.', 'directory-starter'), $tags_list);
}
}
if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<span class="comments-link">';
comments_popup_link(__('Leave a comment', 'directory-starter'), __('1 Comment', 'directory-starter'), __('% Comments', 'directory-starter'));
echo '</span>';
}
}
示例5: entry_date
function entry_date($echo = true)
{
$format_prefix = '%2$s';
$date = sprintf('<time class="date updated" role="update" datetime="%1$s">%2$s</time>', esc_attr(get_the_date('c')), esc_html(sprintf($format_prefix, get_post_format_string(get_post_format()), get_the_date())));
if ($echo) {
echo $date;
}
return $date;
}
示例6: apostrophe_post_format
function apostrophe_post_format()
{
$format = get_post_format();
$formats = get_theme_support('post-formats');
// If the post has no format, or if it's not a format supported by the theme, return early
if (!$format || !has_post_format($formats[0])) {
return;
}
printf('<a class="entry-format format-%1$s" href="%2$s" title="%3$s"><span class="screen-reader-text">%1$s</span></a>', esc_html(strtolower(get_post_format_string($format))), esc_url(get_post_format_link($format)), sprintf(esc_html('All %s posts', 'apostrophe'), esc_html(get_post_format_string($format))));
}
示例7: enlightenment_post_formats
function enlightenment_post_formats()
{
$formats = get_theme_support('post-formats');
$post_formats = array();
foreach ($formats[0] as $format) {
$post_formats[$format] = get_post_format_string($format);
if (current_theme_supports('enlightenment-grid-loop')) {
$post_formats[$format . '-teaser'] = get_post_format_string($format) . ' Teaser';
}
}
return apply_filters('enlightenment_post_formats', $post_formats);
}
示例8: twentyfifteen_entry_meta
/**
* Prints HTML with meta information for the categories, tags.
*
* @since Twenty Fifteen 1.0
*/
function twentyfifteen_entry_meta()
{
if (is_sticky() && is_home() && !is_paged()) {
printf('<span class="sticky-post">%s</span>', __('Featured', 'twentyfifteen'));
}
$format = get_post_format();
if (current_theme_supports('post-formats', $format)) {
printf('<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf('<span class="screen-reader-text">%s </span>', _x('Format', 'Used before post format.', 'twentyfifteen')), esc_url(get_post_format_link($format)), get_post_format_string($format));
}
if (in_array(get_post_type(), array('post', 'attachment'))) {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if (get_the_time('U') !== get_the_modified_time('U')) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
}
$time_string = sprintf($time_string, esc_attr(get_the_date('D')), get_the_date(), esc_attr(get_the_modified_date('c')), get_the_modified_date());
printf('<li class="icon fa-calendar posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></li>', _x('', 'Used before publish date.', 'twentyfifteen'), esc_url(get_permalink()), get_the_date('d/M'));
}
if ('post' == get_post_type()) {
if (is_singular() || is_multi_author()) {
// printf( '<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>',
// _x( 'Author', 'Used before post author name.', 'twentyfifteen' ),
// esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
// get_the_author()
// );
}
$categories_list = get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen'));
if ($categories_list && twentyfifteen_categorized_blog()) {
printf('<li class="cat-links icon fa fa-clone"><span class="screen-reader-text">%1$s </span>%2$s</li>', _x('Categories', 'Used before category names.', 'twentyfifteen'), $categories_list);
}
$tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen'));
if ($tags_list) {
printf('<li class="tags-links icon fa-tags"><span class="screen-reader-text">%1$s </span>%2$s</li>', _x('', 'Used before tag names.', 'twentyfifteen'), $tags_list);
}
}
if (is_attachment() && wp_attachment_is_image()) {
// Retrieve attachment metadata.
$metadata = wp_get_attachment_metadata();
printf('<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>', _x('Full size', 'Used before full size attachment link.', 'twentyfifteen'), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height']);
}
if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<li class="icon fa-comment">';
/* translators: %s: post title */
echo get_comments_number();
echo '</li>';
/* translators: %s: post title */
// $categories = get_categories();
// foreach ($categories as $key => $category) {
// echo '<li class="icon fa-clone">';
// echo $category->name;
// echo '</li>';
// }
}
}
示例9: mr_tailor_post_header_entry_date
function mr_tailor_post_header_entry_date($echo = true)
{
if (has_post_format(array('chat', 'status'))) {
$format_prefix = _x('%1$s on %2$s', '1: post format name. 2: date', 'mr_tailor');
} else {
$format_prefix = '%2$s';
}
$date = sprintf('<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', esc_url(get_permalink()), esc_attr(sprintf(__('Permalink to %s', 'mr_tailor'), the_title_attribute('echo=0'))), esc_attr(get_the_date('c')), esc_html(sprintf($format_prefix, get_post_format_string(get_post_format()), get_the_date())));
if ($echo) {
echo $date;
}
return $date;
}
示例10: getInput
protected function getInput()
{
$html = array();
// Initialize some field attributes.
$class = !empty($this->class) ? ' class="radio ' . $this->class . '"' : ' class="radio"';
$required = $this->required ? ' required aria-required="true"' : '';
$autofocus = $this->autofocus ? ' autofocus' : '';
$disabled = $this->disabled ? ' disabled' : '';
$readonly = $this->readonly;
// Start the radio field output.
$html[] = '<div id="' . $this->id . '"' . $class . $required . $autofocus . $disabled . ' >';
$options = array();
$options[] = 0;
$post_formats = get_theme_support('post-formats');
if ($post_formats == false) {
return null;
}
foreach ($post_formats[0] as $format) {
$options[] = $format;
}
// Build the radio field output.
foreach ($options as $i => $option) {
// Initialize some option attributes.
$checked = (string) $option == (string) $this->value ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
if (0 === $option) {
$class_label = 'class="post-format-icon post-format-standard"';
} else {
$class_label = 'class = "post-format-icon post-format-' . esc_attr($option) . '"';
}
$disabled = !empty($option->disable) || $readonly && !$checked;
$disabled = $disabled ? ' disabled' : '';
// Initialize some JavaScript option attributes.
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$onchange = !empty($option->onchange) ? ' onchange="' . $option->onchange . '"' : '';
$html[] = '<label style="display:block;">';
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '" value="' . htmlspecialchars($option, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $required . $onclick . $onchange . $disabled . ' />';
// $html[] = '<label for="' . $this->id . $i . '"' . $class_label . ' >'
// . esc_html( get_post_format_string( $option ) ) . '</label>';
$html[] = '<i ' . $class_label . '></i>';
$html[] = esc_html(get_post_format_string($option));
$html[] = '</label>';
$required = '';
}
// End the radio field output.
$html[] = '</fieldset>';
return implode($html) . '</div><div><span class="help-block">' . $this->description . '</span>';
}
示例11: twentyfifteen_entry_meta
/**
* Prints HTML with meta information for the categories, tags.
*
* @since Twenty Fifteen 1.0
*/
function twentyfifteen_entry_meta()
{
if (is_sticky() && is_home() && !is_paged()) {
printf('<span class="sticky-post">%s</span>', __('Featured', 'twentyfifteen'));
}
$format = get_post_format();
if (current_theme_supports('post-formats', $format)) {
printf('<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf('<span class="screen-reader-text">%s </span>', _x('Format', 'Used before post format.', 'twentyfifteen')), esc_url(get_post_format_link($format)), get_post_format_string($format));
}
if (in_array(get_post_type(), array('post', 'attachment'))) {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if (get_the_time('U') !== get_the_modified_time('U')) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
}
$time_string = sprintf($time_string, esc_attr(get_the_date('c')), get_the_date(), esc_attr(get_the_modified_date('c')), get_the_modified_date());
printf('<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', _x('Posted on', 'Used before publish date.', 'twentyfifteen'), esc_url(get_permalink()), $time_string);
}
if ('post' == get_post_type()) {
if (is_singular() || is_multi_author()) {
printf('<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>', _x('Author', 'Used before post author name.', 'twentyfifteen'), esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_the_author());
}
$categories_list = get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen'));
if ($categories_list && twentyfifteen_categorized_blog()) {
printf('<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', _x('Categories', 'Used before category names.', 'twentyfifteen'), $categories_list);
}
$tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen'));
if ($tags_list) {
printf('<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', _x('Tags', 'Used before tag names.', 'twentyfifteen'), $tags_list);
}
}
if (is_attachment() && wp_attachment_is_image()) {
// Retrieve attachment metadata.
$metadata = wp_get_attachment_metadata();
printf('<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>', _x('Full size', 'Used before full size attachment link.', 'twentyfifteen'), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height']);
}
$_number_roman = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
$_number_tibet = array('༠', '༡', '༢', '༣', '༤', '༥', '༦', '༧', '༨', '༩');
$_number = get_comments_number();
$new_number = str_replace($_number_roman, $_number_tibet, $_number);
//echo $new_number;
if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<span class="comments-link">';
comments_popup_link(__('Leave a comment', 'twentyfifteen'), __('1 Comment', 'twentyfifteen'), __('% Comments', 'twentyfifteen'));
echo '</span>';
}
}
示例12: twentysixteen_entry_meta
function twentysixteen_entry_meta()
{
if (in_array(get_post_type(), array('post', 'attachment'))) {
twentysixteen_entry_date();
}
$format = get_post_format();
if (current_theme_supports('post-formats', $format)) {
printf('<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf('<span class="screen-reader-text">%s </span>', _x('Format', 'Used before post format.', 'twentysixteen')), esc_url(get_post_format_link($format)), get_post_format_string($format));
}
if ('post' === get_post_type()) {
twentysixteen_entry_taxonomies();
}
if (!is_singular() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<span class="comments-link">';
comments_popup_link(sprintf(__('Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen'), get_the_title()));
echo '</span>';
}
}
示例13: ubik_meta_type
function ubik_meta_type($link = true)
{
// Exit early if we're not in the loop
if (!in_the_loop()) {
return;
}
// This sets a default type that can be overridden later
$type = apply_filters('ubik_meta_type_default', __('Post', 'ubik'));
// Content type
if (is_attachment()) {
if (wp_attachment_is_image()) {
$type = __('Image', 'ubik');
} else {
$type = __('Attachment', 'ubik');
}
} elseif (is_page()) {
$type = __('Page', 'ubik');
}
// Post format voodoo
$post_format = get_post_format();
if (!empty($post_format)) {
$type = apply_filters('ubik_meta_post_format', get_post_format_string($post_format));
if ($link === true) {
$type = '<a href="' . esc_url(get_post_format_link($post_format)) . '">' . $type . '</a>';
}
}
// Post type voodoo; get all post types that aren't built-in and cycle through to see if we have a match
$post_types = get_post_types(array('public' => true, '_builtin' => false), 'objects');
if (!empty($post_types)) {
foreach ($post_types as $post_type) {
if ($post_type->name === get_post_type()) {
if ($post_type->has_archive && $link === true) {
$type = sprintf('<a href="%1$s">%2$s</a>', esc_url(get_post_type_archive_link($post_type->name)), $post_type->labels->singular_name);
} else {
$type = $post_type->labels->singular_name;
}
}
}
}
// Return whatever we have found
return apply_filters('ubik_meta_type', $type);
}
示例14: launchpad_entry_meta
/**
* Prints HTML with meta information for the categories, tags.
*
* @since Twenty Fifteen 1.0
*/
function launchpad_entry_meta()
{
if (is_sticky() && is_home() && !is_paged()) {
printf('<span class="sticky-post">%s</span>', __('Featured', 'lifterlms-launchpad'));
}
$format = get_post_format();
if (current_theme_supports('post-formats', $format)) {
printf('<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf('<span class="meta-label">%s </span>', _x('Format', 'Used before post format.', 'lifterlmns-launchpad')), esc_url(get_post_format_link($format)), get_post_format_string($format));
}
if (in_array(get_post_type(), array('post', 'attachment'))) {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
// if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
// $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
// }
$time_string = sprintf($time_string, esc_attr(get_the_date('c')), get_the_date(), esc_attr(get_the_modified_date('c')), get_the_modified_date());
printf('<span class="posted-on"><span class="meta-label">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', _x('Posted on', 'Used before publish date.', 'lifterlms-launchpad'), esc_url(get_permalink()), $time_string);
}
if ('post' == get_post_type()) {
if (is_singular() || is_multi_author()) {
printf('<span class="byline"><span class="author vcard"><span class="meta-label">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>', _x('Author', 'Used before post author name.', 'lifterlms-launchpad'), esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_the_author());
}
$categories_list = get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'lifterlms-launchpad'));
if ($categories_list && launchpad_categorized_blog()) {
printf('<span class="cat-links"><span class="meta-label">%1$s </span>%2$s</span>', _x('Categories', 'Used before category names.', 'lifterlms-launchpad'), $categories_list);
}
$tags_list = get_the_tag_list('', _x(', ', 'Used between list items, there is a space after the comma.', 'lifterlms-launchpad'));
if ($tags_list) {
printf('<span class="tags-links"><span class="meta-label">%1$s </span>%2$s</span>', _x('Tags', 'Used before tag names.', 'lifterlms-launchpad'), $tags_list);
}
}
if (is_attachment() && wp_attachment_is_image()) {
// Retrieve attachment metadata.
$metadata = wp_get_attachment_metadata();
printf('<span class="full-size-link"><span class="meta-label">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>', _x('Full size', 'Used before full size attachment link.', 'lifterlms-launchpad'), esc_url(wp_get_attachment_url()), $metadata['width'], $metadata['height']);
}
if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<span class="comments-link">';
/* translators: %s: post title */
comments_popup_link(sprintf(__('Leave a comment<span class="meta-label"> on %s</span>', 'lifterlms-launchpad'), get_the_title()));
echo '</span>';
}
}
示例15: wp_futurelab_entry_meta
/**
* Prints HTML with meta information for the categories, tags.
*
* Create your own wp_futurelab_entry_meta() function to override in a child theme.
*
*/
function wp_futurelab_entry_meta()
{
if ('post' === get_post_type()) {
$author_avatar_size = apply_filters('wp_futurelab_author_avatar_size', 49);
printf('<span class="byline"><span class="author vcard">%1$s<span class="screen-reader-text">%2$s </span> <a class="url fn n" href="%3$s">%4$s</a></span></span>', get_avatar(get_the_author_meta('user_email'), $author_avatar_size), _x('Author', 'Used before post author name.', 'wp_futurelab'), esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_the_author());
}
if (in_array(get_post_type(), array('post', 'attachment'))) {
wp_futurelab_entry_date();
}
$format = get_post_format();
if (current_theme_supports('post-formats', $format)) {
printf('<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf('<span class="screen-reader-text">%s </span>', _x('Format', 'Used before post format.', 'wp_futurelab')), esc_url(get_post_format_link($format)), get_post_format_string($format));
}
if ('post' === get_post_type()) {
wp_futurelab_entry_taxonomies();
}
if (!is_singular() && !post_password_required() && (comments_open() || get_comments_number())) {
echo '<span class="comments-link">';
comments_popup_link(sprintf(__('Leave a comment<span class="screen-reader-text"> on %s</span>', 'wp_futurelab'), get_the_title()));
echo '</span>';
}
}