/** * Shows Header Right Social Icon & newsletter sign up * * @since Catch Responsive 1.0 */ function catchresponsive_header_right() { ?> <aside class="sidebar sidebar-header-right widget-area"> <section class="widget widget_newsletter" id="header-right-search"> <div class="widget-wrap"> <?php //echo do_shortcode('[mc4wp_form id="819"]'); ?> </div> </section> <?php if ('' != ($catchresponsive_social_icons = catchresponsive_get_social_icons())) { ?> <section class="widget widget_catchresponsive_social_icons" id="header-right-social-icons"> <div class="widget-wrap"> <?php echo $catchresponsive_social_icons; ?> </div><!-- .widget-wrap --> </section><!-- #header-right-social-icons --> <?php } ?> </aside><!-- .sidebar .header-sidebar .widget-area --> <?php }
/** * 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 = isset($instance['title']) ? $instance['title'] : ''; echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . $title . $args['after_title']; } echo catchresponsive_get_social_icons(); echo $args['after_widget']; }
/** * Shows Header Right Social Icon * * @since Catch Responsive 1.0 */ function catchresponsive_header_right() { ?> <aside class="sidebar sidebar-header-right widget-area"> <section class="widget widget_search" id="header-right-search"> <div class="widget-wrap"> <?php echo get_search_form(); ?> </div> </section> <?php if ('' != ($catchresponsive_social_icons = catchresponsive_get_social_icons())) { ?> <section class="widget widget_catchresponsive_social_icons" id="header-right-social-icons"> <div class="widget-wrap"> <?php echo $catchresponsive_social_icons; ?> </div><!-- .widget-wrap --> </section><!-- #header-right-social-icons --> <?php } ?> </aside><!-- .sidebar .header-sidebar .widget-area --> <?php }