'bro_likebox_widget', 'description' => __( 'Simple Facebook Likebox', 'bromine' ) ) ); } public static function register_likebox() { register_widget( 'BRO_Likebox_Widget' ); } function widget( $args, $instance ) { extract( $args ); $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Find me on Facebook', 'bromine' ) : $instance['title'] ); $width = $instance['width']; $height = $instance['height']; $color = $instance['color']; $faces = $instance['faces']; $stream = $instance['stream']; $header = $instance['header']; $background = $instance['background']; $borderc = $instance['borderc']; $page = $instance['page']; echo $before_widget; if( $title ) echo $before_title . $title . $after_title; ?>
__( 'Find me on Facebook', 'bromine' ), 'page' => 'https://www.facebook.com/yourpage', 'width' => 320, 'height' => 258, 'color' => 'light', 'faces' => 'on', 'stream' => 'on', 'header' => 'on', 'background' => '', 'borderc' => '' ); $instance = wp_parse_args( (array) $instance, $defaults ); include( plugin_dir_path( __FILE__ ).'/adm-likebox.php' ); } }