public function widget($args, $instance) { ob_start(); extract($args); $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base); $social = isset($instance['social']) ? explode(',', $instance['social']) : array(); $style = isset($instance['style']) ? $instance['style'] : 'square'; if (!empty($social)) { echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } echo '<div class="social-widget-wrap social-widget-' . $style . '">'; $hover = false; $soild_bg = true; $outlined = false; if ($style == 'outlined') { $hover = true; $soild_bg = false; $outlined = true; } dt_social($social, $hover, $soild_bg, $outlined); echo '</div>'; echo $after_widget; $content = ob_get_clean(); echo $content; } }
<div class="header"> <div class="header-top container"> <div class="row"> <div class="large-9 small-12 column flash-news-wrap"> <?php get_template_part('parts/flash-news'); ?> </div> <div class="large-3 small-12 column header-social-wrap"> <?php dt_social(); ?> </div> </div> <!-- /.row --> </div> <!-- /.header-top --> <div class="header-main"> <div class="container"> <!-- .logo --> <div class="logo">