/** * Constructor */ public function __construct() { $this->widget_cssclass = 'woocommerce widget_shopping_cart'; $this->widget_description = esc_html__("Display the user's Cart in the sidebar.", 'greek'); $this->widget_id = 'woocommerce_widget_cart'; $this->widget_name = esc_html__('WooCommerce Cart', 'greek'); $this->settings = array('title' => array('type' => 'text', 'std' => esc_html__('Cart', 'greek'), 'label' => esc_html__('Title', 'greek')), 'hide_if_empty' => array('type' => 'checkbox', 'std' => 0, 'label' => esc_html__('Hide if cart is empty', 'greek'))); parent::__construct(); }