No Description

class-blank.php 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Blank form template.
  4. *
  5. * @since 1.0.0
  6. */
  7. class WPForms_Template_Blank extends WPForms_Template {
  8. /**
  9. * Primary class constructor.
  10. *
  11. * @since 1.0.0
  12. */
  13. public function init() {
  14. $this->priority = 1;
  15. $this->name = esc_html__( 'Blank Form', 'wpforms-lite' );
  16. $this->slug = 'blank';
  17. $this->source = 'wpforms-core';
  18. $this->categories = 'all';
  19. $this->description = esc_html__( 'The blank form allows you to create any type of form using our drag & drop builder.', 'wpforms-lite' );
  20. $this->includes = '';
  21. $this->icon = '';
  22. $this->modal = '';
  23. $this->core = true;
  24. $this->data = [
  25. 'field_id' => '1',
  26. 'fields' => [],
  27. 'settings' => [
  28. 'antispam' => '1',
  29. 'ajax_submit' => '1',
  30. 'confirmation_message_scroll' => '1',
  31. 'submit_text_processing' => esc_html__( 'Sending...', 'wpforms-lite' ),
  32. ],
  33. 'meta' => [
  34. 'template' => $this->slug,
  35. ],
  36. ];
  37. }
  38. }
  39. new WPForms_Template_Blank();