Created
December 2, 2011 20:34
-
-
Save billrobbins/1424733 to your computer and use it in GitHub Desktop.
Media Theme Home Buttons
This file contains 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
<div id="home-right"> | |
<?php if(ot_option('button_1_image', $single = true) != ""){ ?> | |
<div class="fix fade image-button"> | |
<a href="<?php echo ot_option('button_1_url'); ?>"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo ot_option('button_1_image'); ?>&h=127&w=174&zc=1" height="127" width="174" alt="<?php echo ot_option('button_1'); ?>" /></a> | |
</div> | |
<?php } else { ?> | |
<div class="fix button"> | |
<h2><a href="<?php echo ot_option('button_1_url'); ?>"><?php echo ot_option('button_1'); ?></a></h2> | |
</div> | |
<?php } ?> | |
<?php if(ot_option('button_2_image', $single = true) != ""){ ?> | |
<div class="fix fade image-button"> | |
<a href="<?php echo ot_option('button_2_url'); ?>"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo ot_option('button_2_image'); ?>&h=127&w=174&zc=1" height="127" width="174" alt="<?php echo ot_option('button_2'); ?>" /></a> | |
</div> | |
<?php } else { ?> | |
<div class="fix button"> | |
<h2><a href="<?php echo ot_option('button_2_url'); ?>"><?php echo ot_option('button_2'); ?></a></h2> | |
</div> | |
<?php } ?> | |
<?php if(ot_option('button_3_image', $single = true) != ""){ ?> | |
<div class="fix fade image-button"> | |
<a href="<?php echo ot_option('button_3_url'); ?>"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo ot_option('button_3_image'); ?>&h=127&w=174&zc=1" height="127" width="174" alt="<?php echo ot_option('button_3'); ?>" /></a> | |
</div> | |
<?php } else { ?> | |
<div class="fix button"> | |
<h2><a href="<?php echo ot_option('button_3_url'); ?>"><?php echo ot_option('button_3'); ?></a></h2> | |
</div> | |
<?php } ?> | |
</div><!-- close buttons --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment