summaryrefslogtreecommitdiff
path: root/header.php.patch
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2011-09-25 00:05:54 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2011-09-25 00:05:54 -0700
commit6b26bca2593f258cadbca656924b4e6b5c40a7c7 (patch)
treeef6a78f7fa4e6041d2f590da045e994f993024c3 /header.php.patch
parent90d0a66ce3ca3e0edd696bdcab9854480783ff74 (diff)
meh do stuff
Diffstat (limited to 'header.php.patch')
-rw-r--r--header.php.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/header.php.patch b/header.php.patch
new file mode 100644
index 0000000..9fba494
--- /dev/null
+++ b/header.php.patch
@@ -0,0 +1,52 @@
+--- ../twentyeleven/header.php 2011-06-23 16:03:46.000000000 -0700
++++ header.php 2011-08-18 21:17:57.000000000 -0700
+@@ -71,43 +71,15 @@
+ <div id="page" class="hfeed">
+ <header id="branding" role="banner">
+ <hgroup>
+- <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
+- <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
++ <?php $url = esc_url(home_url('/')); ?>
++ <h1 id="team-name"><a href="<?php echo $url;?>" rel="home">Kil-a-Bytes</a></h1>
++ <h2><a href="<?php echo $url;?>">M<span class="lower">c</span>Kenzie Center for Innovation and Technology</a></h2>
++ <h1 id="team-number"><a href="<?php echo $url;?>">1024</a></h1>
+ </hgroup>
+
+- <?php
+- // Check to see if the header image has been removed
+- $header_image = get_header_image();
+- if ( ! empty( $header_image ) ) :
+- ?>
+- <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
+- <?php
+- // The header image
+- // Check if this is a post or page, if it has a thumbnail, and if it's a big one
+- if ( is_singular() &&
+- has_post_thumbnail( $post->ID ) &&
+- ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
+- $image[1] >= HEADER_IMAGE_WIDTH ) :
+- // Houston, we have a new header image!
+- echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
+- else : ?>
+- <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
+- <?php endif; // end check for featured image or standard header ?>
+- </a>
+- <?php endif; // end check for removed header image ?>
+-
+- <?php
+- // Has the text been hidden?
+- if ( 'blank' == get_header_textcolor() ) :
+- ?>
+- <div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
+- <?php get_search_form(); ?>
+- </div>
+- <?php
+- else :
+- ?>
++ <div class="only-search with-image">
+ <?php get_search_form(); ?>
+- <?php endif; ?>
++ </div>
+
+ <nav id="access" role="navigation">
+ <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>