[ __CLASS__, 'render' ] ]); } /** * Render the widget inside a block wrapper. * * @param array $attributes Block attributes * * @return string * @access public * @static * @version 8.0.2 */ public static function render($attributes) { if (!defined('AAM_KEY')) { return ''; } $widget = new AAM_Backend_Widget_Login(); $widget->_set(wp_unique_id('aam-block-')); ob_start(); $widget->widget([ 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ], [ 'login-title' => isset($attributes['loginTitle']) ? $attributes['loginTitle'] : '', 'user-title' => isset($attributes['userTitle']) ? $attributes['userTitle'] : '', 'redirect' => isset($attributes['redirect']) ? $attributes['redirect'] : '' ]); return ob_get_clean(); } }