Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revamped entry header

  • Loading branch information...
commit 4cc7b461fd50dc64270a405f7fda2e4588c2efab 1 parent dfe3cc0
@craigcook craigcook authored
View
2  .gitignore
@@ -0,0 +1,2 @@
+.svn
+.DS_Store
View
0  README
No changes.
View
BIN  themes/OneMozilla/colors/obsidian/icn-comment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
24 themes/OneMozilla/colors/obsidian/obsidian.css
@@ -41,8 +41,7 @@ body { -webkit-tap-highlight-color: #d1d9df; }
legend { color: #c5ccd2; } /* For IE */
/* @Links *********/
-a:link { color: #fed325; }
-a:visited { color: #f2c423; }
+a:link, a:visited { color: #fed325; }
a:hover, a:focus, a:active { color: #ffe400; }
/* @Accessible @Skip links *********/
@@ -70,7 +69,23 @@ input[type=email]:focus, input[type=url]:focus, input[type=password]:focus, inpu
label .note { color: #afb6bb; }
/*** Date posted */
-.entry-posted a:link, .entry-posted a:visited, .entry-posted a:hover, .entry-posted a:focus, .entry-posted a:active { color: #c5ccd2; }
+.entry-posted { opacity: .9; }
+.entry-posted, .entry-posted a:link, .entry-posted a:visited, .entry-posted a:hover, .entry-posted a:focus, .entry-posted a:active { color: #333; }
+
+/*** Post Author */
+.entry-header .vcard {
+ border-color: #4c667a;
+ background: #4c667a;
+ background: -moz-linear-gradient(left, rgba(87,117,140,0.75) 0%, rgba(87,117,140,0.75) 10%, rgba(87,117,140,0.1) 50%, rgba(87,117,140,.75) 90%, rgba(87,117,140,0.75) 100%);
+ background: -webkit-linear-gradient(left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.75) 90%, rgba(255,255,255,0.75) 100%);
+ background: -o-linear-gradient(left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.75) 90%, rgba(255,255,255,0.75) 100%);
+ background: linear-gradient(left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.75) 90%, rgba(255,255,255,0.75) 100%);
+}
+.entry-header .vcard img { border-color: #57758c; }
+
+/*** Comment Count */
+.entry-comments { background-color: #57758c; }
+.entry-comments a { background-image: url("icn-comment.png"); border-color: #57758c; }
/*** Link buttons */
.edit a, #cancel-comment-reply a { border-color: #2e404e;
@@ -111,6 +126,7 @@ label .note { color: #afb6bb; }
@media only screen and (max-width: 767px) {
+ .entry-posted, .entry-posted a:link, .entry-posted a:visited, .entry-posted a:hover, .entry-posted a:focus, .entry-posted a:active { color: #c5ccd2; }
#nav-access a:link, #nav-access a:visited, #nav-access a:hover, #nav-access a:focus, #nav-access a:active { color: #2e475a; }
}
@@ -120,3 +136,5 @@ label .note { color: #afb6bb; }
+
+
View
2  themes/OneMozilla/content-page.php
@@ -1,10 +1,10 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
- <?php edit_post_link( __( 'Edit Page', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
+ <?php edit_post_link( __( 'Edit Page', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'onemozilla' ) . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
View
7 themes/OneMozilla/content-single.php
@@ -11,10 +11,10 @@
</time>
</p>
<?php endif; ?>
- <?php edit_post_link( __( 'Edit Post', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
+ <?php edit_post_link( __( 'Edit Post', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
<?php if (has_post_thumbnail()) { the_post_thumbnail('thumbnail', array('alt' => "", 'title' => "")); } ?>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'onemozilla' ) . '</span>', 'after' => '</div>' ) ); ?>
@@ -23,10 +23,9 @@
<footer class="entry-meta">
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php if (has_tag()) : ?>
- <p class="meta"><b>Tags:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
+ <p class="meta"><b><?php _e('Tags','onemozilla'); ?>:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
<?php endif; ?>
- <p class="meta"><b>Categories:</b> <?php the_category(', ') ?></p>
+ <p class="meta"><b><?php _e('Categories','onemozilla'); ?>:</b> <?php the_category(', ') ?></p>
<?php endif; ?>
-
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
View
54 themes/OneMozilla/content-summary.php
@@ -1,38 +1,40 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permanent link to %s', 'onemozilla' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
+ <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permanent link to &ldquo;%s&rdquo;', 'onemozilla' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if ( 'post' == get_post_type() ) : ?>
- <p class="entry-posted">
- <time class="published" title="<?php the_time('Y-m-d\TH:i:sP'); ?>" datetime="<?php the_time('Y-m-d\TH:i:sP'); ?>">
- <a class="posted-month" href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>" title="See all posts from <?php echo get_the_time('F, Y'); ?>"><?php the_time('M'); ?></a>
- <span class="posted-date"><?php the_time('j'); ?></span>
- <a class="posted-year" href="<?php echo get_year_link(get_the_time('Y'), get_the_time('y')); ?>" title="See all posts from <?php echo get_the_time('Y'); ?>"><?php the_time('Y'); ?></a>
- </time>
- </p>
- <?php endif; ?>
- <?php $options = onemozilla_get_theme_options();
- if ( $options['hide_author'] != 1 ) : ?>
- <address class="vcard">Posted by <cite class="author fn"><a class="url" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>" title="See all <?php the_author_posts() ?> posts by <?php the_author() ?>"><?php the_author() ?> <?php echo get_avatar(get_the_author_meta('user_email'), 24) ?></a></cite></address>
- <?php endif; ?>
- <?php $comment_count = get_comment_count($post->ID);
- if ( comments_open() || $comment_count['approved'] > 0 ) : ?>
- <p class="entry-comments"><a href="<?php comments_link() ?>" title="<?php comments_number('No comments yet','1 comment','% comments'); ?>"><?php comments_number('No responses yet','1 response','% responses'); ?></a></p>
- <?php endif; ?>
- </header><!-- .entry-header -->
+ <?php if ( 'post' == get_post_type() ) : // No posted date for Pages ?>
+ <p class="entry-posted">
+ <time class="published" title="<?php the_time('Y-m-d\TH:i:sP'); ?>" datetime="<?php the_time('Y-m-d\TH:i:sP'); ?>">
+
+ <a class="posted-month" href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('F, Y') ); ?>"><?php the_time('M'); ?></a>
+ <span class="posted-date"><?php the_time('j'); ?></span>
+ <a class="posted-year" href="<?php echo get_year_link(get_the_time('Y'), get_the_time('y')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('Y') ); ?>"><?php the_time('Y'); ?></a>
+ </time>
+ </p>
+ <?php endif; ?>
+
+ <?php if ( $options['hide_author'] != 1 ) : ?>
+ <address class="vcard"><?php _e('Posted by','onemozilla'); ?> <cite class="author fn"><a class="url" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>" title="<?php printf( esc_attr__('See all %1$s posts by %2$s', 'onemozilla'), the_author_posts(), the_author())?>"><?php the_author() ?> <?php echo get_avatar(get_the_author_meta('user_email'), 24) ?></a></cite></address>
@pascalchevrel Collaborator

use printf( _('Posted by %s'))

@craigcook Collaborator

I'm not sure this will work since the author name is wrapped in a lot of HTML, including other localizable strings. But I have an even better solution: lose the "Posted by" entirely, since it doesn't really add anything in this context. The name is enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ <?php endif; ?>
+
+ <?php $comment_count = get_comments_number($post->ID);
+ if ( comments_open() || pings_open() || ($comment_count > 0) ) : ?>
+ <p class="entry-comments"><a href="<?php comments_link() ?>" title="<?php comments_number('No responses yet','1 response','% responses'); ?>"><?php if ($comment_count > 999) : comments_number('0','1','1k+'); else : comments_number('0','1','%'); endif; ?></a></p>
+ <?php endif; ?>
+ </header>
<div class="entry-summary">
<?php if (has_post_thumbnail()) : ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(68,68), array('alt' => "", 'title' => ""));?></a><?php endif; ?>
-
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
- <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
- <footer class="entry-meta">
+ <?php if ( has_tag() || ( 'post' == get_post_type() ) ) : // No need for a footer if there's nothing to show ?>
+ <footer class="entry-meta">
<?php if (has_tag()) : ?>
- <p class="meta"><b>Tags:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
+ <p class="meta"><b><?php _e('Tags','onemozilla'); ?>:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
<?php endif; ?>
- <p class="meta"><b>Categories:</b> <?php the_category(', ') ?></p>
- </footer><!-- .entry-meta -->
- <?php endif; ?>
+ <p class="meta"><b><?php _e('Categories','onemozilla'); ?>:</b> <?php the_category(', ') ?></p>
+ </footer>
+ <?php endif; ?>
+
</article><!-- #post-<?php the_ID(); ?> -->
View
34 themes/OneMozilla/content.php
@@ -1,28 +1,28 @@
+<?php $options = onemozilla_get_theme_options(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permanent link to %s', 'onemozilla' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
+ <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permanent link to &ldquo;%s&rdquo;', 'onemozilla' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( 'post' == get_post_type() ) : // No posted date for Pages ?>
<p class="entry-posted">
<time class="published" title="<?php the_time('Y-m-d\TH:i:sP'); ?>" datetime="<?php the_time('Y-m-d\TH:i:sP'); ?>">
- <a class="posted-month" href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>" title="See all posts from <?php echo get_the_time('F, Y'); ?>"><?php the_time('M'); ?></a>
+
+ <a class="posted-month" href="<?php echo get_month_link(get_the_time('Y'), get_the_time('m')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('F, Y') ); ?>"><?php the_time('M'); ?></a>
<span class="posted-date"><?php the_time('j'); ?></span>
- <a class="posted-year" href="<?php echo get_year_link(get_the_time('Y'), get_the_time('y')); ?>" title="See all posts from <?php echo get_the_time('Y'); ?>"><?php the_time('Y'); ?></a>
+ <a class="posted-year" href="<?php echo get_year_link(get_the_time('Y'), get_the_time('y')); ?>" title="<?php printf( __( 'See all posts from %s', 'onemozilla' ), get_the_time('Y') ); ?>"><?php the_time('Y'); ?></a>
</time>
</p>
<?php endif; ?>
- <?php $options = onemozilla_get_theme_options();
- if ( $options['hide_author'] != 1 ) : ?>
- <address class="vcard">Posted by <cite class="author fn"><a class="url" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>" title="See all <?php the_author_posts() ?> posts by <?php the_author() ?>"><?php the_author() ?> <?php echo get_avatar(get_the_author_meta('user_email'), 24) ?></a></cite></address>
+
+ <?php if ( $options['hide_author'] != 1 ) : ?>
+ <address class="vcard"><?php _e('Posted by','onemozilla'); ?> <cite class="author fn"><a class="url" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ?>" title="<?php printf( esc_attr__('See all %1$s posts by %2$s', 'onemozilla'), the_author_posts(), the_author())?>"><?php the_author() ?> <?php echo get_avatar(get_the_author_meta('user_email'), 24) ?></a></cite></address>
<?php endif; ?>
- <?php $comment_count = get_comment_count($post->ID);
- if ( comments_open() || $comment_count['approved'] > 0 ) : ?>
- <p class="entry-comments"><a href="<?php comments_link() ?>" title="<?php comments_number('No comments yet','1 comment','% comments'); ?>"><?php comments_number('No responses yet','1 response','% responses'); ?></a></p>
- <?php endif; ?>
-
- <?php edit_post_link( __( 'Edit Post', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
- </header><!-- .entry-header -->
+ <?php $comment_count = get_comments_number($post->ID);
+ if ( comments_open() || pings_open() || ($comment_count > 0) ) : ?>
+ <p class="entry-comments"><a href="<?php comments_link() ?>" title="<?php comments_number('No responses yet','1 response','% responses'); ?>"><?php if ($comment_count > 999) : comments_number('0','1','1k+'); else : comments_number('0','1','%'); endif; ?></a></p>
@pascalchevrel Collaborator

@craigcook
<?php comments_number('No responses yet','1 response','% responses'); ?>
This function does not deal with plurals in a gettext way (see http://core.trac.wordpress.org/ticket/13651)

something like that should be work:
if($comment_count > 0) {
printf(
_n(
'1 response',
'%d responses'
$comment_count,
'onemozilla'
),
$comment_count
);
} else {
_e('No responses yet');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ <?php endif; ?>
+ </header>
<div class="entry-content">
<?php if (has_post_thumbnail()) { the_post_thumbnail('thumbnail', array('alt' => "", 'title' => "")); } ?>
@@ -31,13 +31,15 @@
<?php wp_link_pages( array( 'before' => '<p class="pages" role="navigation"><span>' . __( 'Pages:', 'onemozilla' ) . '</span>', 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
+ <?php edit_post_link( __( 'Edit Post', 'onemozilla' ), '<p class="edit">', '</p>' ); ?>
+
<?php if ( has_tag() || ( 'post' == get_post_type() ) ) : // No need for a footer if there's nothing to show ?>
<footer class="entry-meta">
<?php if (has_tag()) : ?>
- <p class="meta"><b>Tags:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
+ <p class="meta"><b><?php _e('Tags','onemozilla'); ?>:</b> <?php $tags_list = the_tags('',', ',''); ?></p>
<?php endif; ?>
- <p class="meta"><b>Categories:</b> <?php the_category(', ') ?></p>
- </footer><!-- #entry-meta -->
+ <p class="meta"><b><?php _e('Categories','onemozilla'); ?>:</b> <?php the_category(', ') ?></p>
+ </footer>
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->
View
27 themes/OneMozilla/functions.php
@@ -77,18 +77,27 @@ function onemozilla_setup() {
add_action( 'after_setup_theme', 'onemozilla_setup' );
/*********
- * Adds classes to the array of body classes.
+ * Adds classes to the array of post classes. We'll use these as style hooks for post headers.
*/
-function onemozilla_body_classes( $classes ) {
- if ( !is_active_sidebar( 'sidebar-2' ) )
- $classes[] = 'sidebar-single';
- elseif ( is_active_sidebar( 'sidebar-2' ) )
- $classes[] = 'sidebar-double';
-// if ( )
-// $classes[] = 'author';
+function onemozilla_post_classes( $classes ) {
+ $options = onemozilla_get_theme_options();
+ $comment_count = get_comments_number($post->ID);
+
+ if ( $options['hide_author'] != 1 ) {
+ $classes[] = 'show-author';
+ }
+ elseif ( $options['hide_author'] == 1 ) {
+ $classes[] = 'no-author';
+ }
+ if ( comments_open($post->ID) || pings_open($post->ID) || ($comment_count > 0) ) {
+ $classes[] = 'show-comments';
+ }
+ elseif ( !comments_open($post->ID) && !pings_open($post->ID) && ($comment_count == 0) ) {
+ $classes[] = 'no-comments';
+ }
return $classes;
}
-add_filter( 'body_class', 'onemozilla_body_classes' );
+add_filter( 'post_class', 'onemozilla_post_classes' );
/*********
* Use auto-excerpts for meta description if hand-crafted exerpt is missing
View
2  themes/OneMozilla/header.php
@@ -60,7 +60,7 @@
<ul role="navigation">
<li><a href="#content-main" tabindex="1"><?php _e( 'Skip to main content', 'onemozilla' ); ?></a></li>
<li><a href="#content-sub" tabindex="2"><?php _e( 'Skip to sidebar', 'onemozilla' ); ?></a></li>
- <?php if ( is_active_widget( false, false, 'search', true ) || ( !is_active_sidebar('sidebar-1') ) ) : ?>
+ <?php if ( is_active_widget( false, false, 'search', true ) || ( !is_active_sidebar('sidebar') ) ) : ?>
<li><a href="#search" tabindex="3"><?php _e( 'Skip to blog search', 'onemozilla' ); ?></a></li>
<?php endif; ?>
</ul>
View
BIN  themes/OneMozilla/img/bg-date-lt.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  themes/OneMozilla/img/bg-stripes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  themes/OneMozilla/img/icn-comment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
57 themes/OneMozilla/sidebar.php
@@ -1,12 +1,43 @@
<div id="content-sub" class="sub sidebar widgets" role="complementary">
-<?php
- /* There are two sidebars, and the second is optional.
- * If neither of the sidebars is active, fall back to the default single sidebar.
- */
-?>
<?php if ( !is_active_sidebar('sidebar') ) : ?>
- <aside id="categories" class="widget">
+ <?php $options = onemozilla_get_theme_options();
+ /* If we're showing authors, show the bio in the sidebar */
+ if ( ($options['hide_author'] != 1) && (is_single() || is_author()) ) : ?>
+ <aside class="widget vcard author-bio">
+ <h3 class="widget-title">
+ <?php if (get_the_author_meta('description')) : ?><?php _e('About','onemozilla'); ?><?php endif; ?>
+ <?php if (get_the_author_meta('user_url')) : ?>
+ <a class="url fn author" rel="external me" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?>
+ <?php if (function_exists('get_avatar')) : echo ('<span class="photo">'.get_avatar( get_the_author_meta('user_email'), 68 ).'</span>'); endif; ?>
+ </a>
+ <?php else : ?>
+ <a class="url fn author" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?>
+ <?php if (function_exists('get_avatar')) : echo ('<span class="photo">'.get_avatar( get_the_author_meta('user_email'), 68 ).'</span>'); endif; ?>
+ </a>
+ <?php endif; ?>
+ <?php if (get_the_author_meta('twitter_username')) : ?>
+ <?php echo '<span><a href="http://twitter.com/'.get_the_author_meta('twitter_username').'" class="url" rel="external me">@'.get_the_author_meta('twitter_username').'</a></span>'; ?>
+ <?php endif; ?>
+ </h3>
+
+ <?php if (get_the_author_meta('description')) : ?>
+ <p><?php esc_html(the_author_meta('description')); ?></p>
+ <?php endif; ?>
+
+ <?php if (!is_author()) :
+ if (get_the_author_meta('first_name')) :
+ $name = esc_html(get_the_author_meta('first_name')); // Use the first name if there is one
+ else :
+ $name = the_author(); // Fall back to the display name
+ endif;
+ ?>
+ <p><a class="url go" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php _e('More from ' . $name, 'onemozilla'); ?></a></p>
+ <?php endif; ?>
@pascalchevrel Collaborator

This call should not append $name at the end because depending of the language, the name could be at the beginning, in the middle or at the end of the sentence:
_e('More from ' . $name, 'onemozilla')

You should use something like:
printf(__('More from %s', 'onemozilla'), $name)

@pascalchevrel Collaborator

You have the same bug line 81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ </aside>
+ <?php endif; ?>
+
+ <aside id="categories" class="widget widget_categories">
<h3 class="widget-title"><?php _e('Categories', 'onemozilla'); ?></h3>
<ul>
<?php wp_list_categories('show_count=0&title_li='); ?>
@@ -18,16 +49,17 @@
<?php $options = onemozilla_get_theme_options();
/* If we're showing authors, show the bio in the sidebar */
- if ( ($options['hide_author'] != 1) && ( is_single() || is_author() ) ) : ?>
+ if ( ($options['hide_author'] != 1) && (is_single() || is_author()) ) : ?>
<aside class="widget vcard author-bio">
- <h3 class="widget-title fn author">
+ <h3 class="widget-title">
+ <?php if (get_the_author_meta('description')) : ?><?php _e('About','onemozilla'); ?><?php endif; ?>
<?php if (get_the_author_meta('user_url')) : ?>
- <a class="url" rel="external me" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?>
- <?php if (function_exists('get_avatar')) : echo ('<span class="photo">'.get_avatar( get_the_author_meta('user_email'), 48 ).'</span>'); endif; ?>
+ <a class="url fn author" rel="external me" href="<?php the_author_meta('user_url'); ?>"><?php the_author(); ?>
+ <?php if (function_exists('get_avatar')) : echo ('<span class="photo">'.get_avatar( get_the_author_meta('user_email'), 68 ).'</span>'); endif; ?>
</a>
<?php else : ?>
- <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?>
- <?php if (function_exists('get_avatar')) : echo ('<span class="photo">'.get_avatar( get_the_author_meta('user_email'), 48 ).'</span>'); endif; ?>
+ <a class="url fn author" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?>
+ <?php if (function_exists('get_avatar')) : echo ('<span class="photo">'.get_avatar( get_the_author_meta('user_email'), 68 ).'</span>'); endif; ?>
</a>
<?php endif; ?>
<?php if (get_the_author_meta('twitter_username')) : ?>
@@ -36,7 +68,6 @@
</h3>
<?php if (get_the_author_meta('description')) : ?>
- <h4><?php _e('About the Author', 'onemozilla'); ?></h4>
<p><?php esc_html(the_author_meta('description')); ?></p>
<?php endif; ?>
View
139 themes/OneMozilla/style.css
@@ -42,7 +42,7 @@ Hover #872727
/* Light */
@font-face {
- font-family: "OpenSansLight";
+ font-family: "Open Sans Light";
src: url("css/fonts/OpenSans-Light-webfont.eot");
src: url("css/fonts/OpenSans-Light-webfont.eot?#iefix") format("embedded-opentype"),
url("css/fonts/OpenSans-Light-webfont.ttf") format("truetype"),
@@ -77,7 +77,7 @@ body {
}
/* @Headings */
-h1, h2, h3, h4, h5, h6 { margin: 0 0 .25em; color: #484848; line-height: 1; font-family: "OpenSansLight", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; font-weight: normal; text-shadow: 0px 1px 0px rgba(255,255,255,0.75); }
+h1, h2, h3, h4, h5, h6 { margin: 0 0 .25em; color: #484848; line-height: 1; font-family: "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; font-weight: normal; text-shadow: 0px 1px 0px rgba(255,255,255,0.75); }
h1 { font-size: 3em; letter-spacing: -2px; }
h2 { font-size: 2em; letter-spacing: -1px; }
h3 { font-size: 1.75em; letter-spacing: -0.5px; }
@@ -86,15 +86,14 @@ h5 { font-size: 1.125em; }
h6 { font-size: 1em; }
/* @Links */
-a:link { color: #af3232; text-decoration: none; }
-a:visited { color: #af5a5a; text-decoration: none; }
-a:hover, a:focus, a:active { color: #872727; text-decoration: underline; }
+a:link, a:visited { color: #af3232; text-decoration: none; }
+a:hover, a:focus, a:active { color: #962c2c; text-decoration: underline; }
/* @Accessible @Skip links *********/
#nav-access { position: absolute; top: -50em; }
#foot-logo .top { position: absolute; left: -999em; }
#nav-access a:focus, #nav-access a:active,
-#foot-logo .top:focus, #foot-logo .top:active { position: absolute; z-index: 99; width: 204px; padding: .25em 24px; display: block; text-decoration: none; text-align: center; outline: 0; border-radius: 4px; -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.1); -o-box-shadow: 1px 1px 1px rgba(0,0,0,.1); -ms-box-shadow: 1px 1px 1px rgba(0,0,0,.1); box-shadow: 1px 1px 1px rgba(0,0,0,.1); }
+#foot-logo .top:focus, #foot-logo .top:active { position: absolute; z-index: 99; width: 204px; padding: .25em 24px; display: block; text-decoration: none; text-align: center; outline: 0; border-radius: 4px; -o-box-shadow: 1px 1px 1px rgba(0,0,0,.1); -ms-box-shadow: 1px 1px 1px rgba(0,0,0,.1); box-shadow: 1px 1px 1px rgba(0,0,0,.1); }
#nav-access a:focus, #nav-access a:active { left: 0; top: 51em; background: rgba(255,255,255,.5); border: 1px solid #af3232; }
#foot-logo .top:focus, #foot-logo .top:active { left: 48px; top: -2.75em; background: #f5f1e8; border: 1px solid #67a7d0; }
@@ -114,7 +113,7 @@ px 68 160 252 344 436 528 620 712 804 896 */
#masthead hgroup { padding-right: 340px; }
#site-title { font-size: 4.5em; letter-spacing: -3px; margin: 0 0 .15em -5px; -moz-transition: font-size, letter-spacing .5s linear; -webkit-transition: font-size, letter-spacing .5s linear; -o-transition: font-size, letter-spacing .5s linear; -ms-transition: font-size, letter-spacing .5s linear; transition: font-size, letter-spacing .5s linear; }
#site-title a { color: #333; text-decoration: none; }
-#site-title a:hover, #site-title a:focus, #site-title a:active { color: #872727; text-decoration: none; }
+#site-title a:hover, #site-title a:focus, #site-title a:active { color: #962c2c; text-decoration: none; }
#masthead #tabzilla { position: absolute; top: 0; right: 0; border: 0; }
#content:after { content: "."; display: block; clear: both; height: 0; visibility: hidden; }
@@ -135,7 +134,7 @@ px 68 160 252 344 436 528 620 712 804 896 */
.widget_calendar th, .widget_calendar td { text-align: center; padding: 1px; border: 1px solid rgba(0,0,0,.15); }
.sub .widget_nav_menu:first-child { margin-top: .35em; }
-.widget_nav_menu, .widget_categories { font: 1.285em/1.1 "OpenSansLight", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
+.widget_nav_menu, .widget_categories { font: 1.285em/1.1 "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
.widget_categories { font-size: 1em; }
.widget_nav_menu li, .widget_categories li { margin: 0; border-bottom: 1px dotted rgba(0,0,0,0.2); }
.widget_nav_menu a, .widget_categories a { display: block; padding: 8px 0; }
@@ -145,19 +144,17 @@ px 68 160 252 344 436 528 620 712 804 896 */
.widget .tagcloud a { vertical-align: middle; }
/*** @Author @Bio */
-.author-bio .fn { position: relative; padding: 0 55px 0 0; min-height: 48px; }
-.author-bio .fn a { border: 0; }
-.author-bio .fn a:hover, .author-bio .fn a:focus { text-decoration: underline; }
-.author-bio .avatar { position: absolute; top: -1px; right: -1px; border: 1px solid #fff; -moz-transition: all .1s linear; -webkit-transition: all .1s linear; -o-transition: all .1s linear; -ms-transition: all .1s linear; transition: all .1s linear; }
-.author-bio .fn a:hover .avatar, .author-bio .fn a:focus .avatar { border-color: inherit; }
-.author-bio h4 { font-size: 1.125em; }
+.author-bio .widget-title { position: relative; padding: 93px 0 0; }
+.author-bio .author { display: block; }
+.author-bio .author .avatar { position: absolute; top: -1px; left: -1px; border: 1px solid #fff; -moz-transition: all .1s linear; -webkit-transition: all .1s linear; -o-transition: all .1s linear; -ms-transition: all .1s linear; transition: all .1s linear; }
+.author-bio .author:hover .avatar, .author-bio .author:focus .avatar, .author-bio .author:active .avatar { border-color: inherit; }
.author-bio .more:after { content: "\00A0\00BB"; font-size: 1.2em; } /* nbsp raquo */
/* @Primary @navigation *********/
-#nav-primary { background-color: #fff; text-align: center; margin: 0 0 48px; padding: 0 20px; font-family: 'OpenSansLight', "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
- -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.1);
- -o-box-shadow: 0 1px 0 rgba(0,0,0,0.1);
- box-shadow: 0 1px 0 0 rgba(0,0,0,0.1);
+#nav-primary { background-color: #fff; text-align: center; margin: 0 0 48px; padding: 0 20px; font-family: 'Open Sans Light', "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
+ -ms-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
+ -o-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
+ box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
#nav-primary ul { list-style: none; margin: 0; }
#nav-primary li { display: inline-block; padding: 12px 15px; }
@@ -170,27 +167,49 @@ px 68 160 252 344 436 528 620 712 804 896 */
/*** @Titles */
.page-title { margin: -.3em 0 24px; }
.archive .page-title, .search-results .page-title { margin-top: 0; font-size: 1.75em; letter-spacing: -0.5px; }
-.entry-title { font-size: 2em; margin: 0 0 .5em; }
+
+.entry-title { font-size: 2em; letter-spacing: -1px; margin: 0 0 .5em; min-height: 55px; }
.single-post .entry-title, .page .entry-title { font-size: 3em; letter-spacing: -2px; margin: -.3em 0 24px; }
+.post.no-author .entry-title { float: left; width: 430px; }
/*** Entry @Meta */
-.entry-meta { clear: both; border-bottom: 1px solid rgba(255,255,255,.5); padding: 12px 24px 8px; background: rgba(0,0,0,.02); box-shadow: inset 0 0 3px rgba(0,0,0,.1); font: .785em/1.1 "OpenSansRegular", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
+.entry-meta { clear: both; border-bottom: 1px solid rgba(255,255,255,.5); margin: 1em 0 0; padding: 12px 24px 8px; background: rgba(0,0,0,.02); box-shadow: inset 0 0 3px rgba(0,0,0,.1); font: .785em/1.1 "OpenSansRegular", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
.entry-meta p { margin: 0 0 .5em; }
.entry-meta b { margin-right: 10px; font-weight: normal; text-transform: uppercase; }
/*** Entry @Header */
-.entry-header { position: relative; padding: 0 0 1em 48px; margin-left: -48px; }
+.entry-header { position: relative; padding: .5em 0 1em; margin: 0 0 24px; }
+.post .entry-header { padding-left: 92px; }
.entry-header:after { content: "."; display: block; clear: both; height: 0; visibility: hidden; }
-.entry-header .vcard { float: left; font-style: normal; font-size: .857em; position: relative; padding-left: 35px; margin-right: 24px; }
+/*** Post Author */
+.entry-header .vcard { position: relative; float: left; margin: 0 0 0 -92px; width: 430px; border: 1px solid #fff; padding: 15px 22px 15px 67px; font: 1em/1 "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
+ -o-box-shadow: 0 1px 1px rgba(0,0,0,.1);
+ -ms-box-shadow: 0 1px 1px rgba(0,0,0,.1);
+ box-shadow: 0 1px 1px rgba(0,0,0,.1);
+ background: #fff;
+ background: -moz-linear-gradient(left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.75) 90%, rgba(255,255,255,0.75) 100%);
+ background: -webkit-linear-gradient(left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.75) 90%, rgba(255,255,255,0.75) 100%);
+ background: -o-linear-gradient(left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.75) 90%, rgba(255,255,255,0.75) 100%);
+ background: linear-gradient(left, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.75) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.75) 90%, rgba(255,255,255,0.75) 100%);
+}
+.no-comments .entry-header .vcard { width: 528px; }
.entry-header cite { font-style: normal; }
-.entry-header .vcard img { position: absolute; left: 0; top: -.25em; border: 1px solid #fff; }
-.entry-header .vcard a:hover img, .entry-meta .vcard a:focus img, .entry-meta .vcard a:active img { border-color: inherit; }
+.entry-header .vcard img { position: absolute; left: 0; top: .75em; left: 24px; border: 1px solid #fff; }
+.entry-header .vcard a:hover img, .entry-header .vcard a:focus img, .entry-header .vcard a:active img { border-color: inherit; }
-.entry-header .entry-comments { font-size: .857em; float: left; margin-right: 24px; }
+/*** Comment Count */
+.entry-comments { float: right; background: #fff; margin: 0; width: 92px; font: 1em/1 "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; -o-box-shadow: 0 1px 1px rgba(0,0,0,.1); -ms-box-shadow: 0 1px 1px rgba(0,0,0,.1); box-shadow: 0 1px 1px rgba(0,0,0,.1); }
+.entry-comments a { display: block; background: transparent url("img/icn-comment.png") 24px 17px no-repeat; padding: 15px 5px 15px 47px; border: 1px solid #fff; }
+.entry-comments a:hover, .entry-comments a:focus, .entry-comments a:active { background-position: 24px -83px; }
+
+.show-author { }
+.no-author { }
+.show-comments { }
+.no-comments { }
/*** @Edit buttons */
-.entry-header .edit { font-size: .857em; float: left; }
+.edit { font-size: .857em; }
.edit a { display: inline-block; padding: 1px 5px; margin-top: -2px; border: 1px solid #ccc; border-radius: 4px;
background: #eee;
background: -moz-linear-gradient(top, #fff 0, #eee 100%);
@@ -198,16 +217,15 @@ px 68 160 252 344 436 528 620 712 804 896 */
background: linear-gradient(top, #fff 0, #eee 100%);
}
.edit a:hover, .edit a:focus { border-color: #999; }
-.single .entry-header .edit, .page .entry-header .edit { margin: 0; }
/*** @Posted date */
-.entry-posted { opacity: .5; position: absolute; float: right; left: -.6em; top: -.8em; width: 4em; text-align: center; font: 10px/1 "OpenSansLight", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
-.single .entry-posted { top: .6em; }
+.entry-posted { position: absolute; left: 0; top: 0; width: 48px; padding: 6px 10px 16px; background: url("img/bg-date-lt.png") center top no-repeat; text-align: center; font: 10px/1 "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
.entry-posted a:link, .entry-posted a:visited, .entry-posted a:hover, .entry-posted a:focus, .entry-posted a:active { color: #3c3c3c; }
.entry-posted .posted-month { display: block; font-size: 1.4em; text-transform: uppercase; }
.entry-posted .posted-date { display: block; font-size: 2.6em; line-height: .95; }
.entry-posted .posted-year { display: block; font-size: 1.4em; }
+
/* @Content *********/
.entry-content ul { list-style-type: square; }
.entry-content li ul, .entry-content li ol { margin: 0 0 0 20px; }
@@ -222,7 +240,18 @@ px 68 160 252 344 436 528 620 712 804 896 */
.entry-content tbody th { text-align: left; }
.entry-content pre { overflow: auto; }
.entry-content code { font-size: .857em; }
-.entry-content img, .entry-summary img { padding: 1px; background-color: #fff; border: 11px solid #fff; box-shadow: 0 1px 1px rgba(0,0,0,.1); -moz-transition: all .1s ease-out; }
+.entry-content img, .entry-summary img { padding: 1px; background-color: #fff; border: 11px solid #fff; box-shadow: 0 1px 1px rgba(0,0,0,.1);
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -o-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ -moz-transition: all .1s ease-out;
+ -webkit-transition: all .1s ease-out;
+ -o-transition: all .1s ease-out;
+ -ms-transition: all .1s ease-out;
+ transition: all .1s ease-out;
+}
.entry-content a:hover img, .entry-content a:focus img, .entry-content a:active img { background-color: #872727; -moz-transition: all .1s ease-in; }
ins { text-decoration: none; background: #e9f5e6; }
@@ -242,13 +271,13 @@ a .alignleft { margin: 0 24px .5em 0; }
a .alignright { margin: 0 0 .5em 24px; }
.aligncenter { display: block; margin: 0 auto 1.5em; }
-.wp-caption { margin-bottom: .75em; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.1); padding: 12px; }
+.wp-caption { margin-bottom: .75em; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.1); padding: 12px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -o-box-sizing: border-box; box-sizing: border-box; }
.wp-caption.aligncenter { clear: both; margin: 0 auto 1.5em; }
-.wp-caption img { display: block; margin: 0; max-width: 100%; border: 0; box-shadow: none; }
+.wp-caption img { display: block; margin: 0; border: 0; max-width: 100%; box-shadow: none; }
.wp-caption.aligncenter img { margin: 0 auto; }
.wp-caption .wp-caption-text { margin: .75em 5px 0; font-size: .923em; line-height: 1.2; font-style: italic; text-align: center; }
-.entry-content .wp-post-image, .entry-summary .wp-post-image { float: right; margin: 0 0 .5em 24px; }
+.entry-content .wp-post-image, .entry-summary .wp-post-image { float: left; margin: 0 24px .5em 0; }
a.go:after { content: "\00A0\00BB"; font-size: 1.2em; } /* nbsp raquo */
@@ -273,7 +302,7 @@ a.go:after { content: "\00A0\00BB"; font-size: 1.2em; } /* nbsp raquo */
.pages .current, .pages b { background: #447bc4; color: #fff; }
.pages a b { padding: 0; margin: 0; background: transparent; color: inherit; }
-.nav-paging { margin: 24px 0; padding: 12px 20px; background-color: #fff; font: 1em/1 'OpenSansLight', "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; box-shadow: 0 1px 0 0 rgba(0,0,0,0.1); }
+.nav-paging { margin: 24px 0; padding: 12px 20px; background-color: #fff; font: 1em/1 'Open Sans Light', "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; box-shadow: 0 1px 0 0 rgba(0,0,0,0.1); }
.nav-paging ul { list-style: none; margin: 0; }
.nav-paging ul:after { content: "."; display: block; clear: both; height: 0; visibility: hidden; }
.nav-paging .prev { width: 45%; float: left; text-align: left; }
@@ -315,7 +344,7 @@ input[type=submit], button {
padding: 8px 24px;
border: 0;
text-shadow: 0 1px 0 rgba(0,0,0,0.25);
- font: .857em/1.1 "OpenSansLight", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
+ font: .857em/1.1 "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
background-color: #276195;
background-image: -moz-linear-gradient(#3c88cc,#276195);
background-image: -ms-linear-gradient(#3c88cc,#276195);
@@ -330,7 +359,7 @@ input[type=submit], button {
input[type=submit]:hover, input[type=submit]:focus, button:hover, button:focus { box-shadow:0 2px 0 0 rgba(0,0,0,0.1),inset 0 -2px 0 0 rgba(0,0,0,0.2),inset 0 12px 24px 2px #3089d8; }
form li { margin-bottom: 1em; }
-label { display: block; padding: 0 0 .5em; font: 1em/1.2 "OpenSansLight", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
+label { display: block; padding: 0 0 .5em; font: 1em/1.2 "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
label .note { color: #666; }
.pwform { margin: 0 0 1.5em; }
@@ -368,14 +397,12 @@ input:-moz-placeholder { text-transform: uppercase; }
margin: 0 0 24px;
border: 1px solid #ccc;
border-color: rgba(0,0,0,0.05);
- -webkit-box-shadow: inset rgba(0,0,0,0.048) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
-o-box-shadow: inset rgba(0,0,0,0.048) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
-ms-box-shadow: inset rgba(0,0,0,0.048) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
box-shadow: inset rgba(0,0,0,0.048) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
}
#comment-list .byuser {
border-color: #fff;
- -webkit-box-shadow: inset rgba(255,255,255,1) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
-o-box-shadow: inset rgba(255,255,255,1) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
-ms-box-shadow: inset rgba(255,255,255,1) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
box-shadow: inset rgba(255,255,255,1) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
@@ -404,7 +431,7 @@ input:-moz-placeholder { text-transform: uppercase; }
/* @Comment @Form *********/
#comment-form { position: relative; padding: 3em 0 0; }
-#comment-form legend span { position: absolute; top: 0; margin: 0 0 .25em; letter-spacing: -1px; font: 1.5em/1 "OpenSansLight", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
+#comment-form legend span { position: absolute; top: 0; margin: 0 0 .25em; letter-spacing: -1px; font: 1.5em/1 "Open Sans Light", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; }
#comment-form .self { margin-bottom: 1em; }
#comment-form .self .logout { font-size: .923em; margin-left: 1em; }
@@ -432,7 +459,7 @@ input:-moz-placeholder { text-transform: uppercase; }
#site-info { background: #fff; color: #bbb; font-size: .857em; padding: 48px 0; border-top: 1px solid rgba(0,0,0,.1); overflow: hidden; }
#foot-logo, #colophon, #nav-meta { float: left; width: 252px; margin-right: 24px; }
#site-info a:link, #site-info a:visited { color: #67a7d0; }
-#site-info a:hover, #site-info a:focus, #site-info a:active { color: #4090c4; }
+#site-info a:hover, #site-info a:focus, #site-info a:active { color: #5c94b8; }
#foot-logo .logo { display: block; float: left; width: 92px; height: 26px; text-indent: -999em; overflow: hidden; border: 0; background: url("img/logo-mozilla-lt.png") 0 0 no-repeat; opacity: .8;
-moz-transition: opacity .1s linear;
-webkit-transition: opacity .1s linear;
@@ -460,15 +487,13 @@ px 68 160 252 344 436 528 620 712 */
.sub { width: 160px; }
#content-sub .sidebar.second { float: right; }
-
#site-title { font-size: 3em; letter-spacing: -2px; margin-left: 0; }
#site-description { font-size: 1.5em; letter-spacing: -.5px; }
- .entry-posted { opacity: 1; position: static; float: none; width: 100%; text-align: left; font-size: .857em; margin: -.25em 0 1em; }
- .entry-posted a, .entry-posted span { -moz-transition: all .1s linear; -webkit-transition: all .1s linear; -o-transition: all .1s linear; -ms-transition: all .1s linear; transition: all .1s linear; }
- .entry-posted .posted-month { display: inline; font-size: 1em; text-transform: none; }
- .entry-posted .posted-date { display: inline; font-size: 1em; line-height: 1.2; }
- .entry-posted .posted-year { display: inline; font-size: 1em; }
+ .entry-header .vcard { width: 338px; }
+ .no-comments .entry-header .vcard { width: 430px; }
+
+ .wp-caption { max-width: 95%; }
#foot-logo, #colophon, #nav-meta { width: 160px; margin: 0 0 1em 24px; }
@@ -496,20 +521,27 @@ px 68 160 252 */
#site-title { font-size: 2em; letter-spacing: -.5px; margin-left: 0; }
#site-description { font-size: 1.2em; letter-spacing: normal; }
+ .post .entry-title { min-height: 0; }
.archive .page-title, .search-results .page-title { font-size: 1.75em; letter-spacing: -0.5px; }
.single .entry-title, .page .entry-title { font-size: 2em; letter-spacing: -1px; }
- .entry-posted { opacity: 1; position: static; float: none; width: auto; text-align: left; font-size: .857em; margin: -.25em 0 1em; }
+ .post .entry-header { padding-left: 0; }
+
+ .entry-posted { position: static; width: auto; text-align: left; font-size: .857em; padding: 0; margin: -.25em 0 1em; background: none; }
.entry-posted .posted-month { display: inline; font-size: 1em; text-transform: none; }
.entry-posted .posted-date { display: inline; font-size: 1em; line-height: 1.2; }
.entry-posted .posted-year { display: inline; font-size: 1em; }
- .entry-header .vcard { float: none; padding: 0; margin: 0 0 .5em; }
- .entry-header .vcard img { display: none; }
- .entry-header .entry-comments { float: none; margin: 0 0 .5em; }
- .entry-header .edit { float: none; margin: 0 0 .5em; }
+ .post .entry-header .vcard { float: none; width: auto; margin: .5em 0; padding: 6px 12px; }
+ .entry-header .avatar { display: none; }
+
+ .entry-comments { float: none; width: auto; margin: .5em 0; }
+ .entry-comments a { padding: 0; padding: 6px 0 6px 36px; background-position: 12px 8px; }
+ .entry-comments a:hover, .entry-comments a:focus, .entry-comments a:active { background-position: 12px -92px; }
.alignleft, .alignright { max-width: 50%; height: auto; }
+ .size-thumbnail { max-width: 30%; height: auto; }
+ .wp-caption { max-width: 90%; }
#comment-list.av .comment { padding-left: 19px; }
#comment-list ol.children .comment { margin: 0 -10px -10px; }
@@ -550,10 +582,5 @@ px 68 160 252 344 436 */
#content-sub .sidebar { float: left; width: 205px; }
#content-sub .sidebar.second { float: right; }
-
- .entry-header .vcard { float: left; padding-left: 35px; margin-right: 24px; }
- .entry-header .vcard img { display: inline; }
- .entry-header .entry-comments { float: left; margin-right: 24px; }
- .entry-header .edit { display: block; float: left; }
}
@pascalchevrel

This call should not append $name at the end because depending of the language, the name could be at the beginning, in the middle or at the end of the sentence:
_e('More from ' . $name, 'onemozilla')

You should use something like:
printf(__('More from %s', 'onemozilla'), $name)

@pascalchevrel

You have the same bug line 81

@pascalchevrel

use printf( _('Posted by %s'))

@pascalchevrel

@craigcook
<?php comments_number('No responses yet','1 response','% responses'); ?>
This function does not deal with plurals in a gettext way (see http://core.trac.wordpress.org/ticket/13651)

something like that should be work:
if($comment_count > 0) {
printf(
_n(
'1 response',
'%d responses'
$comment_count,
'onemozilla'
),
$comment_count
);
} else {
_e('No responses yet');
}

@craigcook

I'm not sure this will work since the author name is wrapped in a lot of HTML, including other localizable strings. But I have an even better solution: lose the "Posted by" entirely, since it doesn't really add anything in this context. The name is enough.

Please sign in to comment.
Something went wrong with that request. Please try again.