public static function init() { // Set default image URL self::$default_img_url = PLS_IMG_URL . "/null/listing-1200x720.jpg"; // For Wordpress 3.3.0 if (!is_admin()) { add_action('init', array(__CLASS__, 'enqueue')); } }
<?php /** * Tampa theme home * * This is the home template. * * @package PlacesterBlueprint * @subpackage Template */ ?> <section id="slideshow" class="slider-wrapper theme-default"> <?php echo PLS_Slideshow::slideshow(array('animation' => 'fade', 'animationSpeed' => 1000, 'pauseOnHover' => true, 'advanceSpeed' => 4000, 'startClockOnMouseOut' => true, 'startClockOnMouseOutAfter' => 1000, 'directionalNav' => true, 'captions' => true, 'captionAnimation' => 'fade', 'captionAnimationSpeed' => 800, 'afterSlideChange' => 'function(){}', 'width' => 623, 'height' => 300, 'context' => 'home', 'featured_option_id' => 'slideshow-featured-listings', 'listings' => 'limit=5&is_featured=true&sort_by=price')); ?> <script type="text/javascript"> // Hack to alter bullets styling for formerly BP 1.0 themes -- need to do this more intelligently... jQuery(window).load(function () { jQuery('.orbit-bullets').css('margin-top', '-90px'); }); </script> <div class="clr"></div> </section> <section id="listing"> <h3><?php _e('New Listings', 'tampa'); ?>