<?php if (has_nav_menu('top-page-list')) { echo '<nav id="top-page-list">'; wp_nav_menu(array('theme_location' => 'top-page-list', 'menu_class' => 'page-list')); echo '</nav>'; } ?> <?php get_search_form(); ?> <div class="social-list" id="social-list-top"> <?php display_social_list(); ?> </div> <div class="clear"></div> </div> <div class="clear"></div>
/** use this function to decide how the widget will display in your theme */ public function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } display_social_list(); echo $after_widget; }