function widget($args, $instance) { self::$id_of_like_box++; extract($args); $title = $instance['title']; $params_of_widget = array('profile_id' => $instance['profile_id'], 'width' => (int) $instance['width'], 'height' => (int) $instance['height'], 'show_border' => 'show', 'border_color' => '#FFF', 'header' => $instance['header'], 'show_cover_photo' => $instance['cover_photo'], 'connections' => $instance['connections'], 'stream' => 'hide', 'animation_efect' => 'none', 'locale' => $instance['locale']); // Before widget // echo $before_widget; // Title of widget // if ($title) { echo $before_title . $title . $after_title; } // Widget output // echo like_box_setting::generete_iframe_by_array($params_of_widget); // After widget // echo $after_widget; }
public function like_box_sibar_slider_in_footer() { if ($this->params['like_box_sidebar_slide_mode'] == 'yes') { $width = $this->params['like_box_sidebar_slide_width']; $width = min(500, (int) $width); $width = max(180, (int) $width); $height = $this->params['like_box_sidebar_slide_height']; $params_of_slideup = array('iframe_id' => 'like_box_slideup', 'profile_id' => $this->params['like_box_sidebar_slide_profile_id'], 'width' => (int) $this->params['like_box_sidebar_slide_width'], 'height' => (int) $this->params['like_box_sidebar_slide_height'], 'show_border' => 'hide', 'border_color' => '#FFFFF', 'header' => $this->params['like_box_sidebar_slide_header'], 'show_cover_photo' => $this->params['like_box_sidebar_slide_cover_photo'], 'connections' => $this->params['like_box_sidebar_slide_connections'], 'stream' => 'hide', 'animation_efect' => 'none', 'locale' => $this->params['like_box_sidebar_slide_locale']); ?> <div class="main_sidbar_slide like_box_slideup_close"> <div class="sidbar_slide_inner_main "> <div class="sidbar_slide_header"> <span class="sidbar_slide_title"><?php echo $this->params['like_box_sidebar_slide_title']; ?> </span> </div> <div class="sidbar_slide_content"> <div class="sidbar_slide_inner"> <?php echo like_box_setting::generete_iframe_by_array($params_of_slideup); ?> </div> </div> </div> </div> </div> <?php $this->css_like_box_sibar_slider_in_footer($width, $height); } }