conditionals = [ 'condition_status' => 'no', 'cond_field' => [], 'cond_operator' => [ '=' ], 'cond_option' => [ '- select -' ], 'cond_logic' => 'all', ]; } /** * Get the template title * * @return string */ public function get_title() { return $this->title; } /** * Get the description * * @return string */ public function get_description() { return $this->description; } /** * Get the form fields * * @return array */ public function get_form_fields() { return $this->form_fields; } /** * Get all available fields * * @return array */ public function get_available_fields() { return weforms()->fields->get_fields(); } /** * Get the form settings * * @return array */ public function get_form_settings() { return $this->get_default_settings(); } /** * Get form notifications * * @since 2.5.2 * * @return array */ public function get_form_notifications() { return $this->get_default_notification(); } /** * Check if the template is enabled * * @return bool */ public function is_enabled() { return $this->enabled; } /** * Get default settings * * @return array */ public function get_default_settings() { return weforms_get_default_form_settings(); } /** * Get notifications of contact form template * * @return array */ public function get_default_notification() { return [ weforms_get_default_form_notification() ]; } }