Skip to content

Instantly share code, notes, and snippets.

@erickarbe
Created August 31, 2012 18:38
Show Gist options
  • Save erickarbe/3557120 to your computer and use it in GitHub Desktop.
Save erickarbe/3557120 to your computer and use it in GitHub Desktop.
Get Number for Homepage Slider
<?php $number = get_tiger_balm('tiger_slideshownumber');
if ( $number == "0" ) { ?>
<img id="slide1" src="<?php echo get_tiger_balm('tiger_slide1'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide2" src="<?php echo get_tiger_balm('tiger_slide2'); ?>" alt="<?php bloginfo('name'); ?>" />
<?php } elseif ($number == "1") { ?>
<img id="slide1" src="<?php echo get_tiger_balm('tiger_slide1'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide2" src="<?php echo get_tiger_balm('tiger_slide2'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide3" src="<?php echo get_tiger_balm('tiger_slide3'); ?>" alt="<?php bloginfo('name'); ?>" />
<?php } elseif ( $number == "2" ) { ?>
<img id="slide1" src="<?php echo get_tiger_balm('tiger_slide1'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide2" src="<?php echo get_tiger_balm('tiger_slide2'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide3" src="<?php echo get_tiger_balm('tiger_slide3'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide4" src="<?php echo get_tiger_balm('tiger_slide4'); ?>" alt="<?php bloginfo('name'); ?>" />
<?php } elseif ($number == "3") { ?>
<img id="slide1" src="<?php echo get_tiger_balm('tiger_slide1'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide2" src="<?php echo get_tiger_balm('tiger_slide2'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide3" src="<?php echo get_tiger_balm('tiger_slide3'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide4" src="<?php echo get_tiger_balm('tiger_slide4'); ?>" alt="<?php bloginfo('name'); ?>" />
<img id="slide5" src="<?php echo get_tiger_balm('tiger_slide5'); ?>" alt="<?php bloginfo('name'); ?>" />
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment