Permalink
Browse files

Update version to 1.5. Fixes for author page.

  • Loading branch information...
1 parent f71c8b1 commit 808b3c66bd11814739c5a4001dd3f32cf7d62056 @devinsays committed Jan 23, 2013
Showing with 43 additions and 9 deletions.
  1. +21 −4 author.php
  2. +2 −1 changelog.txt
  3. +1 −2 extensions/options-functions.php
  4. +19 −2 style.css
View
@@ -11,12 +11,29 @@
<div id="content" role="main">
<?php the_post(); ?>
-
- <h2 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'portfoliopress' ), "<a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h2>
+
+ <h2 class="page-title"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'portfoliopress' ), "<a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h2>
<?php rewind_posts(); ?>
-
- <?php get_template_part( 'content', 'author' ); ?>
+
+ <?php
+ // If a user has filled out their description, show a bio on their entries.
+ if ( get_the_author_meta( 'description' ) ) : ?>
+ <div class="author-info clearfix">
+ <div class="author-avatar">
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'portfoliopress_author_bio_avatar_size', 60 ) ); ?>
+ </div><!-- .author-avatar -->
+ <div class="author-description">
+ <h3><?php printf( __( 'About %s', 'portfoliopress' ), get_the_author() ); ?></h3>
+ <p><?php the_author_meta( 'description' ); ?></p>
+ </div><!-- .author-description -->
+ </div><!-- .author-info -->
+ <?php endif; ?>
+
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
+ <?php get_template_part( 'content', get_post_format() ); ?>
+ <?php endwhile; ?>
</div><!-- #content -->
</div><!-- #primary -->
View
@@ -1,9 +1,10 @@
-Portfolio Press (Development)
+Portfolio Press 1.5
- Add single portfolio post navigation back
- Add fullwidth portfolio thumnail size
- Max-width for iframe,embeds and objects
- Better responsive menu
+- Author page displays posts and author description
Portfolio Press 1.4.1
@@ -1,7 +1,6 @@
<?php
/**
- * @package WordPress
- * @subpackage Portfolio Press
+ * @package Portfolio Press
*/
/**
View
@@ -4,7 +4,7 @@ Description: Portfolio Press is a responsive theme for showcasing your photograp
Author: Devin Price
Author URI: http://wptheming.com/
Theme URI: http://wptheming.com/portfolio-theme/
-Version: 1.4.1
+Version: 1.5
License: GNU General Public License
License URI: license.txt
Tags: white, black, gray, two-columns, left-sidebar, right-sidebar, flexible-width, custom-menu, full-width-template, microformats, post-formats, rtl-language-support, theme-options, translation-ready
@@ -503,7 +503,7 @@ footer.entry-meta:before, footer.entry-meta:after {
margin-bottom: 20px;
margin-top:-5px;
}
-.archive-meta:after {
+.archive-meta:after, .author .page-title:after, .author-info:after {
content: '';
width: 100%;
height: 1px;
@@ -514,6 +514,23 @@ footer.entry-meta:before, footer.entry-meta:after {
margin-top:10px;
}
+/* Author Template */
+
+.author-info:after {
+ margin-bottom:20px;
+}
+.author-avatar {
+ float:left;
+ margin-right:20px;
+ margin-bottom:10px;
+}
+.author-description {
+ float:left;
+}
+#content .author-description h3 {
+ padding-bottom:10px;
+}
+
/* Alignment */
.alignleft {

0 comments on commit 808b3c6

Please sign in to comment.