Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re: Issue #49 obey user option not to display header text

  • Loading branch information...
commit 727b659d63f80c88b115932b7d10df12ff33bb07 1 parent 5b33e0d
@chipbennett authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 functions/hooks.php
View
7 functions/hooks.php
@@ -873,10 +873,13 @@ function oenology_hook_site_header() {
$site_header = '';
+ $site_header_name = ( 'blank' != get_header_textcolor() ? get_bloginfo( 'name' ) : ' ' );
+ $site_header_description = ( 'blank' != get_header_textcolor() ? get_bloginfo( 'description' ) : ' ' );
+
// Displays the blog name, as defined on the General Settings page in the administration panel
- $site_header .= '<div class="site-header-text">' . get_bloginfo( 'name' ) . '</div>';
+ $site_header .= '<div class="site-header-text">' . $site_header_name . '</div>';
// Displays the blog description, as defined on the General Settings page in the administration panel
- $site_header .= '<p>' . get_bloginfo( 'description' ) . '</p>';
+ $site_header .= '<p>' . $site_header_description . '</p>';
echo apply_filters( 'oenology_hook_site_header', $site_header );
}
Please sign in to comment.
Something went wrong with that request. Please try again.