/shared/shortcodes/shortcodes/quick-forms.php

https://github.com/deltafactory/leads · PHP · 36 lines · 31 code · 1 blank · 4 comment · 0 complexity · 181f933874f70d64af3168e53d0a33da MD5 · raw file

  1. <?php
  2. /**
  3. * Inbound Forms Shortcode Options
  4. * Forms code found in /shared/classes/form.class.php
  5. */
  6. $shortcodes_config['quick-forms'] = array(
  7. 'no_preview' => false,
  8. 'options' => array(
  9. 'insert_default' => array(
  10. 'name' => __('Insert Saved Form', 'leads'),
  11. 'desc' => __('Insert a Saved Form', 'leads'),
  12. 'type' => 'select',
  13. 'options' => $form_names,
  14. 'std' => 'none',
  15. 'class' => 'main-form-settings',
  16. ),
  17. 'helper-block-one' => array(
  18. 'name' => __('Name Name Name', 'leads'),
  19. 'desc' => __('<span class="switch-to-form-builder button">Build a New Form</span>', 'leads'),
  20. 'type' => 'helper-block',
  21. 'std' => '',
  22. 'class' => 'helper-div',
  23. ),
  24. 'form_name' => array(
  25. 'name' => __('Form Name<span class="small-required-text">*</span>', 'leads'),
  26. 'desc' => __('This is not shown to visitors', 'leads'),
  27. 'type' => 'text',
  28. 'placeholder' => "Example: XYZ Whitepaper Download",
  29. 'std' => '',
  30. 'class' => 'hidden-form-settings',
  31. ),
  32. ),
  33. 'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
  34. 'popup_title' => __('Quick Insert Inbound Form Shortcode', 'leads')
  35. );