'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; } } Office & Leisure | Vitility.com https://vitility.com Vitility | We make your life easier! Fri, 26 Apr 2024 19:49:36 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://vitility.com/wp-content/uploads/2021/12/Favicon_Zwart.svg Office & Leisure | Vitility.com https://vitility.com 32 32 Magnifier – classic https://vitility.com/product/magnifier-classic/ Thu, 17 Mar 2022 12:44:31 +0000 https://vitility.com/product/magnifier-classic/ A round shaped magnifier for reading small prints.

]]>
Magnifier – pocket https://vitility.com/product/magnifier-pocket/ Thu, 17 Mar 2022 12:44:31 +0000 https://vitility.com/product/magnifier-pocket/ A round shaped magnifier for reading small prints. With the cord the magnifier can be carried around the neck easily. This way you always have the magnifier at hand.

]]>
Book stand https://vitility.com/product/book-stand/ Thu, 17 Mar 2022 12:44:07 +0000 https://vitility.com/product/book-stand/ The bookstand can be used both vertically and horizontally due to the flexible swiveling mechanism. Two adjustable clamps enable you to put a single sheet as well as a thick book on the stand. The stand can be folded for storage, thus making it easy to take along.

]]>
Playing cards https://vitility.com/product/playing-cards/ Thu, 17 Mar 2022 12:43:58 +0000 https://vitility.com/product/playing-cards/ The deck of cards has extra large symbols which makes the cards easy to read.

]]>
Foamgrips https://vitility.com/product/foamgrips-8-pcs/ Thu, 17 Mar 2022 12:43:52 +0000 https://vitility.com/product/foamgrips-8-pcs/ The foamgrips can be used to thicken any type of handle, such as pens, pencils, cutlery or toothbrushes, making it easier to hold the object. Available in one length of 12 cm, with various inside measurements.

]]>
Magnifier – handsfree https://vitility.com/product/magnifier-handsfree/ Thu, 17 Mar 2022 12:43:46 +0000 https://vitility.com/product/magnifier-handsfree/ The magnifier hangs on a cord around your neck, which means it does not need to be held. It is ideal for reading or handiwork. The magnifier has a light, to improve visibility. Excluding battery.

]]>
Magnifying ruler https://vitility.com/product/magnifying-ruler/ Thu, 17 Mar 2022 12:43:38 +0000 https://vitility.com/product/magnifying-ruler/ The ruler is rounded off in such a way that it can be used as a magnifier. The ruler is 20 cm long and has a handle on the right side (the end of the ruler). The ruler measures both centimeters and inches.

]]>
Playing cards holder https://vitility.com/product/playing-cards-holder/ Thu, 17 Mar 2022 12:43:38 +0000 https://vitility.com/product/playing-cards-holder/ The playing card holder means not having to hold the cards in your hands anymore. Suitable for people who have decreased strength in their hands or can only use one hand. The round shape stabilizes the holder. The holder allows 3 configurations.

]]>
Rheumatic pen https://vitility.com/product/rheumatic-pen/ Thu, 17 Mar 2022 12:43:38 +0000 https://vitility.com/product/rheumatic-pen/ The pen is designed with an angled thumb grip and prevents the over stretching of the index finger and pressure points that occur in the folds of the thumb. In this way less pressure has to be applied to the pen.

]]>
Pengrip – triangular https://vitility.com/product/pengrip-triangular/ Thu, 17 Mar 2022 12:43:20 +0000 https://vitility.com/product/pengrip-triangular/ With the triangular pengrip you can thicken any handles such as pens, pencils, cutlery or toothbrushes. The thickeners allow you to hold the article better. Available in 1 length of 4 cm.

]]>