'AE_Logout_Widget', 'description' => 'AE Logout Link', ); parent::__construct('AE_Logout_Widget', 'AE Logout Link', $widget_ops); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget($args, $instance) { echo do_shortcode('[ae-logout return="' . $instance['return'] . '"]' . $instance['text'] . '[/ae-logout]'); } /** * 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__('Logout', 'text_domain'); ?>