/** * Front-end display content for login widget. * * @since 1.0.0 * @since 1.5.1 Declare function public. * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget($args, $instance) { geodir_loginwidget_output($args, $instance); }
/** * The geodirectory login box shortcode. * * This implements the functionality of the shortcode for displaying login box. * * @since 1.0.0 * @package GeoDirectory * @param array $atts { * Attributes of the shortcode. * * @type string $before_widget HTML content to prepend to each widget's HTML output. Default. Empty. * @type string $after_widget HTML content to append to each widget's HTML output. Default. Empty. * @type string $before_title HTML content to prepend to the title when displayed. Default. Empty. * @type string $after_title HTML content to append to the title when displayed. Default. Empty. * * } * @return string Login box HTML. */ function geodir_sc_login_box($atts) { ob_start(); $defaults = array('before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => ''); geodir_loginwidget_output($defaults, $defaults); $output = ob_get_contents(); ob_end_clean(); return $output; }