'widget_welcart_login', 'description' => __( 'Display member login form.', 'usces' ), ); parent::__construct( 'welcart_login', 'Welcart ' . __( 'Log-in', 'usces' ), $widget_ops ); } /** * Echoes the widget content. * * @see WP_Widget::widget * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance The settings for the particular instance of the widget. */ public function widget( $args, $instance ) { global $usces; extract( $args ); $title = $instance['title']; $icon = ( ! isset( $instance['icon'] ) || WCUtils::is_blank( $instance['icon'] ) ) ? 1 : (int) $instance['icon']; $img_path = file_exists( get_stylesheet_directory() . '/images/login.png' ) ? get_stylesheet_directory_uri() . '/images/login.png' : USCES_FRONT_PLUGIN_URL . '/images/login.png'; if ( 1 === $icon ) { $before_title .= '' . $title . ''; } wel_esc_script_e( $before_widget ); if ( ! empty( $title ) ) { wel_esc_script_e( $before_title . esc_html( $title ) . $after_title ); } ?>