__('General', 'wp-ultimo'), 'desc' => __('General', 'wp-ultimo'), 'type' => 'header', ); $fields['password_strength'] = array( 'type' => 'toggle', 'title' => __('Password Strength Meter', 'wp-ultimo'), 'desc' => __('Set this customer as a VIP.', 'wp-ultimo'), 'tooltip' => '', 'value' => 1, ); $fields['apply_styles'] = array( 'type' => 'toggle', 'title' => __('Apply Styles', 'wp-ultimo'), 'desc' => __('Set this customer as a VIP.', 'wp-ultimo'), 'tooltip' => '', 'value' => 1, ); return $fields; } // end fields; /** * The list of keywords for this element. * * Return an array of strings with keywords describing this * element. Gutenberg uses this to help customers find blocks. * * e.g.: * return array( * 'WP Ultimo', * 'Payment Methods', * 'Form', * 'Cart', * ); * * @since 2.0.0 * @return array */ public function keywords() { return array( 'WP Ultimo', 'Payment Methods', 'Form', 'Cart', ); } // end keywords; /** * List of default parameters for the element. * * If you are planning to add controls using the fields, * it might be a good idea to use this method to set defaults * for the parameters you are expecting. * * These defaults will be used inside a 'wp_parse_args' call * before passing the parameters down to the block render * function and the shortcode render function. * * @since 2.0.0 * @return array */ public function defaults() { return array(); } // end defaults; /** * The content to be output on the screen. * * Should return HTML markup to be used to display the block. * This method is shared between the block render method and * the shortcode implementation. * * @since 2.0.0 * * @param array $atts Parameters of the block/shortcode. * @param string|null $content The content inside the shortcode. * @return string */ public function output($atts, $content = null) { return 'lol'; } // end output; } // end class Payment_Methods_Element;