function widget($args, $instance) { global $rd_data; extract($args); $title = apply_filters('widget_title', $instance['title']); $text = apply_filters('widget_text', $instance['text']); /* Our variables from the widget settings. */ /* Before widget (defined by themes). */ echo !empty($before_widget) ? $before_widget : ''; /* Display Widget */ /* Display the widget title if one was input (before and after defined by themes). */ if ($title) { echo !empty($before_title) ? $before_title : ''; } echo !empty($title) ? $title : ''; echo !empty($after_title) ? $after_title : ''; $content = "<div class='thefox_social_widget'>"; if ($text !== '') { $content .= "<div class='thefox_social_widget_text'>"; $content .= !empty($instance['filter']) ? wpautop($text) : $text; $content .= "</div>"; } echo do_shortcode($content); echo "<div class='thefox_social_widget_icons clearfix'>"; echo rd_social_icon() . "</div></div>"; /* After widget (defined by themes). */ echo !empty($after_widget) ? $after_widget : ''; }
?> " class="search" id="ssform" value="<?php the_search_query(); ?> " /> <input type="submit" id="searchsubmit" value="" /> <span class="search_button_icon"></span> </form> </div> <?php } if ($nav_type == 'nav_type_19' && $rd_data['rd_header_socials'] == 'yes' || $nav_type == 'nav_type_19_f' && $rd_data['rd_header_socials'] == 'yes') { ?> <div id="fixed_header_socials" class="header_si" > <?php rd_social_icon(); ?> </div> <?php } ?> </div> </div> <?php if ($nav_type !== 'nav_type_15' && $nav_type !== 'nav_type_16' && $nav_type !== 'nav_type_17' && $nav_type !== 'nav_type_18') { ?> </header> <!-- header END--> <?php } else { ?>