PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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