'AE_Window_Widget', 'description' => 'AE Window For Social Sign-on', ); parent::__construct('AE_Window_Widget', 'AE Window', $widget_ops); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget($args, $instance) { $text = $instance['text']; $type = $instance['type']; $return = $instance['return']; $show_after_login = $instance['show_after_login']; echo do_shortcode('[ae-window type="' . $type . '" return="' . $return . '" show_after_login="' . $show_after_login . '" ]' . $text . '[/ae-window]'); } /** * Outputs the options form on admin * * @param array $instance The widget options */ public function form($instance) { // outputs the options form on admin $text = !empty($instance['text']) ? $instance['text'] : esc_html__('Sign In', 'text_domain'); ?>