PATH:
home
/
letacommog
/
rdvenunclick.fr1
/
wp-content
/
plugins
/
weforms
/
includes
/
templates
<?php /** * Form template abstract class * * @since 1.1.0 */ abstract class WeForms_Form_Template { /** * If the form is enabled * * @var bool */ public $enabled = true; /** * Template title * * @var string */ public $title; /** * Template description * * @var string */ public $description; /** * Conditional logic * * @var array */ protected $conditionals; /** * Form fields * * @var array */ protected $form_fields; /** * Form settings * * @var array */ protected $form_settings; /** * Form Template Category * * @var array */ public $category = 'default'; /** * Form Template Image * * @var array */ public $image; /** * Form notifications * * @since 2.5.2 * * @var array */ protected $form_notifications; public function __construct() { $this->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() ]; } }
[+]
..
[-] class-template-leave-request.php
[edit]
[-] class-template-patient-itake-form.php
[edit]
[-] class-template-contact.php
[edit]
[-] class-template-polling-form.php
[edit]
[-] class-template-real-estate-listing.php
[edit]
[-] class-template-blank.php
[edit]
[-] class-template-conference-proposal.php
[edit]
[-] class-template-volunteer-application.php
[edit]
[-] class-template-event-registration.php
[edit]
[-] class-template-restaurant-reservation.php
[edit]
[-] class-template-my-directory-information.php
[edit]
[+]
dokan
[-] class-template-admission-form.php
[edit]
[-] class-template-website-feedback-form.php
[edit]
[-] class-template-to-do-list.php
[edit]
[-] class-template-export-data-request.php
[edit]
[-] class-template-comment-and-rating.php
[edit]
[-] class-template-support.php
[edit]
[-] class-template-job-application.php
[edit]
[-] class-template-product-order-form.php
[edit]
[-] class-template-tell-a-friend.php
[edit]
[-] class-template-donation-form.php
[edit]
[-] class-abstract-template.php
[edit]
[-] class-template-delete-data-request.php
[edit]
[-] class-template-request-for-quote.php
[edit]
[-] class-template-online-booking-form.php
[edit]
[-] class-template-job-listing.php
[edit]
[-] class-template-bug-report.php
[edit]
[-] class-template-loan-application-form.php
[edit]
[-] class-template-employee-information.php
[edit]