'Facebook', 'url' => 'http://www.facebook.com/smthemes', 'width' => '240', 'height' => '180', 'colorscheme' => 'light', 'show_faces' => 'true', 'stream' => 'false', 'header' => 'false', 'border' => '#dbdbdb' ); class Facebook extends WP_Widget { function __construct(){ $widget_options = array('description' => 'Facebook Like Box social widget. Enables Facebook Page owners to attract and gain Likes from their own website.' ); $control_options = array( 'width' => 440); $this->WP_Widget('facebook', '» Facebook Like Box', $widget_options, $control_options); } function widget($args, $instance){ global $wpdb; extract( $args ); $title = apply_filters('widget_title', $instance['title']); $url = $instance['url']; $width = $instance['width']; $height = $instance['height']; $colorscheme = $instance['colorscheme']; $show_faces = $instance['show_faces'] == 'true' ? 'true' : 'false'; $stream = $instance['stream'] == 'true' ? 'true' : 'false'; $header = $instance['header'] == 'true' ? 'true' : 'false'; $border = $instance['border']; ?>