'chained_facebook_widget', 'description' => esc_html__('A widget that displays a Facebook Like Box.', 'chained') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'chained_facebook_widget' ); /* Create the widget. */ parent::__construct( 'chained_facebook_widget', esc_html__('Chained Facebook Widget', 'chained'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title'] ); $page_url = $instance['page_url']; $faces = $instance['faces']; $stream = $instance['stream']; $header = $instance['header']; $cover = $instance['cover']; /* Before widget (defined by themes). */ echo wp_kses_post($before_widget); /* Display the widget title if one was input (before and after defined by themes). */ if ( $title ) echo wp_kses_post($before_title) . wp_kses_post($title) . wp_kses_post($after_title); ?>
'Facebook', 'page_url' => 'http://www.facebook.com/envato', 'faces' => 'on', 'cover' => 'on', 'stream' => 'off', 'header' => 'off' ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>

/>

/>

/>

/>