'name_en' => 'Signature', 'type' => 'signature', 'group' => 'fancy', 'addon' => 'wpforms-signatures', 'order' => '310', ], [ 'icon' => 'fa-ellipsis-h', 'name' => esc_html__( 'Likert Scale', 'wpforms-lite' ), 'keywords' => esc_html__( 'survey, rating scale', 'wpforms-lite' ), 'name_en' => 'Likert Scale', 'type' => 'likert_scale', 'group' => 'fancy', 'addon' => 'wpforms-surveys-polls', 'order' => '400', ], [ 'icon' => 'fa-tachometer', 'name' => esc_html__( 'Net Promoter Score', 'wpforms-lite' ), 'keywords' => esc_html__( 'survey, nps', 'wpforms-lite' ), 'name_en' => 'Net Promoter Score', 'type' => 'net_promoter_score', 'group' => 'fancy', 'addon' => 'wpforms-surveys-polls', 'order' => '410', ], [ 'icon' => 'fa-credit-card', 'name' => esc_html__( 'PayPal Commerce', 'wpforms-lite' ), 'keywords' => esc_html__( 'store, ecommerce, credit card, pay, payment, debit card', 'wpforms-lite' ), 'name_en' => 'PayPal Commerce', 'type' => 'paypal-commerce', 'group' => 'payment', 'addon' => 'wpforms-paypal-commerce', 'order' => '89', ], [ 'icon' => 'fa-credit-card', 'name' => esc_html__( 'Square', 'wpforms-lite' ), 'keywords' => esc_html__( 'store, ecommerce, credit card, pay, payment, debit card', 'wpforms-lite' ), 'name_en' => 'Square', 'type' => 'square', 'group' => 'payment', 'addon' => 'wpforms-square', 'order' => '92', ], [ 'icon' => 'fa-credit-card', 'name' => esc_html__( 'Authorize.Net', 'wpforms-lite' ), 'keywords' => esc_html__( 'store, ecommerce, credit card, pay, payment, debit card', 'wpforms-lite' ), 'name_en' => 'Authorize.Net', 'type' => 'authorize_net', 'group' => 'payment', 'addon' => 'wpforms-authorize-net', 'order' => '95', ], [ 'icon' => 'fa-ticket', 'name' => esc_html__( 'Coupon', 'wpforms-lite' ), 'keywords' => esc_html__( 'discount, sale', 'wpforms-lite' ), 'name_en' => 'Coupon', 'type' => 'payment-coupon', 'group' => 'payment', 'addon' => 'wpforms-coupons', 'order' => '100', ], ]; $captcha = $this->get_captcha(); if ( ! empty( $captcha ) ) { array_push( $this->fields, $captcha ); } return $this->fields; } /** * Get Captcha field data. * * @since 1.6.6 * * @return array Captcha field data. */ private function get_captcha() { $captcha_settings = wpforms_get_captcha_settings(); if ( empty( $captcha_settings['provider'] ) ) { return []; } $captcha = [ 'hcaptcha' => [ 'name' => 'hCaptcha', 'icon' => 'fa-question-circle-o', ], 'recaptcha' => [ 'name' => 'reCAPTCHA', 'icon' => 'fa-google', ], 'turnstile' => [ 'name' => 'Turnstile', 'icon' => 'fa-question-circle-o', ], ]; if ( ! empty( $captcha_settings['site_key'] ) || ! empty( $captcha_settings['secret_key'] ) ) { $captcha_name = $captcha[ $captcha_settings['provider'] ]['name']; $captcha_icon = $captcha[ $captcha_settings['provider'] ]['icon']; } else { $captcha_name = 'CAPTCHA'; $captcha_icon = 'fa-question-circle-o'; } return [ 'icon' => $captcha_icon, 'name' => $captcha_name, 'name_en' => $captcha_name, 'keywords' => esc_html__( 'captcha, spam, antispam', 'wpforms-lite' ), 'type' => 'captcha_' . $captcha_settings['provider'], 'group' => 'standard', 'order' => 180, 'class' => 'not-draggable', ]; } /** * Get filtered fields data. * * Usage: * get_filtered( [ 'group' => 'payment' ] ) - fields from the 'payment' group. * get_filtered( [ 'addon' => 'surveys-polls' ] ) - fields of the addon 'surveys-polls'. * get_filtered( [ 'type' => 'payment-total' ] ) - field 'payment-total'. * * @since 1.6.6 * * @param array $args Arguments array. * * @return array Fields data filtered according to given arguments. */ private function get_filtered( $args = [] ) { $default_args = [ 'group' => '', 'addon' => '', 'type' => '', ]; $args = array_filter( wp_parse_args( $args, $default_args ) ); $fields = $this->get_all(); $filtered_fields = []; foreach ( $args as $prop => $prop_val ) { foreach ( $fields as $field ) { if ( ! empty( $field[ $prop ] ) && $field[ $prop ] === $prop_val ) { array_push( $filtered_fields, $field ); } } } return $filtered_fields; } /** * Get fields by group. * * @since 1.6.6 * * @param string $group Fields group (standard, fancy or payment). * * @return array. */ public function get_by_group( $group ) { return $this->get_filtered( [ 'group' => $group ] ); } /** * Get fields by addon. * * @since 1.6.6 * * @param string $addon Addon slug. * * @return array. */ public function get_by_addon( $addon ) { return $this->get_filtered( [ 'addon' => $addon ] ); } /** * Get field by type. * * @since 1.6.6 * * @param string $type Field type. * * @return array Single field data. Empty array if field is not available. */ public function get_field( $type ) { $fields = $this->get_filtered( [ 'type' => $type ] ); return ! empty( $fields[0] ) ? $fields[0] : []; } /** * Set key value of each field (conditionally). * * @since 1.6.6 * * @param array $fields Fields data. * @param string $key Key. * @param string $value Value. * @param string $condition Condition. * * @return array Updated field data. */ public function set_values( $fields, $key, $value, $condition ) { if ( empty( $fields ) || empty( $key ) ) { return $fields; } foreach ( $fields as $f => $field ) { switch ( $condition ) { case 'empty': $fields[ $f ][ $key ] = empty( $field[ $key ] ) ? $value : $field[ $key ]; break; default: $fields[ $f ][ $key ] = $value; } } return $fields; } } Shop | Vitility.com https://vitility.com Vitility | We make your life easier! Fri, 26 Apr 2024 19:50:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://vitility.com/wp-content/uploads/2021/12/Favicon_Zwart.svg Shop | Vitility.com https://vitility.com 32 32 Grab rail – pearl white https://vitility.com/product/grab-rail-pearl-white/ https://vitility.com/product/grab-rail-pearl-white/#respond Wed, 27 Sep 2023 10:29:13 +0000 https://vitility.com/?post_type=product&p=8537 The grab rail offers support for people who have difficulty getting up from the toilet or getting in and out of the bath, etc. The grab rail can be mounted to the wall using 2 screws. This versatile design can also shine in other corners of your home, adding a touch of sophisticated allure anywhere. Our grab rail can easily handle 150 KG, so you can enjoy all the benefits with confidence.

]]>
https://vitility.com/product/grab-rail-pearl-white/feed/ 0
Grab rail – charcoal black https://vitility.com/product/grab-rail-charcoal-black/ https://vitility.com/product/grab-rail-charcoal-black/#respond Wed, 27 Sep 2023 10:26:52 +0000 https://vitility.com/?post_type=product&p=8535 The grab rail offers support for people who have difficulty getting up from the toilet or getting in and out of the bath, etc. The grab rail can be mounted to the wall using 2 screws. This versatile design can also shine in other corners of your home, adding a touch of sophisticated allure anywhere. Our grab rail can easily handle 150 KG, so you can enjoy all the benefits with confidence.

]]>
https://vitility.com/product/grab-rail-charcoal-black/feed/ 0
Rollator – forest green https://vitility.com/product/rollator-forest-green/ https://vitility.com/product/rollator-forest-green/#respond Tue, 12 Sep 2023 14:35:28 +0000 https://vitility.com/?post_type=product&p=8188 The rollator is compact due to the double-folding system and is easy to use. The rollator has a pleasant seat and backrest and is equipped with ergonomic and height-adjustable handles for a better grip. Includes a manual braking system with concealed brake cables, which gives the rollator an attractive look.

]]>
https://vitility.com/product/rollator-forest-green/feed/ 0
Rollator – sequoia red https://vitility.com/product/rollator-sequoia-red/ https://vitility.com/product/rollator-sequoia-red/#respond Tue, 12 Sep 2023 14:32:11 +0000 https://vitility.com/?post_type=product&p=8163 The rollator is compact due to the double-folding system and is easy to use. The rollator has a pleasant seat and backrest and is equipped with ergonomic and height-adjustable handles for a better grip. Includes a manual braking system with concealed brake cables, which gives the rollator an attractive look.

]]>
https://vitility.com/product/rollator-sequoia-red/feed/ 0
Rollator – charcoal black https://vitility.com/product/rollator-charcoal-black/ https://vitility.com/product/rollator-charcoal-black/#respond Tue, 12 Sep 2023 14:15:49 +0000 https://vitility.com/?post_type=product&p=8131 The rollator is compact due to the double-folding system and is easy to use. The rollator has a pleasant seat and backrest and is equipped with ergonomic and height-adjustable handles for a better grip. Includes a manual braking system with concealed brake cables, which gives the rollator an attractive look.

]]>
https://vitility.com/product/rollator-charcoal-black/feed/ 0
Grab rail – large https://vitility.com/product/7701/ https://vitility.com/product/7701/#respond Mon, 22 May 2023 09:47:05 +0000 https://vitility.com/?post_type=product&p=7701 The Grab rail with a ribbed handle provides extra grip and prevents slipping. The rail offers support for people who have difficulty getting up from the toilet or getting in and out of the bath, etc. The rail can be attached to the wall using six screws.

]]>
https://vitility.com/product/7701/feed/ 0
Cup handle single https://vitility.com/product/cup-handle-single/ https://vitility.com/product/cup-handle-single/#respond Tue, 18 Apr 2023 13:18:39 +0000 https://vitility.com/product/cup-handle-single/ The handle makes it easier to hold the cup. In addition they are easy to attach to the cup making it easier for you to drink the contents of your cup.

]]>
https://vitility.com/product/cup-handle-single/feed/ 0
Cup handle double https://vitility.com/product/cup-handle-double/ https://vitility.com/product/cup-handle-double/#respond Tue, 18 Apr 2023 13:18:39 +0000 https://vitility.com/product/cup-handle-double/ The handle makes it easier to hold the cup. In addition they are easy to attach to the cup making it easier for you to drink the contents of your cup.

]]>
https://vitility.com/product/cup-handle-double/feed/ 0
Cup ring – yellow https://vitility.com/product/cup-ring-yellow/ https://vitility.com/product/cup-ring-yellow/#respond Tue, 18 Apr 2023 13:18:38 +0000 https://vitility.com/product/cup-ring-yelow/ The Cup ring is one of the accessories for the Vitility cup. The ring can easily be slid onto the cup and provides extra grip. The fresh colors give the cup a trendy look.

]]>
https://vitility.com/product/cup-ring-yellow/feed/ 0
Cup ring – mint https://vitility.com/product/cup-ring-mint/ https://vitility.com/product/cup-ring-mint/#respond Tue, 18 Apr 2023 13:18:38 +0000 https://vitility.com/product/cup-ring-mint/ The Cup ring is one of the accessories for the Vitility cup. The ring can easily be slid onto the cup and provides extra grip. The fresh colors give the cup a trendy look.

]]>
https://vitility.com/product/cup-ring-mint/feed/ 0