/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
- <?php
- /**
- * Inbound Forms Shortcode Options
- * Forms code found in /shared/classes/form.class.php
- */
- $shortcodes_config['quick-forms'] = array(
- 'no_preview' => false,
- 'options' => array(
- 'insert_default' => array(
- 'name' => __('Insert Saved Form', 'leads'),
- 'desc' => __('Insert a Saved Form', 'leads'),
- 'type' => 'select',
- 'options' => $form_names,
- 'std' => 'none',
- 'class' => 'main-form-settings',
- ),
- 'helper-block-one' => array(
- 'name' => __('Name Name Name', 'leads'),
- 'desc' => __('<span class="switch-to-form-builder button">Build a New Form</span>', 'leads'),
- 'type' => 'helper-block',
- 'std' => '',
- 'class' => 'helper-div',
- ),
- 'form_name' => array(
- 'name' => __('Form Name<span class="small-required-text">*</span>', 'leads'),
- 'desc' => __('This is not shown to visitors', 'leads'),
- 'type' => 'text',
- 'placeholder' => "Example: XYZ Whitepaper Download",
- 'std' => '',
- 'class' => 'hidden-form-settings',
- ),
- ),
- 'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
- 'popup_title' => __('Quick Insert Inbound Form Shortcode', 'leads')
- );