function widget($args, $instance) { // used when the sidebar calls in the widget extract($args); $default_title = __('Local antennas', 'iftheme'); $title = apply_filters('widget_title', empty($instance['title']) ? $default_title : $instance['title'], $instance, $this->id_base); //print the widget for the widget area echo $before_widget; echo $before_title . $title . $after_title; ?> <ul><?php get_if_top_categ(array('orderby' => 'name')); ?> </ul> <?php echo $after_widget; }
?> <?php //endif; ?> </div> <?php if ($multi) { ?> <div class="widget-footer footer-antenna"> <h3><?php _e('Local antennas', 'iftheme'); ?> </h3> <ul><?php get_if_top_categ(array('orderby' => 'name')); ?> </ul> </div> <?php } else { //one antenna ?> <div class="widget-footer footer-links"> <?php the_widget('If_Mobile'); ?> </div> <?php } ?>