__( 'Woocommerce Dropdown Cart', 'qode' ), ) // Args ); } public function widget( $args, $instance ) { global $post; extract( $args ); echo $before_widget; global $woocommerce; global $qode_options_proya; $cart_holder_class = 'header_cart'; if (isset($qode_options_proya['woo_cart_type'])){ $cart_type = $qode_options_proya['woo_cart_type']; switch ($cart_type) { case 'font-elegant': $cart_holder_class = "header_cart cart_icon"; break; default: $cart_holder_class = "header_cart"; break; } } ?>