Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 4 commits
  • 10 files changed
  • 1 commit comment
  • 1 contributor
2  author.php
View
@@ -16,7 +16,7 @@
</div>
<div class="author-meta">
<?php
- if ( the_author_meta( 'description' ) == '' )
+ if ( get_the_author_meta( 'description' ) == '' )
_e( 'No information is provided by the author.', 'ar2' );
else
the_author_meta( 'description' );
2  content-audio.php
View
@@ -81,7 +81,7 @@
<div class="author-meta">
<h4><?php printf( __( 'About %s', 'ar2' ), get_the_author_meta( 'display_name' ) ) ?></h4>
<?php
- if ( the_author_meta( 'description' ) == '' )
+ if ( get_the_author_meta( 'description' ) == '' )
_e( 'No information is provided by the author.', 'ar2' );
else
the_author_meta( 'description' );
2  content-image.php
View
@@ -81,7 +81,7 @@
<div class="author-meta">
<h4><?php printf( __( 'About %s', 'ar2' ), get_the_author_meta( 'display_name' ) ) ?></h4>
<?php
- if ( the_author_meta( 'description' ) == '' )
+ if ( get_the_author_meta( 'description' ) == '' )
_e( 'No information is provided by the author.', 'ar2' );
else
the_author_meta( 'description' );
2  content-video.php
View
@@ -81,7 +81,7 @@
<div class="author-meta">
<h4><?php printf( __( 'About %s', 'ar2' ), get_the_author_meta( 'display_name' ) ) ?></h4>
<?php
- if ( the_author_meta( 'description' ) == '' )
+ if ( get_the_author_meta( 'description' ) == '' )
_e( 'No information is provided by the author.', 'ar2' );
else
the_author_meta( 'description' );
2  content.php
View
@@ -88,7 +88,7 @@
<div class="author-meta">
<h4><?php printf( __( 'About %s', 'ar2' ), get_the_author_meta( 'display_name' ) ) ?></h4>
<?php
- if ( the_author_meta( 'description' ) == '' )
+ if ( get_the_author_meta( 'description' ) == '' )
_e( 'No information is provided by the author.', 'ar2' );
else
the_author_meta( 'description' );
27 full-width-page.php
View
@@ -16,36 +16,9 @@
<article id="post-<?php the_ID() ?>" <?php post_class() ?>>
<header class="entry-header clearfix">
- <?php
- if ( ar2_get_theme_option( 'post_display[post_cats]' ) ) {
- $post_cats = array();
- $cats = get_the_category();
-
- foreach ( $cats as $c )
- $post_cats[] = '<a href="' . get_category_link( $c->cat_ID ) . '">' . $c->cat_name . '</a>';
-
- echo '<div class="entry-cats">' . implode( ', ', $post_cats ) . '</div>';
- }
- ?>
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title() ?></a></h1>
- <?php if ( ar2_get_theme_option( 'post_display[post_author]' ) ) : ?>
- <div class="entry-author">
- <?php printf( __( 'Posted by %1$s %2$s', 'ar2' ),
- '<address class="author vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" title="' . esc_attr( get_the_author() ) . '">' . get_the_author() . '</a></address>',
- '<abbr class="published">' . ar2_posted_on( false ) . '</abbr>'
- ); ?>
- <?php edit_post_link( __( 'Edit', 'ar2' ) ) ?>
- </div>
- <?php else : ?>
- <div class="entry-author">
- <?php printf( __( 'Posted %s', 'ar2' ), '<abbr class="published">' . ar2_posted_on( false ) . '</abbr>' ); ?>
- <?php edit_post_link( __( 'Edit', 'ar2' ) ) ?>
- </div>
- <?php endif ?>
-
-
<?php if ( ar2_get_theme_option( 'post_display[single_thumbs]' ) && has_post_thumbnail( $post->ID ) ) : ?>
<div class="entry-photo"><?php echo ar2_get_thumbnail( 'single-thumb' ) ?></div>
<?php endif ?>
2  image.php
View
@@ -79,7 +79,7 @@
<div class="author-meta">
<h4><?php printf( __( 'About %s', 'ar2' ), get_the_author_meta( 'display_name' ) ) ?></h4>
<?php
- if ( the_author_meta( 'description' ) == '' )
+ if ( get_the_author_meta( 'description' ) == '' )
_e( 'No information is provided by the author.', 'ar2' );
else
the_author_meta( 'description' );
25 library/styles.php
View
@@ -731,21 +731,32 @@ function ar2_header_style() {
$text_color = get_header_textcolor();
?>
<style type="text/css">
- #branding {
- <?php if ( $image ) : ?>
- height: <?php echo get_custom_header()->height; ?>px;
- background: url( <?php echo $image ?> ) no-repeat;
- <?php endif ?>
- }
+ <?php if ( $image ) : ?>
<?php if ( 'blank' == $text_color ) : ?>
- .logo {
+ .logo {
+ float: none;
+ padding: 0;
text-indent: -9000px;
}
+ .blog-name a:link, .blog-name a:visited {
+ display: block;
+ width: 100%;
+ height: 120px;
+ background: url( <?php echo $image ?> ) no-repeat;
+ }
+ .blog-description {
+ display: none;
+ }
<?php else : ?>
+ #branding {
+ height: <?php echo get_custom_header()->height; ?>px;
+ background: url( <?php echo $image ?> ) no-repeat;
+ }
.blog-name a:link, .blog-name a:visited, .blog-description {
color: #<?php echo $text_color ?>;
}
<?php endif ?>
+ <?php endif ?>
</style>
<?php
29 page.php
View
@@ -8,36 +8,9 @@
<article id="post-<?php the_ID() ?>" <?php post_class() ?>>
<header class="entry-header clearfix">
- <?php
- if ( ar2_get_theme_option( 'post_display[post_cats]' ) ) {
- $post_cats = array();
- $cats = get_the_category();
- foreach ( $cats as $c )
- $post_cats[] = '<a href="' . get_category_link( $c->cat_ID ) . '">' . $c->cat_name . '</a>';
-
- echo '<div class="entry-cats">' . implode( ', ', $post_cats ) . '</div>';
- }
- ?>
-
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title() ?></a></h1>
-
- <?php if ( ar2_get_theme_option( 'post_display[post_author]' ) ) : ?>
- <div class="entry-author">
- <?php printf( __( 'Posted by %1$s on %2$s', 'ar2' ),
- '<address class="author vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" title="' . esc_attr( get_the_author() ) . '">' . get_the_author() . '</a></address>',
- '<abbr class="published">' . ar2_posted_on( false ) . '</abbr>'
- ); ?>
- <?php edit_post_link( __( 'Edit', 'ar2' ) ) ?>
- </div>
- <?php else : ?>
- <div class="entry-author">
- <?php printf( __( 'Posted %s', 'ar2' ), '<abbr class="published">' . ar2_posted_on( false ) . '</abbr>' ); ?>
- <?php edit_post_link( __( 'Edit', 'ar2' ) ) ?>
- </div>
- <?php endif ?>
-
-
+
<?php if ( ar2_get_theme_option( 'post_display[single_thumbs]' ) && has_post_thumbnail( $post->ID ) ) : ?>
<div class="entry-photo"><?php echo ar2_get_thumbnail( 'single-thumb' ) ?></div>
<?php endif ?>
11 style.css
View
@@ -1600,8 +1600,17 @@ article.page .entry-header h1.entry-title {
.logo {
width: 100%;
float: none;
- padding: 1em 0;
+ padding: 1em 0 !important;
text-align: center;
+ text-indent: 0 !important;
+ }
+
+ .blog-name a:link, .blog-name a:visited {
+ height: auto !important;
+ }
+
+ .blog-description {
+ display: block !important;
}
/* Bottom Sidebar */

Showing you all comments on commits in this comparison.

Melvin Lee
Owner

it's header not leader. sorry :P

Something went wrong with that request. Please try again.