Created
December 30, 2011 20:10
-
-
Save chrisguitarguy/1541274 to your computer and use it in GitHub Desktop.
Wrapping a logo image in an H1 on certain pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $logo_wrap = in_array( $_SERVER['REQUEST_URI'], array( '/magazine', '/blog', '/' ) ) ? 'h1' : 'div'; ?> | |
<<?php echo $logo_wrap; ?> class="al_left"> | |
<a href="http://www.2xist.com"> | |
<img id="logo" src="http://www.2xist.com/images/logo-2xist.gif" alt="2xist Mens Underwear" title="2xist Mens Underwear" /> | |
</a> | |
</<?php echo $logo_wrap; ?>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment