'autodealer-contact-info', 'description' => __( 'Display your location and contact information.', 'auto-dealer' ), 'customize_selective_refresh' => true, ); parent::__construct( 'autodealer-contact-info', esc_html__( 'Auto_Dealer: Contact Info', 'auto-dealer' ), $widget_ops ); } /** * Return an associative array of default values * * These values are used in new widgets. * * @return array Array of default values for the Widget's options */ public function defaults() { return array( 'time' => __( '10:00 AM To 5:00 PM', 'auto-dealer' ), 'phone' => _x( '+559-843-4919', 'phone', 'auto-dealer' ), 'email' => __( 'autodealer@no-reply.com ', 'auto-dealer' ), ); } /** * Outputs the HTML for this widget. * * @param array $args An array of standard parameters for widgets in this theme. * @param array $instance An array of settings for this widget instance. * * @return void Echoes it's output **/ public function widget( $args, $instance ) { $instance = wp_parse_args( $instance, $this->defaults() ); echo $args['before_widget']; // WPCS: XSS OK. echo '