function widget($args, $instance) { extract($args); echo $before_widget; $height = isset($instance['widget-height']) ? $instance['widget-height'] : 350; $output = '<div class="fb-like-box" data-href="' . esc_url($instance['fb_page_url']) . '" data-height="' . (int) $height . '"'; $output .= !empty($instance['show_faces']) ? ' data-show-faces="true"' : ' data-show-faces="false"'; $output .= !empty($instance['show_stream']) ? ' data-stream="true"' : ' data-stream="false"'; $output .= !empty($instance['show_header']) ? ' data-header="true"' : ' data-header="false"'; $output .= '></div>'; echo $output; echo $after_widget; self::$rendered = true; }