name = esc_html__( 'Cart', 'bloghash' ); $this->description = esc_html__( 'Displays WooCommerce cart.', 'bloghash' ); $this->icon = 'dashicons dashicons-cart'; $this->type = 'cart'; $this->styles = isset( $args['styles'] ) ? $args['styles'] : array( 'minimal' => 'Minimal', 'rounded-fill' => 'Rounded Fill', 'rounded-border' => 'Rounded Border', ); } /** * Displays the form for this widget on the Widgets page of the WP Admin area. * * @since 1.0.0 * @return void */ public function form() { if ( ! empty( $this->styles ) ) { $style_value = isset( $this->values['style'] ) ? $this->values['style'] : ''; // Ensured default value if not set. ?>