function DISPLAY_ULTIMATE_SOCIAL_ICONS($args = null, $content = null) { $instance = array("showf" => 1, "title" => ''); $return = ''; if (!isset($before_widget)) { $before_widget = ''; } if (!isset($after_widget)) { $after_widget = ''; } /*Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title']); $show_info = isset($instance['show_info']) ? $instance['show_info'] : false; global $is_floter; $return .= $before_widget; $return .= '<div class="sfsi_widget"><div id="sfsi_wDiv"></div>'; /* Display the widget title */ if ($title) { $return .= $before_title . $title . $after_title; } /* Link the main icons function */ $return .= sfsi_check_visiblity(0); $return .= '<div style="clear: both;"></div></div>'; $return .= $after_widget; return $return; }
function widget($args, $instance) { extract($args); /*Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title']); $show_info = isset($instance['show_info']) ? $instance['show_info'] : false; global $is_floter; echo $before_widget; ?> <div class="sfsi_widget"> <div id='sfsi_wDiv'></div> <?php /* Display the widget title */ if ($title) { echo $before_title . $title . $after_title; } /* Link the main icons function */ echo sfsi_check_visiblity(0); ?> <div style="clear: both;"></div> </div> <?php if (is_active_widget(false, false, $this->id_base, true)) { } echo $after_widget; }
function sfsi_frontFloter($content) { $sfsi_section5 = unserialize(get_option('sfsi_section5_options', false)); $sfsi_section5['sfsi_icons_float']; if ($sfsi_section5['sfsi_icons_float'] == "yes") { ob_start(); /* call the all icons function under sfsi_widget.php file */ echo sfsi_check_visiblity(1); echo $output = ob_get_clean(); $res = $content . $output; return $res; exit; } }