/** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget($args, $instance) { $title = apply_filters('widget_title', $instance['title']); echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . $title . $args['after_title']; } echo mf_sponsor_carousel($instance['category']); echo $args['after_widget']; }
</div> </div> <div class="center"> <a href="https://mfba2015.eventbrite.com/" target="_blank"> <img class="img-responsive" width="100%" src="<?php echo get_stylesheet_directory_uri(); ?> /images/MF15_BA_300x250.gif" /> </a> </div> --> <?php $goldSmith = mf_sponsor_carousel('Goldsmith Sponsor', $slug); $silverSmith = mf_sponsor_carousel('Silversmith Sponsor', $slug); $copperSmith = mf_sponsor_carousel('Coppersmith Sponsor', $slug); if ($goldSmith != FALSE || $silverSmith != FALSE || $copperSmith != FALSE) { ?> <div class="sidebar-bordered sponsored"> <?php if ($goldSmith != FALSE) { ?> <h3><a href="<?php echo esc_url(home_url('/sponsors')); ?> ">Goldsmith Sponsors</a></h3> <div id="myCarousel" class="carousel slide"> <div class="carousel-inner"> <?php echo $goldSmith;