</h1> <?php if (wolf_get_theme_option('video_author')) { ?> <div class="video-author-meta clearfix"> <?php echo get_avatar(get_the_author_meta('user_email'), 48); ?> <span class="video-author-name"> <a class="author-link" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?> " rel="author"> <?php wolf_the_author(); ?> </a> </span> </div> <?php } ?> <?php if (comments_open() && wolf_get_theme_option('video_comments')) { ?> <span class="item-icon" title="<?php printf(__('%d comments', 'wolf'), $comments); ?> ">
<h5 class="author-name"><?php wolf_the_author(); ?> </h5> </div><!-- .author-avatar --> <p class="author-socials"><?php wolf_display_author_socials(); ?> <p> <div class="author-description"> <p> <?php the_author_meta('description'); ?> </p> <?php if (!is_author()) { ?> <a class="author-link wolf-button small border-button-accent-hover" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?> " rel="author"> <?php printf(__('View all posts by %s <span class="meta-nav">→</span>', 'wolf'), wolf_the_author(false)); ?> </a> <?php } ?> </div><!-- .author-description --> </div><!-- .author-info -->
?> "><?php the_title(); ?> </a> </span> <?php if (wolf_get_theme_option('video_author')) { ?> <span class="video-author-name"> <a class="author-link" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?> " rel="author"> <?php printf(__('from %s', 'wolf'), wolf_the_author(false)); ?> </a> </span> <?php } ?> <?php if (wolf_get_theme_option('video_views')) { ?> <span class="item-views-count"><?php printf(_n('1 view', '%s views', $views, 'wolf'), $views); ?> </span> <?php }
/** * Entry Meta * * @return string $output */ function wolf_post_entry_meta($echo = true) { $output = ''; $post_id = get_the_ID(); if (is_sticky() && is_home() && !is_paged()) { $output .= '<span class="featured-post">' . __('Featured', 'wolf') . '</span>'; } if (!has_post_format('link') && 'post' == get_post_type() || is_search()) { $output .= wolf_entry_date(false); } // Post author if ('post' == get_post_type() && is_multi_author()) { $output .= sprintf('<span class="byline"><span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span></span>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'wolf'), get_the_author())), wolf_the_author(false)); } if ('work' == get_post_type()) { $categories_list = get_the_term_list($post_id, 'work_type', '', ', ', ''); } elseif ('video' == get_post_type()) { $categories_list = get_the_term_list($post_id, 'video_type', '', ', ', ''); } elseif ('gallery' == get_post_type()) { $categories_list = get_the_term_list($post_id, 'gallery_type', '', ', ', ''); } elseif ('plugin' == get_post_type()) { $categories_list = get_the_term_list($post_id, 'plugin_cat', '', ', ', ''); } elseif ('theme' == get_post_type()) { $categories_list = get_the_term_list($post_id, 'theme_cat', '', ', ', ''); } else { // Translators: used between list items, there is a space after the comma. $categories_list = get_the_category_list(__(', ', 'wolf')); } if ($categories_list) { $output .= '<span class="categories-links">' . $categories_list . '</span>'; } // Translators: used between list items, there is a space after the comma. $tag_list = get_the_tag_list('', __(', ', 'wolf')); if ($tag_list) { $output .= '<span class="tags-links">' . $tag_list . '</span>'; } if ($echo) { echo wp_kses($output, array('span' => array('class' => array()), 'a' => array('href' => array(), 'rel' => array(), 'class' => array()), 'time' => array('class' => array(), 'datetime' => array()))); } return $output; }