Permalink
Cannot retrieve contributors at this time
48 lines (34 sloc)
1.26 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inkblot/author.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Author archive template. | |
* | |
* For Webcomic-specific archives, see `webcomic/archive.php`. | |
* | |
* @package Inkblot | |
* @see codex.wordpress.org/Template_Hierarchy | |
*/ | |
get_header(); ?> | |
<main role="main"> | |
<?php if (have_posts()) : ?> | |
<header class="page-header"> | |
<h1><?php printf(__('<span class="screen-reader-text">%s </span>%s'), __('Posts authored by', 'inkblot'), apply_filters('the_author', get_the_author_meta('display_name'))); ?></h1> | |
</header><!-- .page-header --> | |
<?php if (get_avatar(get_the_author_meta('user_email'))) : ?> | |
<div class="page-image"><?php print get_avatar(get_the_author_meta('user_email'), 128); ?></div><!-- .page-image --> | |
<?php endif; ?> | |
<?php if (get_the_author_meta('description')) : ?> | |
<div class="page-content"><?php the_author_meta('description'); ?></div><!-- .page-content --> | |
<?php endif; ?> | |
<?php | |
while (have_posts()) : the_post(); | |
(webcomic() and is_a_webcomic()) | |
? get_template_part('webcomic/content', get_post_type()) | |
: get_template_part('content', get_post_format()); | |
endwhile; | |
print inkblot_posts_nav(false, get_theme_mod('paged_navigation', true)); | |
else: | |
get_template_part('content', 'none'); | |
endif; | |
?> | |
</main> | |
<?php get_sidebar(); get_footer(); |