Version Description
- Added: Enable/Disable option for Form header.
- Added: Tax option for Stripe payments.
- Added: "Class name" option for "Single Line Text" field to allow add a css class for the field.
- Added: "Palestine" to country list field.
- Changed: Form editing page layout.
- Changed: Form Revisions functionality.
- Changed: Settings (Form Options) tab new design.
- Changed: Form Publishing tab new design.
- Changed: Selecting a Theme moved to Appearance.
- Changed: Make email options a separate tab.
- Changed: Remove required mark color from "Default" and "Inherit from site" themes.
- Changed: Inherit styles (font, color) from Elementor for Form maker widget.
- Fixed: Try to reproduce, try/catch curl part of code.
- Fixed: Requirement of table field should be affected on all rows of it.
- Fixed: The Like/Starting With options in WHERE of Select options from Database.
- Fixed: Remove the link of the word "Privacy Policy" when there is no Privacy Policy page.
- Fixed: Styles for rtl languages.
- Fixed: Addons settings for duplicated forms.
- Fixed: Required validation not allow space.
- Fixed: Error when clicking allow or skip to collect some usage data more then once.
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form by WD – responsive drag & drop contact form builder tool |
Version | 1.13.0 |
Comparing to | |
See all releases |
Code changes from version 1.12.42 to 1.13.0
- admin/controllers/Generete_xml.php +2 -2
- admin/controllers/Manage_fm.php +252 -145
- admin/controllers/Uninstall_fm.php +12 -0
- admin/controllers/elementorWidget.php +9 -2
- admin/models/Manage_fm.php +78 -32
- admin/models/Options_fm.php +1 -1
- admin/models/Themes_fm.php +1 -1
- admin/views/FMCaptcha.php +1 -1
- admin/views/FMPaypalInfo.php +1 -1
- admin/views/FMProductOption.php +1 -1
- admin/views/FMSelectDataFromDb.php +202 -199
- admin/views/FMSqlMapping.php +24 -19
- admin/views/FormMakerSubmits.php +1 -0
- admin/views/Manage_fm.php +1423 -1368
- admin/views/Options_fm.php +1 -0
- admin/views/Pricing_fm.php +1 -0
- admin/views/Themes_fm.php +1 -1
- admin/views/Uninstall_fm.php +0 -12
- admin/views/Widget.php +1 -0
- admin/views/view.php +3 -3
- contact-form-maker.php +50 -36
- css/fm_elementor_icon/fm_elementor_icon.css +0 -47
- css/form_maker_frontend.css +77 -0
- css/form_maker_tables.css +1079 -138
- css/images/embedded.png +0 -0
- css/images/embedded_active.svg +38 -0
- css/images/popup.svg +39 -0
- css/images/popup_active.png +0 -0
- css/images/scrollbox.svg +39 -0
- css/images/scrollbox_active.png +0 -0
- css/images/themes.svg +1 -0
- css/images/topbar.svg +38 -0
- css/images/topbar_active.png +0 -0
- css/jquery-ui.custom.css +4 -2
- css/pricing.css +4 -4
- fonts/fonts/fm-icons.svg +20 -0
- fonts/fonts/fm-icons.ttf +0 -0
- fonts/fonts/fm-icons.woff +0 -0
- fonts/icons/close.svg +8 -0
- fonts/icons/collapse.svg +11 -0
- fonts/icons/delete.svg +5 -0
- fonts/icons/draggable.svg +8 -0
- fonts/icons/duplicate.svg +6 -0
- fonts/icons/edit.svg +5 -0
- fonts/icons/expand.svg +7 -0
- fonts/icons/form-maker.svg +10 -0
- fonts/icons/plus-circled.svg +3 -0
- fonts/icons/plus.svg +3 -0
- fonts/style.css +56 -0
- fonts/twbb-icon.svg +0 -19
- fonts/twbb-icons.eot +0 -0
- fonts/twbb-icons.ttf +0 -0
- fonts/twbb-icons.woff +0 -0
- form_maker_insert.php +14 -11
- form_maker_update.php +12 -6
- framework/WDW_FM_Library.php +10 -9
- frontend/models/form_maker.php +12 -14
- frontend/views/form_maker.php +54 -31
- js/add_field.js +167 -186
- js/form_maker_admin.js +22 -9
- js/form_maker_form_advanced_layout.js +8 -8
- js/form_maker_form_options.js +91 -49
- js/form_maker_manage.js +44 -48
- js/form_maker_manage_edit.js +203 -126
- js/formmaker_div.js +92 -172
- js/jquery.ui.touch-punch.min.js +11 -0
- js/main_div_front_end.js +40 -20
- js/themes.js +3 -3
- readme.txt +23 -1
- wd/assets/js/subsribe.js +17 -36
- wd/includes/subscribe.php +127 -138
- wd/wd.php +118 -156
admin/controllers/Generete_xml.php
CHANGED
@@ -46,7 +46,7 @@ class FMControllerGenerete_xml_fmc extends CFMAdminController {
|
|
46 |
fwrite($output, '<form title="' . $title . '">' . PHP_EOL);
|
47 |
}
|
48 |
foreach ( $data as $key1 => $value1 ) {
|
49 |
-
|
50 |
fwrite($output, PHP_TAB . '<submission id="' . $key1 . '">' . PHP_EOL);
|
51 |
foreach ( $value1 as $key => $value ) {
|
52 |
fwrite($output, PHP_TAB . PHP_TAB . '<field title="' . $key . '">' . PHP_EOL);
|
@@ -54,7 +54,7 @@ class FMControllerGenerete_xml_fmc extends CFMAdminController {
|
|
54 |
fwrite($output, PHP_TAB . PHP_TAB . '</field>' . PHP_EOL);
|
55 |
}
|
56 |
fwrite($output, PHP_TAB . '</submission>' . PHP_EOL);
|
57 |
-
|
58 |
}
|
59 |
if ( $send_header == 1 ) {
|
60 |
fwrite($output, '</form>');
|
46 |
fwrite($output, '<form title="' . $title . '">' . PHP_EOL);
|
47 |
}
|
48 |
foreach ( $data as $key1 => $value1 ) {
|
49 |
+
if ( !empty($key1) ) {
|
50 |
fwrite($output, PHP_TAB . '<submission id="' . $key1 . '">' . PHP_EOL);
|
51 |
foreach ( $value1 as $key => $value ) {
|
52 |
fwrite($output, PHP_TAB . PHP_TAB . '<field title="' . $key . '">' . PHP_EOL);
|
54 |
fwrite($output, PHP_TAB . PHP_TAB . '</field>' . PHP_EOL);
|
55 |
}
|
56 |
fwrite($output, PHP_TAB . '</submission>' . PHP_EOL);
|
57 |
+
}
|
58 |
}
|
59 |
if ( $send_header == 1 ) {
|
60 |
fwrite($output, '</form>');
|
admin/controllers/Manage_fm.php
CHANGED
@@ -9,6 +9,7 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
9 |
private $items_per_page = 20;
|
10 |
private $animation_effects = array();
|
11 |
private $actions = array();
|
|
|
12 |
|
13 |
function __construct() {
|
14 |
require_once WDFMInstance(self::PLUGIN)->plugin_dir . "/admin/models/Manage_fm.php";
|
@@ -16,7 +17,7 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
16 |
$this->model = new FMModelManage_fmc();
|
17 |
$this->view = new FMViewManage_fmc();
|
18 |
|
19 |
-
$this->page = WDW_FM_Library(self::PLUGIN)->get('page');
|
20 |
$this->page_url = add_query_arg(array(
|
21 |
'page' => $this->page,
|
22 |
WDFMInstance(self::PLUGIN)->nonce => wp_create_nonce(WDFMInstance(self::PLUGIN)->nonce),
|
@@ -90,7 +91,7 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
90 |
$task = WDW_FM_Library(self::PLUGIN)->get('task');
|
91 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0);
|
92 |
if ( method_exists($this, $task) ) {
|
93 |
-
if ( $task != 'add' && $task != 'edit' && $task != 'display' ) {
|
94 |
check_admin_referer(WDFMInstance(self::PLUGIN)->nonce, WDFMInstance(self::PLUGIN)->nonce);
|
95 |
}
|
96 |
$block_action = $this->bulk_action_name;
|
@@ -180,6 +181,7 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
180 |
$this->model->delete_rows(array( "table" => "formmaker_sessions", "where" => "form_id = " . $id ));
|
181 |
$this->model->delete_rows(array( "table" => "formmaker_backup", "where" => "id = " . $id ));
|
182 |
$this->model->delete_rows(array( "table" => "formmaker_display_options", "where" => "form_id = " . $id ));
|
|
|
183 |
if (WDFMInstance(self::PLUGIN)->is_free == 2) {
|
184 |
$arr = explode(',', get_option('contact_form_forms'));
|
185 |
$arr = array_diff($arr, array($id));
|
@@ -286,9 +288,40 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
286 |
$row = (array) $row;
|
287 |
unset($row['id']);
|
288 |
$inserted = $this->model->insert_data_to_db("formmaker", (array) $row);
|
289 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
if (WDFMInstance(self::PLUGIN)->is_free == 2) {
|
291 |
-
update_option('contact_form_forms', ((get_option('contact_form_forms')) ? (get_option('contact_form_forms')) . ',' . $
|
|
|
|
|
|
|
|
|
292 |
}
|
293 |
if ( $inserted !== FALSE ) {
|
294 |
$message = 11;
|
@@ -343,6 +376,8 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
343 |
array_push($label_type, $label_oder_each[1]);
|
344 |
}
|
345 |
|
|
|
|
|
346 |
$labels['id'] = '"' . implode('","', $label_id) . '"';
|
347 |
$labels['label'] = '"' . implode('","', $label_order_original) . '"';
|
348 |
$labels['type'] = '"' . implode('","', $label_type) . '"';
|
@@ -361,12 +396,14 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
361 |
* @param int $backup_id
|
362 |
*/
|
363 |
public function edit( $id = 0, $backup_id = 0 ) {
|
|
|
364 |
$fm_settings = get_option(WDFMInstance(self::PLUGIN)->is_free == 2 ? 'fmc_settings' : 'fm_settings');
|
365 |
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) && $fm_settings['fm_advanced_layout'] == '1' ? 1 : 0;
|
366 |
$fm_enable_wp_editor = !isset( $fm_settings['fm_enable_wp_editor'] ) ? 1 : $fm_settings['fm_enable_wp_editor'];
|
367 |
if ( $id && !$fm_advanced_layout ) {
|
368 |
$fm_advanced_layout = !$this->model->get_autogen_layout($id);
|
369 |
}
|
|
|
370 |
if ( !$backup_id ) {
|
371 |
$backup_id = $this->model->select_rows("get_var", array(
|
372 |
"selection" => "backup_id",
|
@@ -388,6 +425,7 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
388 |
|
389 |
$params = array();
|
390 |
$params['id'] = $id;
|
|
|
391 |
$params['row'] = $this->model->get_row_data_new($backup_id);
|
392 |
if ( empty($params['row']) ) {
|
393 |
WDW_FM_Library(self::PLUGIN)->fm_redirect( add_query_arg( array('page' => $this->page, 'task' => 'display'), admin_url('admin.php') ) );
|
@@ -422,41 +460,48 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
422 |
|
423 |
$labels = array();
|
424 |
$label_id = array();
|
|
|
425 |
$label_order_original = array();
|
426 |
$label_type = array();
|
427 |
$label_all = explode('#****#', $params['row']->label_order);
|
428 |
$label_all = array_slice($label_all, 0, count($label_all) - 1);
|
429 |
foreach ( $label_all as $key => $label_each ) {
|
430 |
-
$label_id_each = explode('#**id**#', $label_each);
|
|
|
|
|
|
|
431 |
array_push($label_id, $label_id_each[0]);
|
432 |
-
$
|
433 |
-
array_push($
|
434 |
-
array_push($
|
435 |
}
|
|
|
436 |
|
437 |
$labels['id'] = '"' . implode('","', $label_id) . '"';
|
438 |
$labels['label'] = '"' . implode('","', $label_order_original) . '"';
|
439 |
$labels['type'] = '"' . implode('","', $label_type) . '"';
|
440 |
$params['labels'] = $labels;
|
441 |
|
|
|
|
|
442 |
$params['page_title'] = (($params['id'] != 0) ? 'Edit form ' . $params['row']->title : 'Create new form');
|
443 |
-
|
444 |
$params['animation_effects'] = $this->animation_effects;
|
445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
$this->view->edit($params);
|
447 |
}
|
448 |
|
449 |
public function undo() {
|
450 |
$backup_id = (int) WDW_FM_Library(self::PLUGIN)->get('backup_id');
|
451 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('id');
|
452 |
-
$
|
453 |
-
$this->edit($id, $backup_id);
|
454 |
-
}
|
455 |
-
|
456 |
-
public function redo() {
|
457 |
-
$backup_id = (int) WDW_FM_Library(self::PLUGIN)->get('backup_id');
|
458 |
-
$id = (int) WDW_FM_Library(self::PLUGIN)->get('id');
|
459 |
-
$backup_id = $this->model->get_undo_redo_id($backup_id, $id, 1);
|
460 |
$this->edit($id, $backup_id);
|
461 |
}
|
462 |
|
@@ -473,10 +518,10 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
473 |
$params[ 'page_url' ] = $this->page_url;
|
474 |
|
475 |
$params[ 'back_url' ] = add_query_arg( array(
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
);
|
481 |
|
482 |
$params[ 'fieldset_id' ] = WDW_FM_Library(self::PLUGIN)->get( 'fieldset_id', 'general' );
|
@@ -506,8 +551,6 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
506 |
array_push( $label_label, $label_order_each[ 0 ] );
|
507 |
array_push( $label_type, $label_order_each[ 1 ] );
|
508 |
}
|
509 |
-
$params[ 'fields' ] = explode( '*:*id*:*type_submitter_mail*:*type*:*', $params[ 'row' ]->form_fields );
|
510 |
-
$params[ 'fields_count' ] = count( $params[ 'fields' ] );
|
511 |
|
512 |
// chechk stripe addon is active.
|
513 |
$stripe_addon = array( 'enable' => 0 );
|
@@ -532,8 +575,6 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
532 |
}
|
533 |
|
534 |
$params[ 'payment_method' ] = $payment_method;
|
535 |
-
$params[ 'label_label' ] = WDW_FM_Library(self::PLUGIN)->create_email_options_placeholders( $labelIds );
|
536 |
-
$params[ 'label_type' ] = $label_type;
|
537 |
$params[ 'labels_for_submissions' ] = $this->model->get_labels( $id );
|
538 |
$params[ 'payment_info' ] = $this->model->is_paypal( $id );
|
539 |
|
@@ -585,6 +626,38 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
585 |
$this->view->form_options( $params );
|
586 |
}
|
587 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
/**
|
589 |
* Get active addons.
|
590 |
*
|
@@ -609,44 +682,21 @@ class FMControllerManage_fmc extends CFMAdminController {
|
|
609 |
$message = $this->save_db_form_options( $id );
|
610 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
611 |
'page' => $this->page,
|
612 |
-
'task' => '
|
613 |
'current_id' => $id,
|
614 |
'fieldset_id' => $fieldset_id,
|
615 |
'message' => $message,
|
616 |
), admin_url('admin.php')));
|
617 |
}
|
618 |
|
619 |
-
|
620 |
-
* Save db
|
621 |
*
|
622 |
* @param int $id
|
623 |
* @return int $id_message
|
624 |
*/
|
625 |
-
public function
|
626 |
-
$javascript = "// Occurs before the form is loaded
|
627 |
-
function before_load() {
|
628 |
-
|
629 |
-
}
|
630 |
-
// Occurs just before submitting the form
|
631 |
-
function before_submit() {
|
632 |
-
// IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don't need to return any value if you don't want to stop the submission.
|
633 |
-
}
|
634 |
-
// Occurs just before resetting the form
|
635 |
-
function before_reset() {
|
636 |
-
|
637 |
-
}
|
638 |
-
// Occurs after form is submitted and reloaded
|
639 |
-
function after_submit() {
|
640 |
-
|
641 |
-
}";
|
642 |
-
|
643 |
-
$published = stripslashes(WDW_FM_Library(self::PLUGIN)->get('published', ''));
|
644 |
-
$savedb = stripslashes(WDW_FM_Library(self::PLUGIN)->get('savedb', ''));
|
645 |
-
$theme = (int) WDW_FM_Library(self::PLUGIN)->get('theme', 0);
|
646 |
-
$theme = ($theme) ? $theme : $this->model->get_default_theme_id();
|
647 |
-
$requiredmark = stripslashes(WDW_FM_Library(self::PLUGIN)->get('requiredmark', '*'));
|
648 |
$sendemail = stripslashes(WDW_FM_Library(self::PLUGIN)->get('sendemail', ''));
|
649 |
-
$save_uploads = stripslashes(WDW_FM_Library(self::PLUGIN)->get('save_uploads', ''));
|
650 |
$mail = stripslashes(WDW_FM_Library(self::PLUGIN)->get('mail', ''));
|
651 |
$from_mail = stripslashes(WDW_FM_Library(self::PLUGIN)->get('from_mail', ''));
|
652 |
$from_name = stripslashes(WDW_FM_Library(self::PLUGIN)->get('from_name', ''));
|
@@ -664,7 +714,6 @@ function after_submit() {
|
|
664 |
$mail_from_user = WDW_FM_Library(self::PLUGIN)->get('mail_from_user', '');
|
665 |
$mail_from_name_user = WDW_FM_Library(self::PLUGIN)->get('mail_from_name_user', '');
|
666 |
$reply_to_user = WDW_FM_Library(self::PLUGIN)->get('reply_to_user', '');
|
667 |
-
$condition = WDW_FM_Library(self::PLUGIN)->get('condition', '');
|
668 |
$mail_cc = WDW_FM_Library(self::PLUGIN)->get('mail_cc', '');
|
669 |
$mail_cc_user = WDW_FM_Library(self::PLUGIN)->get('mail_cc_user', '');
|
670 |
$mail_bcc = WDW_FM_Library(self::PLUGIN)->get('mail_bcc', '');
|
@@ -679,6 +728,103 @@ function after_submit() {
|
|
679 |
if ( $script_mail_user == '' ) {
|
680 |
$script_mail_user = '{all}';
|
681 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
$submit_text = WDW_FM_Library(self::PLUGIN)->get('submit_text', '', FALSE);
|
683 |
$url = WDW_FM_Library(self::PLUGIN)->get('url', '');
|
684 |
$tax = WDW_FM_Library(self::PLUGIN)->get('tax', 0);
|
@@ -696,18 +842,11 @@ function after_submit() {
|
|
696 |
}
|
697 |
|
698 |
$javascript = stripslashes(WDW_FM_Library(self::PLUGIN)->get('javascript', $javascript, false));
|
|
|
699 |
$user_id_wd = stripslashes(WDW_FM_Library(self::PLUGIN)->get('user_id_wd', 'administrator,'));
|
700 |
$frontend_submit_fields = stripslashes(WDW_FM_Library(self::PLUGIN)->get('frontend_submit_fields', ''));
|
701 |
$frontend_submit_stat_fields = stripslashes(WDW_FM_Library(self::PLUGIN)->get('frontend_submit_stat_fields', ''));
|
702 |
-
|
703 |
-
$mail_verify = stripslashes(WDW_FM_Library(self::PLUGIN)->get('mail_verify', 0));
|
704 |
-
$mail_verify_expiretime = stripslashes(WDW_FM_Library(self::PLUGIN)->get('mail_verify_expiretime', ''));
|
705 |
-
$send_to = '';
|
706 |
-
for ( $i = 0; $i < 20; $i++ ) {
|
707 |
-
if ( WDW_FM_Library(self::PLUGIN)->get('send_to' . $i, 0) ) {
|
708 |
-
$send_to .= '*' . WDW_FM_Library(self::PLUGIN)->get('send_to' . $i, 0) . '*';
|
709 |
-
}
|
710 |
-
}
|
711 |
if ( WDW_FM_Library(self::PLUGIN)->get('submit_text_type', 0) ) {
|
712 |
$submit_text_type = WDW_FM_Library(self::PLUGIN)->get('submit_text_type', 0);
|
713 |
if ( $submit_text_type == 5 ) {
|
@@ -721,7 +860,6 @@ function after_submit() {
|
|
721 |
$submit_text_type = 1;
|
722 |
$article_id = 0;
|
723 |
}
|
724 |
-
$mail_verification_post_id = (int) $this->model->get_mail_verification_post_id();
|
725 |
|
726 |
$privacy_arr = array(
|
727 |
'gdpr_checkbox' => WDW_FM_Library(self::PLUGIN)->get('gdpr_checkbox', 0),
|
@@ -732,46 +870,12 @@ function after_submit() {
|
|
732 |
|
733 |
$privacy = json_encode($privacy_arr);
|
734 |
|
735 |
-
if ( $mail_verify ) {
|
736 |
-
$email_verification_post = array(
|
737 |
-
'post_title' => 'Email Verification',
|
738 |
-
'post_content' => '[email_verification]',
|
739 |
-
'post_status' => 'publish',
|
740 |
-
'post_author' => 1,
|
741 |
-
'post_type' => 'fmemailverification',
|
742 |
-
);
|
743 |
-
if ( !$mail_verification_post_id || get_post($mail_verification_post_id) === NULL ) {
|
744 |
-
$mail_verification_post_id = wp_insert_post($email_verification_post);
|
745 |
-
}
|
746 |
-
}
|
747 |
|
748 |
-
|
749 |
'published' => $published,
|
750 |
'savedb' => $savedb,
|
751 |
-
'theme' => $theme,
|
752 |
'requiredmark' => $requiredmark,
|
753 |
-
'sendemail' => $sendemail,
|
754 |
'save_uploads' => $save_uploads,
|
755 |
-
'mail' => $mail,
|
756 |
-
'from_mail' => $from_mail,
|
757 |
-
'from_name' => $from_name,
|
758 |
-
'reply_to' => $reply_to,
|
759 |
-
'script_mail' => $script_mail,
|
760 |
-
'mail_from_user' => $mail_from_user,
|
761 |
-
'mail_from_name_user' => $mail_from_name_user,
|
762 |
-
'reply_to_user' => $reply_to_user,
|
763 |
-
'condition' => $condition,
|
764 |
-
'mail_cc' => $mail_cc,
|
765 |
-
'mail_cc_user' => $mail_cc_user,
|
766 |
-
'mail_bcc' => $mail_bcc,
|
767 |
-
'mail_bcc_user' => $mail_bcc_user,
|
768 |
-
'mail_subject' => $mail_subject,
|
769 |
-
'mail_subject_user' => $mail_subject_user,
|
770 |
-
'mail_mode' => $mail_mode,
|
771 |
-
'mail_mode_user' => $mail_mode_user,
|
772 |
-
'mail_attachment' => $mail_attachment,
|
773 |
-
'mail_attachment_user' => $mail_attachment_user,
|
774 |
-
'script_mail_user' => $script_mail_user,
|
775 |
'submit_text' => $submit_text,
|
776 |
'url' => $url,
|
777 |
'submit_text_type' => $submit_text_type,
|
@@ -782,24 +886,17 @@ function after_submit() {
|
|
782 |
'checkout_mode' => $checkout_mode,
|
783 |
'paypal_mode' => $paypal_mode,
|
784 |
'javascript' => $javascript,
|
|
|
785 |
'user_id_wd' => $user_id_wd,
|
786 |
-
'send_to' => $send_to,
|
787 |
'frontend_submit_fields' => $frontend_submit_fields,
|
788 |
'frontend_submit_stat_fields' => $frontend_submit_stat_fields,
|
789 |
-
'mail_emptyfields' => $mail_emptyfields,
|
790 |
-
'mail_verify' => $mail_verify,
|
791 |
-
'mail_verify_expiretime' => $mail_verify_expiretime,
|
792 |
-
'mail_verification_post_id' => $mail_verification_post_id,
|
793 |
'privacy' => $privacy,
|
794 |
);
|
795 |
|
796 |
$message_id = 2;
|
797 |
$save = $this->model->update_data('formmaker', $data, array( 'id' => $id ));
|
798 |
if ( $save !== FALSE ) {
|
799 |
-
$this->model->update_data(
|
800 |
-
array('theme' => $theme),
|
801 |
-
array( 'id' => $id )
|
802 |
-
);
|
803 |
//save theme in backup
|
804 |
if ( WDFMInstance(self::PLUGIN)->is_free != 2 ) {
|
805 |
$save_addon = do_action('fm_save_addon_init', $id);
|
@@ -886,14 +983,16 @@ function after_submit() {
|
|
886 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', $this->model->get_max_row("formmaker", "id"));
|
887 |
$params = array();
|
888 |
$params['row_form'] = $this->model->get_row_data($id);
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
$params['row'] = $this->model->get_display_options($id);
|
|
|
|
|
893 |
$params['page_title'] = '"'. $params['row_form']->title . '" ' . __('display options', WDFMInstance(self::PLUGIN)->prefix);
|
894 |
$params['animation_effects'] = $this->animation_effects;
|
895 |
-
|
896 |
-
|
897 |
$params['categories'] = $this->model->fm_categories_query();
|
898 |
$params['selected_categories'] = explode(',', $params['row']->display_on_categories);
|
899 |
$params['current_categories_array'] = explode(',', $params['row']->current_categories);
|
@@ -906,7 +1005,8 @@ function after_submit() {
|
|
906 |
'current_id' => $id,
|
907 |
), admin_url('admin.php')
|
908 |
);
|
909 |
-
|
|
|
910 |
$params['fieldset_id'] = WDW_FM_Library(self::PLUGIN)->get('fieldset_id', 'embedded');
|
911 |
$this->view->display_options($params);
|
912 |
}
|
@@ -924,7 +1024,7 @@ function after_submit() {
|
|
924 |
), admin_url('admin.php')));
|
925 |
}
|
926 |
|
927 |
-
public function apply_display_options() {
|
928 |
$message = $this->save_dis_options();
|
929 |
$page = WDW_FM_Library(self::PLUGIN)->get('page');
|
930 |
$fieldset_id = WDW_FM_Library(self::PLUGIN)->get('fieldset_id', 'embedded');
|
@@ -932,7 +1032,7 @@ function after_submit() {
|
|
932 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
933 |
'page' => $page,
|
934 |
'task' => 'display_options',
|
935 |
-
'current_id' => $
|
936 |
'fieldset_id'=> $fieldset_id,
|
937 |
'message' => $message,
|
938 |
), admin_url('admin.php')));
|
@@ -952,7 +1052,7 @@ function after_submit() {
|
|
952 |
|
953 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
954 |
'page' => $this->page,
|
955 |
-
'task' => '
|
956 |
'current_id' => $id,
|
957 |
'fieldset_id' => $fieldset_id,
|
958 |
'message' => $message,
|
@@ -971,6 +1071,8 @@ function after_submit() {
|
|
971 |
}
|
972 |
|
973 |
public function save_dis_options() {
|
|
|
|
|
974 |
$option_data = array(
|
975 |
'form_id' => (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0),
|
976 |
'scrollbox_loading_delay' => $this->set_delay_freq_positive_val( WDW_FM_Library(self::PLUGIN)->get('scrollbox_loading_delay', 0) ),
|
@@ -1002,9 +1104,11 @@ function after_submit() {
|
|
1002 |
if ( $save !== FALSE ) {
|
1003 |
$this->model->update_data('formmaker_backup', array(
|
1004 |
'type' => $option_data['type'],
|
|
|
1005 |
), array( 'id' => $option_data['form_id'] ));
|
1006 |
$this->model->update_data('formmaker', array(
|
1007 |
'type' => $option_data['type'],
|
|
|
1008 |
), array( 'id' => $option_data['form_id'] ));
|
1009 |
$this->model->create_js($option_data['form_id']);
|
1010 |
|
@@ -1037,18 +1141,35 @@ function after_submit() {
|
|
1037 |
}
|
1038 |
|
1039 |
public function apply() {
|
|
|
1040 |
$message = $this->save_db();
|
1041 |
$current_id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0);
|
1042 |
if ( !$current_id ) {
|
1043 |
$current_id = (int) $this->model->get_max_row('formmaker', 'id');
|
1044 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1045 |
$page = WDW_FM_Library(self::PLUGIN)->get('page');
|
1046 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
|
|
|
|
1052 |
}
|
1053 |
|
1054 |
public function save_db() {
|
@@ -1068,8 +1189,6 @@ function after_submit() {
|
|
1068 |
}";
|
1069 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0);
|
1070 |
$title = WDW_FM_Library(self::PLUGIN)->get('title', '');
|
1071 |
-
$theme = (int) WDW_FM_Library(self::PLUGIN)->get('theme', 0);
|
1072 |
-
$theme = ($theme) ? $theme : $this->model->get_default_theme_id();
|
1073 |
$form_front = WDW_FM_Library(self::PLUGIN)->get('form_front', '', false);
|
1074 |
$sortable = WDW_FM_Library(self::PLUGIN)->get('sortable', 0);
|
1075 |
$counter = WDW_FM_Library(self::PLUGIN)->get('counter', 0);
|
@@ -1087,12 +1206,12 @@ function after_submit() {
|
|
1087 |
$header_image_url = WDW_FM_Library(self::PLUGIN)->get('header_image_url', '');
|
1088 |
$header_image_animation = WDW_FM_Library(self::PLUGIN)->get('header_image_animation', '');
|
1089 |
$header_hide_image = WDW_FM_Library(self::PLUGIN)->get('header_hide_image', 0);
|
|
|
1090 |
$type = WDW_FM_Library(self::PLUGIN)->get('form_type', 'embedded');
|
1091 |
$scrollbox_minimize_text = $header_title ? $header_title : 'The form is minimized.';
|
1092 |
if ( $id != 0 ) {
|
1093 |
$save = $this->model->update_data('formmaker', array(
|
1094 |
'title' => $title,
|
1095 |
-
'theme' => $theme,
|
1096 |
'form_front' => $form_front,
|
1097 |
'sortable' => $sortable,
|
1098 |
'counter' => $counter,
|
@@ -1110,9 +1229,11 @@ function after_submit() {
|
|
1110 |
'header_image_url' => $header_image_url,
|
1111 |
'header_image_animation' => $header_image_animation,
|
1112 |
'header_hide_image' => $header_hide_image,
|
|
|
1113 |
), array( 'id' => $id ));
|
1114 |
}
|
1115 |
else {
|
|
|
1116 |
$this->model->insert_data_to_db('formmaker', array(
|
1117 |
'title' => $title,
|
1118 |
'type' => $type,
|
@@ -1175,6 +1296,7 @@ function after_submit() {
|
|
1175 |
'header_image_url' => $header_image_url,
|
1176 |
'header_image_animation' => $header_image_animation,
|
1177 |
'header_hide_image' => $header_hide_image,
|
|
|
1178 |
'privacy' => '',
|
1179 |
));
|
1180 |
$id = (int) $this->model->get_max_row('formmaker', 'id');
|
@@ -1214,12 +1336,8 @@ function after_submit() {
|
|
1214 |
}
|
1215 |
$backup_id = (int) WDW_FM_Library(self::PLUGIN)->get('backup_id', '');
|
1216 |
if ( $backup_id ) {
|
1217 |
-
|
1218 |
-
|
1219 |
-
"table" => "formmaker_backup",
|
1220 |
-
"where" => "backup_id > " . $backup_id . " AND id = " . $id,
|
1221 |
-
));
|
1222 |
-
}
|
1223 |
// Get form_fields, form_front
|
1224 |
$row1 = $this->model->select_rows("get_row", array(
|
1225 |
"selection" => "form_fields, form_front",
|
@@ -1230,7 +1348,6 @@ function after_submit() {
|
|
1230 |
$save = $this->model->update_data('formmaker_backup', array(
|
1231 |
'cur' => 1,
|
1232 |
'title' => $title,
|
1233 |
-
'theme' => $theme,
|
1234 |
'form_front' => $form_front,
|
1235 |
'sortable' => $sortable,
|
1236 |
'counter' => $counter,
|
@@ -1248,6 +1365,7 @@ function after_submit() {
|
|
1248 |
'header_image_url' => $header_image_url,
|
1249 |
'header_image_animation' => $header_image_animation,
|
1250 |
'header_hide_image' => $header_hide_image,
|
|
|
1251 |
), array( 'backup_id' => $backup_id ));
|
1252 |
if ( $save !== FALSE ) {
|
1253 |
$this->model->create_js($id);
|
@@ -1260,13 +1378,13 @@ function after_submit() {
|
|
1260 |
}
|
1261 |
}
|
1262 |
$this->model->update_data('formmaker_backup', array( 'cur' => 0 ), array( 'id' => $id ));
|
|
|
1263 |
$save = $this->model->insert_data_to_db('formmaker_backup', array(
|
1264 |
'cur' => 1,
|
1265 |
'id' => $id,
|
1266 |
'title' => $title,
|
1267 |
'mail' => '',
|
1268 |
'form_front' => $form_front,
|
1269 |
-
'theme' => $theme,
|
1270 |
'counter' => $counter,
|
1271 |
'label_order' => $label_order,
|
1272 |
'pagination' => $pagination,
|
@@ -1322,22 +1440,11 @@ function after_submit() {
|
|
1322 |
'header_image_url' => $header_image_url,
|
1323 |
'header_image_animation' => $header_image_animation,
|
1324 |
'header_hide_image' => $header_hide_image,
|
|
|
1325 |
'privacy' => '',
|
|
|
1326 |
));
|
1327 |
|
1328 |
-
$backup_count = $this->model->get_count(array(
|
1329 |
-
"selection" => "backup_id",
|
1330 |
-
"table" => "formmaker_backup",
|
1331 |
-
"where" => "backup_id = " . $id,
|
1332 |
-
));
|
1333 |
-
if ( $backup_count > 10 ) {
|
1334 |
-
$this->model->delete_rows(array(
|
1335 |
-
"table" => "formmaker_backup",
|
1336 |
-
"where" => "id = " . $id,
|
1337 |
-
"order_by" => "ORDER BY backup_id ASC",
|
1338 |
-
"limit" => "LIMIT 1",
|
1339 |
-
));
|
1340 |
-
}
|
1341 |
if ( $save !== FALSE ) {
|
1342 |
$this->model->create_js($id);
|
1343 |
return 1;
|
9 |
private $items_per_page = 20;
|
10 |
private $animation_effects = array();
|
11 |
private $actions = array();
|
12 |
+
private $revision = 0;
|
13 |
|
14 |
function __construct() {
|
15 |
require_once WDFMInstance(self::PLUGIN)->plugin_dir . "/admin/models/Manage_fm.php";
|
17 |
$this->model = new FMModelManage_fmc();
|
18 |
$this->view = new FMViewManage_fmc();
|
19 |
|
20 |
+
$this->page = WDW_FM_Library(self::PLUGIN)->get('page', 'manage' . WDFMInstance(self::PLUGIN)->menu_postfix);
|
21 |
$this->page_url = add_query_arg(array(
|
22 |
'page' => $this->page,
|
23 |
WDFMInstance(self::PLUGIN)->nonce => wp_create_nonce(WDFMInstance(self::PLUGIN)->nonce),
|
91 |
$task = WDW_FM_Library(self::PLUGIN)->get('task');
|
92 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0);
|
93 |
if ( method_exists($this, $task) ) {
|
94 |
+
if ( $task != 'add' && $task != 'edit' && $task != 'display' && $task != 'form_options' && $task != 'email_options' && $task != 'display_options' && $task != 'form_layout' ) {
|
95 |
check_admin_referer(WDFMInstance(self::PLUGIN)->nonce, WDFMInstance(self::PLUGIN)->nonce);
|
96 |
}
|
97 |
$block_action = $this->bulk_action_name;
|
181 |
$this->model->delete_rows(array( "table" => "formmaker_sessions", "where" => "form_id = " . $id ));
|
182 |
$this->model->delete_rows(array( "table" => "formmaker_backup", "where" => "id = " . $id ));
|
183 |
$this->model->delete_rows(array( "table" => "formmaker_display_options", "where" => "form_id = " . $id ));
|
184 |
+
$this->model->delete_rows(array( "table" => "formmaker_query", "where" => "form_id = " . $id ));
|
185 |
if (WDFMInstance(self::PLUGIN)->is_free == 2) {
|
186 |
$arr = explode(',', get_option('contact_form_forms'));
|
187 |
$arr = array_diff($arr, array($id));
|
288 |
$row = (array) $row;
|
289 |
unset($row['id']);
|
290 |
$inserted = $this->model->insert_data_to_db("formmaker", (array) $row);
|
291 |
+
$new_id = (int) $this->model->get_max_row('formmaker', 'id');
|
292 |
+
|
293 |
+
$row_display_options = $this->model->select_rows("get_row", array(
|
294 |
+
"selection" => "*",
|
295 |
+
"table" => "formmaker_display_options",
|
296 |
+
"where" => "form_id=" . (int) $id,
|
297 |
+
));
|
298 |
+
if ( $row_display_options ) {
|
299 |
+
$row_display_options = (array) $row_display_options;
|
300 |
+
unset($row_display_options['id']);
|
301 |
+
$row_display_options['form_id'] = $new_id;
|
302 |
+
$inserted = $this->model->insert_data_to_db("formmaker_display_options", (array) $row_display_options);
|
303 |
+
}
|
304 |
+
|
305 |
+
$row_query = $this->model->select_rows("get_results", array(
|
306 |
+
"selection" => "*",
|
307 |
+
"table" => "formmaker_query",
|
308 |
+
"where" => "form_id=" . (int) $id,
|
309 |
+
));
|
310 |
+
if ( $row_query ) {
|
311 |
+
foreach ($row_query as $query) {
|
312 |
+
$query = (array)$query;
|
313 |
+
unset($query['id']);
|
314 |
+
$query['form_id'] = $new_id;
|
315 |
+
$inserted = $this->model->insert_data_to_db("formmaker_query", (array)$query);
|
316 |
+
}
|
317 |
+
}
|
318 |
+
|
319 |
if (WDFMInstance(self::PLUGIN)->is_free == 2) {
|
320 |
+
update_option('contact_form_forms', ((get_option('contact_form_forms')) ? (get_option('contact_form_forms')) . ',' . $new_id : $new_id));
|
321 |
+
}
|
322 |
+
else {
|
323 |
+
// Duplicate add-ons data.
|
324 |
+
do_action('fm_duplicate_form', $id, $new_id);
|
325 |
}
|
326 |
if ( $inserted !== FALSE ) {
|
327 |
$message = 11;
|
376 |
array_push($label_type, $label_oder_each[1]);
|
377 |
}
|
378 |
|
379 |
+
$params[ 'label_label' ] = array();
|
380 |
+
|
381 |
$labels['id'] = '"' . implode('","', $label_id) . '"';
|
382 |
$labels['label'] = '"' . implode('","', $label_order_original) . '"';
|
383 |
$labels['type'] = '"' . implode('","', $label_type) . '"';
|
396 |
* @param int $backup_id
|
397 |
*/
|
398 |
public function edit( $id = 0, $backup_id = 0 ) {
|
399 |
+
|
400 |
$fm_settings = get_option(WDFMInstance(self::PLUGIN)->is_free == 2 ? 'fmc_settings' : 'fm_settings');
|
401 |
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) && $fm_settings['fm_advanced_layout'] == '1' ? 1 : 0;
|
402 |
$fm_enable_wp_editor = !isset( $fm_settings['fm_enable_wp_editor'] ) ? 1 : $fm_settings['fm_enable_wp_editor'];
|
403 |
if ( $id && !$fm_advanced_layout ) {
|
404 |
$fm_advanced_layout = !$this->model->get_autogen_layout($id);
|
405 |
}
|
406 |
+
|
407 |
if ( !$backup_id ) {
|
408 |
$backup_id = $this->model->select_rows("get_var", array(
|
409 |
"selection" => "backup_id",
|
425 |
|
426 |
$params = array();
|
427 |
$params['id'] = $id;
|
428 |
+
$params['backup_id'] = $backup_id;
|
429 |
$params['row'] = $this->model->get_row_data_new($backup_id);
|
430 |
if ( empty($params['row']) ) {
|
431 |
WDW_FM_Library(self::PLUGIN)->fm_redirect( add_query_arg( array('page' => $this->page, 'task' => 'display'), admin_url('admin.php') ) );
|
460 |
|
461 |
$labels = array();
|
462 |
$label_id = array();
|
463 |
+
$label_label = array();
|
464 |
$label_order_original = array();
|
465 |
$label_type = array();
|
466 |
$label_all = explode('#****#', $params['row']->label_order);
|
467 |
$label_all = array_slice($label_all, 0, count($label_all) - 1);
|
468 |
foreach ( $label_all as $key => $label_each ) {
|
469 |
+
$label_id_each = explode( '#**id**#', $label_each );
|
470 |
+
$label_order_each = explode( '#**label**#', $label_id_each[ 1 ] );
|
471 |
+
$labelIds[ $label_id_each[ 0 ] ] = array( 'type' => $label_order_each[ 1 ], 'name' => $label_order_each[ 0 ] );
|
472 |
+
|
473 |
array_push($label_id, $label_id_each[0]);
|
474 |
+
array_push($label_order_original, addslashes($label_order_each[0]));
|
475 |
+
array_push($label_type, $label_order_each[1]);
|
476 |
+
array_push( $label_label, $label_order_each[ 0 ] );
|
477 |
}
|
478 |
+
$params[ 'label_label' ] = WDW_FM_Library(self::PLUGIN)->create_email_options_placeholders( $labelIds );
|
479 |
|
480 |
$labels['id'] = '"' . implode('","', $label_id) . '"';
|
481 |
$labels['label'] = '"' . implode('","', $label_order_original) . '"';
|
482 |
$labels['type'] = '"' . implode('","', $label_type) . '"';
|
483 |
$params['labels'] = $labels;
|
484 |
|
485 |
+
$params[ 'fields' ] = explode( '*:*id*:*type_submitter_mail*:*type*:*', $params[ 'row' ]->form_fields );
|
486 |
+
$params[ 'fields_count' ] = count( $params[ 'fields' ] );
|
487 |
$params['page_title'] = (($params['id'] != 0) ? 'Edit form ' . $params['row']->title : 'Create new form');
|
|
|
488 |
$params['animation_effects'] = $this->animation_effects;
|
489 |
|
490 |
+
$rev = $this->model->get_revisions( $id );
|
491 |
+
$params['revisions'] = $rev['data'];
|
492 |
+
$params['revisions_total'] = $rev['total'];
|
493 |
+
$params['revisions_status'] = $this->revision;
|
494 |
+
$params['current_revision'] = $this->model->get_current_revision( $id );
|
495 |
+
$params['revision_date'] = $this->model->get_revision_date( $backup_id );
|
496 |
+
$params['rev_index'] = WDW_FM_Library(self::PLUGIN)->get('rev_id');
|
497 |
+
|
498 |
$this->view->edit($params);
|
499 |
}
|
500 |
|
501 |
public function undo() {
|
502 |
$backup_id = (int) WDW_FM_Library(self::PLUGIN)->get('backup_id');
|
503 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('id');
|
504 |
+
$this->revision = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
$this->edit($id, $backup_id);
|
506 |
}
|
507 |
|
518 |
$params[ 'page_url' ] = $this->page_url;
|
519 |
|
520 |
$params[ 'back_url' ] = add_query_arg( array(
|
521 |
+
'page' => 'manage' . WDFMInstance(self::PLUGIN)->menu_postfix,
|
522 |
+
'task' => 'edit',
|
523 |
+
'current_id' => $id
|
524 |
+
), admin_url( 'admin.php' )
|
525 |
);
|
526 |
|
527 |
$params[ 'fieldset_id' ] = WDW_FM_Library(self::PLUGIN)->get( 'fieldset_id', 'general' );
|
551 |
array_push( $label_label, $label_order_each[ 0 ] );
|
552 |
array_push( $label_type, $label_order_each[ 1 ] );
|
553 |
}
|
|
|
|
|
554 |
|
555 |
// chechk stripe addon is active.
|
556 |
$stripe_addon = array( 'enable' => 0 );
|
575 |
}
|
576 |
|
577 |
$params[ 'payment_method' ] = $payment_method;
|
|
|
|
|
578 |
$params[ 'labels_for_submissions' ] = $this->model->get_labels( $id );
|
579 |
$params[ 'payment_info' ] = $this->model->is_paypal( $id );
|
580 |
|
626 |
$this->view->form_options( $params );
|
627 |
}
|
628 |
|
629 |
+
/**
|
630 |
+
* Email options.
|
631 |
+
*
|
632 |
+
* @param int $id
|
633 |
+
*/
|
634 |
+
public function email_options( $id = 0 ) {
|
635 |
+
// Set params for view.
|
636 |
+
$params = array();
|
637 |
+
$params[ 'id' ] = $id;
|
638 |
+
$params[ 'page' ] = $this->page;
|
639 |
+
$params[ 'page_url' ] = $this->page_url;
|
640 |
+
|
641 |
+
$params[ 'back_url' ] = add_query_arg( array(
|
642 |
+
'page' => 'manage' . WDFMInstance(self::PLUGIN)->menu_postfix,
|
643 |
+
'task' => 'edit',
|
644 |
+
'current_id' => $id
|
645 |
+
), admin_url( 'admin.php' )
|
646 |
+
);
|
647 |
+
|
648 |
+
$params[ 'fieldset_id' ] = WDW_FM_Library(self::PLUGIN)->get( 'fieldset_id', 'general' );
|
649 |
+
|
650 |
+
$params[ 'row' ] = $this->model->get_row_data( $id );
|
651 |
+
if ( empty( $params[ 'row' ] ) ) {
|
652 |
+
WDW_FM_Library(self::PLUGIN)->fm_redirect( add_query_arg( array( 'page' => $this->page ), admin_url( 'admin.php' ) ) );
|
653 |
+
}
|
654 |
+
$params[ 'fields' ] = explode( '*:*id*:*type_submitter_mail*:*type*:*', $params[ 'row' ]->form_fields );
|
655 |
+
$params[ 'fields_count' ] = count( $params[ 'fields' ] );
|
656 |
+
$params[ 'mail_ver_id' ] = $this->model->get_emailverification_post_id();
|
657 |
+
|
658 |
+
$this->view->email_options( $params );
|
659 |
+
}
|
660 |
+
|
661 |
/**
|
662 |
* Get active addons.
|
663 |
*
|
682 |
$message = $this->save_db_form_options( $id );
|
683 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
684 |
'page' => $this->page,
|
685 |
+
'task' => 'edit',
|
686 |
'current_id' => $id,
|
687 |
'fieldset_id' => $fieldset_id,
|
688 |
'message' => $message,
|
689 |
), admin_url('admin.php')));
|
690 |
}
|
691 |
|
692 |
+
/**
|
693 |
+
* Save db Email options.
|
694 |
*
|
695 |
* @param int $id
|
696 |
* @return int $id_message
|
697 |
*/
|
698 |
+
public function save_db_email_options( $id = 0 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
699 |
$sendemail = stripslashes(WDW_FM_Library(self::PLUGIN)->get('sendemail', ''));
|
|
|
700 |
$mail = stripslashes(WDW_FM_Library(self::PLUGIN)->get('mail', ''));
|
701 |
$from_mail = stripslashes(WDW_FM_Library(self::PLUGIN)->get('from_mail', ''));
|
702 |
$from_name = stripslashes(WDW_FM_Library(self::PLUGIN)->get('from_name', ''));
|
714 |
$mail_from_user = WDW_FM_Library(self::PLUGIN)->get('mail_from_user', '');
|
715 |
$mail_from_name_user = WDW_FM_Library(self::PLUGIN)->get('mail_from_name_user', '');
|
716 |
$reply_to_user = WDW_FM_Library(self::PLUGIN)->get('reply_to_user', '');
|
|
|
717 |
$mail_cc = WDW_FM_Library(self::PLUGIN)->get('mail_cc', '');
|
718 |
$mail_cc_user = WDW_FM_Library(self::PLUGIN)->get('mail_cc_user', '');
|
719 |
$mail_bcc = WDW_FM_Library(self::PLUGIN)->get('mail_bcc', '');
|
728 |
if ( $script_mail_user == '' ) {
|
729 |
$script_mail_user = '{all}';
|
730 |
}
|
731 |
+
|
732 |
+
$mail_emptyfields = stripslashes(WDW_FM_Library(self::PLUGIN)->get('mail_emptyfields', 0));
|
733 |
+
$mail_verify = stripslashes(WDW_FM_Library(self::PLUGIN)->get('mail_verify', 0));
|
734 |
+
$mail_verify_expiretime = stripslashes(WDW_FM_Library(self::PLUGIN)->get('mail_verify_expiretime', ''));
|
735 |
+
$send_to = '';
|
736 |
+
for ( $i = 0; $i < 20; $i++ ) {
|
737 |
+
if ( WDW_FM_Library(self::PLUGIN)->get('send_to' . $i, 0) ) {
|
738 |
+
$send_to .= '*' . WDW_FM_Library(self::PLUGIN)->get('send_to' . $i, 0) . '*';
|
739 |
+
}
|
740 |
+
}
|
741 |
+
|
742 |
+
$mail_verification_post_id = (int) $this->model->get_mail_verification_post_id();
|
743 |
+
|
744 |
+
|
745 |
+
if ( $mail_verify ) {
|
746 |
+
$email_verification_post = array(
|
747 |
+
'post_title' => 'Email Verification',
|
748 |
+
'post_content' => '[email_verification]',
|
749 |
+
'post_status' => 'publish',
|
750 |
+
'post_author' => 1,
|
751 |
+
'post_type' => 'fmemailverification',
|
752 |
+
);
|
753 |
+
if ( !$mail_verification_post_id || get_post($mail_verification_post_id) === NULL ) {
|
754 |
+
$mail_verification_post_id = wp_insert_post($email_verification_post);
|
755 |
+
}
|
756 |
+
}
|
757 |
+
|
758 |
+
$data = array(
|
759 |
+
'sendemail' => $sendemail,
|
760 |
+
'mail' => $mail,
|
761 |
+
'from_mail' => $from_mail,
|
762 |
+
'from_name' => $from_name,
|
763 |
+
'reply_to' => $reply_to,
|
764 |
+
'script_mail' => $script_mail,
|
765 |
+
'mail_from_user' => $mail_from_user,
|
766 |
+
'mail_from_name_user' => $mail_from_name_user,
|
767 |
+
'reply_to_user' => $reply_to_user,
|
768 |
+
'mail_cc' => $mail_cc,
|
769 |
+
'mail_cc_user' => $mail_cc_user,
|
770 |
+
'mail_bcc' => $mail_bcc,
|
771 |
+
'mail_bcc_user' => $mail_bcc_user,
|
772 |
+
'mail_subject' => $mail_subject,
|
773 |
+
'mail_subject_user' => $mail_subject_user,
|
774 |
+
'mail_mode' => $mail_mode,
|
775 |
+
'mail_mode_user' => $mail_mode_user,
|
776 |
+
'mail_attachment' => $mail_attachment,
|
777 |
+
'mail_attachment_user' => $mail_attachment_user,
|
778 |
+
'script_mail_user' => $script_mail_user,
|
779 |
+
'send_to' => $send_to,
|
780 |
+
'mail_emptyfields' => $mail_emptyfields,
|
781 |
+
'mail_verify' => $mail_verify,
|
782 |
+
'mail_verify_expiretime' => $mail_verify_expiretime,
|
783 |
+
'mail_verification_post_id' => $mail_verification_post_id,
|
784 |
+
);
|
785 |
+
|
786 |
+
$message_id = 2;
|
787 |
+
$save = $this->model->update_data('formmaker', $data, array( 'id' => $id ));
|
788 |
+
if ( $save !== FALSE ) {
|
789 |
+
$this->model->create_js($id);
|
790 |
+
$message_id = 8;
|
791 |
+
}
|
792 |
+
|
793 |
+
return $message_id;
|
794 |
+
|
795 |
+
|
796 |
+
|
797 |
+
|
798 |
+
}
|
799 |
+
|
800 |
+
/**
|
801 |
+
* Save db Form options.
|
802 |
+
*
|
803 |
+
* @param int $id
|
804 |
+
* @return int $id_message
|
805 |
+
*/
|
806 |
+
public function save_db_form_options( $id = 0 ) {
|
807 |
+
$javascript = "// Occurs before the form is loaded
|
808 |
+
function before_load() {
|
809 |
+
|
810 |
+
}
|
811 |
+
// Occurs just before submitting the form
|
812 |
+
function before_submit() {
|
813 |
+
// IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don't need to return any value if you don't want to stop the submission.
|
814 |
+
}
|
815 |
+
// Occurs just before resetting the form
|
816 |
+
function before_reset() {
|
817 |
+
|
818 |
+
}
|
819 |
+
// Occurs after form is submitted and reloaded
|
820 |
+
function after_submit() {
|
821 |
+
|
822 |
+
}";
|
823 |
+
|
824 |
+
$published = stripslashes(WDW_FM_Library(self::PLUGIN)->get('published', ''));
|
825 |
+
$savedb = stripslashes(WDW_FM_Library(self::PLUGIN)->get('savedb', ''));
|
826 |
+
$requiredmark = stripslashes(WDW_FM_Library(self::PLUGIN)->get('requiredmark', '*'));
|
827 |
+
$save_uploads = stripslashes(WDW_FM_Library(self::PLUGIN)->get('save_uploads', ''));
|
828 |
$submit_text = WDW_FM_Library(self::PLUGIN)->get('submit_text', '', FALSE);
|
829 |
$url = WDW_FM_Library(self::PLUGIN)->get('url', '');
|
830 |
$tax = WDW_FM_Library(self::PLUGIN)->get('tax', 0);
|
842 |
}
|
843 |
|
844 |
$javascript = stripslashes(WDW_FM_Library(self::PLUGIN)->get('javascript', $javascript, false));
|
845 |
+
$condition = WDW_FM_Library(self::PLUGIN)->get('condition', '');
|
846 |
$user_id_wd = stripslashes(WDW_FM_Library(self::PLUGIN)->get('user_id_wd', 'administrator,'));
|
847 |
$frontend_submit_fields = stripslashes(WDW_FM_Library(self::PLUGIN)->get('frontend_submit_fields', ''));
|
848 |
$frontend_submit_stat_fields = stripslashes(WDW_FM_Library(self::PLUGIN)->get('frontend_submit_stat_fields', ''));
|
849 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
850 |
if ( WDW_FM_Library(self::PLUGIN)->get('submit_text_type', 0) ) {
|
851 |
$submit_text_type = WDW_FM_Library(self::PLUGIN)->get('submit_text_type', 0);
|
852 |
if ( $submit_text_type == 5 ) {
|
860 |
$submit_text_type = 1;
|
861 |
$article_id = 0;
|
862 |
}
|
|
|
863 |
|
864 |
$privacy_arr = array(
|
865 |
'gdpr_checkbox' => WDW_FM_Library(self::PLUGIN)->get('gdpr_checkbox', 0),
|
870 |
|
871 |
$privacy = json_encode($privacy_arr);
|
872 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
873 |
|
874 |
+
$data = array(
|
875 |
'published' => $published,
|
876 |
'savedb' => $savedb,
|
|
|
877 |
'requiredmark' => $requiredmark,
|
|
|
878 |
'save_uploads' => $save_uploads,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
879 |
'submit_text' => $submit_text,
|
880 |
'url' => $url,
|
881 |
'submit_text_type' => $submit_text_type,
|
886 |
'checkout_mode' => $checkout_mode,
|
887 |
'paypal_mode' => $paypal_mode,
|
888 |
'javascript' => $javascript,
|
889 |
+
'condition' => $condition,
|
890 |
'user_id_wd' => $user_id_wd,
|
|
|
891 |
'frontend_submit_fields' => $frontend_submit_fields,
|
892 |
'frontend_submit_stat_fields' => $frontend_submit_stat_fields,
|
|
|
|
|
|
|
|
|
893 |
'privacy' => $privacy,
|
894 |
);
|
895 |
|
896 |
$message_id = 2;
|
897 |
$save = $this->model->update_data('formmaker', $data, array( 'id' => $id ));
|
898 |
if ( $save !== FALSE ) {
|
899 |
+
$this->model->update_data( 'formmaker_backup', $data, array( 'id' => $id ) );
|
|
|
|
|
|
|
900 |
//save theme in backup
|
901 |
if ( WDFMInstance(self::PLUGIN)->is_free != 2 ) {
|
902 |
$save_addon = do_action('fm_save_addon_init', $id);
|
983 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', $this->model->get_max_row("formmaker", "id"));
|
984 |
$params = array();
|
985 |
$params['row_form'] = $this->model->get_row_data($id);
|
986 |
+
if ( empty($params['row_form']) ) {
|
987 |
+
WDW_FM_Library(self::PLUGIN)->fm_redirect( add_query_arg( array('page' => $this->page, 'task' => 'display'), admin_url('admin.php') ) );
|
988 |
+
}
|
989 |
$params['row'] = $this->model->get_display_options($id);
|
990 |
+
$row_data = $this->model->get_row_data( $id );
|
991 |
+
$params['row']->theme = $row_data->theme;
|
992 |
$params['page_title'] = '"'. $params['row_form']->title . '" ' . __('display options', WDFMInstance(self::PLUGIN)->prefix);
|
993 |
$params['animation_effects'] = $this->animation_effects;
|
994 |
+
$params['display_on_list'] = array('everything' => 'All', 'home' => 'Homepage', 'archive' => 'Archives', 'post' => 'Post', 'page' => 'Page');
|
995 |
+
$params['posts_and_pages'] = $this->model->fm_posts_query();
|
996 |
$params['categories'] = $this->model->fm_categories_query();
|
997 |
$params['selected_categories'] = explode(',', $params['row']->display_on_categories);
|
998 |
$params['current_categories_array'] = explode(',', $params['row']->current_categories);
|
1005 |
'current_id' => $id,
|
1006 |
), admin_url('admin.php')
|
1007 |
);
|
1008 |
+
$params['themes'] = $this->model->get_theme_rows_data();
|
1009 |
+
$params['default_theme'] = $this->model->get_default_theme_id();
|
1010 |
$params['fieldset_id'] = WDW_FM_Library(self::PLUGIN)->get('fieldset_id', 'embedded');
|
1011 |
$this->view->display_options($params);
|
1012 |
}
|
1024 |
), admin_url('admin.php')));
|
1025 |
}
|
1026 |
|
1027 |
+
public function apply_display_options($id = 0) {
|
1028 |
$message = $this->save_dis_options();
|
1029 |
$page = WDW_FM_Library(self::PLUGIN)->get('page');
|
1030 |
$fieldset_id = WDW_FM_Library(self::PLUGIN)->get('fieldset_id', 'embedded');
|
1032 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
1033 |
'page' => $page,
|
1034 |
'task' => 'display_options',
|
1035 |
+
'current_id' => $id,
|
1036 |
'fieldset_id'=> $fieldset_id,
|
1037 |
'message' => $message,
|
1038 |
), admin_url('admin.php')));
|
1052 |
|
1053 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
1054 |
'page' => $this->page,
|
1055 |
+
'task' => 'edit',
|
1056 |
'current_id' => $id,
|
1057 |
'fieldset_id' => $fieldset_id,
|
1058 |
'message' => $message,
|
1071 |
}
|
1072 |
|
1073 |
public function save_dis_options() {
|
1074 |
+
$theme = (int) WDW_FM_Library(self::PLUGIN)->get('theme', $this->model->get_default_theme_id());
|
1075 |
+
|
1076 |
$option_data = array(
|
1077 |
'form_id' => (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0),
|
1078 |
'scrollbox_loading_delay' => $this->set_delay_freq_positive_val( WDW_FM_Library(self::PLUGIN)->get('scrollbox_loading_delay', 0) ),
|
1104 |
if ( $save !== FALSE ) {
|
1105 |
$this->model->update_data('formmaker_backup', array(
|
1106 |
'type' => $option_data['type'],
|
1107 |
+
'theme' => $theme,
|
1108 |
), array( 'id' => $option_data['form_id'] ));
|
1109 |
$this->model->update_data('formmaker', array(
|
1110 |
'type' => $option_data['type'],
|
1111 |
+
'theme' => $theme,
|
1112 |
), array( 'id' => $option_data['form_id'] ));
|
1113 |
$this->model->create_js($option_data['form_id']);
|
1114 |
|
1141 |
}
|
1142 |
|
1143 |
public function apply() {
|
1144 |
+
$tabs_loaded = json_decode(WDW_FM_Library(self::PLUGIN)->get('fm_tabs_loaded', '[]', false));
|
1145 |
$message = $this->save_db();
|
1146 |
$current_id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0);
|
1147 |
if ( !$current_id ) {
|
1148 |
$current_id = (int) $this->model->get_max_row('formmaker', 'id');
|
1149 |
}
|
1150 |
+
if (array_search('form_options_tab', $tabs_loaded) !== false) {
|
1151 |
+
$this->save_db_form_options($current_id);
|
1152 |
+
}
|
1153 |
+
if (array_search('form_display_tab', $tabs_loaded) !== false) {
|
1154 |
+
$this->save_dis_options();
|
1155 |
+
}
|
1156 |
+
if (array_search('form_layout_tab', $tabs_loaded) !== false) {
|
1157 |
+
$this->save_db_layout($current_id);
|
1158 |
+
}
|
1159 |
+
if (array_search('form_email_options_tab', $tabs_loaded) !== false) {
|
1160 |
+
$this->save_db_email_options($current_id);
|
1161 |
+
}
|
1162 |
+
$active_tab = WDW_FM_Library(self::PLUGIN)->get('fm_tab_active', 0);
|
1163 |
+
$fieldset_id = WDW_FM_Library(self::PLUGIN)->get('fieldset_id', 'general');
|
1164 |
$page = WDW_FM_Library(self::PLUGIN)->get('page');
|
1165 |
WDW_FM_Library(self::PLUGIN)->fm_redirect(add_query_arg(array(
|
1166 |
+
'page' => $page,
|
1167 |
+
'task' => 'edit',
|
1168 |
+
'current_id' => $current_id,
|
1169 |
+
'message' => $message,
|
1170 |
+
'tab' => $active_tab,
|
1171 |
+
'fieldset_id' => $fieldset_id,
|
1172 |
+
), admin_url('admin.php')));
|
1173 |
}
|
1174 |
|
1175 |
public function save_db() {
|
1189 |
}";
|
1190 |
$id = (int) WDW_FM_Library(self::PLUGIN)->get('current_id', 0);
|
1191 |
$title = WDW_FM_Library(self::PLUGIN)->get('title', '');
|
|
|
|
|
1192 |
$form_front = WDW_FM_Library(self::PLUGIN)->get('form_front', '', false);
|
1193 |
$sortable = WDW_FM_Library(self::PLUGIN)->get('sortable', 0);
|
1194 |
$counter = WDW_FM_Library(self::PLUGIN)->get('counter', 0);
|
1206 |
$header_image_url = WDW_FM_Library(self::PLUGIN)->get('header_image_url', '');
|
1207 |
$header_image_animation = WDW_FM_Library(self::PLUGIN)->get('header_image_animation', '');
|
1208 |
$header_hide_image = WDW_FM_Library(self::PLUGIN)->get('header_hide_image', 0);
|
1209 |
+
$header_hide = WDW_FM_Library(self::PLUGIN)->get('header_hide', 1);
|
1210 |
$type = WDW_FM_Library(self::PLUGIN)->get('form_type', 'embedded');
|
1211 |
$scrollbox_minimize_text = $header_title ? $header_title : 'The form is minimized.';
|
1212 |
if ( $id != 0 ) {
|
1213 |
$save = $this->model->update_data('formmaker', array(
|
1214 |
'title' => $title,
|
|
|
1215 |
'form_front' => $form_front,
|
1216 |
'sortable' => $sortable,
|
1217 |
'counter' => $counter,
|
1229 |
'header_image_url' => $header_image_url,
|
1230 |
'header_image_animation' => $header_image_animation,
|
1231 |
'header_hide_image' => $header_hide_image,
|
1232 |
+
'header_hide' => $header_hide,
|
1233 |
), array( 'id' => $id ));
|
1234 |
}
|
1235 |
else {
|
1236 |
+
$theme = (int) WDW_FM_Library(self::PLUGIN)->get('theme', $this->model->get_default_theme_id());
|
1237 |
$this->model->insert_data_to_db('formmaker', array(
|
1238 |
'title' => $title,
|
1239 |
'type' => $type,
|
1296 |
'header_image_url' => $header_image_url,
|
1297 |
'header_image_animation' => $header_image_animation,
|
1298 |
'header_hide_image' => $header_hide_image,
|
1299 |
+
'header_hide' => $header_hide,
|
1300 |
'privacy' => '',
|
1301 |
));
|
1302 |
$id = (int) $this->model->get_max_row('formmaker', 'id');
|
1336 |
}
|
1337 |
$backup_id = (int) WDW_FM_Library(self::PLUGIN)->get('backup_id', '');
|
1338 |
if ( $backup_id ) {
|
1339 |
+
// Set cur 0 before add new current
|
1340 |
+
$this->model->update_data('formmaker_backup', array( 'cur' => 0 ), array( 'id' => $id ));
|
|
|
|
|
|
|
|
|
1341 |
// Get form_fields, form_front
|
1342 |
$row1 = $this->model->select_rows("get_row", array(
|
1343 |
"selection" => "form_fields, form_front",
|
1348 |
$save = $this->model->update_data('formmaker_backup', array(
|
1349 |
'cur' => 1,
|
1350 |
'title' => $title,
|
|
|
1351 |
'form_front' => $form_front,
|
1352 |
'sortable' => $sortable,
|
1353 |
'counter' => $counter,
|
1365 |
'header_image_url' => $header_image_url,
|
1366 |
'header_image_animation' => $header_image_animation,
|
1367 |
'header_hide_image' => $header_hide_image,
|
1368 |
+
'header_hide' => $header_hide,
|
1369 |
), array( 'backup_id' => $backup_id ));
|
1370 |
if ( $save !== FALSE ) {
|
1371 |
$this->model->create_js($id);
|
1378 |
}
|
1379 |
}
|
1380 |
$this->model->update_data('formmaker_backup', array( 'cur' => 0 ), array( 'id' => $id ));
|
1381 |
+
$fm_cur_date = current_time('timestamp');
|
1382 |
$save = $this->model->insert_data_to_db('formmaker_backup', array(
|
1383 |
'cur' => 1,
|
1384 |
'id' => $id,
|
1385 |
'title' => $title,
|
1386 |
'mail' => '',
|
1387 |
'form_front' => $form_front,
|
|
|
1388 |
'counter' => $counter,
|
1389 |
'label_order' => $label_order,
|
1390 |
'pagination' => $pagination,
|
1440 |
'header_image_url' => $header_image_url,
|
1441 |
'header_image_animation' => $header_image_animation,
|
1442 |
'header_hide_image' => $header_hide_image,
|
1443 |
+
'header_hide' => $header_hide,
|
1444 |
'privacy' => '',
|
1445 |
+
'date' => $fm_cur_date,
|
1446 |
));
|
1447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1448 |
if ( $save !== FALSE ) {
|
1449 |
$this->model->create_js($id);
|
1450 |
return 1;
|
admin/controllers/Uninstall_fm.php
CHANGED
@@ -51,6 +51,18 @@ class FMControllerUninstall_fmc extends CFMAdminController {
|
|
51 |
$params['addons'] = $this->addons;
|
52 |
$params['page_title'] = sprintf(__('Uninstall %s', WDFMInstance(self::PLUGIN)->prefix), WDFMInstance(self::PLUGIN)->nicename);
|
53 |
$params['tables'] = $this->get_tables();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
$this->view->display($params);
|
55 |
}
|
56 |
|
51 |
$params['addons'] = $this->addons;
|
52 |
$params['page_title'] = sprintf(__('Uninstall %s', WDFMInstance(self::PLUGIN)->prefix), WDFMInstance(self::PLUGIN)->nicename);
|
53 |
$params['tables'] = $this->get_tables();
|
54 |
+
global $wpdb;
|
55 |
+
foreach ( $params['addons'] as $addon => $addon_name ) {
|
56 |
+
if ( is_array($addon_name) ) {
|
57 |
+
// If there are more than one db tables in an add-on.
|
58 |
+
foreach ( $addon_name as $ad_name ) {
|
59 |
+
array_push($params['tables'], $wpdb->prefix . 'formmaker_' . $ad_name);
|
60 |
+
}
|
61 |
+
}
|
62 |
+
else {
|
63 |
+
array_push($params['tables'], $wpdb->prefix . 'formmaker_' . $addon_name);
|
64 |
+
}
|
65 |
+
}
|
66 |
$this->view->display($params);
|
67 |
}
|
68 |
|
admin/controllers/elementorWidget.php
CHANGED
@@ -30,7 +30,7 @@ class FMCElementor extends \Elementor\Widget_Base {
|
|
30 |
* @return string Widget icon.
|
31 |
*/
|
32 |
public function get_icon() {
|
33 |
-
return 'fa
|
34 |
}
|
35 |
|
36 |
/**
|
@@ -39,7 +39,7 @@ class FMCElementor extends \Elementor\Widget_Base {
|
|
39 |
* @return array Widget categories.
|
40 |
*/
|
41 |
public function get_categories() {
|
42 |
-
return [ 'tenweb-widgets' ];
|
43 |
}
|
44 |
|
45 |
/**
|
@@ -72,6 +72,13 @@ class FMCElementor extends \Elementor\Widget_Base {
|
|
72 |
* Render widget output on the frontend.
|
73 |
*/
|
74 |
protected function render() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
$settings = $this->get_settings_for_display();
|
76 |
|
77 |
echo WDFMInstance(self::PLUGIN)->fm_shortcode(array('id' => $settings['form_id']));
|
30 |
* @return string Widget icon.
|
31 |
*/
|
32 |
public function get_icon() {
|
33 |
+
return 'fa fm-ico-form-maker';
|
34 |
}
|
35 |
|
36 |
/**
|
39 |
* @return array Widget categories.
|
40 |
*/
|
41 |
public function get_categories() {
|
42 |
+
return [ 'tenweb-plugins-widgets' ];
|
43 |
}
|
44 |
|
45 |
/**
|
72 |
* Render widget output on the frontend.
|
73 |
*/
|
74 |
protected function render() {
|
75 |
+
$font_class = new \Elementor\Scheme_Typography();
|
76 |
+
$font = $font_class->get_scheme_value();
|
77 |
+
$color_class = new \Elementor\Scheme_Color();
|
78 |
+
$color = $color_class->get_scheme();
|
79 |
+
if ( isset($font[3]) && isset($font[3]["font_family"]) && isset($font[3]["font_weight"]) && isset($color[3]) && isset($color[3]["value"]) ) {
|
80 |
+
echo '<style>.elementor-widget-container .fm-form-container, .elementor-widget-container .fm-form-container label, .elementor-widget-container .fm-form-container input, .elementor-widget-container .fm-form-container textarea, .elementor-widget-container .fm-form-container select, .elementor-widget-container .fm-form-container button, .elementor-widget-container .fm-form-container .fm-message { font-family: ' . $font[3]["font_family"] . '; font-weight: ' . $font[3]["font_weight"] . '; color: ' . $color[3]["value"] . '}</style>';
|
81 |
+
}
|
82 |
$settings = $this->get_settings_for_display();
|
83 |
|
84 |
echo WDFMInstance(self::PLUGIN)->fm_shortcode(array('id' => $settings['form_id']));
|
admin/models/Manage_fm.php
CHANGED
@@ -72,7 +72,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
72 |
$row->title = '';
|
73 |
$row->mail = '';
|
74 |
$row->form = '';
|
75 |
-
$row->form_front = '<div class="wdform-page-and-images
|
76 |
$row->theme = 0;
|
77 |
$row->javascript = '';
|
78 |
$row->submit_text = '';
|
@@ -119,6 +119,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
119 |
$row->header_image_url = '';
|
120 |
$row->header_image_animation = '';
|
121 |
$row->header_hide_image = '';
|
|
|
122 |
$row->gdpr_checkbox = 0;
|
123 |
$row->gdpr_checkbox_text = __('I consent collecting this data and processing it according to {{privacy_policy}} of this website.', WDFMInstance(self::PLUGIN)->prefix);
|
124 |
$row->save_ip = 1;
|
@@ -162,7 +163,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
162 |
$row->title = '';
|
163 |
$row->mail = '';
|
164 |
$row->form = '';
|
165 |
-
$row->form_front = '<div class="wdform-page-and-images
|
166 |
$row->theme = $wpdb->get_var("SELECT id FROM " . $wpdb->prefix . "formmaker_themes WHERE `default`='1'");
|
167 |
$row->javascript = '';
|
168 |
$row->submit_text = '';
|
@@ -209,6 +210,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
209 |
$row->header_image_url = '';
|
210 |
$row->header_image_animation = 'none';
|
211 |
$row->header_hide_image = 0;
|
|
|
212 |
$row->condition = '';
|
213 |
$row->mail_cc = '';
|
214 |
$row->mail_cc_user = '';
|
@@ -280,13 +282,13 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
280 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
281 |
<span class="wdform_arrows_basic wdform_arrows_container">
|
282 |
<span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
283 |
-
<span title="Edit the field" class="page_toolbar
|
284 |
</span>
|
285 |
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar">
|
286 |
-
<span title="Duplicate the field" class="page_toolbar
|
287 |
</span>
|
288 |
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
289 |
-
<span title="Remove the field" class="page_toolbar
|
290 |
</span>
|
291 |
</span>
|
292 |
</div>';
|
@@ -300,11 +302,11 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
300 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
301 |
<div class="wdform_arrows_basic wdform_arrows_container">
|
302 |
<span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
303 |
-
<span title="Edit the field" class="page_toolbar
|
304 |
</span>
|
305 |
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar"></span>
|
306 |
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
307 |
-
<span title="Remove the field" class="page_toolbar
|
308 |
</span>
|
309 |
</div>
|
310 |
<div class="wdform_arrows_advanced wdform_arrows_container" style="display: none;">
|
@@ -333,13 +335,13 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
333 |
default : {
|
334 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
335 |
<div class="wdform_arrows_basic wdform_arrows_container"> <span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
336 |
-
<span title="Edit the field" class="page_toolbar
|
337 |
</span>
|
338 |
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar">
|
339 |
-
<span title="Duplicate the field" class="page_toolbar
|
340 |
</span>
|
341 |
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
342 |
-
<span title="Remove the field" class="page_toolbar
|
343 |
</span>
|
344 |
</div>
|
345 |
<div class="wdform_arrows_advanced wdform_arrows_container" style="display: none;">
|
@@ -483,6 +485,25 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
483 |
'w_readonly',
|
484 |
);
|
485 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
foreach ( $params_names as $params_name ) {
|
487 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
488 |
$param[$params_name] = $temp[0];
|
@@ -504,8 +525,9 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
504 |
$param['w_regExp_alert'] = (isset($param['w_regExp_alert']) ? $param['w_regExp_alert'] : "Incorrect Value");
|
505 |
$param['w_readonly'] = (isset($param['w_readonly']) ? $param['w_readonly'] : "no");
|
506 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
|
|
507 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
508 |
-
$rep = '<div id="wdform_field' . $id . '" type="type_text" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" style="display: ' . $param['w_field_label_pos'] . '"><input type="hidden" value="type_text" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp" /><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp" /><input type="hidden" value="' . $param['w_readonly'] . '" name="' . $id . '_readonlyform_id_temp" id="' . $id . '_readonlyform_id_temp"/><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_regExp_status'] . '" name="' . $id . '_regExpStatusform_id_temp" id="' . $id . '_regExpStatusform_id_temp"><input type="hidden" value="' . $param['w_regExp_value'] . '" name="' . $id . '_regExp_valueform_id_temp" id="' . $id . '_regExp_valueform_id_temp"><input type="hidden" value="' . $param['w_regExp_common'] . '" name="' . $id . '_regExp_commonform_id_temp" id="' . $id . '_regExp_commonform_id_temp"><input type="hidden" value="' . $param['w_regExp_alert'] . '" name="' . $id . '_regExp_alertform_id_temp" id="' . $id . '_regExp_alertform_id_temp"><input type="hidden" value="' . $param['w_regExp_arg'] . '" name="' . $id . '_regArgumentform_id_temp" id="' . $id . '_regArgumentform_id_temp"><input type="hidden" value="' . $param['w_unique'] . '" name="' . $id . '_uniqueform_id_temp" id="' . $id . '_uniqueform_id_temp" /><input type="text" id="' . $id . '_elementform_id_temp" name="' . $id . '_elementform_id_temp" value="' . htmlentities($param['w_first_val'], ENT_COMPAT) . '" title="' . htmlentities($param['w_title'], ENT_COMPAT) . '" placeholder="' . htmlentities($param['w_title'], ENT_COMPAT) . '" style="width: ' . $param['w_size'] . 'px;" ' . $param['attributes'] . ' disabled /></div></div>';
|
509 |
break;
|
510 |
}
|
511 |
case 'type_number': {
|
@@ -1134,7 +1156,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1134 |
else {
|
1135 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $l + $i];
|
1136 |
}
|
1137 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1138 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i] ) {
|
1139 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i]);
|
1140 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -1167,7 +1189,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1167 |
else {
|
1168 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1169 |
}
|
1170 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1171 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1172 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1173 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -1195,7 +1217,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1195 |
else {
|
1196 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1197 |
}
|
1198 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1199 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1200 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1201 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -1226,7 +1248,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1226 |
else {
|
1227 |
$choise_value = $param['w_choices'][$l];
|
1228 |
}
|
1229 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1230 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$l] ) {
|
1231 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$l]);
|
1232 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -1355,7 +1377,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1355 |
else {
|
1356 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $l + $i];
|
1357 |
}
|
1358 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1359 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i] ) {
|
1360 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i]);
|
1361 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -1388,7 +1410,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1388 |
else {
|
1389 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1390 |
}
|
1391 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1392 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1393 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1394 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -1415,7 +1437,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1415 |
else {
|
1416 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1417 |
}
|
1418 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1419 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1420 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1421 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -1446,7 +1468,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
1446 |
else {
|
1447 |
$choise_value = $param['w_choices'][$l];
|
1448 |
}
|
1449 |
-
$choise_value = htmlentities($choise_value, ENT_COMPAT);
|
1450 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$l] ) {
|
1451 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$l]);
|
1452 |
$where = 'where="' . $w_choices_params[0] . '"';
|
@@ -3593,24 +3615,46 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
3593 |
}
|
3594 |
|
3595 |
/**
|
3596 |
-
* Get
|
3597 |
*
|
3598 |
-
* @param int $backup_id
|
3599 |
* @param int $id
|
3600 |
-
* @param string $type (undo,redo)
|
3601 |
-
* type 0 = undo, 1 = redo
|
3602 |
*
|
3603 |
-
* @return
|
3604 |
*/
|
3605 |
-
public function
|
3606 |
global $wpdb;
|
3607 |
-
|
3608 |
-
|
3609 |
-
|
3610 |
-
|
3611 |
-
|
|
|
3612 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3613 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3614 |
return $wpdb->get_var($query);
|
3615 |
}
|
3616 |
|
@@ -3809,6 +3853,9 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
3809 |
elseif ( $get_type == "get_var" ) {
|
3810 |
return $wpdb->get_var($query);
|
3811 |
}
|
|
|
|
|
|
|
3812 |
|
3813 |
return $wpdb->get_row($query);
|
3814 |
}
|
@@ -3835,8 +3882,7 @@ class FMModelManage_fmc extends CFMAdminModel {
|
|
3835 |
*/
|
3836 |
public function insert_formmaker_backup( $backup_id = 0, $id = 0 ) {
|
3837 |
global $wpdb;
|
3838 |
-
$query = "INSERT INTO " . $wpdb->prefix . "formmaker_backup (backup_id, cur, id, title, `type`, mail, form_front, theme, javascript, submit_text, url, submit_text_type, script_mail, script_mail_user, counter, published, label_order, label_order_current, article_id, pagination, show_title, show_numbers, public_key, private_key, recaptcha_theme, paypal_mode, checkout_mode, paypal_email, payment_currency, tax, form_fields, savedb, sendemail, requiredmark, from_mail, from_name, reply_to, send_to, autogen_layout, custom_front, mail_from_user, mail_from_name_user, reply_to_user, `condition`, mail_cc, mail_cc_user, mail_bcc, mail_bcc_user, mail_subject, mail_subject_user, mail_mode, mail_mode_user, mail_attachment, mail_attachment_user, user_id_wd, sortable, frontend_submit_fields, frontend_submit_stat_fields, mail_emptyfields, mail_verify, mail_verify_expiretime, mail_verification_post_id, save_uploads, header_title, header_description, header_image_url, header_image_animation, header_hide_image, privacy) SELECT " . $backup_id . ", 1, formmakerbkup.id, formmakerbkup.title, formmakerbkup.type, formmakerbkup.mail, formmakerbkup.form_front, formmakerbkup.theme, formmakerbkup.javascript, formmakerbkup.submit_text, formmakerbkup.url, formmakerbkup.submit_text_type, formmakerbkup.script_mail, formmakerbkup.script_mail_user, formmakerbkup.counter, formmakerbkup.published, formmakerbkup.label_order, formmakerbkup.label_order_current, formmakerbkup.article_id, formmakerbkup.pagination, formmakerbkup.show_title, formmakerbkup.show_numbers, formmakerbkup.public_key, formmakerbkup.private_key, formmakerbkup.recaptcha_theme, formmakerbkup.paypal_mode, formmakerbkup.checkout_mode, formmakerbkup.paypal_email, formmakerbkup.payment_currency, formmakerbkup.tax, formmakerbkup.form_fields, formmakerbkup.savedb, formmakerbkup.sendemail, formmakerbkup.requiredmark, formmakerbkup.from_mail, formmakerbkup.from_name, formmakerbkup.reply_to, formmakerbkup.send_to, formmakerbkup.autogen_layout, formmakerbkup.custom_front, formmakerbkup.mail_from_user, formmakerbkup.mail_from_name_user, formmakerbkup.reply_to_user, formmakerbkup.condition, formmakerbkup.mail_cc, formmakerbkup.mail_cc_user, formmakerbkup.mail_bcc, formmakerbkup.mail_bcc_user, formmakerbkup.mail_subject, formmakerbkup.mail_subject_user, formmakerbkup.mail_mode, formmakerbkup.mail_mode_user, formmakerbkup.mail_attachment, formmakerbkup.mail_attachment_user, formmakerbkup.user_id_wd, formmakerbkup.sortable, formmakerbkup.frontend_submit_fields, formmakerbkup.frontend_submit_stat_fields, formmakerbkup.mail_emptyfields, formmakerbkup.mail_verify, formmakerbkup.mail_verify_expiretime, formmakerbkup.mail_verification_post_id, formmakerbkup.save_uploads, formmakerbkup.header_title, formmakerbkup.header_description, formmakerbkup.header_image_url, formmakerbkup.header_image_animation, formmakerbkup.header_hide_image, formmakerbkup.privacy FROM " . $wpdb->prefix . "formmaker as formmakerbkup WHERE id=" . $id;
|
3839 |
-
|
3840 |
return $wpdb->query($query);
|
3841 |
}
|
3842 |
|
72 |
$row->title = '';
|
73 |
$row->mail = '';
|
74 |
$row->form = '';
|
75 |
+
$row->form_front = '<div class="wdform-page-and-images fm-form-builder"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="true" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"><div wdid="1" class="wdform_row ui-sortable-handle">%1 - type_submit_reset_1%</div></div></div><div valign="top" class="wdform_footer wd-width-100"><div class="wd-width-100"><div class="wd-width-100 wd-table" style="padding-top:10px;"><div class="wd-table-group"><div id="form_id_temppage_nav1" class="wd-table-row"></div></div></div></div></div></div></div>';
|
76 |
$row->theme = 0;
|
77 |
$row->javascript = '';
|
78 |
$row->submit_text = '';
|
119 |
$row->header_image_url = '';
|
120 |
$row->header_image_animation = '';
|
121 |
$row->header_hide_image = '';
|
122 |
+
$row->header_hide = 1;
|
123 |
$row->gdpr_checkbox = 0;
|
124 |
$row->gdpr_checkbox_text = __('I consent collecting this data and processing it according to {{privacy_policy}} of this website.', WDFMInstance(self::PLUGIN)->prefix);
|
125 |
$row->save_ip = 1;
|
163 |
$row->title = '';
|
164 |
$row->mail = '';
|
165 |
$row->form = '';
|
166 |
+
$row->form_front = '<div class="wdform-page-and-images fm-form-builder"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="true" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"><div wdid="1" class="wdform_row ui-sortable-handle">%1 - type_submit_reset_1%</div></div></div><div valign="top" class="wdform_footer wd-width-100"><div class="wd-width-100"><div class="wd-width-100 wd-table" style="padding-top:10px;"><div class="wd-table-group"><div id="form_id_temppage_nav1" class="wd-table-row"></div></div></div></div></div></div></div>';
|
167 |
$row->theme = $wpdb->get_var("SELECT id FROM " . $wpdb->prefix . "formmaker_themes WHERE `default`='1'");
|
168 |
$row->javascript = '';
|
169 |
$row->submit_text = '';
|
210 |
$row->header_image_url = '';
|
211 |
$row->header_image_animation = 'none';
|
212 |
$row->header_hide_image = 0;
|
213 |
+
$row->header_hide = 1;
|
214 |
$row->condition = '';
|
215 |
$row->mail_cc = '';
|
216 |
$row->mail_cc_user = '';
|
282 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
283 |
<span class="wdform_arrows_basic wdform_arrows_container">
|
284 |
<span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
285 |
+
<span title="Edit the field" class="page_toolbar fm-ico-edit" ontouchend="edit("' . $id . '", event)" onclick="edit("' . $id . '", event)"></span>
|
286 |
</span>
|
287 |
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar">
|
288 |
+
<span title="Duplicate the field" class="page_toolbar fm-ico-duplicate" ontouchend="duplicate("' . $id . '", event)" onclick="duplicate("' . $id . '", event)"></span>
|
289 |
</span>
|
290 |
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
291 |
+
<span title="Remove the field" class="page_toolbar fm-ico-delete" onclick="remove_section_break("' . $id . '")"></span>
|
292 |
</span>
|
293 |
</span>
|
294 |
</div>';
|
302 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
303 |
<div class="wdform_arrows_basic wdform_arrows_container">
|
304 |
<span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
305 |
+
<span title="Edit the field" class="page_toolbar fm-ico-edit" ontouchend="edit("' . $id . '", event)" onclick="edit("' . $id . '", event)"></span>
|
306 |
</span>
|
307 |
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar"></span>
|
308 |
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
309 |
+
<span title="Remove the field" class="page_toolbar fm-ico-delete" ontouchend="remove_field("' . $id . '", event)" onclick="remove_field("' . $id . '", event)"></span>
|
310 |
</span>
|
311 |
</div>
|
312 |
<div class="wdform_arrows_advanced wdform_arrows_container" style="display: none;">
|
335 |
default : {
|
336 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
337 |
<div class="wdform_arrows_basic wdform_arrows_container"> <span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
338 |
+
<span title="Edit the field" class="page_toolbar fm-ico-edit" ontouchend="edit("' . $id . '", event)" onclick="edit("' . $id . '", event)"></span>
|
339 |
</span>
|
340 |
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar">
|
341 |
+
<span title="Duplicate the field" class="page_toolbar fm-ico-duplicate" ontouchend="duplicate("' . $id . '", event)" onclick="duplicate("' . $id . '", event)"></span>
|
342 |
</span>
|
343 |
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
344 |
+
<span title="Remove the field" class="page_toolbar fm-ico-delete" ontouchend="remove_field("' . $id . '", event)" onclick="remove_field("' . $id . '", event)"></span>
|
345 |
</span>
|
346 |
</div>
|
347 |
<div class="wdform_arrows_advanced wdform_arrows_container" style="display: none;">
|
485 |
'w_readonly',
|
486 |
);
|
487 |
}
|
488 |
+
if ( strpos($temp, 'w_class') > -1 ) {
|
489 |
+
$params_names = array(
|
490 |
+
'w_field_label_size',
|
491 |
+
'w_field_label_pos',
|
492 |
+
'w_hide_label',
|
493 |
+
'w_size',
|
494 |
+
'w_first_val',
|
495 |
+
'w_title',
|
496 |
+
'w_required',
|
497 |
+
'w_regExp_status',
|
498 |
+
'w_regExp_value',
|
499 |
+
'w_regExp_common',
|
500 |
+
'w_regExp_arg',
|
501 |
+
'w_regExp_alert',
|
502 |
+
'w_unique',
|
503 |
+
'w_readonly',
|
504 |
+
'w_class',
|
505 |
+
);
|
506 |
+
}
|
507 |
foreach ( $params_names as $params_name ) {
|
508 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
509 |
$param[$params_name] = $temp[0];
|
525 |
$param['w_regExp_alert'] = (isset($param['w_regExp_alert']) ? $param['w_regExp_alert'] : "Incorrect Value");
|
526 |
$param['w_readonly'] = (isset($param['w_readonly']) ? $param['w_readonly'] : "no");
|
527 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
528 |
+
$param['w_class'] = (isset($param['w_class']) ? $param['w_class'] : "");
|
529 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
530 |
+
$rep = '<div id="wdform_field' . $id . '" type="type_text" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . '"><input type="hidden" value="type_text" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp" /><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp" /><input type="hidden" value="' . $param['w_readonly'] . '" name="' . $id . '_readonlyform_id_temp" id="' . $id . '_readonlyform_id_temp"/><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_regExp_status'] . '" name="' . $id . '_regExpStatusform_id_temp" id="' . $id . '_regExpStatusform_id_temp"><input type="hidden" value="' . $param['w_regExp_value'] . '" name="' . $id . '_regExp_valueform_id_temp" id="' . $id . '_regExp_valueform_id_temp"><input type="hidden" value="' . $param['w_regExp_common'] . '" name="' . $id . '_regExp_commonform_id_temp" id="' . $id . '_regExp_commonform_id_temp"><input type="hidden" value="' . $param['w_regExp_alert'] . '" name="' . $id . '_regExp_alertform_id_temp" id="' . $id . '_regExp_alertform_id_temp"><input type="hidden" value="' . $param['w_regExp_arg'] . '" name="' . $id . '_regArgumentform_id_temp" id="' . $id . '_regArgumentform_id_temp"><input type="hidden" value="' . $param['w_unique'] . '" name="' . $id . '_uniqueform_id_temp" id="' . $id . '_uniqueform_id_temp" /><input type="text" id="' . $id . '_elementform_id_temp" name="' . $id . '_elementform_id_temp" value="' . htmlentities($param['w_first_val'], ENT_COMPAT) . '" title="' . htmlentities($param['w_title'], ENT_COMPAT) . '" placeholder="' . htmlentities($param['w_title'], ENT_COMPAT) . '" style="width: ' . $param['w_size'] . 'px;" ' . $param['attributes'] . ' disabled /></div></div>';
|
531 |
break;
|
532 |
}
|
533 |
case 'type_number': {
|
1156 |
else {
|
1157 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $l + $i];
|
1158 |
}
|
1159 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1160 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i] ) {
|
1161 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i]);
|
1162 |
$where = 'where="' . $w_choices_params[0] . '"';
|
1189 |
else {
|
1190 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1191 |
}
|
1192 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1193 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1194 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1195 |
$where = 'where="' . $w_choices_params[0] . '"';
|
1217 |
else {
|
1218 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1219 |
}
|
1220 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1221 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1222 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1223 |
$where = 'where="' . $w_choices_params[0] . '"';
|
1248 |
else {
|
1249 |
$choise_value = $param['w_choices'][$l];
|
1250 |
}
|
1251 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1252 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$l] ) {
|
1253 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$l]);
|
1254 |
$where = 'where="' . $w_choices_params[0] . '"';
|
1377 |
else {
|
1378 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $l + $i];
|
1379 |
}
|
1380 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1381 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i] ) {
|
1382 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $l + $i]);
|
1383 |
$where = 'where="' . $w_choices_params[0] . '"';
|
1410 |
else {
|
1411 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1412 |
}
|
1413 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1414 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1415 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1416 |
$where = 'where="' . $w_choices_params[0] . '"';
|
1437 |
else {
|
1438 |
$choise_value = $param['w_choices'][(int) $param['w_rowcol'] * $i + $l];
|
1439 |
}
|
1440 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1441 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l] ) {
|
1442 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][(int) $param['w_rowcol'] * $i + $l]);
|
1443 |
$where = 'where="' . $w_choices_params[0] . '"';
|
1468 |
else {
|
1469 |
$choise_value = $param['w_choices'][$l];
|
1470 |
}
|
1471 |
+
$choise_value = htmlentities($choise_value, ENT_COMPAT, "UTF-8");
|
1472 |
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$l] ) {
|
1473 |
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$l]);
|
1474 |
$where = 'where="' . $w_choices_params[0] . '"';
|
3615 |
}
|
3616 |
|
3617 |
/**
|
3618 |
+
* Get all revisions from formmaker_backup.
|
3619 |
*
|
|
|
3620 |
* @param int $id
|
|
|
|
|
3621 |
*
|
3622 |
+
* @return array
|
3623 |
*/
|
3624 |
+
public function get_revisions( $id ) {
|
3625 |
global $wpdb;
|
3626 |
+
$result = array();
|
3627 |
+
$result['total'] = 0;
|
3628 |
+
$query = "SELECT backup_id, cur, date FROM " . $wpdb->prefix . "formmaker_backup WHERE id = $id ORDER BY backup_id DESC";
|
3629 |
+
$result['data'] = $wpdb->get_results($query);
|
3630 |
+
if($result['data']) {
|
3631 |
+
$result['total'] = $wpdb->num_rows;
|
3632 |
}
|
3633 |
+
return $result;
|
3634 |
+
}
|
3635 |
+
|
3636 |
+
/**
|
3637 |
+
* Get current form data from backup.
|
3638 |
+
*
|
3639 |
+
* @return array
|
3640 |
+
*/
|
3641 |
+
public function get_current_revision( $id ) {
|
3642 |
+
global $wpdb;
|
3643 |
+
$query = "SELECT backup_id, cur, date FROM " . $wpdb->prefix . "formmaker_backup WHERE cur = 1 && id =" . $id;
|
3644 |
+
$result = $wpdb->get_row($query);
|
3645 |
+
return $result;
|
3646 |
+
}
|
3647 |
|
3648 |
+
/**
|
3649 |
+
* Get revision date.
|
3650 |
+
*
|
3651 |
+
* @param int $backup_id
|
3652 |
+
*
|
3653 |
+
* @return int
|
3654 |
+
*/
|
3655 |
+
public function get_revision_date( $backup_id = 0 ) {
|
3656 |
+
global $wpdb;
|
3657 |
+
$query = "SELECT date FROM " . $wpdb->prefix . "formmaker_backup WHERE backup_id = $backup_id";
|
3658 |
return $wpdb->get_var($query);
|
3659 |
}
|
3660 |
|
3853 |
elseif ( $get_type == "get_var" ) {
|
3854 |
return $wpdb->get_var($query);
|
3855 |
}
|
3856 |
+
elseif ( $get_type == "get_results" ) {
|
3857 |
+
return $wpdb->get_results($query);
|
3858 |
+
}
|
3859 |
|
3860 |
return $wpdb->get_row($query);
|
3861 |
}
|
3882 |
*/
|
3883 |
public function insert_formmaker_backup( $backup_id = 0, $id = 0 ) {
|
3884 |
global $wpdb;
|
3885 |
+
$query = "INSERT INTO " . $wpdb->prefix . "formmaker_backup (backup_id, cur, id, title, `type`, mail, form_front, theme, javascript, submit_text, url, submit_text_type, script_mail, script_mail_user, counter, published, label_order, label_order_current, article_id, pagination, show_title, show_numbers, public_key, private_key, recaptcha_theme, paypal_mode, checkout_mode, paypal_email, payment_currency, tax, form_fields, savedb, sendemail, requiredmark, from_mail, from_name, reply_to, send_to, autogen_layout, custom_front, mail_from_user, mail_from_name_user, reply_to_user, `condition`, mail_cc, mail_cc_user, mail_bcc, mail_bcc_user, mail_subject, mail_subject_user, mail_mode, mail_mode_user, mail_attachment, mail_attachment_user, user_id_wd, sortable, frontend_submit_fields, frontend_submit_stat_fields, mail_emptyfields, mail_verify, mail_verify_expiretime, mail_verification_post_id, save_uploads, header_title, header_description, header_image_url, header_image_animation, header_hide_image, header_hide, privacy, date) SELECT " . $backup_id . ", 1, formmakerbkup.id, formmakerbkup.title, formmakerbkup.type, formmakerbkup.mail, formmakerbkup.form_front, formmakerbkup.theme, formmakerbkup.javascript, formmakerbkup.submit_text, formmakerbkup.url, formmakerbkup.submit_text_type, formmakerbkup.script_mail, formmakerbkup.script_mail_user, formmakerbkup.counter, formmakerbkup.published, formmakerbkup.label_order, formmakerbkup.label_order_current, formmakerbkup.article_id, formmakerbkup.pagination, formmakerbkup.show_title, formmakerbkup.show_numbers, formmakerbkup.public_key, formmakerbkup.private_key, formmakerbkup.recaptcha_theme, formmakerbkup.paypal_mode, formmakerbkup.checkout_mode, formmakerbkup.paypal_email, formmakerbkup.payment_currency, formmakerbkup.tax, formmakerbkup.form_fields, formmakerbkup.savedb, formmakerbkup.sendemail, formmakerbkup.requiredmark, formmakerbkup.from_mail, formmakerbkup.from_name, formmakerbkup.reply_to, formmakerbkup.send_to, formmakerbkup.autogen_layout, formmakerbkup.custom_front, formmakerbkup.mail_from_user, formmakerbkup.mail_from_name_user, formmakerbkup.reply_to_user, formmakerbkup.condition, formmakerbkup.mail_cc, formmakerbkup.mail_cc_user, formmakerbkup.mail_bcc, formmakerbkup.mail_bcc_user, formmakerbkup.mail_subject, formmakerbkup.mail_subject_user, formmakerbkup.mail_mode, formmakerbkup.mail_mode_user, formmakerbkup.mail_attachment, formmakerbkup.mail_attachment_user, formmakerbkup.user_id_wd, formmakerbkup.sortable, formmakerbkup.frontend_submit_fields, formmakerbkup.frontend_submit_stat_fields, formmakerbkup.mail_emptyfields, formmakerbkup.mail_verify, formmakerbkup.mail_verify_expiretime, formmakerbkup.mail_verification_post_id, formmakerbkup.save_uploads, formmakerbkup.header_title, formmakerbkup.header_description, formmakerbkup.header_image_url, formmakerbkup.header_image_animation, formmakerbkup.header_hide_image, formmakerbkup.header_hide, formmakerbkup.privacy, '".current_time('timestamp')."' FROM " . $wpdb->prefix . "formmaker as formmakerbkup WHERE id=" . $id;
|
|
|
3886 |
return $wpdb->query($query);
|
3887 |
}
|
3888 |
|
admin/models/Options_fm.php
CHANGED
@@ -25,7 +25,7 @@ class FMModelOptions_fmc extends CFMAdminModel {
|
|
25 |
'fm_shortcode' => $fm_shortcode,
|
26 |
'fm_advanced_layout' => $fm_advanced_layout,
|
27 |
'fm_enable_wp_editor' => $fm_enable_wp_editor,
|
28 |
-
'ajax_export_per_page' => !empty($fm_settings['ajax_export_per_page']) ? $fm_settings['
|
29 |
));
|
30 |
return 8;
|
31 |
}
|
25 |
'fm_shortcode' => $fm_shortcode,
|
26 |
'fm_advanced_layout' => $fm_advanced_layout,
|
27 |
'fm_enable_wp_editor' => $fm_enable_wp_editor,
|
28 |
+
'ajax_export_per_page' => !empty($fm_settings['ajax_export_per_page']) ? $fm_settings['ajax_export_per_page'] : 1000
|
29 |
));
|
30 |
return 8;
|
31 |
}
|
admin/models/Themes_fm.php
CHANGED
@@ -56,7 +56,7 @@ class FMModelThemes_fmc extends CFMAdminModel {
|
|
56 |
$row = new stdClass();
|
57 |
$row->id = 0;
|
58 |
$row->title = '';
|
59 |
-
$row->css = '{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#96afab","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"24","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"15","HDPColor":"#607370","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#607370","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#868686","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#e74c3c","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#e74c3c","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#701e16","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#701e16","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#96afab","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#8a8a8a","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5a7784","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#5a7784","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 1px 0 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#ededed","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#737373","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"3px 5px","PSDPMargin":"0 1px 0 0 ","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#ededed","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#607370","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#96afab","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#607370","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#96afab","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#777777","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#e74c3c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#96afab","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#96afab","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#96afab","MBHPColor":"#607370","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#96afab","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"
|
60 |
$row->default = 0;
|
61 |
$row->version = 2;
|
62 |
}
|
56 |
$row = new stdClass();
|
57 |
$row->id = 0;
|
58 |
$row->title = '';
|
59 |
+
$row->css = '{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#96afab","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"24","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"15","HDPColor":"#607370","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#607370","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#868686","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#e74c3c","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#e74c3c","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#701e16","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#701e16","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#96afab","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#8a8a8a","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5a7784","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#5a7784","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 1px 0 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#ededed","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#737373","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"3px 5px","PSDPMargin":"0 1px 0 0 ","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#ededed","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#607370","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#96afab","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#607370","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#96afab","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#777777","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#e74c3c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#96afab","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#96afab","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#96afab","MBHPColor":"#607370","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#96afab","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}';
|
60 |
$row->default = 0;
|
61 |
$row->version = 2;
|
62 |
}
|
admin/views/FMCaptcha.php
CHANGED
@@ -54,7 +54,7 @@ class FMViewFormmakerwdcaptcha_fmc extends FMAdminView_fmc {
|
|
54 |
for ($c = 0; $c < 150; $c++) {
|
55 |
$x = rand(0, $cap_width - 1);
|
56 |
$y = rand(0, 29);
|
57 |
-
|
58 |
imagesetpixel($canvas, $x, $y, $col);
|
59 |
}
|
60 |
|
54 |
for ($c = 0; $c < 150; $c++) {
|
55 |
$x = rand(0, $cap_width - 1);
|
56 |
$y = rand(0, 29);
|
57 |
+
$col = intval( '0x' . rand(0, 9) . '0' . rand(0, 9) . '0' . rand(0, 9) . '0' );
|
58 |
imagesetpixel($canvas, $x, $y, $col);
|
59 |
}
|
60 |
|
admin/views/FMPaypalInfo.php
CHANGED
@@ -178,7 +178,7 @@ class FMViewPaypal_info extends FMAdminView {
|
|
178 |
if ( $row->total ) {
|
179 |
?>
|
180 |
<tr>
|
181 |
-
<td class="key"
|
182 |
<td><b><?php echo $row->total; ?></b></td>
|
183 |
</tr>
|
184 |
<?php
|
178 |
if ( $row->total ) {
|
179 |
?>
|
180 |
<tr>
|
181 |
+
<td class="key"><?php _e('Total', WDFMInstance(self::PLUGIN)->prefix); ?></td>
|
182 |
<td><b><?php echo $row->total; ?></b></td>
|
183 |
</tr>
|
184 |
<?php
|
admin/views/FMProductOption.php
CHANGED
@@ -152,7 +152,7 @@ class FMViewProduct_option extends FMAdminView {
|
|
152 |
li_edit.setAttribute("onclick", "tb_show('', 'admin-ajax.php?action=product_option&field_id=<?php echo $field_id; ?>&property_id=" + i + "&width=530&height=370&TB_iframe=1')");
|
153 |
li_edit.setAttribute("class", "thickbox-preview" + i);
|
154 |
var li_edit_img = document.createElement('span');
|
155 |
-
li_edit_img.setAttribute("class", 'fm-edit-attribute
|
156 |
li_edit.appendChild(li_edit_img);
|
157 |
var li_x = document.createElement('span');
|
158 |
li_x.setAttribute("class", 'fm-remove-attribute dashicons dashicons-dismiss');
|
152 |
li_edit.setAttribute("onclick", "tb_show('', 'admin-ajax.php?action=product_option&field_id=<?php echo $field_id; ?>&property_id=" + i + "&width=530&height=370&TB_iframe=1')");
|
153 |
li_edit.setAttribute("class", "thickbox-preview" + i);
|
154 |
var li_edit_img = document.createElement('span');
|
155 |
+
li_edit_img.setAttribute("class", 'fm-edit-attribute fm-ico-edit');
|
156 |
li_edit.appendChild(li_edit_img);
|
157 |
var li_x = document.createElement('span');
|
158 |
li_x.setAttribute("class", 'fm-remove-attribute dashicons dashicons-dismiss');
|
admin/views/FMSelectDataFromDb.php
CHANGED
@@ -234,7 +234,7 @@ class FMViewSelect_data_from_db_fmc extends FMAdminView_fmc {
|
|
234 |
$cond .= '<option>' . $col->Field . '</option>';
|
235 |
}
|
236 |
$cond .= '</select>';
|
237 |
-
$cond .= '<select id="op_condid" style="width: 110px"><option value="=" selected="selected">=</option><option value="!=">!=</option><option value=">">></option><option value="<"><</option><option value=">=">>=</option><option value="<="><=</option><option value="%..%">Like</option><option value="
|
238 |
$cond .= '<input id="val_condid" type="text" class="fm-where-input" />';
|
239 |
$cond .= '<select id="andor_condid" style="visibility: hidden; width:70px;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WDFMInstance(self::PLUGIN)->plugin_url . '/images/delete.png?ver=' . WDFMInstance(self::PLUGIN)->plugin_version . '" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
240 |
?>
|
@@ -322,209 +322,212 @@ class FMViewSelect_data_from_db_fmc extends FMAdminView_fmc {
|
|
322 |
jQuery('#' + id).remove();
|
323 |
update_vis();
|
324 |
}
|
|
|
325 |
function save_query() {
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
|
|
517 |
previous = '';
|
|
|
518 |
for (i = 1; i < cond_id; i++) {
|
519 |
-
if (jQuery('#' + i).html()) {
|
520 |
if (jQuery('#op_' + i).val() == "%..%") {
|
521 |
-
op_val = ' LIKE
|
522 |
}
|
523 |
-
|
524 |
-
op_val = ' LIKE
|
525 |
}
|
526 |
-
else if (jQuery('#op_' + i).val() == "
|
527 |
-
op_val = ' LIKE
|
528 |
}
|
529 |
else {
|
530 |
op_val = ' ' + jQuery('#op_' + i).val() + ' \'' + jQuery('#val_' + i).val() + '\'';
|
@@ -537,7 +540,7 @@ class FMViewSelect_data_from_db_fmc extends FMAdminView_fmc {
|
|
537 |
query_price = '[' + (jQuery('#order_by').val() ? '`' + jQuery('#order_by').val() + '`' + ' ' + jQuery('#order_by_asc').val() : jQuery('#product_name').val() ? '`' + jQuery('#product_name').val() + '`' + ' ' + jQuery('#order_by_asc').val() : jQuery('#product_price').val() ? '`' + jQuery('#product_price').val() + '`' + ' ' + jQuery('#order_by_asc').val() : '' ) + ']';
|
538 |
jQuery('#where').val(query);
|
539 |
jQuery('#order').val(query_price);
|
540 |
-
|
541 |
</script>
|
542 |
<?php if ( $table_struct ): ?>
|
543 |
<div class="cols">
|
234 |
$cond .= '<option>' . $col->Field . '</option>';
|
235 |
}
|
236 |
$cond .= '</select>';
|
237 |
+
$cond .= '<select id="op_condid" style="width: 110px"><option value="=" selected="selected">=</option><option value="!=">!=</option><option value=">">></option><option value="<"><</option><option value=">=">>=</option><option value="<="><=</option><option value="%..%">Like</option><option value="..%">Starts with</option><option value="%..">Ends with</option></select>';
|
238 |
$cond .= '<input id="val_condid" type="text" class="fm-where-input" />';
|
239 |
$cond .= '<select id="andor_condid" style="visibility: hidden; width:70px;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WDFMInstance(self::PLUGIN)->plugin_url . '/images/delete.png?ver=' . WDFMInstance(self::PLUGIN)->plugin_version . '" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
240 |
?>
|
322 |
jQuery('#' + id).remove();
|
323 |
update_vis();
|
324 |
}
|
325 |
+
|
326 |
function save_query() {
|
327 |
+
str = '';
|
328 |
+
plugin_url = '<?php echo WDFMInstance(self::PLUGIN)->plugin_url; ?>';
|
329 |
+
plugin_version = '<?php echo WDFMInstance(self::PLUGIN)->plugin_version; ?>';
|
330 |
+
product_name = jQuery('#product_name').val();
|
331 |
+
product_price = jQuery('#product_price').val();
|
332 |
+
con_type = jQuery('input[name=con_type]:checked').val();
|
333 |
+
table = jQuery('#tables').val();
|
334 |
+
host = jQuery('#host_rem').val();
|
335 |
+
port = jQuery('#port_rem').val();
|
336 |
+
username = jQuery('#username_rem').val();
|
337 |
+
password = jQuery('#password_rem').val();
|
338 |
+
database = jQuery('#database_rem').val();
|
339 |
+
if (con_type == 'remote') {
|
340 |
+
str += host + "@@@wdfhostwdf@@@" + port + "@@@wdfportwdf@@@" + username + "@@@wdfusernamewdf@@@" + password + "@@@wdfpasswordwdf@@@" + database + "@@@wdfdatabasewdf@@@";
|
341 |
+
}
|
342 |
+
gen_query();
|
343 |
+
var where = jQuery('#where').val();
|
344 |
+
var order = jQuery('#order').val();
|
345 |
+
var value_disabled = jQuery('#value_disabled').val();
|
346 |
+
var num = jQuery("#form_field_id").val();
|
347 |
+
var field_type = jQuery("#field_type").val();
|
348 |
+
if (product_name || product_price) {
|
349 |
+
jQuery('.c1').html('<div class="fm-loading-container"><div class="fm-loading-content"></div></div>');
|
350 |
+
var max_value = 0;
|
351 |
+
window.parent.jQuery('.change_pos').each(function () {
|
352 |
+
var value = jQuery(this)[0].id;
|
353 |
+
max_value = (value > max_value) ? value : max_value;
|
354 |
+
});
|
355 |
+
max_value = parseInt(max_value) + 1;
|
356 |
+
if (field_type == "checkbox" || field_type == "radio") {
|
357 |
+
var attr_table = window.parent.jQuery('#' + 'choices');
|
358 |
+
var attr = jQuery('<div id="' + max_value + '" class="change_pos fm-width-100">' +
|
359 |
+
'<div class="fm-table-col fm-width-40">' +
|
360 |
+
'<input type="text" class="fm-field-choice" id="el_choices' + max_value + '" value="[' + table + ':' + product_name + ']" disabled="disabled" onKeyUp="change_label(\'' + num + '_label_element' + max_value + '\', this.value); change_in_value(\'' + num + '_elementform_id_temp' + max_value + '\', this.value)" />' +
|
361 |
+
'</div>' +
|
362 |
+
'<div class="fm-table-col fm-width-40">' +
|
363 |
+
'<input type="text" class="fm-field-choice" id="el_option_value' + max_value + '" value="' + (value_disabled == 'no' ? '[' + table + ':' + product_name + ']' : '[' + table + ':' + product_price + ']') + '" disabled="disabled" onKeyUp="change_label_value(\'' + num + '_elementform_id_temp' + max_value + '\', this.value)" />' +
|
364 |
+
'</div>' +
|
365 |
+
'<input type="hidden" id="el_option_params' + max_value + '" value="' + where + '[where_order_by]' + order + '[db_info]' + '[' + str + ']" />' +
|
366 |
+
'<div class="fm-table-col fm-width-10">' +
|
367 |
+
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_choices' + max_value + '_remove" onClick="remove_choise(' + max_value + ',' + num + ',\'' + field_type + '\')"></span>' +
|
368 |
+
'</div>' +
|
369 |
+
'<div class="fm-table-col fm-width-10">' +
|
370 |
+
'<span class="fm-move-attribute dashicons dashicons-move el_choices_sortable"></span>' +
|
371 |
+
'</div>' +
|
372 |
+
'</div>');
|
373 |
+
attr_table.append(attr);
|
374 |
+
window.parent["refresh_rowcol"](num, field_type);
|
375 |
+
if (field_type == 'checkbox') {
|
376 |
+
window.parent["refresh_attr"](num, 'type_checkbox');
|
377 |
+
}
|
378 |
+
if (field_type == 'radio') {
|
379 |
+
window.parent["refresh_attr"](num, 'type_radio');
|
380 |
+
}
|
381 |
+
}
|
382 |
+
if (field_type == "select") {
|
383 |
+
var select_ = window.parent.jQuery('#' + num + '_elementform_id_temp');
|
384 |
+
var option = jQuery('<option id="' + num + '_option' + max_value + '" onselect="set_select(\'' + num + '_option' + max_value + '\')" where="' + where + '" order_by="' + order + '" db_info="[' + str + ']"' + (value_disabled == 'no' ? ' value="[' + table + ':' + product_name + ']"' : ' value="[' + table + ':' + product_price + ']"') + '>[' + table + ':' + product_name + ']</option>');
|
385 |
+
select_.append(option);
|
386 |
+
var attr_table = window.parent.jQuery('#' + 'choices');
|
387 |
+
var attr = jQuery('<div id="' + max_value + '" class="change_pos fm-width-100">' +
|
388 |
+
'<div class="fm-table-col fm-width-30">' +
|
389 |
+
'<input type="text" class="fm-field-choice" id="el_option' + max_value + '" value="[' + table + ':' + product_name + ']" onKeyUp="change_label_name(' + max_value + ', \'' + num + '_option' + max_value + '\', this.value, \'select\')" disabled="disabled" />' +
|
390 |
+
'</div>' +
|
391 |
+
'<div class="fm-table-col fm-width-30">' +
|
392 |
+
'<input type="text" class="fm-field-choice el_option_value" id="el_option_value' + max_value + '" value="' + (value_disabled == 'no' ? '[' + table + ':' + product_name + ']' : '[' + table + ':' + product_price + ']') + '" onKeyUp="change_label_value(\'' + num + '_option' + max_value + '\', this.value)" disabled="disabled" />' +
|
393 |
+
'</div>' +
|
394 |
+
'<div class="fm-table-col fm-width-20">' +
|
395 |
+
'<input type="checkbox" title="Empty value" class="el_option_dis" id="el_option' + max_value + '_dis" onClick="dis_option(\'' + num + '_option' + max_value + '\', this.checked, ' + max_value + ')"' + (value_disabled == 'yes' ? 'disabled="disabled"' : '') + ' />' +
|
396 |
+
'</div>' +
|
397 |
+
'<div class="fm-table-col fm-width-10">' +
|
398 |
+
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_option(' + max_value + ', ' + num + ')"></span>' +
|
399 |
+
'</div>' +
|
400 |
+
'<div class="fm-table-col fm-width-10">' +
|
401 |
+
'<span class="fm-move-attribute dashicons dashicons-move el_choices_sortable"></span>' +
|
402 |
+
'</div>' +
|
403 |
+
'<input type="hidden" id="el_option_params' + max_value + '" class="el_option_params" value="' + where + '[where_order_by]' + order + '[db_info]' + '[' + str + ']"></div>');
|
404 |
+
attr_table.append(attr);
|
405 |
+
}
|
406 |
+
if (field_type == 'paypal_select') {
|
407 |
+
var select_ = window.parent.document.getElementById(num + '_elementform_id_temp');
|
408 |
+
var option = document.createElement('option');
|
409 |
+
option.setAttribute("id", num + "_option" + max_value);
|
410 |
+
option.setAttribute("onselect", "set_select('" + num + "_option" + max_value + "')");
|
411 |
+
option.setAttribute("where", where);
|
412 |
+
option.setAttribute("order_by", order);
|
413 |
+
option.setAttribute("db_info", '[' + str + ']');
|
414 |
+
option.innerHTML = '[' + table + ':' + product_name + ']';
|
415 |
+
option.setAttribute("value", '[' + table + ':' + product_price + ']');
|
416 |
+
select_.appendChild(option);
|
417 |
+
|
418 |
+
var attr_table = window.parent.jQuery('#' + 'choices');
|
419 |
+
var attr = jQuery('<div id="' + max_value + '" class="change_pos fm-width-100">' +
|
420 |
+
'<div class="fm-table-col fm-width-40">' +
|
421 |
+
'<input type="text" class="fm-field-choice" id="el_option' + max_value + '" value="[' + table + ':' + product_name + ']" disabled="disabled" onKeyUp="change_label_price(\'' + num + '_option' + max_value + '\', this.value)" />' +
|
422 |
+
'</div>' +
|
423 |
+
'<div class="fm-table-col fm-width-20">' +
|
424 |
+
'<input type="text" class="fm-field-choice" id="el_option_price' + max_value + '" value="[' + table + ':' + product_price + ']" disabled="disabled" onKeyPress="return check_isnum_point(event)" onKeyUp="change_value_price(\'' + num + '_option' + max_value + '\', this.value)" />' +
|
425 |
+
'</div>' +
|
426 |
+
'<div class="fm-table-col fm-width-20">' +
|
427 |
+
'<input type="hidden" id="el_option_params' + max_value + '" value="' + where + '[where_order_by]' + order + '[db_info]' + '[' + str + ']" />' +
|
428 |
+
'<input type="checkbox" title="Empty value" class="el_option_dis" disabled="disabled" id="el_option' + max_value + '_dis" onClick="dis_option_price(' + num + ',' + max_value + ', this.checked)" />' +
|
429 |
+
'</div>' +
|
430 |
+
'<div class="fm-table-col fm-width-10">' +
|
431 |
+
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_option_price(' + max_value + ',' + num + ')"></span>' +
|
432 |
+
'</div>' +
|
433 |
+
'<div class="fm-table-col fm-width-10">' +
|
434 |
+
'<span class="fm-move-attribute dashicons dashicons-move el_choices_sortable"></span>' +
|
435 |
+
'</div>' +
|
436 |
+
'</div>');
|
437 |
+
attr_table.append(attr);
|
438 |
+
}
|
439 |
+
if (field_type == 'paypal_radio' || field_type == 'paypal_checkbox' || field_type == 'paypal_shipping') {
|
440 |
+
if (field_type == 'paypal_shipping') {
|
441 |
+
field_type = 'paypal_radio';
|
442 |
+
}
|
443 |
+
var c_table = window.parent.document.getElementById(num + '_table_little');
|
444 |
+
var tr = document.createElement('div');
|
445 |
+
tr.setAttribute("id", num + "_element_tr" + max_value);
|
446 |
+
tr.style.display = "table-row";
|
447 |
+
var td = document.createElement('div');
|
448 |
+
td.setAttribute("valign", "top");
|
449 |
+
td.setAttribute("id", num + "_td_little" + max_value);
|
450 |
+
td.setAttribute("idi", max_value);
|
451 |
+
td.style.display = "table-cell";
|
452 |
+
var adding = document.createElement('input');
|
453 |
+
adding.setAttribute("type", field_type.replace('paypal_', ''));
|
454 |
+
adding.setAttribute("value", '[' + table + ':' + product_price + ']');
|
455 |
+
adding.setAttribute("id", num + "_elementform_id_temp" + max_value);
|
456 |
+
if (field_type == 'paypal_checkbox') {
|
457 |
+
adding.setAttribute("onClick", "set_checked('" + num + "','" + max_value + "','form_id_temp')");
|
458 |
+
adding.setAttribute("name", num + "_elementform_id_temp" + max_value);
|
459 |
+
}
|
460 |
+
if (field_type == 'paypal_radio') {
|
461 |
+
adding.setAttribute("onClick", "set_default('" + num + "','" + max_value + "','form_id_temp')");
|
462 |
+
adding.setAttribute("name", num + "_elementform_id_temp");
|
463 |
+
}
|
464 |
+
var label_adding = document.createElement('label');
|
465 |
+
label_adding.setAttribute("id", num + "_label_element" + max_value);
|
466 |
+
label_adding.setAttribute("class", "ch-rad-label");
|
467 |
+
label_adding.setAttribute("for", num + "_elementform_id_temp" + max_value);
|
468 |
+
label_adding.innerHTML = '[' + table + ':' + product_name + ']';
|
469 |
+
label_adding.setAttribute("where", where);
|
470 |
+
label_adding.setAttribute("order_by", order);
|
471 |
+
label_adding.setAttribute("db_info", '[' + str + ']');
|
472 |
+
var adding_ch_label = document.createElement('input');
|
473 |
+
adding_ch_label.setAttribute("type", "hidden");
|
474 |
+
adding_ch_label.setAttribute("id", num + "_elementlabel_form_id_temp" + max_value);
|
475 |
+
adding_ch_label.setAttribute("name", num + "_elementform_id_temp" + max_value + "_label");
|
476 |
+
adding_ch_label.setAttribute("value", '[' + table + ':' + product_name + ']');
|
477 |
+
td.appendChild(adding);
|
478 |
+
td.appendChild(label_adding);
|
479 |
+
td.appendChild(adding_ch_label);
|
480 |
+
tr.appendChild(td);
|
481 |
+
c_table.appendChild(tr);
|
482 |
+
|
483 |
+
var attr_table = window.parent.jQuery('#' + 'choices');
|
484 |
+
var attr = jQuery('<div id="' + max_value + '" class="change_pos fm-width-100">' +
|
485 |
+
'<div class="fm-table-col fm-width-60">' +
|
486 |
+
'<input type="text" class="fm-field-choice" id="el_choices' + max_value + '" value="[' + table + ':' + product_name + ']" disabled="disabled" onKeyUp="change_label(\'' + num + '_label_element' + max_value + '\', this.value); change_label_1(\'' + num + '_elementlabel_form_id_temp' + max_value + '\', this.value);" />' +
|
487 |
+
'</div>' +
|
488 |
+
'<div class="fm-table-col fm-width-20">' +
|
489 |
+
'<input type="text" class="fm-field-choice" id="el_option_price' + max_value + '" value="[' + table + ':' + product_price + ']" disabled="disabled" onKeyPress="return check_isnum_point(event)" onKeyUp="change_value_price(\'' + num + '_elementform_id_temp' + max_value + '\', this.value)" />' +
|
490 |
+
'</div>' +
|
491 |
+
'<input type="hidden" id="el_option_params' + max_value + '" value="' + where + '[where_order_by]' + order + '[db_info]' + '[' + str + ']" />' +
|
492 |
+
'<div class="fm-table-col fm-width-10">' +
|
493 |
+
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_choise_price(' + max_value + ',' + num + ')"></span>' +
|
494 |
+
'</div>' +
|
495 |
+
'<div class="fm-table-col fm-width-10">' +
|
496 |
+
'<span class="fm-move-attribute dashicons dashicons-move el_choices_sortable"></span>' +
|
497 |
+
'</div>' +
|
498 |
+
'</div>');
|
499 |
+
attr_table.append(attr);
|
500 |
+
window.parent["refresh_attr"](num, 'type_checkbox');
|
501 |
+
}
|
502 |
+
window.parent.tb_remove();
|
503 |
+
}
|
504 |
+
else {
|
505 |
+
if (field_type == "checkbox" || field_type == "radio" || field_type == "select") {
|
506 |
+
alert('Select an option(s).');
|
507 |
+
}
|
508 |
+
else {
|
509 |
+
alert('Select a product name or product price.');
|
510 |
+
}
|
511 |
+
}
|
512 |
+
return false;
|
513 |
+
}
|
514 |
+
|
515 |
+
function gen_query() {
|
516 |
+
query = '';
|
517 |
+
query_price = '';
|
518 |
+
where = '';
|
519 |
previous = '';
|
520 |
+
op_val = '';
|
521 |
for (i = 1; i < cond_id; i++) {
|
522 |
+
if ( jQuery('#' + i).html() ) {
|
523 |
if (jQuery('#op_' + i).val() == "%..%") {
|
524 |
+
op_val = ' LIKE \'%' + jQuery('#val_' + i).val() + '%\'';
|
525 |
}
|
526 |
+
else if (jQuery('#op_' + i).val() == "..%") {
|
527 |
+
op_val = ' LIKE \'' + jQuery('#val_' + i).val() + '%\'';
|
528 |
}
|
529 |
+
else if (jQuery('#op_' + i).val() == "%..") {
|
530 |
+
op_val = ' LIKE \'%' + jQuery('#val_' + i).val() + '\'';
|
531 |
}
|
532 |
else {
|
533 |
op_val = ' ' + jQuery('#op_' + i).val() + ' \'' + jQuery('#val_' + i).val() + '\'';
|
540 |
query_price = '[' + (jQuery('#order_by').val() ? '`' + jQuery('#order_by').val() + '`' + ' ' + jQuery('#order_by_asc').val() : jQuery('#product_name').val() ? '`' + jQuery('#product_name').val() + '`' + ' ' + jQuery('#order_by_asc').val() : jQuery('#product_price').val() ? '`' + jQuery('#product_price').val() + '`' + ' ' + jQuery('#order_by_asc').val() : '' ) + ']';
|
541 |
jQuery('#where').val(query);
|
542 |
jQuery('#order').val(query_price);
|
543 |
+
}
|
544 |
</script>
|
545 |
<?php if ( $table_struct ): ?>
|
546 |
<div class="cols">
|
admin/views/FMSqlMapping.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
|
4 |
public function __construct() {
|
5 |
wp_print_scripts('jquery');
|
6 |
wp_print_scripts('jquery-ui-tooltip');
|
@@ -90,10 +91,10 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
90 |
$cond .= '<option>' . str_replace("'", "SingleQuot", $col->Field) . '</option>';
|
91 |
}
|
92 |
$cond .= '</select>';
|
93 |
-
$cond .= '<select id="op_condid"><option value="=" selected="selected">=</option><option value="!=">!=</option><option value=">">></option><option value="<"><</option><option value=">=">>=</option><option value="<="><=</option><option value="%..%">Like</option><option value="
|
94 |
$cond .= '<input id="val_condid" style="width:170px" type="text" class="fm-where-input" />';
|
95 |
$cond .= '<select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select>';
|
96 |
-
$cond .= '<img src="' . WDFMInstance(self::PLUGIN)->
|
97 |
?>
|
98 |
<script>
|
99 |
jQuery(document).ready(function() {
|
@@ -257,8 +258,9 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
257 |
data: datatxt,
|
258 |
success: function (data) {
|
259 |
window.parent.wd_fm_apply_options('apply_form_options');
|
260 |
-
window.parent.
|
261 |
-
|
|
|
262 |
}
|
263 |
});
|
264 |
}
|
@@ -325,12 +327,13 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
325 |
if (jQuery('#op_' + i).val() == "%..%") {
|
326 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
327 |
}
|
328 |
-
else if (jQuery('#op_' + i).val() == "%..") {
|
329 |
-
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
330 |
-
}
|
331 |
else if (jQuery('#op_' + i).val() == "..%") {
|
332 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
333 |
}
|
|
|
|
|
|
|
|
|
334 |
else {
|
335 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
336 |
}
|
@@ -350,12 +353,13 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
350 |
if (jQuery('#op_' + i).val() == "%..%") {
|
351 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
352 |
}
|
353 |
-
else if (jQuery('#op_' + i).val() == "%..") {
|
354 |
-
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
355 |
-
}
|
356 |
else if (jQuery('#op_' + i).val() == "..%") {
|
357 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
358 |
}
|
|
|
|
|
|
|
|
|
359 |
else {
|
360 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
361 |
}
|
@@ -1277,7 +1281,7 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
1277 |
$cond .= '<option>' . str_replace("'", "SingleQuot", $col->Field) . '</option>';
|
1278 |
}
|
1279 |
$cond .= '</select>';
|
1280 |
-
$cond .= '<select id="op_condid"><option value="=" selected="selected">=</option><option value="!=">!=</option><option value=">">></option><option value="<"><</option><option value=">=">>=</option><option value="<="><=</option><option value="%..%">Like</option><option value="
|
1281 |
$cond .= '<input id="val_condid" style="width:170px" class="fm-where-input" type="text" />';
|
1282 |
$cond .= '<select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select>';
|
1283 |
$cond .= '<img src="' . WDFMInstance(self::PLUGIN)->plugin_url . '/images/delete.png?ver=' . WDFMInstance(self::PLUGIN)->plugin_version . '" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
@@ -1443,8 +1447,9 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
1443 |
data: datatxt,
|
1444 |
success: function (data) {
|
1445 |
window.parent.wd_fm_apply_options('apply_form_options');
|
1446 |
-
window.parent.
|
1447 |
-
|
|
|
1448 |
}
|
1449 |
});
|
1450 |
}
|
@@ -1511,12 +1516,12 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
1511 |
if (jQuery('#op_' + i).val() == "%..%") {
|
1512 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
1513 |
}
|
1514 |
-
else if (jQuery('#op_' + i).val() == "%..") {
|
1515 |
-
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
1516 |
-
}
|
1517 |
else if (jQuery('#op_' + i).val() == "..%") {
|
1518 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
1519 |
}
|
|
|
|
|
|
|
1520 |
else {
|
1521 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
1522 |
}
|
@@ -1536,12 +1541,12 @@ class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
|
1536 |
if (jQuery('#op_' + i).val() == "%..%") {
|
1537 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
1538 |
}
|
1539 |
-
else if (jQuery('#op_' + i).val() == "%..") {
|
1540 |
-
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
1541 |
-
}
|
1542 |
else if (jQuery('#op_' + i).val() == "..%") {
|
1543 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
1544 |
}
|
|
|
|
|
|
|
1545 |
else {
|
1546 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
1547 |
}
|
1 |
<?php
|
2 |
|
3 |
class FMViewFormMakerSQLMapping_fmc extends FMAdminView_fmc {
|
4 |
+
|
5 |
public function __construct() {
|
6 |
wp_print_scripts('jquery');
|
7 |
wp_print_scripts('jquery-ui-tooltip');
|
91 |
$cond .= '<option>' . str_replace("'", "SingleQuot", $col->Field) . '</option>';
|
92 |
}
|
93 |
$cond .= '</select>';
|
94 |
+
$cond .= '<select id="op_condid"><option value="=" selected="selected">=</option><option value="!=">!=</option><option value=">">></option><option value="<"><</option><option value=">=">>=</option><option value="<="><=</option><option value="%..%">Like</option><option value="..%">Starts with</option><option value="%..">Ends with</option></select>';
|
95 |
$cond .= '<input id="val_condid" style="width:170px" type="text" class="fm-where-input" />';
|
96 |
$cond .= '<select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select>';
|
97 |
+
$cond .= '<img src="' . WDFMInstance(self::PLUGIN)->plugin_url . '/images/delete.png?ver=' . WDFMInstance(self::PLUGIN)->plugin_version . '" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
98 |
?>
|
99 |
<script>
|
100 |
jQuery(document).ready(function() {
|
258 |
data: datatxt,
|
259 |
success: function (data) {
|
260 |
window.parent.wd_fm_apply_options('apply_form_options');
|
261 |
+
window.parent.FormManageSubmitButton();
|
262 |
+
window.parent.fm_set_input_value('task', 'apply');
|
263 |
+
window.parent.document.getElementById('manage_form').submit();
|
264 |
}
|
265 |
});
|
266 |
}
|
327 |
if (jQuery('#op_' + i).val() == "%..%") {
|
328 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
329 |
}
|
|
|
|
|
|
|
330 |
else if (jQuery('#op_' + i).val() == "..%") {
|
331 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
332 |
}
|
333 |
+
else if (jQuery('#op_' + i).val() == "%..") {
|
334 |
+
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
335 |
+
}
|
336 |
+
|
337 |
else {
|
338 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
339 |
}
|
353 |
if (jQuery('#op_' + i).val() == "%..%") {
|
354 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
355 |
}
|
|
|
|
|
|
|
356 |
else if (jQuery('#op_' + i).val() == "..%") {
|
357 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
358 |
}
|
359 |
+
else if (jQuery('#op_' + i).val() == "%..") {
|
360 |
+
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
361 |
+
}
|
362 |
+
|
363 |
else {
|
364 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
365 |
}
|
1281 |
$cond .= '<option>' . str_replace("'", "SingleQuot", $col->Field) . '</option>';
|
1282 |
}
|
1283 |
$cond .= '</select>';
|
1284 |
+
$cond .= '<select id="op_condid"><option value="=" selected="selected">=</option><option value="!=">!=</option><option value=">">></option><option value="<"><</option><option value=">=">>=</option><option value="<="><=</option><option value="%..%">Like</option><option value="..%">Starts with</option><option value="%..">Ends with</option></select>';
|
1285 |
$cond .= '<input id="val_condid" style="width:170px" class="fm-where-input" type="text" />';
|
1286 |
$cond .= '<select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select>';
|
1287 |
$cond .= '<img src="' . WDFMInstance(self::PLUGIN)->plugin_url . '/images/delete.png?ver=' . WDFMInstance(self::PLUGIN)->plugin_version . '" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
1447 |
data: datatxt,
|
1448 |
success: function (data) {
|
1449 |
window.parent.wd_fm_apply_options('apply_form_options');
|
1450 |
+
window.parent.FormManageSubmitButton();
|
1451 |
+
window.parent.fm_set_input_value('task', 'apply');
|
1452 |
+
window.parent.document.getElementById('manage_form').submit();
|
1453 |
}
|
1454 |
});
|
1455 |
}
|
1516 |
if (jQuery('#op_' + i).val() == "%..%") {
|
1517 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
1518 |
}
|
|
|
|
|
|
|
1519 |
else if (jQuery('#op_' + i).val() == "..%") {
|
1520 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
1521 |
}
|
1522 |
+
else if (jQuery('#op_' + i).val() == "%..") {
|
1523 |
+
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
1524 |
+
}
|
1525 |
else {
|
1526 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
1527 |
}
|
1541 |
if (jQuery('#op_' + i).val() == "%..%") {
|
1542 |
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '%"';
|
1543 |
}
|
|
|
|
|
|
|
1544 |
else if (jQuery('#op_' + i).val() == "..%") {
|
1545 |
op_val = ' LIKE "' + jQuery('#val_' + i).val() + '%"';
|
1546 |
}
|
1547 |
+
else if (jQuery('#op_' + i).val() == "%..") {
|
1548 |
+
op_val = ' LIKE "%' + jQuery('#val_' + i).val() + '"';
|
1549 |
+
}
|
1550 |
else {
|
1551 |
op_val = ' ' + jQuery('#op_' + i).val() + ' "' + jQuery('#val_' + i).val() + '"';
|
1552 |
}
|
admin/views/FormMakerSubmits.php
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
* Class FMViewFormMakerSubmits_fmc
|
5 |
*/
|
6 |
class FMViewFormMakerSubmits_fmc extends FMAdminView_fmc {
|
|
|
7 |
/**
|
8 |
* Display.
|
9 |
*
|
4 |
* Class FMViewFormMakerSubmits_fmc
|
5 |
*/
|
6 |
class FMViewFormMakerSubmits_fmc extends FMAdminView_fmc {
|
7 |
+
|
8 |
/**
|
9 |
* Display.
|
10 |
*
|
admin/views/Manage_fm.php
CHANGED
@@ -6,15 +6,13 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
6 |
*/
|
7 |
public function __construct() {
|
8 |
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-tables');
|
|
|
9 |
|
10 |
wp_enqueue_script('jquery');
|
11 |
wp_enqueue_script('jquery-ui-sortable');
|
12 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-admin');
|
13 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-manage');
|
14 |
-
|
15 |
-
content: "' . __('Drop a field here to create a column.', WDFMInstance(self::PLUGIN)->prefix) . '";
|
16 |
-
}';
|
17 |
-
wp_add_inline_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-style', $inline_styles);*/
|
18 |
}
|
19 |
|
20 |
/**
|
@@ -23,7 +21,7 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
23 |
* @param array $params
|
24 |
*/
|
25 |
public function display( $params = array() ) {
|
26 |
-
|
27 |
ob_start();
|
28 |
echo $this->body($params);
|
29 |
// Pass the content to form.
|
@@ -162,7 +160,7 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
162 |
<?php echo ucfirst($row_data->type); ?>
|
163 |
<div class="row-actions">
|
164 |
<span>
|
165 |
-
<a href="<?php echo add_query_arg(array('
|
166 |
</span>
|
167 |
</div>
|
168 |
</td>
|
@@ -189,7 +187,7 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
189 |
<input type="text" value='<?php echo (WDFMInstance(self::PLUGIN)->is_free == 2 ? '[wd_contact_form id="' . $row_data->id . '"]' : '[Form id="' . $row_data->id . '"]'); ?>' onclick="fm_select_value(this)" size="12" readonly="readonly" class="fm_shortcode" />
|
190 |
</td>
|
191 |
<td data-colname="<?php _e('PHP function', WDFMInstance(self::PLUGIN)->prefix); ?>">
|
192 |
-
<input type="text" value='<?php echo (WDFMInstance(self::PLUGIN)->is_free == 2 ? '<?php wd_contact_form_maker(' . $row_data->id . ', "' . $row_data->type . '"); ?>' : '<?php wd_form_maker(' . $row_data->id . ', "' . $row_data->type . '"); ?>');
|
193 |
</td>
|
194 |
</tr>
|
195 |
<?php
|
@@ -221,18 +219,24 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
221 |
* @param array $params
|
222 |
*/
|
223 |
public function edit( $params = array() ) {
|
|
|
224 |
// TODO: Change this function to standard.
|
225 |
echo $this->topbar();
|
226 |
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
230 |
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
|
|
|
|
236 |
if ( function_exists('wp_add_inline_script') ) { // Since Wordpress 4.5.0
|
237 |
wp_add_inline_script('jquery-ui-datepicker', WDW_FM_Library(self::PLUGIN)->localize_ui_datepicker());
|
238 |
}
|
@@ -246,6 +250,22 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
246 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-formmaker_div');
|
247 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-manage-edit');
|
248 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-add-fields');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
|
250 |
$id = $params['id'];
|
251 |
$row = $params['row'];
|
@@ -258,15 +278,10 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
258 |
$form_preview_link = $params['form_preview_link'];
|
259 |
$animation_effects = $params['animation_effects'];
|
260 |
|
261 |
-
$stripe_addon = $params['stripe_addon'];
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
$next_backup_id = $params['next_backup_id'];
|
266 |
-
$prev_backup_id = $params['prev_backup_id'];
|
267 |
-
}
|
268 |
-
}
|
269 |
-
?>
|
270 |
<script type="text/javascript">
|
271 |
gen = <?php echo $row->counter; ?>;
|
272 |
is_sortable = <?php echo $row->sortable ?>;
|
@@ -287,14 +302,80 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
287 |
theme_edit_url = '<?php echo add_query_arg( array('page' => 'themes' . WDFMInstance(self::PLUGIN)->menu_postfix, 'task' =>'edit'), $page_url); ?>';
|
288 |
jQuery(document).ready(function () {
|
289 |
set_theme();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
});
|
291 |
</script>
|
292 |
<form class="wrap" id="manage_form" method="post" autocomplete="off" action="admin.php?page=manage<?php echo WDFMInstance(self::PLUGIN)->menu_postfix; ?>">
|
293 |
<?php
|
294 |
// Generate message container by message id or directly by message.
|
|
|
295 |
$message_id = WDW_FM_Library(self::PLUGIN)->get('message', 0);
|
296 |
$message = WDW_FM_Library(self::PLUGIN)->get('msg', '');
|
297 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
?>
|
299 |
<?php wp_nonce_field(WDFMInstance(self::PLUGIN)->nonce, WDFMInstance(self::PLUGIN)->nonce); ?>
|
300 |
<h2 class="fm-h2-message"></h2>
|
@@ -304,193 +385,301 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
304 |
<input id="title" name="title" value="<?php echo $row->title; ?>" data-initial-value="<?php echo $row->title; ?>" class="fm-check-change" type="text" />
|
305 |
<div class="fm-page-actions">
|
306 |
<?php
|
307 |
-
if ( isset($
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
<?php _e('Redo', WDFMInstance(self::PLUGIN)->prefix); ?>
|
313 |
-
</button>
|
314 |
-
<?php
|
315 |
-
}
|
316 |
-
$backup_id = $prev_backup_id;
|
317 |
-
if ( $backup_id ) { ?>
|
318 |
-
<button class="button undo-button button-large" onclick="if (fm_check_required('title', '<?php _e('Form Title', WDFMInstance(self::PLUGIN)->prefix); ?>') || !FormManageSubmitButton()) {return false;}; jQuery('#saving_text').html('<?php _e('Undo', WDFMInstance(self::PLUGIN)->prefix); ?>');fm_set_input_value('task', 'undo');">
|
319 |
-
<span></span>
|
320 |
-
<?php _e('Undo', WDFMInstance(self::PLUGIN)->prefix); ?>
|
321 |
-
</button>
|
322 |
-
<?php
|
323 |
-
}
|
324 |
-
}
|
325 |
-
}
|
326 |
?>
|
327 |
-
<button class="button button-primary button-large" onclick="if (fm_check_required('title', '<?php _e('Form Title', WDFMInstance(self::PLUGIN)->prefix); ?>') || !FormManageSubmitButton()) {return false;}; fm_set_input_value('task', 'apply');">
|
328 |
<?php
|
329 |
-
if ($row->title) {
|
330 |
_e('Update', WDFMInstance(self::PLUGIN)->prefix);
|
331 |
-
}
|
332 |
-
|
|
|
333 |
_e('Publish', WDFMInstance(self::PLUGIN)->prefix);
|
334 |
}
|
335 |
?>
|
336 |
</button>
|
|
|
337 |
<button class="button preview-button button-large"<?php if (!$row->title) echo ' disabled="disabled"' ?> <?php echo ($row->title) ? 'onclick="window.open(\''. add_query_arg( array('wdform_id' => $id), $form_preview_link ) .'\', \'_blank\'); return false;"' : ''; ?>><?php _e('Preview', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
338 |
</div>
|
339 |
</div>
|
340 |
<div class="fm-clear"></div>
|
341 |
</div>
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
<
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
?>
|
383 |
-
</div>
|
384 |
-
</div>
|
385 |
-
<div class="fm-clear"></div>
|
386 |
-
<?php echo $this->add_fields($params); ?>
|
387 |
-
<?php echo $this->limitation_alert(); ?>
|
388 |
-
<?php if (!function_exists('the_editor')) { ?>
|
389 |
-
<iframe id="tinymce" style="display: none;"></iframe>
|
390 |
-
<?php } ?>
|
391 |
-
<div id="fm_delete_page_popup_container" class="hidden fm_popup_container">
|
392 |
-
<div class="fm-popup-overlay" onclick="fm_popup_toggle('fm_delete_page_popup_container'); return false;"></div>
|
393 |
-
<div id="fm-delete-page-content" class="fm-popup-wrap">
|
394 |
-
<input type="hidden" id="fm_delete_page_id" value="" />
|
395 |
-
<div class="fm-alert-header">
|
396 |
-
<label><?php _e('Are You Sure You Want to...', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
397 |
</div>
|
398 |
-
<div class="
|
399 |
-
<
|
400 |
-
<
|
401 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
</div>
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
<div class="fm-section-header">
|
409 |
-
<
|
|
|
|
|
|
|
410 |
</div>
|
411 |
<div class="fm-section">
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
<?php
|
426 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
</div>
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
|
|
|
|
439 |
</div>
|
440 |
</div>
|
441 |
-
<div class="
|
442 |
-
|
443 |
-
<
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
</div>
|
452 |
-
|
453 |
-
|
454 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
</div>
|
456 |
-
<div class="
|
457 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
</div>
|
459 |
</div>
|
460 |
</div>
|
461 |
</div>
|
462 |
-
|
463 |
-
<div style="display: table; width: 100%;" id="page_bar">
|
464 |
-
<div id="page_navigation" style="display: table-row;">
|
465 |
-
<div align="center" id="pages" show_title="<?php echo $row->show_title; ?>" show_numbers="<?php echo $row->show_numbers; ?>" type="<?php echo $row->pagination; ?>" style="display: table-cell; width:90%;"></div>
|
466 |
-
<div align="left" id="edit_page_navigation" title="<?php _e('Edit page navigation.', WDFMInstance(self::PLUGIN)->prefix); ?>"></div>
|
467 |
-
</div>
|
468 |
-
</div>
|
469 |
-
<div id="take" class="main">
|
470 |
-
<?php echo $row->form_front; ?>
|
471 |
-
<div class="wdform_column ui-sortable" id="add_field_cont">
|
472 |
-
|
473 |
-
<div id="add_field" class="ui-sortable-handle">
|
474 |
-
<div class="first-time-use">
|
475 |
-
<span class="first-time-use-close dashicons dashicons-no-alt"></span>
|
476 |
-
<?php _e('Drag icon to the form to add a field.', WDFMInstance(self::PLUGIN)->prefix); ?>
|
477 |
-
</div>
|
478 |
|
479 |
-
|
480 |
-
<div class="add-new-button button-primary" onclick="popup_ready(); Enable(); return false;" title="<?php _e('Drag icon to the form or click here to add a field.', WDFMInstance(self::PLUGIN)->prefix); ?>">
|
481 |
-
<span class="dashicons dashicons-move"></span>
|
482 |
-
<?php _e('New Field', WDFMInstance(self::PLUGIN)->prefix); ?>
|
483 |
-
</div>
|
484 |
-
</div>
|
485 |
-
</div>
|
486 |
-
</div>
|
487 |
-
</div>
|
488 |
-
</div>
|
489 |
-
<input type="hidden" name="form_front" id="form_front" />
|
490 |
<input type="hidden" name="form_fields" id="form_fields" />
|
491 |
-
<input type="hidden" name="pagination" id="pagination" />
|
492 |
-
<input type="hidden" name="show_title" id="show_title" />
|
493 |
-
<input type="hidden" name="show_numbers" id="show_numbers" />
|
494 |
<input type="hidden" name="public_key" id="public_key" />
|
495 |
<input type="hidden" name="private_key" id="private_key" />
|
496 |
<input type="hidden" name="recaptcha_theme" id="recaptcha_theme" />
|
@@ -498,6 +687,7 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
498 |
<input type="hidden" id="label_order_current" name="label_order_current" value="<?php echo $row->label_order_current; ?>" />
|
499 |
<input type="hidden" name="counter" id="counter" value="<?php echo $row->counter; ?>" />
|
500 |
<input type="hidden" name="backup_id" id="backup_id" value="<?php echo $row->backup_id;?>">
|
|
|
501 |
<input type="hidden" name="option" value="com_formmaker" />
|
502 |
<input type="hidden" name="id" value="<?php echo $id; ?>" />
|
503 |
<input type="hidden" name="cid[]" value="<?php echo $id; ?>" />
|
@@ -507,6 +697,338 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
507 |
<?php
|
508 |
}
|
509 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
510 |
/**
|
511 |
* add fields.
|
512 |
*
|
@@ -538,12 +1060,8 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
538 |
array('type' => 'select', 'subtype' => 'country', 'title' => __('Country List', WDFMInstance(self::PLUGIN)->prefix)),
|
539 |
array('type' => 'time_and_date', 'subtype' => 'date_fields', 'title' => __('Date of Birth', WDFMInstance(self::PLUGIN)->prefix)),
|
540 |
),
|
541 |
-
__('LAYOUT FIELDS', WDFMInstance(self::PLUGIN)->prefix) => array(
|
542 |
-
array('type' => 'editor', 'subtype' => '', 'title' => __('HTML', WDFMInstance(self::PLUGIN)->prefix)),
|
543 |
-
array('type' => 'section_break', 'subtype' => '', 'title' => __('Section', WDFMInstance(self::PLUGIN)->prefix)),
|
544 |
-
array('type' => 'page_break', 'subtype' => '', 'title' => __('Page', WDFMInstance(self::PLUGIN)->prefix)),
|
545 |
-
),
|
546 |
__('ADVANCED', WDFMInstance(self::PLUGIN)->prefix) => array(
|
|
|
547 |
array('type' => 'file_upload', 'subtype' => '', 'title' => __('File Upload', WDFMInstance(self::PLUGIN)->prefix)),
|
548 |
array('type' => 'map', 'subtype' => '', 'title' => __('Map', WDFMInstance(self::PLUGIN)->prefix)),
|
549 |
array('type' => 'time_and_date', 'subtype' => 'time', 'title' => __('Time', WDFMInstance(self::PLUGIN)->prefix)),
|
@@ -578,7 +1096,7 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
578 |
<span class="popup-title">
|
579 |
<?php _e('Add field', WDFMInstance(self::PLUGIN)->prefix); ?>
|
580 |
</span>
|
581 |
-
<span title="<?php _e('Close', WDFMInstance(self::PLUGIN)->prefix); ?>" alt="<?php _e('Close', WDFMInstance(self::PLUGIN)->prefix); ?>" class="close-popup
|
582 |
</div>
|
583 |
<div class="popup-body meta-box-sortables">
|
584 |
<div class="popup-body-col field_types">
|
@@ -691,40 +1209,8 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
691 |
* @param array $params
|
692 |
*/
|
693 |
public function form_options( $params = array() ) {
|
694 |
-
|
695 |
-
|
696 |
-
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-layout');
|
697 |
-
|
698 |
-
wp_enqueue_script('thickbox');
|
699 |
-
wp_enqueue_script('jquery-ui-widget');
|
700 |
-
wp_enqueue_style('jquery-ui-tooltip');
|
701 |
-
wp_enqueue_script('jquery-ui-tooltip');
|
702 |
-
wp_enqueue_media();
|
703 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-form-options');
|
704 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-codemirror');
|
705 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-formatting');
|
706 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-clike');
|
707 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-css');
|
708 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-javascript');
|
709 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-xml');
|
710 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-php');
|
711 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-htmlmixed');
|
712 |
-
|
713 |
-
$id = $params['id'];
|
714 |
-
$page = $params['page'];
|
715 |
-
$page_url = $params['page_url'];
|
716 |
-
ob_start();
|
717 |
-
echo $this->body_form_options($params);
|
718 |
-
|
719 |
-
// Pass the content to form.
|
720 |
-
$form_attr = array(
|
721 |
-
'id' => 'adminForm',
|
722 |
-
'name' => 'adminForm',
|
723 |
-
'class' => WDFMInstance(self::PLUGIN)->css_prefix . 'form_options wd-form',
|
724 |
-
'current_id' => $id,
|
725 |
-
'action' => add_query_arg( array('page' => $page, 'current_id' => $id ), $page_url),
|
726 |
-
);
|
727 |
-
echo $this->form(ob_get_clean(), $form_attr);
|
728 |
}
|
729 |
|
730 |
/**
|
@@ -739,39 +1225,14 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
739 |
$page_title = $params['page_title'];
|
740 |
$page_url = $params['page_url'];
|
741 |
$back_url = $params['back_url'];
|
742 |
-
$fieldset_id =
|
743 |
$addons = $params['addons'];
|
744 |
$row = $params['row'];
|
745 |
-
$themes = $params['themes'];
|
746 |
$default_theme = $params['default_theme'];
|
747 |
$queries = $params['queries'];
|
748 |
$userGroups = $params['userGroups'];
|
749 |
-
$fields = $params['fields'];
|
750 |
-
$fields_count = $params['fields_count'];
|
751 |
$stripe_addon = $params['stripe_addon'];
|
752 |
$payment_method = $params['payment_method'];
|
753 |
-
$label_label = $params['label_label'];
|
754 |
-
$label_type = $params['label_type'];
|
755 |
-
echo $this->title(array(
|
756 |
-
'title' => $page_title,
|
757 |
-
'title_class' => 'wd-header',
|
758 |
-
'add_new_button' => FALSE,
|
759 |
-
));
|
760 |
-
$buttons = array(
|
761 |
-
'save' => array(
|
762 |
-
'title' => __('Update', WDFMInstance(self::PLUGIN)->prefix),
|
763 |
-
'value' => 'save',
|
764 |
-
'onclick' => 'if( ! wd_fm_apply_options(\'apply_form_options\') ){ return false; }',
|
765 |
-
'class' => 'button-primary',
|
766 |
-
),
|
767 |
-
'back' => array(
|
768 |
-
'title' => __('Back to Form', WDFMInstance(self::PLUGIN)->prefix),
|
769 |
-
'value' => 'back',
|
770 |
-
'onclick' => 'window.open(\'' . $back_url . '\', \'_self\'); return false;',
|
771 |
-
'class' => 'button',
|
772 |
-
)
|
773 |
-
);
|
774 |
-
echo $this->buttons($buttons);
|
775 |
$label_titles_for_submissions = array();
|
776 |
$labels_id_for_submissions = array();
|
777 |
$payment_info = $params['payment_info'];
|
@@ -782,1083 +1243,734 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
782 |
}
|
783 |
$stats_labels_ids = $params['stats_labels_ids'];
|
784 |
$stats_labels = $params['stats_labels'];
|
|
|
785 |
?>
|
786 |
-
<div class="fm-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
?>
|
819 |
-
<li>
|
820 |
-
<a id="<?php echo $addon; ?>" class="fm_fieldset_tab" onclick="form_maker_options_tabs('<?php echo $addon; ?>')" href="#"><?php echo $name; ?></a>
|
821 |
-
</li>
|
822 |
-
<?php
|
823 |
-
}
|
824 |
}
|
825 |
-
|
826 |
-
|
827 |
-
</
|
828 |
</div>
|
829 |
-
|
830 |
-
<div>
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
</optgroup>
|
868 |
-
</select>
|
869 |
-
<a id="edit_css" class="options-edit-button" onclick="window.open('<?php echo add_query_arg(array(
|
870 |
-
'current_id' => ($row->theme && $row->theme != '0' ? $row->theme : $default_theme),
|
871 |
-
WDFMInstance(self::PLUGIN)->nonce => wp_create_nonce(WDFMInstance(self::PLUGIN)->nonce)
|
872 |
-
), admin_url('admin.php?page=themes' . WDFMInstance(self::PLUGIN)->menu_postfix . '&task=edit')); ?>'); return false;"><?php _e('Edit', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
873 |
-
<div id="old_theme_notice" class="error inline" style="display: none;"><p><?php _e('The theme you have selected is outdated. Please choose one from New Themes section.', WDFMInstance(self::PLUGIN)->prefix); ?></p></div>
|
874 |
-
<p class="description"><?php _e('The appearance of your forms is controlled by the theme you select with this option. Press Edit button to open and modify your form theme.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
875 |
-
|
876 |
-
</span>
|
877 |
-
<span class="wd-group">
|
878 |
-
<label class="wd-label" for="requiredmark"><?php _e('Required fields mark', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
879 |
-
<input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>">
|
880 |
-
<p class="description"><?php _e('Use this option to change the mark for required fields of your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
881 |
-
</span>
|
882 |
-
<span class="wd-group">
|
883 |
-
<label class="wd-label"><?php _e('Save Uploads', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
884 |
-
<input type="radio" name="save_uploads" <?php echo $row->save_uploads == 1 ? 'checked="checked"' : '' ?> id="fm_go-save_uploads-1" class="wd-radio" value="1">
|
885 |
-
<label class="wd-label-radio" for="fm_go-save_uploads-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
886 |
-
<input type="radio" name="save_uploads" <?php echo $row->save_uploads == 0 ? 'checked="checked"' : '' ?> id="fm_go-save_uploads-0" class="wd-radio" value="0">
|
887 |
-
<label class="wd-label-radio" for="fm_go-save_uploads-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
888 |
-
<p class="description"><?php _e('IMPORTANT! If you disable this option, the files uploaded through your form will not be saved on your site. The files will still be sent to emails and saved in Google Drive or Dropbox, if configured.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
889 |
-
</span>
|
890 |
-
</div>
|
891 |
-
</div>
|
892 |
-
</div>
|
893 |
-
<div class="wd-table-col wd-table-col-50 wd-table-col-right">
|
894 |
-
<div class="wd-box-section">
|
895 |
-
<div class="wd-box-content">
|
896 |
-
<?php
|
897 |
-
if (WDFMInstance(self::PLUGIN)->is_free) {
|
898 |
-
echo $this->free_message(__('This functionality is available in Premium version', WDFMInstance(self::PLUGIN)->prefix));
|
899 |
-
}
|
900 |
-
?>
|
901 |
-
<span class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
902 |
-
<label class="wd-label"><?php _e('Allow User to see submissions', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
903 |
<?php
|
904 |
-
|
905 |
-
|
906 |
-
foreach ( $userGroups as $val => $uG ) {
|
907 |
-
echo "\r\n" . '<input type="checkbox" value="' . $val . '" id="user_' . $i . '" ';
|
908 |
-
if ( in_array($val, $checked_UserGroup) ) {
|
909 |
-
echo ' checked="checked"';
|
910 |
-
}
|
911 |
-
echo ' onchange="acces_level(' . count($userGroups) . ')" ' . disabled(WDFMInstance(self::PLUGIN)->is_free, true, false) . ' /><label for="user_' . $i . '">' . $uG["name"] . '</label><br>';
|
912 |
-
$i++;
|
913 |
}
|
914 |
?>
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
</ul>
|
938 |
-
<input type="hidden" name="frontend_submit_fields" value="<?php echo $row->frontend_submit_fields ?>" id="frontend_submit_fields" />
|
939 |
-
<p class="description"><?php _e('Select fields of the form and Stats Fields which will not to be displayed within front-end submissions, when you publish them.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
940 |
-
</span>
|
941 |
-
<?php if ( $stats_labels ) { ?>
|
942 |
-
<span class="wd-group">
|
943 |
-
<label class="wd-label"><?php _e('Stats fields:', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
944 |
-
<ul id="stats_fields">
|
945 |
<li>
|
946 |
-
<input type="checkbox" name="
|
947 |
-
<label for="
|
948 |
</li>
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
|
|
|
|
|
|
|
|
|
|
979 |
</div>
|
980 |
</div>
|
981 |
</div>
|
982 |
</div>
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
<label class="wd-label" for="
|
994 |
-
<input class="
|
995 |
-
<
|
996 |
-
<
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
?>
|
1019 |
-
<input style="<?php echo ($fields_count == 1) ? 'display:none;' : ''; ?>" class="wd-radio" type="radio" id="other" name="from_mail" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other_wrap')" />
|
1020 |
-
<label style="<?php echo ($fields_count == 1) ? 'display:none;' : ''; ?>" class="wd-label-radio" for="other"><?php _e('Other', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1021 |
-
<p style="display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="mail_from_other_wrap">
|
1022 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="mail_from_other" id="mail_from_other" value="<?php echo ($is_other) ? $row->from_mail : ''; ?>" />
|
1023 |
-
</p>
|
1024 |
-
<p class="description"><?php _e('Specify the email address from which the administrator will receive the email.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1025 |
-
<p class="description"><?php _e('We recommend you to use an email address belonging to your website domain.', WDFMInstance(self::PLUGIN)->prefix); ?> <span class="dashicons dashicons-editor-help wd-info" data-id="fm-email-from-info"></span></p>
|
1026 |
-
<div id="fm-email-from-info" class="fm-hide">
|
1027 |
-
<p><?php _e('If sender email address is not hosted on the same domain as your website, some hosting providers may not send the emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1028 |
-
<p><?php _e('In addition, relaying mail servers may consider the emails as phishing.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1029 |
-
</div>
|
1030 |
-
</div>
|
1031 |
-
<div class="wd-group wd-has-placeholder">
|
1032 |
-
<label class="wd-label" for="from_name"><?php _e('From Name', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1033 |
-
<input type="text" name="from_name" value="<?php echo $row->from_name; ?>" id="from_name" />
|
1034 |
-
<span class="dashicons dashicons-list-view" data-id="from_name"></span>
|
1035 |
-
<p class="description"><?php _e('Set the name or search for a form field which is shown as the sender’s name in submission or confirmation emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1036 |
-
</div>
|
1037 |
-
<div class="wd-group wd-has-placeholder">
|
1038 |
-
<label class="wd-label" for="mail_subject"><?php _e('Subject', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1039 |
-
<input type="text" id="mail_subject" name="mail_subject" value="<?php echo !empty($row->mail_subject) ? $row->mail_subject : '{formtitle}'; ?>" />
|
1040 |
-
<span class="dashicons dashicons-list-view" data-id="mail_subject"></span>
|
1041 |
-
<p class="description"><?php _e('Add a custom subject or search for a form field for the submission email. In case it’s left blank, Form Title will be set as the subject of submission emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1042 |
-
</div>
|
1043 |
-
<div class="wd-group">
|
1044 |
-
<label class="wd-label" for="script_mail"><?php _e('Custom Text in Email For Administrator', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1045 |
-
<div class="wd-editor-placeholder">
|
1046 |
-
<span class="dashicons dashicons-list-view" data-id="script_mail"></span>
|
1047 |
</div>
|
1048 |
-
<?php
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
'textarea_name' => 'script_mail',
|
1053 |
-
'media_buttons' => FALSE,
|
1054 |
-
'textarea_rows' => 5
|
1055 |
-
));
|
1056 |
-
}
|
1057 |
-
else {
|
1058 |
-
?>
|
1059 |
-
<textarea name="script_mail" id="script_mail" cols="20" rows="10" style="width:300px; height:450px;"><?php echo $row->script_mail; ?></textarea>
|
1060 |
-
<?php
|
1061 |
-
}
|
1062 |
-
?>
|
1063 |
-
<p class="description"><?php _e('Write custom content to the email message which is sent to administrator. Include All Fields List to forward all submitted information, or click on fields buttons to use individual field values in the content.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1064 |
-
</div>
|
1065 |
-
<div class="postbox closed">
|
1066 |
-
<button class="button-link handlediv" type="button" aria-expanded="true">
|
1067 |
-
<span class="screen-reader-text"><?php _e('Toggle panel:', WDFMInstance(self::PLUGIN)->prefix); ?></span>
|
1068 |
-
<span class="toggle-indicator" aria-hidden="false"></span>
|
1069 |
-
</button>
|
1070 |
-
<h2 class="hndle">
|
1071 |
-
<span><?php _e('Advanced', WDFMInstance(self::PLUGIN)->prefix); ?></span>
|
1072 |
-
</h2>
|
1073 |
-
<div class="inside">
|
1074 |
-
<div class="wd-group">
|
1075 |
-
<label class="wd-label"><?php _e('Reply to (if different from "Email From")', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1076 |
<?php
|
1077 |
-
|
1078 |
-
|
|
|
1079 |
?>
|
1080 |
-
|
1081 |
-
<label class="wd-label-radio" for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
1082 |
<?php
|
1083 |
-
if ( !is_numeric($fields[$i]) ) {
|
1084 |
-
if ( substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) == $row->reply_to ) {
|
1085 |
-
$is_other = FALSE;
|
1086 |
-
}
|
1087 |
-
}
|
1088 |
-
else {
|
1089 |
-
if ( $fields[$i] == $row->reply_to ) {
|
1090 |
-
$is_other = FALSE;
|
1091 |
-
}
|
1092 |
-
}
|
1093 |
}
|
|
|
1094 |
?>
|
1095 |
-
|
1096 |
-
<label style="<?php echo ($fields_count == 1) ? 'display: none;' : ''; ?>" class="wd-label-radio" for="other1"><?php _e('Other', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1097 |
-
<p style="display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="reply_to_other_wrap">
|
1098 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="reply_to_other" value="<?php echo ($is_other && $row->reply_to) ? $row->reply_to : ''; ?>" id="reply_to_other" />
|
1099 |
-
</p>
|
1100 |
-
<p class="description"><?php _e('Specify an alternative email address, to which the administrator will be able to reply upon receiving the message.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1101 |
-
</div>
|
1102 |
-
<div class="wd-group">
|
1103 |
-
<label class="wd-label" for="mail_cc"><?php _e('CC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1104 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc ?>" />
|
1105 |
-
<p class="description"><?php _e('Provide additional email addresses to send the submission or confirmation email to. The receiver will be able to view all other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1106 |
-
</div>
|
1107 |
-
<div class="wd-group">
|
1108 |
-
<label class="wd-label" for="mail_bcc"><?php _e('BCC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1109 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc ?>" />
|
1110 |
-
<p class="description"><?php _e('Write additional email addresses to send the submission or confirmation email to. The receiver will not be able to view other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1111 |
-
</div>
|
1112 |
-
<div class="wd-group">
|
1113 |
-
<label class="wd-label"><?php _e('Mode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1114 |
-
<input type="radio" name="mail_mode" <?php echo $row->mail_mode == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode-1" class="wd-radio" value="1">
|
1115 |
-
<label class="wd-label-radio" for="fm_mo_mail_mode-1"><?php _e('HTML', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1116 |
-
<input type="radio" name="mail_mode" <?php echo $row->mail_mode == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode-0" class="wd-radio" value="0">
|
1117 |
-
<label class="wd-label-radio" for="fm_mo_mail_mode-0"><?php _e('Text', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1118 |
-
<p class="description"><?php _e('Select the layout of the submission email, Text or HTML.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1119 |
-
</div>
|
1120 |
-
<div class="wd-group">
|
1121 |
-
<label class="wd-label"><?php _e('Attach File', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1122 |
-
<input type="radio" name="mail_attachment" <?php echo $row->mail_attachment == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_attachment-1" class="wd-radio" value="1">
|
1123 |
-
<label class="wd-label-radio" for="fm_mo_mail_attachment-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1124 |
-
<input type="radio" name="mail_attachment" <?php echo $row->mail_attachment == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_attachment-0" class="wd-radio" value="0">
|
1125 |
-
<label class="wd-label-radio" for="fm_mo_mail_attachment-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1126 |
-
<p class="description"><?php _e('If you have File Upload fields on your form, enable this setting to attach uploaded files to submission or confirmation email.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1127 |
-
</div>
|
1128 |
-
<div class="wd-group">
|
1129 |
-
<label class="wd-label"><?php _e('Email empty fields', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1130 |
-
<input type="radio" name="mail_emptyfields" <?php echo $row->mail_emptyfields == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_emptyfields-1" class="wd-radio" value="1">
|
1131 |
-
<label class="wd-label-radio" for="fm_mo_mail_emptyfields-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1132 |
-
<input type="radio" name="mail_emptyfields" <?php echo $row->mail_emptyfields == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_emptyfields-0" class="wd-radio" value="0">
|
1133 |
-
<label class="wd-label-radio" for="fm_mo_mail_emptyfields-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1134 |
-
<p class="description"><?php _e('Disable this setting, in case you do not want to include form fields, which are left empty by the submitter.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1135 |
-
</div>
|
1136 |
-
</div>
|
1137 |
-
</div>
|
1138 |
-
</div>
|
1139 |
-
</div>
|
1140 |
-
</div>
|
1141 |
-
<div class="wd-table-col wd-table-col-50 wd-table-col-right">
|
1142 |
-
<div class="wd-box-section">
|
1143 |
-
<div class="wd-box-title">
|
1144 |
-
<strong><?php _e('Email to User', WDFMInstance(self::PLUGIN)->prefix); ?></strong>
|
1145 |
-
</div>
|
1146 |
-
<div class="wd-box-content">
|
1147 |
-
<div class="wd-group">
|
1148 |
-
<label class="wd-label"><?php _e('Send to', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1149 |
-
<?php
|
1150 |
-
$fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
|
1151 |
-
$fields_count = count($fields);
|
1152 |
-
if ( $fields_count == 1 ) {
|
1153 |
-
_e('There is no email field', WDFMInstance(self::PLUGIN)->prefix);
|
1154 |
-
}
|
1155 |
-
else {
|
1156 |
-
for ( $i = 0; $i < $fields_count - 1; $i++ ) {
|
1157 |
-
?>
|
1158 |
-
<div>
|
1159 |
-
<input type="checkbox" name="send_to<?php echo $i; ?>" id="send_to<?php echo $i; ?>" value="<?php echo(!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo(is_numeric(strpos($row->send_to, '*' . (!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]) . '*')) ? 'checked="checked"' : ''); ?> style="margin: 0px 5px 0px 0px;" />
|
1160 |
-
<label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
1161 |
-
</div>
|
1162 |
-
<?php
|
1163 |
-
}
|
1164 |
-
}
|
1165 |
-
?>
|
1166 |
-
<p class="description"><?php _e('Use this setting to select the email field of your form, to which the submissions will be sent.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1167 |
-
</div>
|
1168 |
-
<div class="wd-group">
|
1169 |
-
<label class="wd-label" for="mail_from_user"><?php _e('Email From', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1170 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" />
|
1171 |
-
<p class="description"><?php _e('Specify the email address from which the submitter will receive the email.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1172 |
-
<p class="description"><?php _e('We recommend you to use an email address belonging to your website domain.', WDFMInstance(self::PLUGIN)->prefix); ?> <span class="dashicons dashicons-editor-help wd-info" data-id="fm-user-email-from-info"></span></p>
|
1173 |
-
<div id="fm-user-email-from-info" class="fm-hide">
|
1174 |
-
<p><?php _e('If sender email address is not hosted on the same domain as your website, some hosting providers may not send the emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1175 |
-
<p><?php _e('In addition, relaying mail servers may consider the emails as phishing.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1176 |
-
</div>
|
1177 |
-
</div>
|
1178 |
-
<div class="wd-group wd-has-placeholder">
|
1179 |
-
<label class="wd-label" for="mail_from_name_user"><?php _e('From Name', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1180 |
-
<input type="text" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" id="mail_from_name_user" />
|
1181 |
-
<span class="dashicons dashicons-list-view" data-id="mail_from_name_user"></span>
|
1182 |
-
<p class="description"><?php _e('Set the name or search for a form field which is shown as the sender’s name in submission or confirmation emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1183 |
-
</div>
|
1184 |
-
<div class="wd-group wd-has-placeholder">
|
1185 |
-
<label class="wd-label" for="mail_subject_user"><?php _e('Subject', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1186 |
-
<input type="text" name="mail_subject_user" value="<?php echo !empty($row->mail_subject_user) ? $row->mail_subject_user : '{formtitle}' ?>" id="mail_subject_user" class="mail_subject_user" />
|
1187 |
-
<span class="dashicons dashicons-list-view" data-id="mail_subject_user"></span>
|
1188 |
-
<p class="description"><?php _e('Add a custom subject or search for a form field for the submission email. In case it’s left blank, Form Title will be set as the subject of submission emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1189 |
-
</div>
|
1190 |
-
<div class="wd-group">
|
1191 |
-
<label class="wd-label" for="script_mail_user"><?php _e('Custom Text in Email For User', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1192 |
-
<div class="wd-editor-placeholder">
|
1193 |
-
<span class="dashicons dashicons-list-view" data-id="script_mail_user"></span>
|
1194 |
</div>
|
1195 |
-
<?php
|
1196 |
-
|
1197 |
-
|
|
|
|
|
|
|
|
|
|
|
1198 |
'teeny' => TRUE,
|
1199 |
-
'textarea_name' => '
|
1200 |
'media_buttons' => FALSE,
|
1201 |
'textarea_rows' => 5
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1205 |
?>
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
|
|
|
|
1211 |
</div>
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
<div class="inside">
|
1221 |
-
<div class="wd-group">
|
1222 |
-
<label class="wd-label" for="reply_to_user"><?php _e('Reply to (if different from "Email From")', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1223 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" id="reply_to_user" />
|
1224 |
-
<p class="description"><?php _e('Specify an alternative email address, to which the submitter will be able to reply upon receiving the message.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1225 |
-
</div>
|
1226 |
-
<div class="wd-group">
|
1227 |
-
<label class="wd-label" for="mail_cc_user"><?php _e('CC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1228 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="mail_cc_user" value="<?php echo $row->mail_cc_user ?>" id="mail_cc_user" />
|
1229 |
-
<p class="description"><?php _e('Provide additional email addresses to send the submission or confirmation email to. The receiver will be able to view all other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1230 |
-
</div>
|
1231 |
-
<div class="wd-group">
|
1232 |
-
<label class="wd-label" for="mail_bcc_user"><?php _e('BCC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1233 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user ?>" id="mail_bcc_user" />
|
1234 |
-
<p class="description"><?php _e('Write additional email addresses to send the submission or confirmation email to. The receiver will not be able to view other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1235 |
-
</div>
|
1236 |
-
<div class="wd-group">
|
1237 |
-
<label class="wd-label"><?php _e('Mode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1238 |
-
<input type="radio" name="mail_mode_user" <?php echo $row->mail_mode_user == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode_user-1" class="wd-radio" value="1">
|
1239 |
-
<label class="wd-label-radio" for="fm_mo_mail_mode_user-1"><?php _e('HTML', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1240 |
-
<input type="radio" name="mail_mode_user" <?php echo $row->mail_mode_user == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode_user-0" class="wd-radio" value="0">
|
1241 |
-
<label class="wd-label-radio" for="fm_mo_mail_mode_user-0"><?php _e('Text', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1242 |
-
<p class="description"><?php _e('Select the layout of the submission email, Text or HTML.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1243 |
-
</div>
|
1244 |
<div class="wd-group">
|
1245 |
-
<label class="wd-label"><?php _e('
|
1246 |
-
<input type="radio" name="
|
1247 |
-
<label class="wd-label-radio" for="
|
1248 |
-
<input type="radio" name="
|
1249 |
-
<label class="wd-label-radio" for="
|
1250 |
-
<
|
|
|
1251 |
</div>
|
1252 |
-
<div class="
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1259 |
</div>
|
1260 |
-
<div class="
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1269 |
</div>
|
1270 |
</div>
|
1271 |
</div>
|
1272 |
</div>
|
1273 |
</div>
|
1274 |
</div>
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
<
|
1282 |
-
|
1283 |
-
|
1284 |
-
<input type="radio" name="submit_text_type" id="text_type_none" onclick="set_type('none')" value="1" <?php echo ($row->submit_text_type != 2 && $row->submit_text_type != 3 && $row->submit_text_type != 4 && $row->submit_text_type != 5) ? "checked" : ""; ?> />
|
1285 |
-
<label for="text_type_none"><?php _e('Stay on Form', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1286 |
-
<br>
|
1287 |
-
<input type="radio" name="submit_text_type" id="text_type_post" onclick="set_type('post')" value="2" <?php echo ($row->submit_text_type == 2) ? "checked" : ""; ?> />
|
1288 |
-
<label for="text_type_post"><?php _e('Post', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1289 |
-
<br>
|
1290 |
-
<input type="radio" name="submit_text_type" id="text_type_page" onclick="set_type('page')" value="5" <?php echo ($row->submit_text_type == 5) ? "checked" : ""; ?> />
|
1291 |
-
<label for="text_type_page"><?php _e('Page', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1292 |
-
<br>
|
1293 |
-
<input type="radio" name="submit_text_type" id="text_type_custom_text" onclick="set_type('custom_text')" value="3" <?php echo ($row->submit_text_type == 3) ? "checked" : ""; ?> />
|
1294 |
-
<label for="text_type_custom_text"><?php _e('Custom Text', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1295 |
-
<br>
|
1296 |
-
<input type="radio" name="submit_text_type" id="text_type_url" onclick="set_type('url')" value="4" <?php echo ($row->submit_text_type == 4) ? "checked" : ""; ?> />
|
1297 |
-
<label for="text_type_url"><?php _e('URL', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1298 |
-
</span>
|
1299 |
-
<span class="wd-group">
|
1300 |
-
<div id="post" <?php echo(($row->submit_text_type != 2) ? 'style="display:none"' : ''); ?>>
|
1301 |
-
<label class="wd-label"><?php _e('Post', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1302 |
-
<select id="post_name" name="post_name">
|
1303 |
-
<option value="0">- Select Post -</option>
|
1304 |
-
<?php
|
1305 |
-
$args = array( 'posts_per_page' => 10000 );
|
1306 |
-
query_posts($args);
|
1307 |
-
while ( have_posts() ) : the_post();
|
1308 |
-
?>
|
1309 |
-
<option value="<?php $x = get_permalink(get_the_ID());
|
1310 |
-
echo $x; ?>" <?php echo(($row->article_id == $x) ? 'selected="selected"' : ''); ?>><?php the_title(); ?></option>
|
1311 |
-
<?php
|
1312 |
-
endwhile;
|
1313 |
-
wp_reset_query();
|
1314 |
-
?>
|
1315 |
-
</select>
|
1316 |
-
</div>
|
1317 |
-
<div id="page" <?php echo(($row->submit_text_type != 5) ? 'style="display:none"' : ''); ?>>
|
1318 |
-
<label class="wd-label"><?php _e('Page', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1319 |
-
<select id="page_name" name="page_name">
|
1320 |
-
<option value="0">- Select Page -</option>
|
1321 |
-
<?php
|
1322 |
-
$pages = get_pages();
|
1323 |
-
foreach ( $pages as $page ) {
|
1324 |
-
$page_id = get_page_link($page->ID);
|
1325 |
-
?>
|
1326 |
-
<option value="<?php echo $page_id; ?>" <?php echo(($row->article_id == $page_id) ? 'selected="selected"' : ''); ?>><?php echo $page->post_title; ?></option>
|
1327 |
-
<?php
|
1328 |
-
}
|
1329 |
-
wp_reset_query();
|
1330 |
-
?>
|
1331 |
-
</select>
|
1332 |
-
</div>
|
1333 |
-
<div id="custom_text" <?php echo(($row->submit_text_type != 3) ? 'style="display: none;"' : ''); ?>>
|
1334 |
-
<label class="wd-label"><?php _e('Text', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1335 |
-
<div class="wd-editor-placeholder">
|
1336 |
-
<span class="dashicons dashicons-list-view" data-id="submit_text"></span>
|
1337 |
-
</div>
|
1338 |
-
<?php
|
1339 |
-
if ( user_can_richedit() ) {
|
1340 |
-
wp_editor($row->submit_text, 'submit_text', array(
|
1341 |
-
'teeny' => TRUE,
|
1342 |
-
'textarea_name' => 'submit_text',
|
1343 |
-
'media_buttons' => FALSE,
|
1344 |
-
'textarea_rows' => 5
|
1345 |
-
));
|
1346 |
-
}
|
1347 |
-
else {
|
1348 |
-
?>
|
1349 |
-
<textarea cols="36" rows="5" id="submit_text" name="submit_text" style="resize: vertical; width:100%">
|
1350 |
-
<?php echo $row->submit_text; ?>
|
1351 |
-
</textarea>
|
1352 |
-
<?php
|
1353 |
-
}
|
1354 |
-
?>
|
1355 |
-
</div>
|
1356 |
-
<div id="url" <?php echo(($row->submit_text_type != 4) ? 'style="display:none"' : ''); ?>>
|
1357 |
-
<label class="wd-label"><?php _e('URL', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1358 |
-
<input type="text" id="url" name="url" value="<?php echo $row->url; ?>" />
|
1359 |
-
</div>
|
1360 |
-
</span>
|
1361 |
-
</div>
|
1362 |
-
</div>
|
1363 |
-
</div>
|
1364 |
-
</div>
|
1365 |
-
</div>
|
1366 |
-
<div id="payment_fieldset" class="adminform fm_fieldset_deactive">
|
1367 |
-
<div class="wd-table">
|
1368 |
-
<div class="wd-table-col-70">
|
1369 |
-
<div class="wd-box-section">
|
1370 |
-
<div class="wd-box-content">
|
1371 |
-
<div class="wd-group">
|
1372 |
-
<label class="wd-label"><?php _e('Payment Method', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1373 |
-
<input type="radio" name="paypal_mode" id="paypal_mode0" value="none" class="wd-radio" <?php echo ($payment_method == "none") ? "checked" : ""; ?> onchange="fm_change_payment_method('none');" />
|
1374 |
-
<label for="paypal_mode0"><?php _e('None', WDFMInstance(self::PLUGIN)->prefix); ?></label><br>
|
1375 |
-
<input type="radio" name="paypal_mode" id="paypal_mode1" value="paypal" class="wd-radio" <?php echo ($payment_method == "paypal") ? "checked" : ""; ?> onchange="fm_change_payment_method('paypal');" />
|
1376 |
-
<label for="paypal_mode1"><?php _e('Paypal', WDFMInstance(self::PLUGIN)->prefix); ?></label><br>
|
1377 |
-
<input type="radio" name="paypal_mode" id="paypal_mode2" value="stripe" <?php echo ($payment_method == "stripe") ? "checked" : ""; ?> class="wd-radio" onchange="fm_change_payment_method('stripe');" />
|
1378 |
-
<label for="paypal_mode2"><?php _e('Stripe', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1379 |
-
</div>
|
1380 |
-
<div class="fm_payment_option">
|
1381 |
-
<?php
|
1382 |
-
if (WDFMInstance(self::PLUGIN)->is_free) {
|
1383 |
-
echo $this->free_message(__('PAYPAL is available in Premium version', WDFMInstance(self::PLUGIN)->prefix));
|
1384 |
-
}
|
1385 |
-
?>
|
1386 |
-
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1387 |
-
<label class="wd-label" for="payment_currency"><?php _e('Payment Currency', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1388 |
-
<select id="payment_currency" name="payment_currency" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?>>
|
1389 |
-
<option value="USD" <?php echo(($row->payment_currency == 'USD') ? 'selected' : ''); ?>>$ • U.S. Dollar</option>
|
1390 |
-
<option value="EUR" <?php echo(($row->payment_currency == 'EUR') ? 'selected' : ''); ?>>€ • Euro</option>
|
1391 |
-
<option value="GBP" <?php echo(($row->payment_currency == 'GBP') ? 'selected' : ''); ?>>£ • Pound Sterling</option>
|
1392 |
-
<option value="JPY" <?php echo(($row->payment_currency == 'JPY') ? 'selected' : ''); ?>>¥ • Japanese Yen</option>
|
1393 |
-
<option value="CAD" <?php echo(($row->payment_currency == 'CAD') ? 'selected' : ''); ?>>C$ • Canadian Dollar</option>
|
1394 |
-
<option value="MXN" <?php echo(($row->payment_currency == 'MXN') ? 'selected' : ''); ?>>Mex$ • Mexican Peso</option>
|
1395 |
-
<option value="HKD" <?php echo(($row->payment_currency == 'HKD') ? 'selected' : ''); ?>>HK$ • Hong Kong Dollar</option>
|
1396 |
-
<option value="HUF" <?php echo(($row->payment_currency == 'HUF') ? 'selected' : ''); ?>>Ft • Hungarian Forint</option>
|
1397 |
-
<option value="NOK" <?php echo(($row->payment_currency == 'NOK') ? 'selected' : ''); ?>>kr • Norwegian Kroner</option>
|
1398 |
-
<option value="NZD" <?php echo(($row->payment_currency == 'NZD') ? 'selected' : ''); ?>>NZ$ • New Zealand Dollar</option>
|
1399 |
-
<option value="SGD" <?php echo(($row->payment_currency == 'SGD') ? 'selected' : ''); ?>>S$ • Singapore Dollar</option>
|
1400 |
-
<option value="SEK" <?php echo(($row->payment_currency == 'SEK') ? 'selected' : ''); ?>>kr • Swedish Kronor</option>
|
1401 |
-
<option value="PLN" <?php echo(($row->payment_currency == 'PLN') ? 'selected' : ''); ?>>zl • Polish Zloty</option>
|
1402 |
-
<option value="AUD" <?php echo(($row->payment_currency == 'AUD') ? 'selected' : ''); ?>>A$ • Australian Dollar</option>
|
1403 |
-
<option value="DKK" <?php echo(($row->payment_currency == 'DKK') ? 'selected' : ''); ?>>kr • Danish Kroner</option>
|
1404 |
-
<option value="CHF" <?php echo(($row->payment_currency == 'CHF') ? 'selected' : ''); ?>>CHF • Swiss Francs</option>
|
1405 |
-
<option value="CZK" <?php echo(($row->payment_currency == 'CZK') ? 'selected' : ''); ?>>Kc • Czech Koruny</option>
|
1406 |
-
<option value="ILS" <?php echo(($row->payment_currency == 'ILS') ? 'selected' : ''); ?>>₪ • Israeli Sheqel</option>
|
1407 |
-
<option value="BRL" <?php echo(($row->payment_currency == 'BRL') ? 'selected' : ''); ?>>R$ • Brazilian Real</option>
|
1408 |
-
<option value="TWD" <?php echo(($row->payment_currency == 'TWD') ? 'selected' : ''); ?>>NT$ • Taiwan New Dollars</option>
|
1409 |
-
<option value="MYR" <?php echo(($row->payment_currency == 'MYR') ? 'selected' : ''); ?>>RM • Malaysian Ringgit</option>
|
1410 |
-
<option value="PHP" <?php echo(($row->payment_currency == 'PHP') ? 'selected' : ''); ?>>₱ • Philippine Peso</option>
|
1411 |
-
<option value="THB" <?php echo(($row->payment_currency == 'THB') ? 'selected' : ''); ?>>฿ • Thai Bahtv</option>
|
1412 |
-
</select>
|
1413 |
-
<p class="description"><?php _e('Choose the currency to be used for the payments made through your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1414 |
-
</div>
|
1415 |
-
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1416 |
-
<label class="wd-label" for="tax"><?php _e('Tax', WDFMInstance(self::PLUGIN)->prefix); ?> (%)</label>
|
1417 |
-
<input type="text" name="tax" id="tax" value="<?php echo $row->tax; ?>" class="text_area" onKeyPress="return check_isnum_point(event)" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1418 |
-
<p class="description"><?php _e('Specify the percentage of the tax. It will be calculated from the total payment amount of your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1419 |
-
</div>
|
1420 |
-
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1421 |
-
<label class="wd-label"><?php _e('Checkout Mode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1422 |
-
<input type="radio" name="checkout_mode" <?php echo $row->checkout_mode == 1 ? 'checked="checked"' : '' ?> id="checkout_mode-1" class="wd-radio" value="1" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1423 |
-
<label class="wd-label-radio" for="checkout_mode-1"><?php _e('Production', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1424 |
-
<input type="radio" name="checkout_mode" <?php echo $row->checkout_mode == 0 ? 'checked="checked"' : '' ?> id="checkout_mode-0" class="wd-radio" value="0" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1425 |
-
<label class="wd-label-radio" for="checkout_mode-0"><?php _e('Testmode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1426 |
-
</div>
|
1427 |
-
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1428 |
-
<label class="wd-label" for="paypal_email"><?php _e('Paypal email', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1429 |
-
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="#paypal_mode1" data-tab-id="payment" data-content-id="payment_fieldset" type="text" name="paypal_email" id="paypal_email" value="<?php echo $row->paypal_email; ?>" class="text_area" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1430 |
-
<p class="description"><?php _e('Provide the email address of a valid PayPal account. It will receive the payments made through your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1431 |
</div>
|
1432 |
</div>
|
1433 |
-
<div class="fm_payment_option_stripe">
|
1434 |
-
<?php
|
1435 |
-
if ( $stripe_addon['enable'] && !empty($stripe_addon['html']) ) {
|
1436 |
-
if (WDFMInstance(self::PLUGIN)->is_free) {
|
1437 |
-
echo $this->free_message(__('STRIPE add-on compatible with Premium version only', WDFMInstance(self::PLUGIN)->prefix));
|
1438 |
-
}
|
1439 |
-
else {
|
1440 |
-
echo $stripe_addon[ 'html' ];
|
1441 |
-
}
|
1442 |
-
}
|
1443 |
-
else {
|
1444 |
-
if (WDFMInstance(self::PLUGIN)->is_free) {
|
1445 |
-
echo $this->promo_box(__('This feature is available only in the Premium version', WDFMInstance(self::PLUGIN)->prefix), __('Requires STRIPE add-on.', WDFMInstance(self::PLUGIN)->prefix), 'https://web-dorado.com/products/wordpress-form/add-ons/stripe.html');
|
1446 |
-
}
|
1447 |
-
else {
|
1448 |
-
echo $this->free_message(__('This feature requires STRIPE add-on', WDFMInstance(self::PLUGIN)->prefix), 'https://web-dorado.com/products/wordpress-form/add-ons/stripe.html', __( 'Buy', WDFMInstance(self::PLUGIN)->prefix ));
|
1449 |
-
}
|
1450 |
-
}
|
1451 |
-
?>
|
1452 |
-
</div>
|
1453 |
</div>
|
1454 |
</div>
|
1455 |
</div>
|
1456 |
-
</div>
|
1457 |
-
</div>
|
1458 |
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1595 |
<?php
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
$
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
foreach ( $_params as $key => $_param ) {
|
1625 |
-
$key_select_or_input = '';
|
1626 |
-
$param_values = explode('***', $_param);
|
1627 |
-
$multiselect = explode('@@@', $param_values[2]);
|
1628 |
-
if ( in_array($param_values[0], $ids) ) { ?>
|
1629 |
-
<div id="condition_div<?php echo $k; ?>_<?php echo $key; ?>">
|
1630 |
-
<select id="field_labels<?php echo $k; ?>_<?php echo $key; ?>" class="fm_condition_field_labels" onchange="change_choices(this.options[this.selectedIndex].id+'_<?php echo $key; ?>','<?php echo $chose_ids; ?>', '<?php echo $chose_types; ?>', '<?php echo htmlspecialchars(addslashes($chose_paramss)); ?>')">
|
1631 |
-
<?php
|
1632 |
-
foreach ( $labels as $key1 => $value ) {
|
1633 |
-
if ( $param_values[0] == $ids[$key1] ) {
|
1634 |
-
$selected = 'selected="selected"';
|
1635 |
-
if ( $types[$key1] == "type_checkbox" || $types[$key1] == "type_paypal_checkbox" ) {
|
1636 |
-
$multiple = 'multiple="multiple" class="multiple_select"';
|
1637 |
-
}
|
1638 |
-
else {
|
1639 |
-
$multiple = '';
|
1640 |
}
|
1641 |
-
|
1642 |
-
|
1643 |
-
else {
|
1644 |
-
$selected = '';
|
1645 |
-
}
|
1646 |
-
if ( $field_label[$k] != $ids[$key1] ) {
|
1647 |
-
echo '<option id="' . $k . '_' . $key1 . '" value="' . $ids[$key1] . '" ' . $selected . '>' . $value . '</option>';
|
1648 |
-
}
|
1649 |
-
}
|
1650 |
-
?>
|
1651 |
-
</select>
|
1652 |
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1725 |
}
|
1726 |
else {
|
1727 |
-
$
|
1728 |
-
|
1729 |
-
if ( strpos($w_choices_array[$m], '[') === FALSE && strpos($w_choices_array[$m], ']') === FALSE ) {
|
1730 |
-
echo '<option id="choise_' . $k . '_' . $m . '" value="' . $w_choice . '" ' . $selected . '>' . $w_choices_array[$m] . '</option>';
|
1731 |
-
}
|
1732 |
-
}
|
1733 |
-
if ( $types[$key_select_or_input] == "type_address" ) {
|
1734 |
-
$w_countries = WDW_FM_Library(self::PLUGIN)->get_countries();
|
1735 |
-
$w_options = '';
|
1736 |
-
foreach ( $w_countries as $w_country ) {
|
1737 |
-
if ( in_array($w_country, $multiselect) ) {
|
1738 |
-
$selected = 'selected="selected"';
|
1739 |
}
|
1740 |
else {
|
1741 |
-
$
|
1742 |
}
|
1743 |
-
echo '<option value="' . $w_country . '" ' . $selected . '>' . $w_country . '</option>';
|
1744 |
}
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
if ( $key_select_or_input != '' && ($types[$key_select_or_input] == "type_paypal_price" || $types[$key_select_or_input] == "type_paypal_price_new") ) {
|
1754 |
-
$onkeypress_function = "onkeypress='return check_isnum_point(event)'";
|
1755 |
-
}
|
1756 |
-
else {
|
1757 |
-
$onkeypress_function = "";
|
1758 |
-
}
|
1759 |
-
}
|
1760 |
-
?>
|
1761 |
-
<input id="field_value<?php echo $k; ?>_<?php echo $key; ?>" type="text" value="<?php echo $param_values[2]; ?>" <?php echo $onkeypress_function; ?> class="fm_condition_field_input_value">
|
1762 |
-
<?php endif; ?>
|
1763 |
-
<span class="dashicons dashicons-trash" id="delete_condition<?php echo $k; ?>_<?php echo $key; ?>" onclick="delete_field_condition('<?php echo $k; ?>_<?php echo $key; ?>')"></span>
|
1764 |
-
</div>
|
1765 |
-
<?php
|
1766 |
}
|
1767 |
-
|
|
|
|
|
1768 |
}
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
}
|
1774 |
-
?>
|
1775 |
</div>
|
1776 |
</div>
|
1777 |
</div>
|
|
|
1778 |
</div>
|
1779 |
-
</div>
|
1780 |
-
<input type="hidden" id="condition" name="condition" value="<?php echo $row->condition; ?>" />
|
1781 |
-
</div>
|
1782 |
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
|
|
|
|
|
|
|
|
1843 |
<?php
|
1844 |
}
|
1845 |
?>
|
1846 |
-
</
|
1847 |
-
|
1848 |
-
}
|
1849 |
-
?>
|
1850 |
</div>
|
1851 |
</div>
|
1852 |
</div>
|
|
|
|
|
|
|
1853 |
</div>
|
1854 |
-
|
1855 |
-
<?php
|
1856 |
-
}
|
1857 |
-
?>
|
1858 |
-
</div>
|
1859 |
-
<div id="privacy_fieldset" class="adminform fm_fieldset_deactive">
|
1860 |
<div class="wd-table">
|
1861 |
-
<div class="wd-table-col-
|
1862 |
<div class="wd-box-section">
|
1863 |
<div class="wd-box-content">
|
1864 |
<div class="wd-group">
|
@@ -1915,6 +2027,7 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
1915 |
set_theme();
|
1916 |
});
|
1917 |
</script>
|
|
|
1918 |
<?php
|
1919 |
}
|
1920 |
|
@@ -1983,61 +2096,8 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
1983 |
*
|
1984 |
*/
|
1985 |
public function form_layout( $params = array() ) {
|
1986 |
-
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-codemirror');
|
1987 |
-
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-layout');
|
1988 |
-
|
1989 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-codemirror');
|
1990 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-formatting');
|
1991 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-clike');
|
1992 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-css');
|
1993 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-javascript');
|
1994 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-xml');
|
1995 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-php');
|
1996 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-htmlmixed');
|
1997 |
-
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-form-advanced-layout');
|
1998 |
-
|
1999 |
-
$id = $params['id'];
|
2000 |
-
$page = $params['page'];
|
2001 |
-
$page_title = $params['page_title'];
|
2002 |
-
$page_url = $params['page_url'];
|
2003 |
-
$back_url = $params['back_url'];
|
2004 |
-
$row = $params['row'];
|
2005 |
-
|
2006 |
-
$title = array(
|
2007 |
-
'title' => $page_title,
|
2008 |
-
'title_class' => 'wd-header',
|
2009 |
-
'add_new_button' => FALSE,
|
2010 |
-
);
|
2011 |
-
$buttons = array(
|
2012 |
-
'save' => array(
|
2013 |
-
'title' => __('Update', WDFMInstance(self::PLUGIN)->prefix),
|
2014 |
-
'value' => 'save',
|
2015 |
-
'onclick' => 'fm_apply_advanced_layout(\'apply_layout\');',
|
2016 |
-
'class' => 'button-primary'
|
2017 |
-
),
|
2018 |
-
'back' => array(
|
2019 |
-
'title' => __('Back to Form', WDFMInstance(self::PLUGIN)->prefix),
|
2020 |
-
'value' => 'back',
|
2021 |
-
'onclick' => 'window.open(\''. $back_url .'\', \'_self\'); return false;',
|
2022 |
-
'class' => 'button'
|
2023 |
-
)
|
2024 |
-
);
|
2025 |
-
|
2026 |
-
ob_start();
|
2027 |
-
echo $this->title( $title );
|
2028 |
-
echo $this->buttons( $buttons );
|
2029 |
echo $this->body_form_layout( $params );
|
2030 |
-
|
2031 |
-
// Pass the content to form.
|
2032 |
-
$form_attr = array(
|
2033 |
-
'id' => WDFMInstance(self::PLUGIN)->css_prefix . 'ApplyLayoutForm',
|
2034 |
-
'name' => 'adminForm',
|
2035 |
-
'class' => WDFMInstance(self::PLUGIN)->css_prefix . 'advanced_layout wd-form',
|
2036 |
-
'current_id' => $id,
|
2037 |
-
'enctype' => 'multipart/form-data',
|
2038 |
-
'action' => add_query_arg( array('page' => $page, 'current_id' => $id ), $page_url),
|
2039 |
-
);
|
2040 |
-
echo $this->form(ob_get_clean(), $form_attr);
|
2041 |
}
|
2042 |
|
2043 |
/**
|
@@ -2102,26 +2162,8 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
2102 |
* @param array $params
|
2103 |
*/
|
2104 |
public function display_options( $params = array() ) {
|
2105 |
-
$id = $params['id'];
|
2106 |
-
$row = $params['row'];
|
2107 |
-
$page = $params['page'];
|
2108 |
-
$page_url = $params['page_url'];
|
2109 |
-
$fieldset_id = $params['fieldset_id'];
|
2110 |
-
|
2111 |
-
if($fieldset_id != "embedded") $row->type = $fieldset_id;
|
2112 |
-
|
2113 |
-
ob_start();
|
2114 |
echo $this->body_display_options($params);
|
2115 |
-
|
2116 |
-
// Pass the content to form.
|
2117 |
-
$form_attr = array(
|
2118 |
-
'id' => 'adminForm',
|
2119 |
-
'name' => 'adminForm',
|
2120 |
-
'class' => WDFMInstance(self::PLUGIN)->prefix . '_display_options wd-form',
|
2121 |
-
'current_id' => $id,
|
2122 |
-
'action' => add_query_arg( array('page' => $page, 'current_id' => $id ), $page_url),
|
2123 |
-
);
|
2124 |
-
echo $this->form(ob_get_clean(), $form_attr);
|
2125 |
}
|
2126 |
|
2127 |
/**
|
@@ -2136,60 +2178,74 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
2136 |
$display_on_list = $params['display_on_list'];
|
2137 |
$animation_effects = $params['animation_effects'];
|
2138 |
$back_url = $params['back_url'];
|
2139 |
-
|
2140 |
-
|
2141 |
-
'title' => $page_title,
|
2142 |
-
'title_class' => 'wd-header',
|
2143 |
-
'add_new_button' => FALSE,
|
2144 |
-
));
|
2145 |
-
|
2146 |
-
$buttons = array(
|
2147 |
-
'save' => array(
|
2148 |
-
'title' => __('Update', WDFMInstance(self::PLUGIN)->prefix),
|
2149 |
-
'value' => 'save',
|
2150 |
-
'onclick' => 'fm_apply_options(\'apply_display_options\');',
|
2151 |
-
'class' => 'button-primary',
|
2152 |
-
),
|
2153 |
-
'back' => array(
|
2154 |
-
'title' => __('Back to Form', WDFMInstance(self::PLUGIN)->prefix),
|
2155 |
-
'value' => 'back',
|
2156 |
-
'onclick' => 'window.open(\''. $back_url .'\', \'_self\'); return false;',
|
2157 |
-
'class' => 'button',
|
2158 |
-
)
|
2159 |
-
);
|
2160 |
-
|
2161 |
-
echo $this->buttons($buttons);
|
2162 |
?>
|
2163 |
|
2164 |
<div class="fm-clear"></div>
|
2165 |
<div class="display-options-container">
|
2166 |
<div id="type_settings_fieldset" class="adminform">
|
2167 |
-
|
2168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2169 |
<div class="wd-box-section">
|
2170 |
-
<div class="wd-box-content">
|
2171 |
<span>
|
2172 |
<div class="fm-row fm-form-types">
|
2173 |
<label class="wd-label"><?php _e('Form Type', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
2174 |
-
<label>
|
2175 |
<input type="radio" name="form_type" value="embedded" onclick="change_form_type('embedded'); change_hide_show('fm-embedded');"
|
2176 |
<?php echo $row->type == 'embedded' ? 'checked="checked"' : '' ?>>
|
2177 |
<span class="fm-embedded <?php echo $row->type == 'embedded' ? ' active' : '' ?>"></span>
|
2178 |
<p><?php _e('Embedded', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2179 |
</label>
|
2180 |
-
<label>
|
2181 |
<input type="radio" name="form_type" value="popover" onclick="change_form_type('popover'); change_hide_show('fm-popover');"
|
2182 |
<?php echo $row->type == 'popover' ? 'checked="checked"' : '' ?>>
|
2183 |
<span class="fm-popover <?php echo $row->type == 'popover' ? ' active' : '' ?>"></span>
|
2184 |
<p><?php _e('Popup', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2185 |
</label>
|
2186 |
-
<label>
|
2187 |
<input type="radio" name="form_type" value="topbar" onclick="change_form_type('topbar'); change_hide_show('fm-topbar');"
|
2188 |
<?php echo $row->type == 'topbar' ? 'checked="checked"' : '' ?>>
|
2189 |
<span class="fm-topbar <?php echo $row->type == 'topbar' ? ' active' : '' ?>"></span>
|
2190 |
<p><?php _e('Topbar', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2191 |
</label>
|
2192 |
-
<label>
|
2193 |
<input type="radio" name="form_type" value="scrollbox" onclick="change_form_type('scrollbox'); change_hide_show('fm-scrollbox');"<?php echo $row->type == 'scrollbox' ? 'checked="checked"' : '' ?>>
|
2194 |
<span class="fm-scrollbox <?php echo $row->type == 'scrollbox' ? ' active' : '' ?>"></span>
|
2195 |
<p><?php _e('Scrollbox', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
@@ -2200,16 +2256,15 @@ class FMViewManage_fmc extends FMAdminView_fmc {
|
|
2200 |
</div>
|
2201 |
</div>
|
2202 |
</div>
|
2203 |
-
|
2204 |
<div class="wd-table">
|
2205 |
-
<div class="wd-table-col-
|
2206 |
<div class="wd-box-section">
|
2207 |
-
<div class="wd-box-content">
|
2208 |
<span class="wd-group fm-embedded <?php echo $row->type == 'embedded' ? 'fm-show' : 'fm-hide' ?>">
|
2209 |
<label class="wd-label"><?php _e('Form Placement', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
2210 |
<div id="fm-embedded-element">
|
2211 |
<p><?php _e('Use', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2212 |
-
<input type="text" value='<?php echo (WDFMInstance(self::PLUGIN)->is_free == 2 ? '[wd_contact_form id="' . $row->form_id . '"]' : '[Form id="' . $row->form_id . '"]'); ?>' onclick="fm_select_value(this)" readonly="readonly"
|
2213 |
<p><?php _e('shortcode to display the form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2214 |
</div>
|
2215 |
</span>
|
6 |
*/
|
7 |
public function __construct() {
|
8 |
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-tables');
|
9 |
+
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-icons');
|
10 |
|
11 |
wp_enqueue_script('jquery');
|
12 |
wp_enqueue_script('jquery-ui-sortable');
|
13 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-admin');
|
14 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-manage');
|
15 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '_jquery.ui.touch-punch.min');
|
|
|
|
|
|
|
16 |
}
|
17 |
|
18 |
/**
|
21 |
* @param array $params
|
22 |
*/
|
23 |
public function display( $params = array() ) {
|
24 |
+
$this->import_popup_div();
|
25 |
ob_start();
|
26 |
echo $this->body($params);
|
27 |
// Pass the content to form.
|
160 |
<?php echo ucfirst($row_data->type); ?>
|
161 |
<div class="row-actions">
|
162 |
<span>
|
163 |
+
<a href="<?php echo add_query_arg(array('tab' => '3'), $edit_url); ?>"><?php _e('Set display options', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
164 |
</span>
|
165 |
</div>
|
166 |
</td>
|
187 |
<input type="text" value='<?php echo (WDFMInstance(self::PLUGIN)->is_free == 2 ? '[wd_contact_form id="' . $row_data->id . '"]' : '[Form id="' . $row_data->id . '"]'); ?>' onclick="fm_select_value(this)" size="12" readonly="readonly" class="fm_shortcode" />
|
188 |
</td>
|
189 |
<td data-colname="<?php _e('PHP function', WDFMInstance(self::PLUGIN)->prefix); ?>">
|
190 |
+
<input type="text" value='<?php echo (WDFMInstance(self::PLUGIN)->is_free == 2 ? '<?php if( function_exists("wd_contact_form_maker") ) { wd_contact_form_maker(' . $row_data->id . ', "' . $row_data->type . '"); } ?>' : '<?php if( function_exists("wd_form_maker") ) { wd_form_maker(' . $row_data->id . ', "' . $row_data->type . '"); } ?>'); ?>' onclick="fm_select_value(this)" readonly="readonly" class="fm_php_function" />
|
191 |
</td>
|
192 |
</tr>
|
193 |
<?php
|
219 |
* @param array $params
|
220 |
*/
|
221 |
public function edit( $params = array() ) {
|
222 |
+
|
223 |
// TODO: Change this function to standard.
|
224 |
echo $this->topbar();
|
225 |
|
226 |
+
wp_enqueue_style('thickbox');
|
227 |
+
wp_enqueue_style('jquery-ui-tooltip');
|
228 |
+
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-phone_field_css');
|
229 |
+
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-jquery-ui');
|
230 |
+
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-codemirror');
|
231 |
+
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-layout');
|
232 |
|
233 |
+
wp_enqueue_script('thickbox');
|
234 |
+
wp_enqueue_script('jquery-ui-widget');
|
235 |
+
wp_enqueue_script('jquery-ui-slider');
|
236 |
+
wp_enqueue_script('jquery-ui-spinner');
|
237 |
+
wp_enqueue_script('jquery-ui-datepicker');
|
238 |
+
wp_enqueue_script('jquery-ui-tabs');
|
239 |
+
wp_enqueue_script('jquery-ui-tooltip');
|
240 |
if ( function_exists('wp_add_inline_script') ) { // Since Wordpress 4.5.0
|
241 |
wp_add_inline_script('jquery-ui-datepicker', WDW_FM_Library(self::PLUGIN)->localize_ui_datepicker());
|
242 |
}
|
250 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-formmaker_div');
|
251 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-manage-edit');
|
252 |
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-add-fields');
|
253 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-form-options');
|
254 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-codemirror');
|
255 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-formatting');
|
256 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-clike');
|
257 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-css');
|
258 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-javascript');
|
259 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-xml');
|
260 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-php');
|
261 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-htmlmixed');
|
262 |
+
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-codemirror');
|
263 |
+
wp_enqueue_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-layout');
|
264 |
+
|
265 |
+
wp_enqueue_script(WDFMInstance(self::PLUGIN)->handle_prefix . '-form-advanced-layout');
|
266 |
+
|
267 |
+
// enqueue add-ons style/scripts
|
268 |
+
do_action('fm_admin_print_scripts');
|
269 |
|
270 |
$id = $params['id'];
|
271 |
$row = $params['row'];
|
278 |
$form_preview_link = $params['form_preview_link'];
|
279 |
$animation_effects = $params['animation_effects'];
|
280 |
|
281 |
+
$stripe_addon = $params['stripe_addon'];
|
282 |
+
$form_active_tab = WDW_FM_Library(self::PLUGIN)->get('tab', '0');
|
283 |
+
$fieldset_id = WDW_FM_Library(self::PLUGIN)->get( 'fieldset_id', 'general' );
|
284 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
285 |
<script type="text/javascript">
|
286 |
gen = <?php echo $row->counter; ?>;
|
287 |
is_sortable = <?php echo $row->sortable ?>;
|
302 |
theme_edit_url = '<?php echo add_query_arg( array('page' => 'themes' . WDFMInstance(self::PLUGIN)->menu_postfix, 'task' =>'edit'), $page_url); ?>';
|
303 |
jQuery(document).ready(function () {
|
304 |
set_theme();
|
305 |
+
|
306 |
+
jQuery( function() {
|
307 |
+
jQuery( "#fm-tabs" ).tabs({
|
308 |
+
active: "<?php echo $form_active_tab; ?>",
|
309 |
+
beforeLoad: function( event, ui ) {
|
310 |
+
/* Stop loading if tab content is already loaded. */
|
311 |
+
if (ui.panel.html() != '' && ui.panel.html() != '<div class="fm-tab-loading-indicator"><?php echo addslashes(__('Loading...', WDFMInstance(self::PLUGIN)->prefix)); ?></div>') {
|
312 |
+
event.stopPropagation();
|
313 |
+
event.preventDefault();
|
314 |
+
}
|
315 |
+
else {
|
316 |
+
ui.panel.html('<div class="fm-tab-loading-indicator"><?php echo addslashes(__('Loading...', WDFMInstance(self::PLUGIN)->prefix)); ?></div>');
|
317 |
+
}
|
318 |
+
if (ui.tab.index() != 0) {
|
319 |
+
jQuery('.button_revisions').addClass('fm-hide');
|
320 |
+
}
|
321 |
+
else {
|
322 |
+
jQuery('.button_revisions').removeClass('fm-hide');
|
323 |
+
}
|
324 |
+
},
|
325 |
+
load: function( event, ui ) {
|
326 |
+
var tabs_loaded_input = jQuery('#fm_tabs_loaded');
|
327 |
+
var tabs_loaded = JSON.parse(tabs_loaded_input.val());
|
328 |
+
tabs_loaded.push(ui.tab[0].id);
|
329 |
+
tabs_loaded_input.val(JSON.stringify(tabs_loaded));
|
330 |
+
//trigger custom event to pretend document ready
|
331 |
+
if (ui.tab[0].id === 'form_options_tab') {
|
332 |
+
jQuery(document).trigger('fm_tab_loaded');
|
333 |
+
}
|
334 |
+
if (ui.tab[0].id === 'form_layout_tab') {
|
335 |
+
jQuery(document).trigger('fm_tab_layout_loaded');
|
336 |
+
}
|
337 |
+
if (ui.tab[0].id === 'form_email_options_tab') {
|
338 |
+
jQuery(document).trigger('fm_tab_email_loaded');
|
339 |
+
}
|
340 |
+
ui.panel.find('.wp-editor-area').each(function () {
|
341 |
+
var cur_id = jQuery(this).attr('id');
|
342 |
+
tinymce.execCommand( 'mceAddEditor', true, cur_id );
|
343 |
+
quicktags({id : cur_id});
|
344 |
+
});
|
345 |
+
},
|
346 |
+
activate: function( event, ui ) {
|
347 |
+
jQuery('#fm_tab_active').val(ui.newTab.index());
|
348 |
+
},
|
349 |
+
beforeActivate: function( event, ui ) {
|
350 |
+
if (ui.newTab.index() != 0) {
|
351 |
+
jQuery('.button_revisions').addClass('fm-hide');
|
352 |
+
}
|
353 |
+
else {
|
354 |
+
jQuery('.button_revisions').removeClass('fm-hide');
|
355 |
+
}
|
356 |
+
}
|
357 |
+
});
|
358 |
+
} );
|
359 |
});
|
360 |
</script>
|
361 |
<form class="wrap" id="manage_form" method="post" autocomplete="off" action="admin.php?page=manage<?php echo WDFMInstance(self::PLUGIN)->menu_postfix; ?>">
|
362 |
<?php
|
363 |
// Generate message container by message id or directly by message.
|
364 |
+
|
365 |
$message_id = WDW_FM_Library(self::PLUGIN)->get('message', 0);
|
366 |
$message = WDW_FM_Library(self::PLUGIN)->get('msg', '');
|
367 |
+
if( isset($params['revisions_status']) && $params['revisions_status'] ) {
|
368 |
+
if ( $params['revision_date'] == 0 ) {
|
369 |
+
$rev_date = '';
|
370 |
+
} else {
|
371 |
+
$rev_date = 'at ' . date('Y-m-d H:i:s', $params['revision_date']);
|
372 |
+
}
|
373 |
+
$message = sprintf(__("You need to click the \"Restore this revision\" button to save the changes. Revision number %u %s", WDFMInstance(self::PLUGIN)->prefix), $params['rev_index'], $rev_date);
|
374 |
+
echo WDW_FM_Library(self::PLUGIN)->message_id( 0, $message, 'notice notice-warning wd-notice' );
|
375 |
+
|
376 |
+
} else {
|
377 |
+
echo WDW_FM_Library(self::PLUGIN)->message_id($message_id, $message);
|
378 |
+
}
|
379 |
?>
|
380 |
<?php wp_nonce_field(WDFMInstance(self::PLUGIN)->nonce, WDFMInstance(self::PLUGIN)->nonce); ?>
|
381 |
<h2 class="fm-h2-message"></h2>
|
385 |
<input id="title" name="title" value="<?php echo $row->title; ?>" data-initial-value="<?php echo $row->title; ?>" class="fm-check-change" type="text" />
|
386 |
<div class="fm-page-actions">
|
387 |
<?php
|
388 |
+
if ( isset($params['revisions_total']) && $params['revisions_total'] > 1 ) {
|
389 |
+
?>
|
390 |
+
<button class="button button-large button_revisions" href="#" onclick="fm_popup_toggle('fm_revision_popup_container'); return false;"><?php _e('Revisions', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
391 |
+
<?php
|
392 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
?>
|
394 |
+
<button class="button button-primary button-large" onclick="if (fm_check_required('title', '<?php _e('Form Title', WDFMInstance(self::PLUGIN)->prefix); ?>') || !wd_fm_apply_options() || !FormManageSubmitButton()) { return false;}; fm_set_input_value('task', 'apply');">
|
395 |
<?php
|
396 |
+
if ( $row->title && isset($params['revisions_total']) && !$params['revisions_status'] ) {
|
397 |
_e('Update', WDFMInstance(self::PLUGIN)->prefix);
|
398 |
+
} else if ( isset($params['revisions_total']) && $params['revisions_status'] ) {
|
399 |
+
_e('Restore this revision', WDFMInstance(self::PLUGIN)->prefix);
|
400 |
+
} else {
|
401 |
_e('Publish', WDFMInstance(self::PLUGIN)->prefix);
|
402 |
}
|
403 |
?>
|
404 |
</button>
|
405 |
+
<span class="fm_vr"></span>
|
406 |
<button class="button preview-button button-large"<?php if (!$row->title) echo ' disabled="disabled"' ?> <?php echo ($row->title) ? 'onclick="window.open(\''. add_query_arg( array('wdform_id' => $id), $form_preview_link ) .'\', \'_blank\'); return false;"' : ''; ?>><?php _e('Preview', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
407 |
</div>
|
408 |
</div>
|
409 |
<div class="fm-clear"></div>
|
410 |
</div>
|
411 |
+
<div id="fm-tabs">
|
412 |
+
<input type="hidden" id="fm_tabs_loaded" name="fm_tabs_loaded" value="[]" />
|
413 |
+
<input type="hidden" id="fm_tab_active" name="fm_tab_active" value="<?php echo $form_active_tab; ?>" />
|
414 |
+
<ul class="fm-edit-tabs">
|
415 |
+
<li id="form_edit_tab"><a href="#form_edit_tab_content"><?php _e('Fields', WDFMInstance(self::PLUGIN)->prefix); ?></a></li>
|
416 |
+
<li id="form_header_tab"><a href="#form_header_tab_content"><?php _e('Form Header', WDFMInstance(self::PLUGIN)->prefix); ?></a></li>
|
417 |
+
|
418 |
+
<?php if( $id ) { ?>
|
419 |
+
<li id="form_email_options_tab"><a href="<?php echo add_query_arg(array('action' => 'manage' . WDFMInstance(self::PLUGIN)->menu_postfix, 'task' => 'email_options', 'current_id' => $id), admin_url('admin-ajax.php')) ?>"><?php _e('Email Options', WDFMInstance(self::PLUGIN)->prefix); ?></a></li>
|
420 |
+
<li id="form_display_tab"><a href="<?php echo add_query_arg(array('action' => 'manage' . WDFMInstance(self::PLUGIN)->menu_postfix, 'task' => 'display_options', 'current_id' => $id), admin_url('admin-ajax.php')) ?>"><?php _e('Appearance', WDFMInstance(self::PLUGIN)->prefix); ?></a></li>
|
421 |
+
<?php if (!empty($params['advanced_layout_url'])) { ?>
|
422 |
+
<li id="form_layout_tab"><a href="<?php echo add_query_arg(array('action' => 'manage' . WDFMInstance(self::PLUGIN)->menu_postfix, 'task' => 'form_layout', 'current_id' => $id), admin_url('admin-ajax.php')) ?>"><?php _e('Layout', WDFMInstance(self::PLUGIN)->prefix); ?></a></li>
|
423 |
+
<?php } ?>
|
424 |
+
<?php } ?>
|
425 |
+
<?php if( $id ) { ?>
|
426 |
+
|
427 |
+
<li id="form_options_tab"><a href="<?php echo add_query_arg(array('action' => 'manage' . WDFMInstance(self::PLUGIN)->menu_postfix, 'task' => 'form_options', 'current_id' => $id, 'fieldset_id' => $fieldset_id), admin_url('admin-ajax.php')) ?>"><span class="tab-label"><?php _e('Settings', WDFMInstance(self::PLUGIN)->prefix); ?></span></a></li>
|
428 |
+
<?php } ?>
|
429 |
+
</ul>
|
430 |
+
<div id="form_edit_tab_content">
|
431 |
+
<?php echo $this->add_fields($params); ?>
|
432 |
+
<?php echo $this->limitation_alert(); ?>
|
433 |
+
<?php if (!function_exists('the_editor')) { ?>
|
434 |
+
<iframe id="tinymce" style="display: none;"></iframe>
|
435 |
+
<?php } ?>
|
436 |
+
<div id="fm_delete_page_popup_container" class="hidden fm_popup_container">
|
437 |
+
<div class="fm-popup-overlay" onclick="fm_popup_toggle('fm_delete_page_popup_container'); return false;"></div>
|
438 |
+
<div id="fm-delete-page-content" class="fm-popup-wrap">
|
439 |
+
<input type="hidden" id="fm_delete_page_id" value="" />
|
440 |
+
<div class="fm-alert-header">
|
441 |
+
<label><?php _e('You are about to delete a page from your form.', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
442 |
+
<label><?php _e('Do you want to also Remove all the fields on that page?', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
443 |
+
<label><?php _e('If you decide to preserve the fields, they will be moved to the previous page.', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
444 |
+
</div>
|
445 |
+
<div class="fm-alert-body">
|
446 |
+
<button class="button button-primary button-large fm-button-delete" onclick="remove_page_only(); fm_popup_toggle('fm_delete_page_popup_container'); return false;"><?php _e('Delete page and preserve the fields', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
447 |
+
<button class="button button-primary button-large fm-button-delete" onclick="remove_page_all(); fm_popup_toggle('fm_delete_page_popup_container'); return false;"><?php _e('Delete page and the fields', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
448 |
+
<button class="button button-large" onclick="fm_popup_toggle('fm_delete_page_popup_container'); return false;"><?php _e('Cancel', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
449 |
+
</div>
|
450 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
</div>
|
452 |
+
<div id="fm_delete_field_popup_container" class="hidden fm_popup_container">
|
453 |
+
<div class="fm-popup-overlay" onclick="fm_popup_toggle('fm_delete_field_popup_container'); return false;"></div>
|
454 |
+
<div id="fm-delete-field-content" class="fm-popup-wrap">
|
455 |
+
<input type="hidden" id="fm_delete_field_id" value="" />
|
456 |
+
<div class="fm-alert-header">
|
457 |
+
<label><?php _e('Are you sure you want to delete this field?', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
458 |
+
</div>
|
459 |
+
<div class="fm-alert-body">
|
460 |
+
<button class="button button-primary button-large fm-button-delete" onclick="remove_row(jQuery('#fm_delete_field_id').val()); fm_popup_toggle('fm_delete_field_popup_container'); return false;"><?php _e('Delete', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
461 |
+
<button class="button button-large" onclick="fm_popup_toggle('fm_delete_field_popup_container'); return false;"><?php _e('Cancel', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
462 |
+
</div>
|
463 |
+
</div>
|
464 |
</div>
|
465 |
+
<div id="fm_delete_column_popup_container" class="hidden fm_popup_container">
|
466 |
+
<div class="fm-popup-overlay" onclick="fm_popup_toggle('fm_delete_column_popup_container'); return false;"></div>
|
467 |
+
<div id="fm-delete-column-content" class="fm-popup-wrap">
|
468 |
+
<div class="fm-alert-header">
|
469 |
+
<label><?php _e('Are you sure you want to delete this column?', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
470 |
+
</div>
|
471 |
+
<div class="fm-alert-body">
|
472 |
+
<button class="button button-primary button-large fm-button-delete" onclick="fm_remove_column(); fm_popup_toggle('fm_delete_column_popup_container'); return false;"><?php _e('Delete', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
473 |
+
<button class="button button-large" onclick="fm_popup_toggle('fm_delete_column_popup_container'); return false;"><?php _e('Cancel', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
474 |
+
</div>
|
475 |
+
</div>
|
476 |
+
</div>
|
477 |
+
<div id="fm_delete_row_popup_container" class="hidden fm_popup_container">
|
478 |
+
<div class="fm-popup-overlay" onclick="fm_popup_toggle('fm_delete_row_popup_container'); return false;"></div>
|
479 |
+
<div id="fm-delete-row-content" class="fm-popup-wrap">
|
480 |
+
<div class="fm-alert-header">
|
481 |
+
<label><?php _e('You are about to delete a column from your form.', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
482 |
+
<label><?php _e('Do you want to also Remove all the fields in that column?', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
483 |
+
<label><?php _e('If you decide to preserve the fields, they will be moved to the previous column.', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
484 |
+
</div>
|
485 |
+
<div class="fm-alert-body">
|
486 |
+
<button class="button button-primary button-large fm-button-delete" onclick="fm_remove_section(false); fm_popup_toggle('fm_delete_row_popup_container'); return false;"><?php _e('Delete column and preserve the fields', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
487 |
+
<button class="button button-primary button-large fm-button-delete" onclick="fm_remove_section(true); fm_popup_toggle('fm_delete_row_popup_container'); return false;"><?php _e('Delete column and the fields', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
488 |
+
<button class="button button-large" onclick="fm_popup_toggle('fm_delete_row_popup_container'); return false;"><?php _e('Cancel', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
489 |
+
</div>
|
490 |
+
</div>
|
491 |
+
</div>
|
492 |
+
<div id="fm_revision_popup_container" class="hidden fm_popup_container">
|
493 |
+
<div class="fm-popup-overlay" onclick="fm_popup_toggle('fm_revision_popup_container'); return false;"></div>
|
494 |
+
<div id="fm_revision-content" class="fm-popup-wrap">
|
495 |
<div class="fm-section-header">
|
496 |
+
<div class="fm-section-header-title">
|
497 |
+
<label><?php _e('Revisions', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
498 |
+
</div>
|
499 |
+
<span class="fm-ico-delete" onclick="fm_popup_toggle('fm_revision_popup_container'); return false;"></span>
|
500 |
</div>
|
501 |
<div class="fm-section">
|
502 |
+
<?php
|
503 |
+
$revisions = '';
|
504 |
+
$ind = 0;
|
505 |
+
if( isset($params['revisions']) && isset($params['revisions_total']) ) {
|
506 |
+
$revisions = $params['revisions'];
|
507 |
+
$ind = $params['revisions_total']-1;
|
508 |
+
}
|
509 |
+
if( isset($params['current_revision']) && $revisions != '' ) {
|
510 |
+
$cur_rev = $params['current_revision'];
|
511 |
+
?>
|
512 |
+
<div class="fm_row fm_rev_header">
|
513 |
+
<div class="fm_rev_index"><?php echo _e('Last saved:', WDFMInstance(self::PLUGIN)->prefix) ?></div>
|
514 |
+
<div class="fm_rev_date"><?php echo !empty($cur_rev->date) ? date('Y-m-d', $cur_rev->date) : _e('Unknown date', WDFMInstance(self::PLUGIN)->prefix) ?></div>
|
515 |
+
<div class="fm_rev_time"><?php echo !empty($cur_rev->date) ? date('H:i:s', $cur_rev->date) : '' ?></div>
|
516 |
+
<div class="fm_rev_button">
|
517 |
+
<?php if( $cur_rev->cur == 1 ) {
|
518 |
+
if ( $params['revisions_status'] ) {
|
519 |
+
$edit_url = add_query_arg(array(
|
520 |
+
'page' => 'manage_fm',
|
521 |
+
'task' => 'edit',
|
522 |
+
'current_id' => $row->id
|
523 |
+
), admin_url('admin.php'));
|
524 |
+
?>
|
525 |
+
<a class="button button-large" href="<?php echo $edit_url; ?>"><?php _e('Go Back', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
526 |
<?php
|
527 |
+
} else { ?>
|
528 |
+
<a class="fm_not-active" disabled href=""><?php _e('Current', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
529 |
+
<?php }
|
530 |
+
}?>
|
531 |
+
</div>
|
532 |
+
</div>
|
533 |
+
|
534 |
+
<div class="fm_row fm_title_row">
|
535 |
+
<div class="fm_rev_index"><?php echo _e('Number', WDFMInstance(self::PLUGIN)->prefix) ?></div>
|
536 |
+
<div class="fm_rev_date"><?php echo _e('Date', WDFMInstance(self::PLUGIN)->prefix) ?></div>
|
537 |
+
<div class="fm_rev_time"><?php echo _e('Time', WDFMInstance(self::PLUGIN)->prefix) ?></div>
|
538 |
+
</div>
|
539 |
+
<div class="revision_content">
|
540 |
+
<?php
|
541 |
+
foreach ( $revisions as $revision ) {
|
542 |
+
if( $revision->cur != 1 ){
|
543 |
?>
|
544 |
+
<div class="fm_row <?php if ( $revision->cur == 1 )
|
545 |
+
echo 'fm_cur' ?>">
|
546 |
+
<div class="fm_rev_index"><?php echo $ind ?></div>
|
547 |
+
<div class="fm_rev_date"><?php echo !empty($revision->date) ? date('Y-m-d', $revision->date) : _e('Unknown date', WDFMInstance(self::PLUGIN)->prefix) ?></div>
|
548 |
+
<div class="fm_rev_time"><?php echo !empty($revision->date) ? date('H:i:s', $revision->date) : '' ?></div>
|
549 |
+
<div class="fm_rev_button">
|
550 |
+
<?php
|
551 |
+
if ( $row->backup_id == $revision->backup_id && $revision->cur != 1 ) {
|
552 |
+
echo "<span class='curr_rev_button'>" . __('Current', WDFMInstance(self::PLUGIN)->prefix) . "</span>";
|
553 |
+
}
|
554 |
+
else { ?>
|
555 |
+
<button class="button undo-button button-large button-primary" onclick="if (fm_check_required('title', 'Form Title') || !FormManageSubmitButton()) {return false;}; jQuery('#saving_text').html('Undo'); fm_set_input_value('backup_id', <?php echo $revision->backup_id; ?>); fm_set_input_value('rev_id', <?php echo $ind; ?>); fm_set_input_value('task', 'undo');">
|
556 |
+
<span></span>
|
557 |
+
<?php
|
558 |
+
_e('View', WDFMInstance(self::PLUGIN)->prefix);
|
559 |
+
?>
|
560 |
+
</button>
|
561 |
+
<?php } ?>
|
562 |
+
</div>
|
563 |
+
</div>
|
564 |
+
<?php
|
565 |
+
$ind--;
|
566 |
+
}
|
567 |
+
} ?>
|
568 |
</div>
|
569 |
+
<?php
|
570 |
+
}
|
571 |
+
?>
|
572 |
+
</div>
|
573 |
+
</div>
|
574 |
+
</div>
|
575 |
+
|
576 |
+
<div class="fm-edit-content">
|
577 |
+
<div style="display: table; width: 100%;" id="page_bar">
|
578 |
+
<div id="page_navigation" style="display: table-row;">
|
579 |
+
<div align="center" id="pages" show_title="<?php echo $row->show_title; ?>" show_numbers="<?php echo $row->show_numbers; ?>" type="<?php echo $row->pagination; ?>" style="display: table-cell; width:90%;"></div>
|
580 |
+
<div align="left" id="edit_page_navigation" title="<?php _e('Edit page navigation.', WDFMInstance(self::PLUGIN)->prefix); ?>"></div>
|
581 |
</div>
|
582 |
</div>
|
583 |
+
<div id="take" class="main">
|
584 |
+
<?php echo $row->form_front; ?>
|
585 |
+
<div class="wdform_column ui-sortable" id="add_field_cont">
|
586 |
+
|
587 |
+
<div id="add_field" class="ui-sortable-handle">
|
588 |
+
<div class="first-time-use">
|
589 |
+
<span class="first-time-use-close fm-ico-close"></span>
|
590 |
+
<?php _e('Drag icon to the form to add a field.', WDFMInstance(self::PLUGIN)->prefix); ?>
|
591 |
+
</div>
|
592 |
+
|
593 |
+
<div type="type_text" class="wdform_field">
|
594 |
+
<div class="add-new-button button-primary" title="<?php _e('Drag icon to the form or click here to add a field.', WDFMInstance(self::PLUGIN)->prefix); ?>">
|
595 |
+
<span class="fm-ico-draggable"></span>
|
596 |
+
<?php _e('New Field', WDFMInstance(self::PLUGIN)->prefix); ?>
|
597 |
+
</div>
|
598 |
+
</div>
|
599 |
+
</div>
|
600 |
+
</div>
|
601 |
+
<div class="wdform_row_empty"><div onclick="fm_add_page(); return false;"><span class="add_row_icon fm-ico-plus-circle"></span><span class="add_row_button"><?php _e('Add Page', WDFMInstance(self::PLUGIN)->prefix); ?></span></div></div>
|
602 |
</div>
|
603 |
+
</div>
|
604 |
+
</div>
|
605 |
+
<div id="form_header_tab_content">
|
606 |
+
<div id="fm-header-content">
|
607 |
+
<div class="wd-table">
|
608 |
+
<div class="wd-table-col-100">
|
609 |
+
<div class="wd-box-section">
|
610 |
+
<div class="wd-box-content">
|
611 |
+
<div class="wd-group">
|
612 |
+
<label class="wd-label"><?php _e('Show header', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
613 |
+
<input type="radio" id="header_hide-1" class="wd-radio" name="header_hide" value="1" data-initial-value="<?php echo $row->header_hide; ?>" <?php echo $row->header_hide == '1' ? 'checked="checked"' : '' ?> />
|
614 |
+
<label class="wd-label-radio" for="header_hide-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
615 |
+
<input type="radio" id="header_hide-0" class="wd-radio" name="header_hide" value="0" data-initial-value="<?php echo $row->header_hide; ?>" <?php echo $row->header_hide == '0' ? 'checked="checked"' : '' ?> />
|
616 |
+
<label class="wd-label-radio" for="header_hide-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
617 |
+
<p class="description"><?php _e('If you enable this option, the header doesn\'t appear in frontend.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
618 |
+
</div>
|
619 |
+
</div>
|
620 |
+
</div>
|
621 |
+
</div>
|
622 |
</div>
|
623 |
+
<div class="wd-table meta-box-sortables">
|
624 |
+
<div class="wd-table-col-100 wd-table-col-left">
|
625 |
+
<div class="wd-box-section">
|
626 |
+
<div class="wd-box-content">
|
627 |
+
<div class="wd-group">
|
628 |
+
<label class="wd-label" for="header_title"><?php _e('Title', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
629 |
+
<input type="text" id="header_title" name="header_title" class="fm-check-change" value="<?php echo $row->header_title; ?>" data-initial-value="<?php echo $row->header_title; ?>" />
|
630 |
+
</div>
|
631 |
+
<div class="wd-group" id="description_editor">
|
632 |
+
<label class="wd-label" for="header_description"><?php _e('Description', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
633 |
+
<input type="hidden" id="header_description_initial_value" value="<?php echo rawurlencode($row->header_description); ?>" />
|
634 |
+
<?php if (user_can_richedit() && $params['fm_enable_wp_editor']) {
|
635 |
+
wp_editor($row->header_description, 'header_description', array('teeny' => TRUE, 'textarea_name' => 'header_description', 'media_buttons' => FALSE, 'textarea_rows' => 5));
|
636 |
+
}
|
637 |
+
else { ?>
|
638 |
+
<textarea name="header_description" id="header_description" class="mce_editable fm-check-change" aria-hidden="true" data-initial-value="<?php echo $row->header_description; ?>"><?php echo $row->header_description; ?></textarea>
|
639 |
+
<?php
|
640 |
+
}
|
641 |
+
?>
|
642 |
+
</div>
|
643 |
+
<div class="wd-group">
|
644 |
+
<label class="wd-label" for="header_image_url"><?php _e('Image', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
645 |
+
<input type="text" id="header_image_url" name="header_image_url" class="fm-check-change" value="<?php echo $row->header_image_url; ?>" data-initial-value="<?php echo $row->header_image_url; ?>" />
|
646 |
+
<button class="button add-button medium" onclick="fmOpenMediaUploader(event); return false;"><?php _e('Add Image', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
647 |
+
<?php $header_bg = $row->header_image_url ? 'background-image: url('.$row->header_image_url.'); background-position: center;' : ''; ?>
|
648 |
+
<div id="header_image" class="header_img<?php if (!$row->header_image_url) echo ' fm-hide'; ?>" style="<?php echo $header_bg; ?>">
|
649 |
+
<button type="button" id="remove_header_img" onclick="fmRemoveHeaderImage(event); return false;">
|
650 |
+
<i class="mce-ico mce-i-dashicon dashicons-no"></i>
|
651 |
+
</button>
|
652 |
+
</div>
|
653 |
+
</div>
|
654 |
+
<div class="wd-group">
|
655 |
+
<label class="wd-label" for="header_image_animation"><?php _e('Image Animation', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
656 |
+
<select name="header_image_animation" class="fm-check-change" data-initial-value="<?php echo $row->header_image_animation; ?>">
|
657 |
+
<?php
|
658 |
+
foreach($animation_effects as $anim_key => $animation_effect){
|
659 |
+
$selected = $row->header_image_animation == $anim_key ? 'selected="selected"' : '';
|
660 |
+
echo '<option value="'.$anim_key.'" '.$selected.'>'.$animation_effect.'</option>';
|
661 |
+
}
|
662 |
+
?>
|
663 |
+
</select>
|
664 |
+
</div>
|
665 |
+
<div class="wd-group">
|
666 |
+
<label for="header_hide_image" class="wd-label wd-label-radio"><?php _e('Hide Image on Mobile', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
667 |
+
<input type="checkbox" id="header_hide_image" name="header_hide_image" value="1" data-initial-value="<?php echo $row->header_hide_image; ?>" <?php echo $row->header_hide_image == '1' ? 'checked="checked"' : '' ?> />
|
668 |
+
</div>
|
669 |
+
</div>
|
670 |
+
</div>
|
671 |
+
</div>
|
672 |
</div>
|
673 |
</div>
|
674 |
</div>
|
675 |
</div>
|
676 |
+
<?php echo $this->placeholders_popup($params['label_label']); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
677 |
|
678 |
+
<input type="hidden" name="form_front" id="form_front" value="<?php echo htmlentities($row->form_front); ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
<input type="hidden" name="form_fields" id="form_fields" />
|
680 |
+
<input type="hidden" name="pagination" id="pagination" value="<?php echo $row->pagination; ?>" />
|
681 |
+
<input type="hidden" name="show_title" id="show_title" value="<?php echo $row->show_title; ?>" />
|
682 |
+
<input type="hidden" name="show_numbers" id="show_numbers" value="<?php echo $row->show_numbers; ?>" />
|
683 |
<input type="hidden" name="public_key" id="public_key" />
|
684 |
<input type="hidden" name="private_key" id="private_key" />
|
685 |
<input type="hidden" name="recaptcha_theme" id="recaptcha_theme" />
|
687 |
<input type="hidden" id="label_order_current" name="label_order_current" value="<?php echo $row->label_order_current; ?>" />
|
688 |
<input type="hidden" name="counter" id="counter" value="<?php echo $row->counter; ?>" />
|
689 |
<input type="hidden" name="backup_id" id="backup_id" value="<?php echo $row->backup_id;?>">
|
690 |
+
<input type="hidden" name="rev_id" id="rev_id">
|
691 |
<input type="hidden" name="option" value="com_formmaker" />
|
692 |
<input type="hidden" name="id" value="<?php echo $id; ?>" />
|
693 |
<input type="hidden" name="cid[]" value="<?php echo $id; ?>" />
|
697 |
<?php
|
698 |
}
|
699 |
|
700 |
+
/**
|
701 |
+
* Email options.
|
702 |
+
*
|
703 |
+
* @param array $params
|
704 |
+
*/
|
705 |
+
public function email_options( $params = array() ) {
|
706 |
+
echo $this->body_email_options( $params );
|
707 |
+
die();
|
708 |
+
}
|
709 |
+
|
710 |
+
/**
|
711 |
+
* Generate page body email options.
|
712 |
+
*
|
713 |
+
* @param array $params
|
714 |
+
* @return string Body html.
|
715 |
+
*/
|
716 |
+
public function body_email_options( $params = array() ) {
|
717 |
+
$row = $params['row'];
|
718 |
+
$fields = $params['fields'];
|
719 |
+
$fields_count = $params['fields_count'];
|
720 |
+
?>
|
721 |
+
<div id="form_email_options_tab_content" class="adminform js">
|
722 |
+
<div class="wd-table">
|
723 |
+
<div class="wd-table-col-100">
|
724 |
+
<div class="wd-box-section">
|
725 |
+
<div class="wd-box-content">
|
726 |
+
<div class="wd-group">
|
727 |
+
<label class="wd-label"><?php _e('Send E-mail', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
728 |
+
<input type="radio" name="sendemail" <?php echo $row->sendemail == 1 ? 'checked="checked"' : '' ?> id="fm_sendemail-1" class="wd-radio" value="1" onchange="fm_toggle_options('.fm_email_options', true)" />
|
729 |
+
<label class="wd-label-radio" for="fm_sendemail-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
730 |
+
<input type="radio" name="sendemail" <?php echo $row->sendemail == 0 ? 'checked="checked"' : '' ?> id="fm_sendemail-0" class="wd-radio" value="0" onchange="fm_toggle_options('.fm_email_options', false)" />
|
731 |
+
<label class="wd-label-radio" for="fm_sendemail-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
732 |
+
<p class="description"><?php _e('Enable this setting to send submitted information to administrators and/or the submitter.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
733 |
+
<p class="description fm_email_options"><?php _e('In case you cannot find the submission email in your Inbox, make sure to check the Spam folder as well.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
734 |
+
</div>
|
735 |
+
</div>
|
736 |
+
</div>
|
737 |
+
</div>
|
738 |
+
</div>
|
739 |
+
<div class="wd-table meta-box-sortables fm_email_options" id="emailTab_fieldset">
|
740 |
+
<div class="wd-table-col-100 wd-table-col-left">
|
741 |
+
<div class="wd-box-section">
|
742 |
+
<div class="wd-box-title">
|
743 |
+
<strong><?php _e('Email to Administrator', WDFMInstance(self::PLUGIN)->prefix); ?></strong>
|
744 |
+
</div>
|
745 |
+
<div class="wd-box-content">
|
746 |
+
<div class="wd-group wd-has-placeholder">
|
747 |
+
<label class="wd-label" for="mail"><?php _e('Email to send submissions to', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
748 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" id="mail" name="mail" value="<?php echo $row->mail; ?>" />
|
749 |
+
<span class="dashicons dashicons-list-view" data-id="mail"></span>
|
750 |
+
<p class="description"><?php _e('Specify the email address(es), to which submitted form information will be sent. For multiple email addresses separate with commas.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
751 |
+
</div>
|
752 |
+
<div class="wd-group">
|
753 |
+
<label class="wd-label"><?php _e('Email From', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
754 |
+
<?php
|
755 |
+
$is_other = TRUE;
|
756 |
+
for ( $i = 0; $i < $fields_count - 1; $i++ ) {
|
757 |
+
?>
|
758 |
+
<input class="wd-radio" type="radio" name="from_mail" id="from_mail<?php echo $i; ?>" value="<?php echo(!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo((!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]) == $row->from_mail ? 'checked="checked"' : ''); ?> onclick="wdhide('mail_from_other_wrap'); fm_clear_input_value('mail_from_other');" />
|
759 |
+
<label class="wd-label-radio" for="from_mail<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
760 |
+
<?php
|
761 |
+
if ( !is_numeric($fields[$i]) ) {
|
762 |
+
if ( substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) == $row->from_mail ) {
|
763 |
+
$is_other = FALSE;
|
764 |
+
}
|
765 |
+
}
|
766 |
+
else {
|
767 |
+
if ( $fields[$i] == $row->from_mail ) {
|
768 |
+
$is_other = FALSE;
|
769 |
+
}
|
770 |
+
}
|
771 |
+
}
|
772 |
+
?>
|
773 |
+
<input style="<?php echo ($fields_count == 1) ? 'display:none;' : ''; ?>" class="wd-radio" type="radio" id="other" name="from_mail" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other_wrap')" />
|
774 |
+
<label style="<?php echo ($fields_count == 1) ? 'display:none;' : ''; ?>" class="wd-label-radio" for="other"><?php _e('Other', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
775 |
+
<p style="display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="mail_from_other_wrap">
|
776 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="mail_from_other" id="mail_from_other" value="<?php echo ($is_other) ? $row->from_mail : ''; ?>" />
|
777 |
+
</p>
|
778 |
+
<p class="description"><?php _e('Specify the email address from which the administrator will receive the email.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
779 |
+
<p class="description"><?php _e('We recommend you to use an email address belonging to your website domain.', WDFMInstance(self::PLUGIN)->prefix); ?> <span class="dashicons dashicons-editor-help wd-info" data-id="fm-email-from-info"></span></p>
|
780 |
+
<div id="fm-email-from-info" class="fm-hide">
|
781 |
+
<p><?php _e('If sender email address is not hosted on the same domain as your website, some hosting providers may not send the emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
782 |
+
<p><?php _e('In addition, relaying mail servers may consider the emails as phishing.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
783 |
+
</div>
|
784 |
+
</div>
|
785 |
+
<div class="wd-group wd-has-placeholder">
|
786 |
+
<label class="wd-label" for="from_name"><?php _e('From Name', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
787 |
+
<input type="text" name="from_name" value="<?php echo $row->from_name; ?>" id="from_name" />
|
788 |
+
<span class="dashicons dashicons-list-view" data-id="from_name"></span>
|
789 |
+
<p class="description"><?php _e('Set the name or search for a form field which is shown as the sender’s name in submission or confirmation emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
790 |
+
</div>
|
791 |
+
<div class="wd-group wd-has-placeholder">
|
792 |
+
<label class="wd-label" for="mail_subject"><?php _e('Subject', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
793 |
+
<input type="text" id="mail_subject" name="mail_subject" value="<?php echo !empty($row->mail_subject) ? $row->mail_subject : '{formtitle}'; ?>" />
|
794 |
+
<span class="dashicons dashicons-list-view" data-id="mail_subject"></span>
|
795 |
+
<p class="description"><?php _e('Add a custom subject or search for a form field for the submission email. In case it’s left blank, Form Title will be set as the subject of submission emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
796 |
+
</div>
|
797 |
+
<div class="wd-group">
|
798 |
+
<label class="wd-label" for="script_mail"><?php _e('Custom Text in Email For Administrator', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
799 |
+
<div class="wd-editor-placeholder">
|
800 |
+
<span class="dashicons dashicons-list-view" data-id="script_mail"></span>
|
801 |
+
</div>
|
802 |
+
<?php
|
803 |
+
if ( user_can_richedit() ) {
|
804 |
+
wp_editor($row->script_mail, 'script_mail', array(
|
805 |
+
'teeny' => TRUE,
|
806 |
+
'textarea_name' => 'script_mail',
|
807 |
+
'media_buttons' => FALSE,
|
808 |
+
'textarea_rows' => 5
|
809 |
+
));
|
810 |
+
}
|
811 |
+
else {
|
812 |
+
?>
|
813 |
+
<textarea name="script_mail" id="script_mail" cols="20" rows="10" style="width:300px; height:450px;"><?php echo $row->script_mail; ?></textarea>
|
814 |
+
<?php
|
815 |
+
}
|
816 |
+
?>
|
817 |
+
<p class="description"><?php _e('Write custom content to the email message which is sent to administrator. Include All Fields List to forward all submitted information, or click on fields buttons to use individual field values in the content.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
818 |
+
</div>
|
819 |
+
<div class="postbox closed">
|
820 |
+
<button class="button-link handlediv" type="button" aria-expanded="true">
|
821 |
+
<span class="screen-reader-text"><?php _e('Toggle panel:', WDFMInstance(self::PLUGIN)->prefix); ?></span>
|
822 |
+
<span class="toggle-indicator" aria-hidden="false"></span>
|
823 |
+
</button>
|
824 |
+
<h2 class="hndle">
|
825 |
+
<span><?php _e('Advanced', WDFMInstance(self::PLUGIN)->prefix); ?></span>
|
826 |
+
</h2>
|
827 |
+
<div class="inside">
|
828 |
+
<div class="wd-group">
|
829 |
+
<label class="wd-label"><?php _e('Reply to (if different from "Email From")', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
830 |
+
<?php
|
831 |
+
$is_other = TRUE;
|
832 |
+
for ( $i = 0; $i < $fields_count - 1; $i++ ) {
|
833 |
+
?>
|
834 |
+
<input class="wd-radio" type="radio" name="reply_to" id="reply_to<?php echo $i; ?>" value="<?php echo(!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo((!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]) == $row->reply_to ? 'checked="checked"' : ''); ?> onclick="wdhide('reply_to_other_wrap'); fm_clear_input_value('reply_to_other');" />
|
835 |
+
<label class="wd-label-radio" for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
836 |
+
<?php
|
837 |
+
if ( !is_numeric($fields[$i]) ) {
|
838 |
+
if ( substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) == $row->reply_to ) {
|
839 |
+
$is_other = FALSE;
|
840 |
+
}
|
841 |
+
}
|
842 |
+
else {
|
843 |
+
if ( $fields[$i] == $row->reply_to ) {
|
844 |
+
$is_other = FALSE;
|
845 |
+
}
|
846 |
+
}
|
847 |
+
}
|
848 |
+
?>
|
849 |
+
<input style="<?php echo ($fields_count == 1) ? 'display: none;' : ''; ?>" class="wd-radio" type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other_wrap')" />
|
850 |
+
<label style="<?php echo ($fields_count == 1) ? 'display: none;' : ''; ?>" class="wd-label-radio" for="other1"><?php _e('Other', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
851 |
+
<p style="display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="reply_to_other_wrap">
|
852 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="reply_to_other" value="<?php echo ($is_other && $row->reply_to) ? $row->reply_to : ''; ?>" id="reply_to_other" />
|
853 |
+
</p>
|
854 |
+
<p class="description"><?php _e('Specify an alternative email address, to which the administrator will be able to reply upon receiving the message.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
855 |
+
</div>
|
856 |
+
<div class="wd-group">
|
857 |
+
<label class="wd-label" for="mail_cc"><?php _e('CC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
858 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc ?>" />
|
859 |
+
<p class="description"><?php _e('Provide additional email addresses to send the submission or confirmation email to. The receiver will be able to view all other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
860 |
+
</div>
|
861 |
+
<div class="wd-group">
|
862 |
+
<label class="wd-label" for="mail_bcc"><?php _e('BCC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
863 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc ?>" />
|
864 |
+
<p class="description"><?php _e('Write additional email addresses to send the submission or confirmation email to. The receiver will not be able to view other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
865 |
+
</div>
|
866 |
+
<div class="wd-group">
|
867 |
+
<label class="wd-label"><?php _e('Mode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
868 |
+
<input type="radio" name="mail_mode" <?php echo $row->mail_mode == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode-1" class="wd-radio" value="1">
|
869 |
+
<label class="wd-label-radio" for="fm_mo_mail_mode-1"><?php _e('HTML', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
870 |
+
<input type="radio" name="mail_mode" <?php echo $row->mail_mode == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode-0" class="wd-radio" value="0">
|
871 |
+
<label class="wd-label-radio" for="fm_mo_mail_mode-0"><?php _e('Text', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
872 |
+
<p class="description"><?php _e('Select the layout of the submission email, Text or HTML.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
873 |
+
</div>
|
874 |
+
<div class="wd-group">
|
875 |
+
<label class="wd-label"><?php _e('Attach File', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
876 |
+
<input type="radio" name="mail_attachment" <?php echo $row->mail_attachment == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_attachment-1" class="wd-radio" value="1">
|
877 |
+
<label class="wd-label-radio" for="fm_mo_mail_attachment-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
878 |
+
<input type="radio" name="mail_attachment" <?php echo $row->mail_attachment == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_attachment-0" class="wd-radio" value="0">
|
879 |
+
<label class="wd-label-radio" for="fm_mo_mail_attachment-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
880 |
+
<p class="description"><?php _e('If you have File Upload fields on your form, enable this setting to attach uploaded files to submission or confirmation email.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
881 |
+
</div>
|
882 |
+
<div class="wd-group">
|
883 |
+
<label class="wd-label"><?php _e('Email empty fields', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
884 |
+
<input type="radio" name="mail_emptyfields" <?php echo $row->mail_emptyfields == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_emptyfields-1" class="wd-radio" value="1">
|
885 |
+
<label class="wd-label-radio" for="fm_mo_mail_emptyfields-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
886 |
+
<input type="radio" name="mail_emptyfields" <?php echo $row->mail_emptyfields == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_emptyfields-0" class="wd-radio" value="0">
|
887 |
+
<label class="wd-label-radio" for="fm_mo_mail_emptyfields-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
888 |
+
<p class="description"><?php _e('Disable this setting, in case you do not want to include form fields, which are left empty by the submitter.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
889 |
+
</div>
|
890 |
+
</div>
|
891 |
+
</div>
|
892 |
+
</div>
|
893 |
+
</div>
|
894 |
+
<div class="wd-box-section">
|
895 |
+
<div class="wd-box-title">
|
896 |
+
<strong><?php _e('Email to User', WDFMInstance(self::PLUGIN)->prefix); ?></strong>
|
897 |
+
</div>
|
898 |
+
<div class="wd-box-content">
|
899 |
+
<div class="wd-group">
|
900 |
+
<label class="wd-label"><?php _e('Send to', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
901 |
+
<?php
|
902 |
+
$fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
|
903 |
+
$fields_count = count($fields);
|
904 |
+
if ( $fields_count == 1 ) {
|
905 |
+
_e('There is no email field', WDFMInstance(self::PLUGIN)->prefix);
|
906 |
+
}
|
907 |
+
else {
|
908 |
+
for ( $i = 0; $i < $fields_count - 1; $i++ ) {
|
909 |
+
?>
|
910 |
+
<div>
|
911 |
+
<input type="checkbox" name="send_to<?php echo $i; ?>" id="send_to<?php echo $i; ?>" value="<?php echo(!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo(is_numeric(strpos($row->send_to, '*' . (!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) : $fields[$i]) . '*')) ? 'checked="checked"' : ''); ?> style="margin: 0px 5px 0px 0px;" />
|
912 |
+
<label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
913 |
+
</div>
|
914 |
+
<?php
|
915 |
+
}
|
916 |
+
}
|
917 |
+
?>
|
918 |
+
<p class="description"><?php _e('Use this setting to select the email field of your form, to which the submissions will be sent.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
919 |
+
</div>
|
920 |
+
<div class="wd-group">
|
921 |
+
<label class="wd-label" for="mail_from_user"><?php _e('Email From', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
922 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" />
|
923 |
+
<p class="description"><?php _e('Specify the email address from which the submitter will receive the email.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
924 |
+
<p class="description"><?php _e('We recommend you to use an email address belonging to your website domain.', WDFMInstance(self::PLUGIN)->prefix); ?> <span class="dashicons dashicons-editor-help wd-info" data-id="fm-user-email-from-info"></span></p>
|
925 |
+
<div id="fm-user-email-from-info" class="fm-hide">
|
926 |
+
<p><?php _e('If sender email address is not hosted on the same domain as your website, some hosting providers may not send the emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
927 |
+
<p><?php _e('In addition, relaying mail servers may consider the emails as phishing.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
928 |
+
</div>
|
929 |
+
</div>
|
930 |
+
<div class="wd-group wd-has-placeholder">
|
931 |
+
<label class="wd-label" for="mail_from_name_user"><?php _e('From Name', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
932 |
+
<input type="text" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" id="mail_from_name_user" />
|
933 |
+
<span class="dashicons dashicons-list-view" data-id="mail_from_name_user"></span>
|
934 |
+
<p class="description"><?php _e('Set the name or search for a form field which is shown as the sender’s name in submission or confirmation emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
935 |
+
</div>
|
936 |
+
<div class="wd-group wd-has-placeholder">
|
937 |
+
<label class="wd-label" for="mail_subject_user"><?php _e('Subject', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
938 |
+
<input type="text" name="mail_subject_user" value="<?php echo !empty($row->mail_subject_user) ? $row->mail_subject_user : '{formtitle}' ?>" id="mail_subject_user" class="mail_subject_user" />
|
939 |
+
<span class="dashicons dashicons-list-view" data-id="mail_subject_user"></span>
|
940 |
+
<p class="description"><?php _e('Add a custom subject or search for a form field for the submission email. In case it’s left blank, Form Title will be set as the subject of submission emails.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
941 |
+
</div>
|
942 |
+
<div class="wd-group">
|
943 |
+
<label class="wd-label" for="script_mail_user"><?php _e('Custom Text in Email For User', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
944 |
+
<div class="wd-editor-placeholder">
|
945 |
+
<span class="dashicons dashicons-list-view" data-id="script_mail_user"></span>
|
946 |
+
</div>
|
947 |
+
<?php
|
948 |
+
if ( user_can_richedit() ) {
|
949 |
+
wp_editor($row->script_mail_user, 'script_mail_user', array(
|
950 |
+
'teeny' => TRUE,
|
951 |
+
'textarea_name' => 'script_mail_user',
|
952 |
+
'media_buttons' => FALSE,
|
953 |
+
'textarea_rows' => 5
|
954 |
+
));
|
955 |
+
}
|
956 |
+
else {
|
957 |
+
?>
|
958 |
+
<textarea name="script_mail_user" id="script_mail_user" cols="20" rows="10" style="width:300px; height:450px;"><?php echo $row->script_mail_user; ?></textarea>
|
959 |
+
<?php
|
960 |
+
}
|
961 |
+
?>
|
962 |
+
<p class="description"><?php _e('Write custom content to the email message which is sent to submitter. Include All Fields List to forward all submitted information, or click on fields buttons to use individual field values in the content.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
963 |
+
</div>
|
964 |
+
<div class="postbox closed">
|
965 |
+
<button class="button-link handlediv" type="button" aria-expanded="true">
|
966 |
+
<span class="screen-reader-text"><?php _e('Toggle panel:', WDFMInstance(self::PLUGIN)->prefix); ?></span>
|
967 |
+
<span class="toggle-indicator" aria-hidden="false"></span>
|
968 |
+
</button>
|
969 |
+
<h2 class="hndle">
|
970 |
+
<span><?php _e('Advanced', WDFMInstance(self::PLUGIN)->prefix); ?></span>
|
971 |
+
</h2>
|
972 |
+
<div class="inside">
|
973 |
+
<div class="wd-group">
|
974 |
+
<label class="wd-label" for="reply_to_user"><?php _e('Reply to (if different from "Email From")', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
975 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" id="reply_to_user" />
|
976 |
+
<p class="description"><?php _e('Specify an alternative email address, to which the submitter will be able to reply upon receiving the message.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
977 |
+
</div>
|
978 |
+
<div class="wd-group">
|
979 |
+
<label class="wd-label" for="mail_cc_user"><?php _e('CC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
980 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="mail_cc_user" value="<?php echo $row->mail_cc_user ?>" id="mail_cc_user" />
|
981 |
+
<p class="description"><?php _e('Provide additional email addresses to send the submission or confirmation email to. The receiver will be able to view all other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
982 |
+
</div>
|
983 |
+
<div class="wd-group">
|
984 |
+
<label class="wd-label" for="mail_bcc_user"><?php _e('BCC', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
985 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="" data-tab-id="emailTab" data-content-id="emailTab_fieldset" type="text" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user ?>" id="mail_bcc_user" />
|
986 |
+
<p class="description"><?php _e('Write additional email addresses to send the submission or confirmation email to. The receiver will not be able to view other recipients.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
987 |
+
</div>
|
988 |
+
<div class="wd-group">
|
989 |
+
<label class="wd-label"><?php _e('Mode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
990 |
+
<input type="radio" name="mail_mode_user" <?php echo $row->mail_mode_user == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode_user-1" class="wd-radio" value="1">
|
991 |
+
<label class="wd-label-radio" for="fm_mo_mail_mode_user-1"><?php _e('HTML', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
992 |
+
<input type="radio" name="mail_mode_user" <?php echo $row->mail_mode_user == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_mode_user-0" class="wd-radio" value="0">
|
993 |
+
<label class="wd-label-radio" for="fm_mo_mail_mode_user-0"><?php _e('Text', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
994 |
+
<p class="description"><?php _e('Select the layout of the submission email, Text or HTML.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
995 |
+
</div>
|
996 |
+
<div class="wd-group">
|
997 |
+
<label class="wd-label"><?php _e('Attach File', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
998 |
+
<input type="radio" name="mail_attachment_user" <?php echo $row->mail_attachment_user == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_attachment_user-1" class="wd-radio" value="1">
|
999 |
+
<label class="wd-label-radio" for="fm_mo_mail_attachment_user-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1000 |
+
<input type="radio" name="mail_attachment_user" <?php echo $row->mail_attachment_user == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_attachment_user-0" class="wd-radio" value="0">
|
1001 |
+
<label class="wd-label-radio" for="fm_mo_mail_attachment_user-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1002 |
+
<p class="description"><?php _e('If you have File Upload fields on your form, enable this setting to attach uploaded files to submission or confirmation email.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1003 |
+
</div>
|
1004 |
+
<div class="wd-group">
|
1005 |
+
<label class="wd-label"><?php _e('Email verification', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1006 |
+
<input type="radio" name="mail_verify" <?php echo $row->mail_verify == 1 ? 'checked="checked"' : '' ?> id="fm_mo_mail_verify-1" onclick="wdshow('expire_link')" class="wd-radio" value="1">
|
1007 |
+
<label class="wd-label-radio" for="fm_mo_mail_verify-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1008 |
+
<input type="radio" name="mail_verify" <?php echo $row->mail_verify == 0 ? 'checked="checked"' : '' ?> id="fm_mo_mail_verify-0" onclick="wdhide('expire_link')" class="wd-radio" value="0">
|
1009 |
+
<label class="wd-label-radio" for="fm_mo_mail_verify-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1010 |
+
<p class="description"><?php _e('Activate this option, in case you would like the users to verify their email addresses. If it’s enabled, the user email will contain a verification link.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1011 |
+
</div>
|
1012 |
+
<div class="wd-group" <?php echo($row->mail_verify == 0 ? 'style="display:none;"' : '') ?> id="expire_link">
|
1013 |
+
<label class="wd-label" for="mail_verify_expiretime"><?php _e('Verification link expires in', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1014 |
+
<input class="inputbox" type="text" name="mail_verify_expiretime" maxlength="10" value="<?php echo($row->mail_verify_expiretime ? $row->mail_verify_expiretime : 0); ?>" onkeypress="return check_isnum_point(event)" id="mail_verify_expiretime">
|
1015 |
+
<small><?php _e(' -- hours (0 - never expires).', WDFMInstance(self::PLUGIN)->prefix); ?></small>
|
1016 |
+
<a target="_blank" href="<?php echo add_query_arg(array(
|
1017 |
+
'post' => $params["mail_ver_id"],
|
1018 |
+
'action' => 'edit',
|
1019 |
+
), admin_url('post.php')); ?>"><?php _e('Edit post', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1020 |
+
<p class="description"><?php _e('Use this option to specify a time period (hours), during which the user will be able to verify their email address.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1021 |
+
</div>
|
1022 |
+
</div>
|
1023 |
+
</div>
|
1024 |
+
</div>
|
1025 |
+
</div>
|
1026 |
+
</div>
|
1027 |
+
</div>
|
1028 |
+
</div>
|
1029 |
+
<?php
|
1030 |
+
}
|
1031 |
+
|
1032 |
/**
|
1033 |
* add fields.
|
1034 |
*
|
1060 |
array('type' => 'select', 'subtype' => 'country', 'title' => __('Country List', WDFMInstance(self::PLUGIN)->prefix)),
|
1061 |
array('type' => 'time_and_date', 'subtype' => 'date_fields', 'title' => __('Date of Birth', WDFMInstance(self::PLUGIN)->prefix)),
|
1062 |
),
|
|
|
|
|
|
|
|
|
|
|
1063 |
__('ADVANCED', WDFMInstance(self::PLUGIN)->prefix) => array(
|
1064 |
+
array('type' => 'editor', 'subtype' => '', 'title' => __('HTML', WDFMInstance(self::PLUGIN)->prefix)),
|
1065 |
array('type' => 'file_upload', 'subtype' => '', 'title' => __('File Upload', WDFMInstance(self::PLUGIN)->prefix)),
|
1066 |
array('type' => 'map', 'subtype' => '', 'title' => __('Map', WDFMInstance(self::PLUGIN)->prefix)),
|
1067 |
array('type' => 'time_and_date', 'subtype' => 'time', 'title' => __('Time', WDFMInstance(self::PLUGIN)->prefix)),
|
1096 |
<span class="popup-title">
|
1097 |
<?php _e('Add field', WDFMInstance(self::PLUGIN)->prefix); ?>
|
1098 |
</span>
|
1099 |
+
<span title="<?php _e('Close', WDFMInstance(self::PLUGIN)->prefix); ?>" alt="<?php _e('Close', WDFMInstance(self::PLUGIN)->prefix); ?>" class="close-popup fm-ico-delete" onclick="close_window()"></span>
|
1100 |
</div>
|
1101 |
<div class="popup-body meta-box-sortables">
|
1102 |
<div class="popup-body-col field_types">
|
1209 |
* @param array $params
|
1210 |
*/
|
1211 |
public function form_options( $params = array() ) {
|
1212 |
+
echo $this->body_form_options($params);
|
1213 |
+
die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1214 |
}
|
1215 |
|
1216 |
/**
|
1225 |
$page_title = $params['page_title'];
|
1226 |
$page_url = $params['page_url'];
|
1227 |
$back_url = $params['back_url'];
|
1228 |
+
$fieldset_id = WDW_FM_Library(self::PLUGIN)->get( 'fieldset_id', 'general' );
|
1229 |
$addons = $params['addons'];
|
1230 |
$row = $params['row'];
|
|
|
1231 |
$default_theme = $params['default_theme'];
|
1232 |
$queries = $params['queries'];
|
1233 |
$userGroups = $params['userGroups'];
|
|
|
|
|
1234 |
$stripe_addon = $params['stripe_addon'];
|
1235 |
$payment_method = $params['payment_method'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1236 |
$label_titles_for_submissions = array();
|
1237 |
$labels_id_for_submissions = array();
|
1238 |
$payment_info = $params['payment_info'];
|
1243 |
}
|
1244 |
$stats_labels_ids = $params['stats_labels_ids'];
|
1245 |
$stats_labels = $params['stats_labels'];
|
1246 |
+
|
1247 |
?>
|
1248 |
+
<div class="fm-options-container">
|
1249 |
+
<div class="submenu-box">
|
1250 |
+
<ul id="submenu" class="configuration">
|
1251 |
+
<li>
|
1252 |
+
<a id="general" class="fm_fieldset_tab" onclick="form_maker_options_tabs('general'); return false;" href="#"><?php _e('General Options', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1253 |
+
</li>
|
1254 |
+
<li>
|
1255 |
+
<a id="actions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('actions'); return false;" href="#"><?php _e('Actions after Submission', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1256 |
+
</li>
|
1257 |
+
<li>
|
1258 |
+
<a id="payment" class="fm_fieldset_tab" onclick="form_maker_options_tabs('payment'); return false;" href="#"><?php _e('Payment Options', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1259 |
+
</li>
|
1260 |
+
<li>
|
1261 |
+
<a id="javascript" class="fm_fieldset_tab" onclick="form_maker_options_tabs('javascript'); codemirror_for_javascript(); return false;" href="#"><?php _e('JavaScript', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1262 |
+
</li>
|
1263 |
+
<li>
|
1264 |
+
<a id="conditions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('conditions'); return false;" href="#"><?php _e('Conditional Fields', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1265 |
+
</li>
|
1266 |
+
<li>
|
1267 |
+
<a id="mapping" class="fm_fieldset_tab" onclick="form_maker_options_tabs('mapping'); return false;" href="#"><?php _e('MySQL Mapping', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1268 |
+
</li>
|
1269 |
+
<li>
|
1270 |
+
<a id="privacy" class="fm_fieldset_tab" onclick="form_maker_options_tabs('privacy'); return false;" href="#"><?php _e('Privacy', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
1271 |
+
</li>
|
1272 |
+
<?php
|
1273 |
+
if ( !empty($addons['tabs']) ) {
|
1274 |
+
foreach ( $addons['tabs'] as $addon => $name ) {
|
1275 |
+
?>
|
1276 |
+
<li>
|
1277 |
+
<a id="<?php echo $addon; ?>" class="fm_fieldset_tab" onclick="form_maker_options_tabs('<?php echo $addon; ?>'); return false;" href="#"><?php echo $name; ?></a>
|
1278 |
+
</li>
|
1279 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
1280 |
}
|
1281 |
+
}
|
1282 |
+
?>
|
1283 |
+
</ul>
|
1284 |
</div>
|
1285 |
+
<div class="fm-options-body fm_form_options">
|
1286 |
+
<div id="general_fieldset" class="adminform fm_fieldset_deactive">
|
1287 |
+
<div class="wd-table">
|
1288 |
+
<div class="wd-table-col wd-table-col-100 wd-table-col-left">
|
1289 |
+
<div class="wd-box-section">
|
1290 |
+
<div class="wd-box-content">
|
1291 |
+
<span class="wd-group">
|
1292 |
+
<label class="wd-label"><?php _e('Published', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1293 |
+
<input type="radio" name="published" <?php echo $row->published == 1 ? 'checked="checked"' : '' ?> id="fm_go-published-1" class="wd-radio" value="1">
|
1294 |
+
<label class="wd-label-radio" for="fm_go-published-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1295 |
+
<input type="radio" name="published" <?php echo $row->published == 0 ? 'checked="checked"' : '' ?> id="fm_go-published-0" class="wd-radio" value="0">
|
1296 |
+
<label class="wd-label-radio" for="fm_go-published-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1297 |
+
</span>
|
1298 |
+
<span class="wd-group">
|
1299 |
+
<label class="wd-label"><?php _e('Save data(to database)', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1300 |
+
<input type="radio" name="savedb" <?php echo $row->savedb == 1 ? 'checked="checked"' : '' ?> id="fm_go-savedb-1" class="wd-radio" value="1">
|
1301 |
+
<label class="wd-label-radio" for="fm_go-savedb-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1302 |
+
<input type="radio" name="savedb" <?php echo $row->savedb == 0 ? 'checked="checked"' : '' ?> id="fm_go-savedb-0" class="wd-radio" value="0">
|
1303 |
+
<label class="wd-label-radio" for="fm_go-savedb-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1304 |
+
<p class="description"><?php _e('IMPORTANT! If you disable this option, the information submitted through this form will not be saved in the database and will not be displayed on the Submissions page.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1305 |
+
</span>
|
1306 |
+
<span class="wd-group">
|
1307 |
+
<label class="wd-label" for="requiredmark"><?php _e('Required fields mark', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1308 |
+
<input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>">
|
1309 |
+
<p class="description"><?php _e('Use this option to change the mark for required fields of your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1310 |
+
</span>
|
1311 |
+
<span class="wd-group">
|
1312 |
+
<label class="wd-label"><?php _e('Save Uploads', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1313 |
+
<input type="radio" name="save_uploads" <?php echo $row->save_uploads == 1 ? 'checked="checked"' : '' ?> id="fm_go-save_uploads-1" class="wd-radio" value="1">
|
1314 |
+
<label class="wd-label-radio" for="fm_go-save_uploads-1"><?php _e('Yes', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1315 |
+
<input type="radio" name="save_uploads" <?php echo $row->save_uploads == 0 ? 'checked="checked"' : '' ?> id="fm_go-save_uploads-0" class="wd-radio" value="0">
|
1316 |
+
<label class="wd-label-radio" for="fm_go-save_uploads-0"><?php _e('No', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1317 |
+
<p class="description"><?php _e('IMPORTANT! If you disable this option, the files uploaded through your form will not be saved on your site. The files will still be sent to emails and saved in Google Drive or Dropbox, if configured.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1318 |
+
</span>
|
1319 |
+
</div>
|
1320 |
+
</div>
|
1321 |
+
<div class="wd-box-section">
|
1322 |
+
<div class="wd-box-content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1323 |
<?php
|
1324 |
+
if (WDFMInstance(self::PLUGIN)->is_free) {
|
1325 |
+
echo $this->free_message(__('This functionality is available in Premium version', WDFMInstance(self::PLUGIN)->prefix));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1326 |
}
|
1327 |
?>
|
1328 |
+
<span class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1329 |
+
<label class="wd-label"><?php _e('Allow User to see submissions', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1330 |
+
<?php
|
1331 |
+
$checked_UserGroup = explode(',', $row->user_id_wd);
|
1332 |
+
$i = 0;
|
1333 |
+
foreach ( $userGroups as $val => $uG ) {
|
1334 |
+
echo "\r\n" . '<input type="checkbox" value="' . $val . '" id="user_' . $i . '" ';
|
1335 |
+
if ( in_array($val, $checked_UserGroup) ) {
|
1336 |
+
echo ' checked="checked"';
|
1337 |
+
}
|
1338 |
+
echo ' onchange="acces_level(' . count($userGroups) . ')" ' . disabled(WDFMInstance(self::PLUGIN)->is_free, true, false) . ' /><label for="user_' . $i . '">' . $uG["name"] . '</label><br>';
|
1339 |
+
$i++;
|
1340 |
+
}
|
1341 |
+
?>
|
1342 |
+
<input type="checkbox" value="guest" id="user_<?php echo $i; ?>" onchange="acces_level(<?php echo count($userGroups); ?>)"<?php echo(in_array('guest', $checked_UserGroup) ? 'checked="checked"' : '') ?> <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> /><label for="user_<?php echo $i; ?>">Guest</label>
|
1343 |
+
<input type="hidden" name="user_id_wd" value="<?php echo $row->user_id_wd ?>" id="user_id_wd" />
|
1344 |
+
<p class="description"><?php _e('Mark all user roles which will be able to view front-end submissions, when you publish them on a post or page.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1345 |
+
</span>
|
1346 |
+
<?php if ( count($label_titles_for_submissions) ) { ?>
|
1347 |
+
<span class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1348 |
+
<label class="wd-label"><?php _e('Fields to hide in frontend submissions', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1349 |
+
<ul id="ul_form_fields">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1350 |
<li>
|
1351 |
+
<input type="checkbox" name="all_fields" id="all_fields" onclick="checkAllByParentId('ul_form_fields'); checked_labels('filed_label')" value="submit_id,<?php echo implode(',', $labels_id_for_submissions) . "," . ($payment_info ? "payment_info" : ""); ?>" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1352 |
+
<label for="all_fields"><?php _e('Select All', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1353 |
</li>
|
1354 |
+
<?php
|
1355 |
+
echo "<li><input type=\"checkbox\" id=\"submit_id\" name=\"submit_id\" value=\"submit_id\" class=\"filed_label\" onclick=\"checked_labels('filed_label')\" " . disabled(WDFMInstance(self::PLUGIN)->is_free, true, false) . " /><label for=\"submit_id\">ID</label></li>";
|
1356 |
+
for ( $i = 0, $n = count($label_titles_for_submissions); $i < $n; $i++ ) {
|
1357 |
+
$field_label = $label_titles_for_submissions[$i];
|
1358 |
+
echo "<li><input type=\"checkbox\" id=\"filed_label" . $i . "\" name=\"filed_label" . $i . "\" value=\"" . $labels_id_for_submissions[$i] . "\" class=\"filed_label\" onclick=\"checked_labels('filed_label')\" " . disabled(WDFMInstance(self::PLUGIN)->is_free, true, false) . " /><label for=\"filed_label" . $i . "\">" . (strlen($field_label) > 80 ? substr($field_label, 0, 80) . '...' : $field_label) . "</label></li>";
|
1359 |
+
}
|
1360 |
+
if ( $payment_info ) {
|
1361 |
+
echo "<li><input type=\"checkbox\" id=\"payment_info\" name=\"payment_info\" value=\"payment_info\" class=\"filed_label\" onclick=\"checked_labels('filed_label')\" " . disabled(WDFMInstance(self::PLUGIN)->is_free, true, false) . " /><label for=\"payment_info\">Payment Info</label></li>";
|
1362 |
+
}
|
1363 |
+
?>
|
1364 |
+
</ul>
|
1365 |
+
<input type="hidden" name="frontend_submit_fields" value="<?php echo $row->frontend_submit_fields ?>" id="frontend_submit_fields" />
|
1366 |
+
<p class="description"><?php _e('Select fields of the form and Stats Fields which will not to be displayed within front-end submissions, when you publish them.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1367 |
+
</span>
|
1368 |
+
<?php if ( $stats_labels ) { ?>
|
1369 |
+
<span class="wd-group">
|
1370 |
+
<label class="wd-label"><?php _e('Stats fields:', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1371 |
+
<ul id="stats_fields">
|
1372 |
+
<li>
|
1373 |
+
<input type="checkbox" name="all_stats_fields" id="all_stats_fields" onclick="checkAllByParentId('stats_fields'); checked_labels('stats_filed_label');" value="<?php echo implode(',', $stats_labels_ids) . ","; ?>" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1374 |
+
<label for="all_stats_fields"><?php _e('Select All', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1375 |
+
</li>
|
1376 |
+
<?php
|
1377 |
+
for ( $i = 0, $n = count($stats_labels); $i < $n; $i++ ) {
|
1378 |
+
$field_label = $stats_labels[$i];
|
1379 |
+
echo "<li><input type=\"checkbox\" id=\"stats_filed_label" . $i . "\" name=\"stats_filed_label" . $i . "\" value=\"" . $stats_labels_ids[$i] . "\" class=\"stats_filed_label\" onclick=\"checked_labels('stats_filed_label')\" " . disabled(WDFMInstance(self::PLUGIN)->is_free, true, false) . " /><label for=\"stats_filed_label" . $i . "\">" . (strlen($field_label) > 80 ? substr($field_label, 0, 80) . '...' : $field_label) . "</label></li>";
|
1380 |
+
}
|
1381 |
+
?>
|
1382 |
+
</ul>
|
1383 |
+
<input type="hidden" name="frontend_submit_stat_fields" value="<?php echo $row->frontend_submit_stat_fields ?>" id="frontend_submit_stat_fields" />
|
1384 |
+
<p class="description"><?php _e('Select fields of the form and Stats Fields which will not to be displayed within front-end submissions, when you publish them.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1385 |
+
</span>
|
1386 |
+
<?php }
|
1387 |
+
} ?>
|
1388 |
+
</div>
|
1389 |
</div>
|
1390 |
</div>
|
1391 |
</div>
|
1392 |
</div>
|
1393 |
+
<div id="actions_fieldset" class="adminform fm_fieldset_deactive">
|
1394 |
+
<div class="wd-table">
|
1395 |
+
<div class="wd-table-col-100">
|
1396 |
+
<div class="wd-box-section">
|
1397 |
+
<div class="wd-box-content">
|
1398 |
+
<span class="wd-group">
|
1399 |
+
<label class="wd-label"><?php _e('Action type', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1400 |
+
<input class="wd-radio" type="radio" name="submit_text_type" id="text_type_none" onclick="set_type('none')" value="1" <?php echo ($row->submit_text_type != 2 && $row->submit_text_type != 3 && $row->submit_text_type != 4 && $row->submit_text_type != 5) ? "checked" : ""; ?> />
|
1401 |
+
<label class="wd-label-radio" for="text_type_none"><?php _e('Stay on Form', WDFMInstance(self::PLUGIN)->prefix); ?></label><br />
|
1402 |
+
<input class="wd-radio" type="radio" name="submit_text_type" id="text_type_post" onclick="set_type('post')" value="2" <?php echo ($row->submit_text_type == 2) ? "checked" : ""; ?> />
|
1403 |
+
<label class="wd-label-radio" for="text_type_post"><?php _e('Post', WDFMInstance(self::PLUGIN)->prefix); ?></label><br />
|
1404 |
+
<input class="wd-radio" type="radio" name="submit_text_type" id="text_type_page" onclick="set_type('page')" value="5" <?php echo ($row->submit_text_type == 5) ? "checked" : ""; ?> />
|
1405 |
+
<label class="wd-label-radio" for="text_type_page"><?php _e('Page', WDFMInstance(self::PLUGIN)->prefix); ?></label><br />
|
1406 |
+
<input class="wd-radio" type="radio" name="submit_text_type" id="text_type_custom_text" onclick="set_type('custom_text')" value="3" <?php echo ($row->submit_text_type == 3) ? "checked" : ""; ?> />
|
1407 |
+
<label class="wd-label-radio" for="text_type_custom_text"><?php _e('Custom Text', WDFMInstance(self::PLUGIN)->prefix); ?></label><br />
|
1408 |
+
<input class="wd-radio" type="radio" name="submit_text_type" id="text_type_url" onclick="set_type('url')" value="4" <?php echo ($row->submit_text_type == 4) ? "checked" : ""; ?> />
|
1409 |
+
<label class="wd-label-radio" for="text_type_url"><?php _e('URL', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1410 |
+
</span>
|
1411 |
+
<span class="wd-group">
|
1412 |
+
<div id="post" <?php echo(($row->submit_text_type != 2) ? 'style="display:none"' : ''); ?>>
|
1413 |
+
<label class="wd-label"><?php _e('Post', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1414 |
+
<select id="post_name" name="post_name">
|
1415 |
+
<option value="0">- Select Post -</option>
|
1416 |
+
<?php
|
1417 |
+
$args = array( 'posts_per_page' => 10000 );
|
1418 |
+
query_posts($args);
|
1419 |
+
while ( have_posts() ) : the_post();
|
1420 |
+
?>
|
1421 |
+
<option value="<?php $x = get_permalink(get_the_ID());
|
1422 |
+
echo $x; ?>" <?php echo(($row->article_id == $x) ? 'selected="selected"' : ''); ?>><?php the_title(); ?></option>
|
1423 |
+
<?php
|
1424 |
+
endwhile;
|
1425 |
+
wp_reset_query();
|
1426 |
+
?>
|
1427 |
+
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1428 |
</div>
|
1429 |
+
<div id="page" <?php echo(($row->submit_text_type != 5) ? 'style="display:none"' : ''); ?>>
|
1430 |
+
<label class="wd-label"><?php _e('Page', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1431 |
+
<select id="page_name" name="page_name">
|
1432 |
+
<option value="0">- Select Page -</option>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1433 |
<?php
|
1434 |
+
$pages = get_pages();
|
1435 |
+
foreach ( $pages as $page ) {
|
1436 |
+
$page_id = get_page_link($page->ID);
|
1437 |
?>
|
1438 |
+
<option value="<?php echo $page_id; ?>" <?php echo(($row->article_id == $page_id) ? 'selected="selected"' : ''); ?>><?php echo $page->post_title; ?></option>
|
|
|
1439 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1440 |
}
|
1441 |
+
wp_reset_query();
|
1442 |
?>
|
1443 |
+
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1444 |
</div>
|
1445 |
+
<div id="custom_text" <?php echo(($row->submit_text_type != 3) ? 'style="display: none;"' : ''); ?>>
|
1446 |
+
<label class="wd-label"><?php _e('Text', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1447 |
+
<div class="wd-editor-placeholder">
|
1448 |
+
<span class="dashicons dashicons-list-view" data-id="submit_text"></span>
|
1449 |
+
</div>
|
1450 |
+
<?php
|
1451 |
+
if ( user_can_richedit() ) {
|
1452 |
+
wp_editor($row->submit_text, 'submit_text', array(
|
1453 |
'teeny' => TRUE,
|
1454 |
+
'textarea_name' => 'submit_text',
|
1455 |
'media_buttons' => FALSE,
|
1456 |
'textarea_rows' => 5
|
1457 |
+
));
|
1458 |
+
}
|
1459 |
+
else {
|
1460 |
+
?>
|
1461 |
+
<textarea cols="36" rows="5" id="submit_text" name="submit_text" style="resize: vertical; width:100%">
|
1462 |
+
<?php echo $row->submit_text; ?>
|
1463 |
+
</textarea>
|
1464 |
+
<?php
|
1465 |
+
}
|
1466 |
?>
|
1467 |
+
</div>
|
1468 |
+
<div id="url" <?php echo(($row->submit_text_type != 4) ? 'style="display:none"' : ''); ?>>
|
1469 |
+
<label class="wd-label"><?php _e('URL', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1470 |
+
<input type="text" id="url" name="url" value="<?php echo $row->url; ?>" />
|
1471 |
+
</div>
|
1472 |
+
</span>
|
1473 |
+
</div>
|
1474 |
</div>
|
1475 |
+
</div>
|
1476 |
+
</div>
|
1477 |
+
</div>
|
1478 |
+
<div id="payment_fieldset" class="adminform fm_fieldset_deactive">
|
1479 |
+
<div class="wd-table">
|
1480 |
+
<div class="wd-table-col-100">
|
1481 |
+
<div class="wd-box-section">
|
1482 |
+
<div class="wd-box-content">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1483 |
<div class="wd-group">
|
1484 |
+
<label class="wd-label"><?php _e('Payment Method', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1485 |
+
<input type="radio" name="paypal_mode" id="paypal_mode0" value="none" class="wd-radio" <?php echo ($payment_method == "none") ? "checked" : ""; ?> onchange="fm_change_payment_method('none');" />
|
1486 |
+
<label class="wd-label-radio" for="paypal_mode0"><?php _e('None', WDFMInstance(self::PLUGIN)->prefix); ?></label><br>
|
1487 |
+
<input type="radio" name="paypal_mode" id="paypal_mode1" value="paypal" class="wd-radio" <?php echo ($payment_method == "paypal") ? "checked" : ""; ?> onchange="fm_change_payment_method('paypal');" />
|
1488 |
+
<label class="wd-label-radio" for="paypal_mode1"><?php _e('Paypal', WDFMInstance(self::PLUGIN)->prefix); ?></label><br>
|
1489 |
+
<input type="radio" name="paypal_mode" id="paypal_mode2" value="stripe" <?php echo ($payment_method == "stripe") ? "checked" : ""; ?> class="wd-radio" onchange="fm_change_payment_method('stripe');" />
|
1490 |
+
<label class="wd-label-radio" for="paypal_mode2"><?php _e('Stripe', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1491 |
</div>
|
1492 |
+
<div class="fm_payment_option">
|
1493 |
+
<?php
|
1494 |
+
if (WDFMInstance(self::PLUGIN)->is_free) {
|
1495 |
+
echo $this->free_message(__('PAYPAL is available in Premium version', WDFMInstance(self::PLUGIN)->prefix));
|
1496 |
+
}
|
1497 |
+
?>
|
1498 |
+
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1499 |
+
<label class="wd-label" for="payment_currency"><?php _e('Payment Currency', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1500 |
+
<select id="payment_currency" name="payment_currency" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?>>
|
1501 |
+
<option value="USD" <?php echo(($row->payment_currency == 'USD') ? 'selected' : ''); ?>>$ • U.S. Dollar</option>
|
1502 |
+
<option value="EUR" <?php echo(($row->payment_currency == 'EUR') ? 'selected' : ''); ?>>€ • Euro</option>
|
1503 |
+
<option value="GBP" <?php echo(($row->payment_currency == 'GBP') ? 'selected' : ''); ?>>£ • Pound Sterling</option>
|
1504 |
+
<option value="JPY" <?php echo(($row->payment_currency == 'JPY') ? 'selected' : ''); ?>>¥ • Japanese Yen</option>
|
1505 |
+
<option value="CAD" <?php echo(($row->payment_currency == 'CAD') ? 'selected' : ''); ?>>C$ • Canadian Dollar</option>
|
1506 |
+
<option value="MXN" <?php echo(($row->payment_currency == 'MXN') ? 'selected' : ''); ?>>Mex$ • Mexican Peso</option>
|
1507 |
+
<option value="HKD" <?php echo(($row->payment_currency == 'HKD') ? 'selected' : ''); ?>>HK$ • Hong Kong Dollar</option>
|
1508 |
+
<option value="HUF" <?php echo(($row->payment_currency == 'HUF') ? 'selected' : ''); ?>>Ft • Hungarian Forint</option>
|
1509 |
+
<option value="NOK" <?php echo(($row->payment_currency == 'NOK') ? 'selected' : ''); ?>>kr • Norwegian Kroner</option>
|
1510 |
+
<option value="NZD" <?php echo(($row->payment_currency == 'NZD') ? 'selected' : ''); ?>>NZ$ • New Zealand Dollar</option>
|
1511 |
+
<option value="SGD" <?php echo(($row->payment_currency == 'SGD') ? 'selected' : ''); ?>>S$ • Singapore Dollar</option>
|
1512 |
+
<option value="SEK" <?php echo(($row->payment_currency == 'SEK') ? 'selected' : ''); ?>>kr • Swedish Kronor</option>
|
1513 |
+
<option value="PLN" <?php echo(($row->payment_currency == 'PLN') ? 'selected' : ''); ?>>zl • Polish Zloty</option>
|
1514 |
+
<option value="AUD" <?php echo(($row->payment_currency == 'AUD') ? 'selected' : ''); ?>>A$ • Australian Dollar</option>
|
1515 |
+
<option value="DKK" <?php echo(($row->payment_currency == 'DKK') ? 'selected' : ''); ?>>kr • Danish Kroner</option>
|
1516 |
+
<option value="CHF" <?php echo(($row->payment_currency == 'CHF') ? 'selected' : ''); ?>>CHF • Swiss Francs</option>
|
1517 |
+
<option value="CZK" <?php echo(($row->payment_currency == 'CZK') ? 'selected' : ''); ?>>Kc • Czech Koruny</option>
|
1518 |
+
<option value="ILS" <?php echo(($row->payment_currency == 'ILS') ? 'selected' : ''); ?>>₪ • Israeli Sheqel</option>
|
1519 |
+
<option value="BRL" <?php echo(($row->payment_currency == 'BRL') ? 'selected' : ''); ?>>R$ • Brazilian Real</option>
|
1520 |
+
<option value="TWD" <?php echo(($row->payment_currency == 'TWD') ? 'selected' : ''); ?>>NT$ • Taiwan New Dollars</option>
|
1521 |
+
<option value="MYR" <?php echo(($row->payment_currency == 'MYR') ? 'selected' : ''); ?>>RM • Malaysian Ringgit</option>
|
1522 |
+
<option value="PHP" <?php echo(($row->payment_currency == 'PHP') ? 'selected' : ''); ?>>₱ • Philippine Peso</option>
|
1523 |
+
<option value="THB" <?php echo(($row->payment_currency == 'THB') ? 'selected' : ''); ?>>฿ • Thai Bahtv</option>
|
1524 |
+
</select>
|
1525 |
+
<p class="description"><?php _e('Choose the currency to be used for the payments made through your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1526 |
+
</div>
|
1527 |
+
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1528 |
+
<label class="wd-label" for="tax"><?php _e('Tax', WDFMInstance(self::PLUGIN)->prefix); ?> (%)</label>
|
1529 |
+
<input type="text" name="tax" id="tax" value="<?php echo $row->tax; ?>" class="text_area" onKeyPress="return check_isnum_point(event)" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1530 |
+
<p class="description"><?php _e('Specify the percentage of the tax. It will be calculated from the total payment amount of your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1531 |
+
</div>
|
1532 |
+
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1533 |
+
<label class="wd-label"><?php _e('Checkout Mode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1534 |
+
<input type="radio" name="checkout_mode" <?php echo $row->checkout_mode == 1 ? 'checked="checked"' : '' ?> id="checkout_mode-1" class="wd-radio" value="1" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1535 |
+
<label class="wd-label-radio" for="checkout_mode-1"><?php _e('Production', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1536 |
+
<input type="radio" name="checkout_mode" <?php echo $row->checkout_mode == 0 ? 'checked="checked"' : '' ?> id="checkout_mode-0" class="wd-radio" value="0" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1537 |
+
<label class="wd-label-radio" for="checkout_mode-0"><?php _e('Testmode', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1538 |
+
</div>
|
1539 |
+
<div class="wd-group <?php if(WDFMInstance(self::PLUGIN)->is_free) { echo 'fm-free-option'; } ?>">
|
1540 |
+
<label class="wd-label" for="paypal_email"><?php _e('Paypal email', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
1541 |
+
<input class="fm-validate" data-type="email" data-callback="fm_validate_email" data-callback-parameter="#paypal_mode1" data-tab-id="payment" data-content-id="payment_fieldset" type="text" name="paypal_email" id="paypal_email" value="<?php echo $row->paypal_email; ?>" class="text_area" <?php disabled(WDFMInstance(self::PLUGIN)->is_free, true) ?> />
|
1542 |
+
<p class="description"><?php _e('Provide the email address of a valid PayPal account. It will receive the payments made through your form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
1543 |
+
</div>
|
1544 |
</div>
|
1545 |
+
<div class="fm_payment_option_stripe">
|
1546 |
+
<?php
|
1547 |
+
if ( $stripe_addon['enable'] && !empty($stripe_addon['html']) ) {
|
1548 |
+
if (WDFMInstance(self::PLUGIN)->is_free) {
|
1549 |
+
echo $this->free_message(__('STRIPE add-on compatible with Premium version only', WDFMInstance(self::PLUGIN)->prefix));
|
1550 |
+
}
|
1551 |
+
else {
|
1552 |
+
echo $stripe_addon[ 'html' ];
|
1553 |
+
}
|
1554 |
+
}
|
1555 |
+
else {
|
1556 |
+
if (WDFMInstance(self::PLUGIN)->is_free) {
|
1557 |
+
echo $this->promo_box(__('This feature is available only in the Premium version', WDFMInstance(self::PLUGIN)->prefix), __('Requires STRIPE add-on.', WDFMInstance(self::PLUGIN)->prefix), 'https://web-dorado.com/products/wordpress-form/add-ons/stripe.html');
|
1558 |
+
}
|
1559 |
+
else {
|
1560 |
+
echo $this->free_message(__('This feature requires STRIPE add-on', WDFMInstance(self::PLUGIN)->prefix), 'https://web-dorado.com/products/wordpress-form/add-ons/stripe.html', __( 'Buy', WDFMInstance(self::PLUGIN)->prefix ));
|
1561 |
+
}
|
1562 |
+
}
|
1563 |
+
?>
|
1564 |
</div>
|
1565 |
</div>
|
1566 |
</div>
|
1567 |
</div>
|
1568 |
</div>
|
1569 |
</div>
|
1570 |
+
|
1571 |
+
<div id="javascript_fieldset" class="adminform fm_fieldset_deactive">
|
1572 |
+
<div class="wd-table">
|
1573 |
+
<div class="wd-table-col-100">
|
1574 |
+
<div class="wd-box-section">
|
1575 |
+
<div class="wd-box-content">
|
1576 |
+
<span class="wd-group">
|
1577 |
+
<textarea cols="60" rows="30" name="javascript" id="form_javascript"><?php echo $row->javascript; ?></textarea>
|
1578 |
+
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1579 |
</div>
|
1580 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1581 |
</div>
|
1582 |
</div>
|
1583 |
</div>
|
|
|
|
|
1584 |
|
1585 |
+
<div id="conditions_fieldset" class="adminform fm_fieldset_deactive">
|
1586 |
+
<?php
|
1587 |
+
$ids = array();
|
1588 |
+
$types = array();
|
1589 |
+
$labels = array();
|
1590 |
+
$paramss = array();
|
1591 |
+
$all_ids = array();
|
1592 |
+
$all_labels = array();
|
1593 |
+
$select_and_input = array(
|
1594 |
+
"type_text",
|
1595 |
+
"type_password",
|
1596 |
+
"type_textarea",
|
1597 |
+
"type_name",
|
1598 |
+
"type_number",
|
1599 |
+
"type_phone",
|
1600 |
+
"type_phone_new",
|
1601 |
+
"type_submitter_mail",
|
1602 |
+
"type_address",
|
1603 |
+
"type_spinner",
|
1604 |
+
"type_checkbox",
|
1605 |
+
"type_radio",
|
1606 |
+
"type_own_select",
|
1607 |
+
"type_paypal_price",
|
1608 |
+
"type_paypal_price_new",
|
1609 |
+
"type_paypal_select",
|
1610 |
+
"type_paypal_checkbox",
|
1611 |
+
"type_paypal_radio",
|
1612 |
+
"type_paypal_shipping",
|
1613 |
+
"type_date_new"
|
1614 |
+
);
|
1615 |
+
$select_type_fields = array(
|
1616 |
+
"type_address",
|
1617 |
+
"type_checkbox",
|
1618 |
+
"type_radio",
|
1619 |
+
"type_own_select",
|
1620 |
+
"type_paypal_select",
|
1621 |
+
"type_paypal_checkbox",
|
1622 |
+
"type_paypal_radio",
|
1623 |
+
"type_paypal_shipping"
|
1624 |
+
);
|
1625 |
+
$fields = explode('*:*new_field*:*', $row->form_fields);
|
1626 |
+
$fields = array_slice($fields, 0, count($fields) - 1);
|
1627 |
+
foreach ( $fields as $field ) {
|
1628 |
+
$temp = explode('*:*id*:*', $field);
|
1629 |
+
array_push($ids, $temp[0]);
|
1630 |
+
array_push($all_ids, $temp[0]);
|
1631 |
+
$temp = explode('*:*type*:*', $temp[1]);
|
1632 |
+
array_push($types, $temp[0]);
|
1633 |
+
$temp = explode('*:*w_field_label*:*', $temp[1]);
|
1634 |
+
array_push($labels, $temp[0]);
|
1635 |
+
array_push($all_labels, $temp[0]);
|
1636 |
+
array_push($paramss, $temp[1]);
|
1637 |
+
}
|
1638 |
+
foreach ( $types as $key => $value ) {
|
1639 |
+
if ( !in_array($types[$key], $select_and_input) ) {
|
1640 |
+
unset($ids[$key]);
|
1641 |
+
unset($labels[$key]);
|
1642 |
+
unset($types[$key]);
|
1643 |
+
unset($paramss[$key]);
|
1644 |
+
}
|
1645 |
+
}
|
1646 |
+
$ids = array_values($ids);
|
1647 |
+
$labels = array_values($labels);
|
1648 |
+
$types = array_values($types);
|
1649 |
+
$paramss = array_values($paramss);
|
1650 |
+
$chose_ids = implode('@@**@@', $ids);
|
1651 |
+
$chose_labels = implode('@@**@@', $labels);
|
1652 |
+
$chose_types = implode('@@**@@', $types);
|
1653 |
+
$chose_paramss = implode('@@**@@', $paramss);
|
1654 |
+
$all_ids_cond = implode('@@**@@', $all_ids);
|
1655 |
+
$all_labels_cond = implode('@@**@@', $all_labels);
|
1656 |
+
$show_hide = array();
|
1657 |
+
$field_label = array();
|
1658 |
+
$all_any = array();
|
1659 |
+
$condition_params = array();
|
1660 |
+
$count_of_conditions = 0;
|
1661 |
+
if ( $row->condition != "" ) {
|
1662 |
+
$conditions = explode('*:*new_condition*:*', $row->condition);
|
1663 |
+
$conditions = array_slice($conditions, 0, count($conditions) - 1);
|
1664 |
+
$count_of_conditions = count($conditions);
|
1665 |
+
foreach ( $conditions as $condition ) {
|
1666 |
+
$temp = explode('*:*show_hide*:*', $condition);
|
1667 |
+
array_push($show_hide, $temp[0]);
|
1668 |
+
$temp = explode('*:*field_label*:*', $temp[1]);
|
1669 |
+
array_push($field_label, $temp[0]);
|
1670 |
+
$temp = explode('*:*all_any*:*', $temp[1]);
|
1671 |
+
array_push($all_any, $temp[0]);
|
1672 |
+
array_push($condition_params, $temp[1]);
|
1673 |
+
}
|
1674 |
+
}
|
1675 |
+
else {
|
1676 |
+
$show_hide[0] = 1;
|
1677 |
+
$all_any[0] = 'and';
|
1678 |
+
$condition_params[0] = '';
|
1679 |
+
if ( $all_ids ) {
|
1680 |
+
$field_label[0] = $all_ids[0];
|
1681 |
+
}
|
1682 |
+
}
|
1683 |
+
?>
|
1684 |
+
<div class="wd-table">
|
1685 |
+
<div class="wd-table-col-100">
|
1686 |
+
<div class="wd-box-section">
|
1687 |
+
<div class="wd-box-content">
|
1688 |
+
<div class="wd-group" id="conditions_fieldset_wrap">
|
1689 |
+
<p class="description"><?php _e('Press Add Condition button to configure the first condition of your form. Show/Hide select box represents the action which will be completed, if all or any of the condition statements are fulfilled. Use the second drop-down menu to select the field which will be shown or hidden. Click the little Plus (+) icon to add the statement of your form condition.', WDFMInstance(self::PLUGIN)->prefix); ?><br><br></p>
|
1690 |
+
<div style="text-align: right;">
|
1691 |
+
<button class="wd-button button-primary" onclick="add_condition('<?php echo $chose_ids; ?>', '<?php echo htmlspecialchars(addslashes($chose_labels)); ?>', '<?php echo $chose_types; ?>', '<?php echo htmlspecialchars(addslashes($chose_paramss)); ?>', '<?php echo $all_ids_cond; ?>', '<?php echo htmlspecialchars(addslashes($all_labels_cond)); ?>'); return false;"><?php _e('Add Condition', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
1692 |
+
</div>
|
1693 |
+
<?php
|
1694 |
+
for ( $k = 0; $k < $count_of_conditions; $k++ ) {
|
1695 |
+
if ( in_array($field_label[$k], $all_ids) ) { ?>
|
1696 |
+
<div id="condition<?php echo $k; ?>" class="fm_condition">
|
1697 |
+
<div id="conditional_fileds<?php echo $k; ?>">
|
1698 |
+
<select id="show_hide<?php echo $k; ?>" name="show_hide<?php echo $k; ?>" class="fm_condition_show_hide">
|
1699 |
+
<option value="1" <?php if ( $show_hide[$k] == 1 ) {
|
1700 |
+
echo 'selected="selected"';
|
1701 |
+
} ?>><?php _e('Show', WDFMInstance(self::PLUGIN)->prefix); ?></option>
|
1702 |
+
<option value="0" <?php if ( $show_hide[$k] == 0 ) {
|
1703 |
+
echo 'selected="selected"';
|
1704 |
+
} ?>><?php _e('Hide', WDFMInstance(self::PLUGIN)->prefix); ?></option>
|
1705 |
+
</select>
|
1706 |
+
<select id="fields<?php echo $k; ?>" name="fields<?php echo $k; ?>" class="fm_condition_fields">
|
1707 |
+
<?php
|
1708 |
+
foreach ( $all_labels as $key => $value ) {
|
1709 |
+
if ( $field_label[$k] == $all_ids[$key] ) {
|
1710 |
+
$selected = 'selected="selected"';
|
1711 |
+
}
|
1712 |
+
else {
|
1713 |
+
$selected = '';
|
1714 |
+
}
|
1715 |
+
echo '<option value="' . $all_ids[$key] . '" ' . $selected . '>' . $value . '</option>';
|
1716 |
+
}
|
1717 |
+
?>
|
1718 |
+
</select>
|
1719 |
+
<span>if</span>
|
1720 |
+
<select id="all_any<?php echo $k; ?>" name="all_any<?php echo $k; ?>" class="fm_condition_all_any">
|
1721 |
+
<option value="and" <?php if ( $all_any[$k] == "and" ) {
|
1722 |
+
echo 'selected="selected"';
|
1723 |
+
} ?>><?php _e('all', WDFMInstance(self::PLUGIN)->prefix); ?></option>
|
1724 |
+
<option value="or" <?php if ( $all_any[$k] == "or" ) {
|
1725 |
+
echo 'selected="selected"';
|
1726 |
+
} ?>><?php _e('any', WDFMInstance(self::PLUGIN)->prefix); ?></option>
|
1727 |
+
</select>
|
1728 |
+
<span style="display: inline-block; width: 100%; max-width: 235px;"><?php _e('of the following match:', WDFMInstance(self::PLUGIN)->prefix); ?></span>
|
1729 |
+
<span class="dashicons dashicons-trash" onclick="delete_condition('<?php echo $k; ?>')"></span>
|
1730 |
+
<span class="dashicons dashicons-plus-alt" onclick="add_condition_fields(<?php echo $k; ?>,'<?php echo $chose_ids; ?>', '<?php echo htmlspecialchars(addslashes($chose_labels)); ?>', '<?php echo $chose_types; ?>', '<?php echo htmlspecialchars(addslashes($chose_paramss)); ?>')"></span>
|
1731 |
+
</div>
|
1732 |
<?php
|
1733 |
+
if ( $condition_params[$k] ) {
|
1734 |
+
$_params = explode('*:*next_condition*:*', $condition_params[$k]);
|
1735 |
+
$_params = array_slice($_params, 0, count($_params) - 1);
|
1736 |
+
foreach ( $_params as $key => $_param ) {
|
1737 |
+
$key_select_or_input = '';
|
1738 |
+
$param_values = explode('***', $_param);
|
1739 |
+
$multiselect = explode('@@@', $param_values[2]);
|
1740 |
+
if ( in_array($param_values[0], $ids) ) { ?>
|
1741 |
+
<div id="condition_div<?php echo $k; ?>_<?php echo $key; ?>">
|
1742 |
+
<select id="field_labels<?php echo $k; ?>_<?php echo $key; ?>" class="fm_condition_field_labels" onchange="change_choices(this.options[this.selectedIndex].id+'_<?php echo $key; ?>','<?php echo $chose_ids; ?>', '<?php echo $chose_types; ?>', '<?php echo htmlspecialchars(addslashes($chose_paramss)); ?>')">
|
1743 |
+
<?php
|
1744 |
+
foreach ( $labels as $key1 => $value ) {
|
1745 |
+
if ( $param_values[0] == $ids[$key1] ) {
|
1746 |
+
$selected = 'selected="selected"';
|
1747 |
+
if ( $types[$key1] == "type_checkbox" || $types[$key1] == "type_paypal_checkbox" ) {
|
1748 |
+
$multiple = 'multiple="multiple" class="multiple_select"';
|
1749 |
+
}
|
1750 |
+
else {
|
1751 |
+
$multiple = '';
|
1752 |
+
}
|
1753 |
+
$key_select_or_input = $key1;
|
1754 |
+
}
|
1755 |
+
else {
|
1756 |
+
$selected = '';
|
1757 |
+
}
|
1758 |
+
if ( $field_label[$k] != $ids[$key1] ) {
|
1759 |
+
echo '<option id="' . $k . '_' . $key1 . '" value="' . $ids[$key1] . '" ' . $selected . '>' . $value . '</option>';
|
1760 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1761 |
}
|
1762 |
+
?>
|
1763 |
+
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1764 |
|
1765 |
+
<select id="is_select<?php echo $k; ?>_<?php echo $key; ?>" class="fm_condition_is_select">
|
1766 |
+
<option value="==" <?php if ( $param_values[1] == "==" ) {
|
1767 |
+
echo 'selected="selected"';
|
1768 |
+
} ?>>is
|
1769 |
+
</option>
|
1770 |
+
<option value="!=" <?php if ( $param_values[1] == "!=" ) {
|
1771 |
+
echo 'selected="selected"';
|
1772 |
+
} ?>>is not
|
1773 |
+
</option>
|
1774 |
+
<option value="%" <?php if ( $param_values[1] == "%" ) {
|
1775 |
+
echo 'selected="selected"';
|
1776 |
+
} ?>>like
|
1777 |
+
</option>
|
1778 |
+
<option value="!%" <?php if ( $param_values[1] == "!%" ) {
|
1779 |
+
echo 'selected="selected"';
|
1780 |
+
} ?>>not like
|
1781 |
+
</option>
|
1782 |
+
<option value="=" <?php if ( $param_values[1] == "=" ) {
|
1783 |
+
echo 'selected="selected"';
|
1784 |
+
} ?>>empty
|
1785 |
+
</option>
|
1786 |
+
<option value="!" <?php if ( $param_values[1] == "!" ) {
|
1787 |
+
echo 'selected="selected"';
|
1788 |
+
} ?>>not empty
|
1789 |
+
</option>
|
1790 |
+
</select>
|
1791 |
|
1792 |
+
<?php if ( $key_select_or_input !== '' && in_array($types[$key_select_or_input], $select_type_fields) ) : ?>
|
1793 |
+
<select id="field_value<?php echo $k; ?>_<?php echo $key; ?>" <?php echo $multiple; ?> class="fm_condition_field_select_value">
|
1794 |
+
<?php
|
1795 |
+
switch ( $types[$key_select_or_input] ) {
|
1796 |
+
case "type_own_select":
|
1797 |
+
case "type_paypal_select":
|
1798 |
+
$w_size = explode('*:*w_size*:*', $paramss[$key_select_or_input]);
|
1799 |
+
break;
|
1800 |
+
case "type_radio":
|
1801 |
+
case "type_checkbox":
|
1802 |
+
case "type_paypal_radio":
|
1803 |
+
case "type_paypal_checkbox":
|
1804 |
+
case "type_paypal_shipping":
|
1805 |
+
$w_size = explode('*:*w_flow*:*', $paramss[$key_select_or_input]);
|
1806 |
+
break;
|
1807 |
+
}
|
1808 |
+
$w_choices = explode('*:*w_choices*:*', $w_size[1]);
|
1809 |
+
$w_choices_array = explode('***', $w_choices[0]);
|
1810 |
+
if ( $types[$key_select_or_input] == 'type_radio' || $types[$key_select_or_input] == 'type_checkbox' || $types[$key_select_or_input] == 'type_own_select' ) {
|
1811 |
+
if ( strpos($w_choices[1], 'w_value_disabled') > -1 ) {
|
1812 |
+
$w_value_disabled = explode('*:*w_value_disabled*:*', $w_choices[1]);
|
1813 |
+
$w_choices_value = explode('*:*w_choices_value*:*', $w_value_disabled[1]);
|
1814 |
+
$w_choices_value = $w_choices_value[0];
|
1815 |
+
}
|
1816 |
+
if ( isset($w_choices_value) ) {
|
1817 |
+
$w_choices_value_array = explode('***', $w_choices_value);
|
1818 |
+
}
|
1819 |
+
else {
|
1820 |
+
$w_choices_value_array = $w_choices_array;
|
1821 |
+
}
|
1822 |
+
}
|
1823 |
+
else {
|
1824 |
+
$w_choices_price = explode('*:*w_choices_price*:*', $w_choices[1]);
|
1825 |
+
$w_choices_value = $w_choices_price[0];
|
1826 |
+
$w_choices_value_array = explode('***', $w_choices_value);
|
1827 |
+
}
|
1828 |
+
for ( $m = 0; $m < count($w_choices_array); $m++ ) {
|
1829 |
+
if ( $types[$key_select_or_input] == "type_paypal_checkbox" || $types[$key_select_or_input] == "type_paypal_radio" || $types[$key_select_or_input] == "type_paypal_shipping" || $types[$key_select_or_input] == "type_paypal_select" ) {
|
1830 |
+
$w_choice = $w_choices_array[$m] . '*:*value*:*' . $w_choices_value_array[$m];
|
1831 |
+
}
|
1832 |
+
else {
|
1833 |
+
$w_choice = $w_choices_value_array[$m];
|
1834 |
+
}
|
1835 |
+
if ( in_array(esc_html($w_choice), $multiselect) ) {
|
1836 |
+
$selected = 'selected="selected"';
|
1837 |
+
}
|
1838 |
+
else {
|
1839 |
+
$selected = '';
|
1840 |
+
}
|
1841 |
+
if ( strpos($w_choices_array[$m], '[') === FALSE && strpos($w_choices_array[$m], ']') === FALSE ) {
|
1842 |
+
echo '<option id="choise_' . $k . '_' . $m . '" value="' . $w_choice . '" ' . $selected . '>' . $w_choices_array[$m] . '</option>';
|
1843 |
+
}
|
1844 |
+
}
|
1845 |
+
if ( $types[$key_select_or_input] == "type_address" ) {
|
1846 |
+
$w_countries = WDW_FM_Library(self::PLUGIN)->get_countries();
|
1847 |
+
$w_options = '';
|
1848 |
+
foreach ( $w_countries as $w_country ) {
|
1849 |
+
if ( in_array($w_country, $multiselect) ) {
|
1850 |
+
$selected = 'selected="selected"';
|
1851 |
+
}
|
1852 |
+
else {
|
1853 |
+
$selected = '';
|
1854 |
+
}
|
1855 |
+
echo '<option value="' . $w_country . '" ' . $selected . '>' . $w_country . '</option>';
|
1856 |
+
}
|
1857 |
+
}
|
1858 |
+
?>
|
1859 |
+
</select>
|
1860 |
+
<?php else :
|
1861 |
+
if ( $key_select_or_input != '' && ($types[$key_select_or_input] == "type_number" || $types[$key_select_or_input] == "type_phone") ) {
|
1862 |
+
$onkeypress_function = "onkeypress='return check_isnum_space(event)'";
|
1863 |
}
|
1864 |
else {
|
1865 |
+
if ( $key_select_or_input != '' && ($types[$key_select_or_input] == "type_paypal_price" || $types[$key_select_or_input] == "type_paypal_price_new") ) {
|
1866 |
+
$onkeypress_function = "onkeypress='return check_isnum_point(event)'";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1867 |
}
|
1868 |
else {
|
1869 |
+
$onkeypress_function = "";
|
1870 |
}
|
|
|
1871 |
}
|
1872 |
+
?>
|
1873 |
+
<input id="field_value<?php echo $k; ?>_<?php echo $key; ?>" type="text" value="<?php echo $param_values[2]; ?>" <?php echo $onkeypress_function; ?> class="fm_condition_field_input_value">
|
1874 |
+
<?php endif; ?>
|
1875 |
+
<span class="dashicons dashicons-trash" id="delete_condition<?php echo $k; ?>_<?php echo $key; ?>" onclick="delete_field_condition('<?php echo $k; ?>_<?php echo $key; ?>')"></span>
|
1876 |
+
</div>
|
1877 |
+
<?php
|
1878 |
+
}
|
1879 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1880 |
}
|
1881 |
+
?>
|
1882 |
+
</div>
|
1883 |
+
<?php
|
1884 |
}
|
1885 |
+
}
|
1886 |
+
?>
|
1887 |
+
</div>
|
1888 |
+
</div>
|
|
|
|
|
1889 |
</div>
|
1890 |
</div>
|
1891 |
</div>
|
1892 |
+
<input type="hidden" id="condition" name="condition" value="<?php echo $row->condition; ?>" />
|
1893 |
</div>
|
|
|
|
|
|
|
1894 |
|
1895 |
+
<div id="mapping_fieldset" class="adminform fm_fieldset_deactive">
|
1896 |
+
<?php
|
1897 |
+
if ( WDFMInstance(self::PLUGIN)->is_demo ) {
|
1898 |
+
echo WDW_FM_Library(self::PLUGIN)->message_id(0, 'This feature is disabled in demo.', 'error');
|
1899 |
+
}
|
1900 |
+
else {
|
1901 |
+
?>
|
1902 |
+
<div class="wd-table">
|
1903 |
+
<div class="wd-table-col-100">
|
1904 |
+
<div class="wd-box-section">
|
1905 |
+
<div class="wd-box-content">
|
1906 |
+
<div class="wd-group">
|
1907 |
+
<p class="description"><?php _e('WordPress Form Maker stores the submitted information into [prefix]_formmaker_submits MySQL database table of your website by default. With MySQL Mapping functionality of Form Maker you can insert this data into any local or remote table of your choice, or perform other queries based on submitted values. Press Add Query button to configure the first query for this form.', WDFMInstance(self::PLUGIN)->prefix); ?></p><br><br>
|
1908 |
+
<div style="text-align: right; padding-bottom: 20px;">
|
1909 |
+
<button id="add_query" class="wd-button button-primary" onclick="tb_show('', '<?php echo add_query_arg(array(
|
1910 |
+
'action' => 'FormMakerSQLMapping' . WDFMInstance(self::PLUGIN)->plugin_postfix,
|
1911 |
+
'id' => 0,
|
1912 |
+
'form_id' => $row->id,
|
1913 |
+
'width' => '1000',
|
1914 |
+
'height' => '500',
|
1915 |
+
'TB_iframe' => '1'
|
1916 |
+
), admin_url('admin-ajax.php')); ?>'); return false;"><?php _e('Add Query', WDFMInstance(self::PLUGIN)->prefix); ?></button>
|
1917 |
+
</div>
|
1918 |
+
<?php if ( $queries ) { ?>
|
1919 |
+
<table class="wp-list-table widefat fixed posts table_content">
|
1920 |
+
<thead>
|
1921 |
+
<tr>
|
1922 |
+
<th style="width:86%;" class="table_large_col"><?php _e('Query', WDFMInstance(self::PLUGIN)->prefix); ?></th>
|
1923 |
+
<th style="width:14%;" class="table_large_col"><?php _e('Delete', WDFMInstance(self::PLUGIN)->prefix); ?></th>
|
1924 |
+
</tr>
|
1925 |
+
</thead>
|
1926 |
+
<?php
|
1927 |
+
for ( $i = 0, $n = count($queries); $i < $n; $i++ ) {
|
1928 |
+
$query = $queries[$i];
|
1929 |
+
$link = add_query_arg(array(
|
1930 |
+
'action' => 'FormMakerSQLMapping' . WDFMInstance(self::PLUGIN)->plugin_postfix,
|
1931 |
+
'id' => $query->id,
|
1932 |
+
'form_id' => $row->id,
|
1933 |
+
'width' => '1000',
|
1934 |
+
'height' => '500',
|
1935 |
+
'TB_iframe' => '1'
|
1936 |
+
), admin_url('admin-ajax.php'));
|
1937 |
+
$remove_query = add_query_arg(array(
|
1938 |
+
'task' => 'remove_query',
|
1939 |
+
'current_id' => $id,
|
1940 |
+
'query_id' => $query->id,
|
1941 |
+
'fieldset_id' => 'mapping'
|
1942 |
+
), $page_url)
|
1943 |
+
?>
|
1944 |
+
<tr <?php if ( !$k ) {
|
1945 |
+
echo "class=\"alternate\"";
|
1946 |
+
} ?>>
|
1947 |
+
<td align="center">
|
1948 |
+
<a rel="{handler: 'iframe', size: {x: 530, y: 370}}" onclick="tb_show('', '<?php echo $link; ?>'); return false;" style="cursor:pointer;">
|
1949 |
+
<?php echo $query->query; ?>
|
1950 |
+
</a>
|
1951 |
+
</td>
|
1952 |
+
<td align="center" class="table_small_col check-column">
|
1953 |
+
<a href="<?php echo $remove_query; ?>"><span class="dashicons dashicons-trash"></span></a></td>
|
1954 |
+
</tr>
|
1955 |
+
<?php
|
1956 |
+
}
|
1957 |
+
?>
|
1958 |
+
</table>
|
1959 |
<?php
|
1960 |
}
|
1961 |
?>
|
1962 |
+
</div>
|
1963 |
+
</div>
|
|
|
|
|
1964 |
</div>
|
1965 |
</div>
|
1966 |
</div>
|
1967 |
+
<?php
|
1968 |
+
}
|
1969 |
+
?>
|
1970 |
</div>
|
1971 |
+
<div id="privacy_fieldset" class="adminform fm_fieldset_deactive">
|
|
|
|
|
|
|
|
|
|
|
1972 |
<div class="wd-table">
|
1973 |
+
<div class="wd-table-col-100">
|
1974 |
<div class="wd-box-section">
|
1975 |
<div class="wd-box-content">
|
1976 |
<div class="wd-group">
|
2027 |
set_theme();
|
2028 |
});
|
2029 |
</script>
|
2030 |
+
</div>
|
2031 |
<?php
|
2032 |
}
|
2033 |
|
2096 |
*
|
2097 |
*/
|
2098 |
public function form_layout( $params = array() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2099 |
echo $this->body_form_layout( $params );
|
2100 |
+
die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2101 |
}
|
2102 |
|
2103 |
/**
|
2162 |
* @param array $params
|
2163 |
*/
|
2164 |
public function display_options( $params = array() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2165 |
echo $this->body_display_options($params);
|
2166 |
+
die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2167 |
}
|
2168 |
|
2169 |
/**
|
2178 |
$display_on_list = $params['display_on_list'];
|
2179 |
$animation_effects = $params['animation_effects'];
|
2180 |
$back_url = $params['back_url'];
|
2181 |
+
$themes = $params['themes'];
|
2182 |
+
$default_theme = $params['default_theme'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2183 |
?>
|
2184 |
|
2185 |
<div class="fm-clear"></div>
|
2186 |
<div class="display-options-container">
|
2187 |
<div id="type_settings_fieldset" class="adminform">
|
2188 |
+
|
2189 |
+
<div id="themes_container" style="display: none">
|
2190 |
+
<div id="themes_icon" class="themes_container_col"><img src="<?php echo WDFMInstance(self::PLUGIN)->plugin_url; ?>/css/images/themes.svg"></div>
|
2191 |
+
<div id="themes_descr" class="themes_container_col">
|
2192 |
+
<h3><?php _e('Themes', WDFMInstance(self::PLUGIN)->prefix); ?></h3>
|
2193 |
+
<div id="old_theme_notice" class="error inline" style="display: none;"><p><?php _e('The theme you have selected is outdated. Please choose one from New Themes section.', WDFMInstance(self::PLUGIN)->prefix); ?></p></div>
|
2194 |
+
<p class="description"><?php _e('The appearance of your forms is controlled by the theme you select with this option. Press Edit button to open and modify your form theme.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2195 |
+
</div>
|
2196 |
+
<div id="themes_select" class="">
|
2197 |
+
<div id="themes_select_row">
|
2198 |
+
<select id="theme" name="theme" onChange="set_theme()">
|
2199 |
+
<optgroup label="<?php _e('New Themes', WDFMInstance(self::PLUGIN)->prefix); ?>">
|
2200 |
+
<option value="0" <?php echo $row->theme && $row->theme == 0 ? 'selected' : '' ?> data-version="2"><?php _e('Inherit From Website Theme', WDFMInstance(self::PLUGIN)->prefix); ?></option>
|
2201 |
+
<?php
|
2202 |
+
$optiongroup = TRUE;
|
2203 |
+
foreach ($themes as $theme) {
|
2204 |
+
if ($optiongroup && $theme->version == 1) {
|
2205 |
+
$optiongroup = FALSE;
|
2206 |
+
?>
|
2207 |
+
</optgroup>
|
2208 |
+
<optgroup label="<?php _e('Outdated Themes', WDFMInstance(self::PLUGIN)->prefix); ?>">
|
2209 |
+
<?php } ?>
|
2210 |
+
<option value="<?php echo $theme->id; ?>" <?php echo(($theme->id == $row->theme) ? 'selected' : ''); ?> data-version="<?php echo $theme->version; ?>"><?php echo $theme->title; ?></option>
|
2211 |
+
<?php } ?>
|
2212 |
+
</optgroup>
|
2213 |
+
</select>
|
2214 |
+
<a id="edit_css" class="button options-edit-button" onclick="window.open('<?php echo add_query_arg(array(
|
2215 |
+
'current_id' => ($row->theme && $row->theme != '0' ? $row->theme : $default_theme),
|
2216 |
+
WDFMInstance(self::PLUGIN)->nonce => wp_create_nonce(WDFMInstance(self::PLUGIN)->nonce)
|
2217 |
+
), admin_url('admin.php?page=themes' . WDFMInstance(self::PLUGIN)->menu_postfix . '&task=edit')); ?>'); return false;"><?php _e('Edit Theme', WDFMInstance(self::PLUGIN)->prefix); ?></a>
|
2218 |
+
</div>
|
2219 |
+
</div>
|
2220 |
+
</div>
|
2221 |
+
|
2222 |
+
|
2223 |
+
<div class="wd-table">
|
2224 |
+
<div class="wd-table-col-100 wd-table-col-left">
|
2225 |
<div class="wd-box-section">
|
2226 |
+
<div class="wd-box-content display-options-header">
|
2227 |
<span>
|
2228 |
<div class="fm-row fm-form-types">
|
2229 |
<label class="wd-label"><?php _e('Form Type', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
2230 |
+
<label class="display_option_item">
|
2231 |
<input type="radio" name="form_type" value="embedded" onclick="change_form_type('embedded'); change_hide_show('fm-embedded');"
|
2232 |
<?php echo $row->type == 'embedded' ? 'checked="checked"' : '' ?>>
|
2233 |
<span class="fm-embedded <?php echo $row->type == 'embedded' ? ' active' : '' ?>"></span>
|
2234 |
<p><?php _e('Embedded', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2235 |
</label>
|
2236 |
+
<label class="display_option_item">
|
2237 |
<input type="radio" name="form_type" value="popover" onclick="change_form_type('popover'); change_hide_show('fm-popover');"
|
2238 |
<?php echo $row->type == 'popover' ? 'checked="checked"' : '' ?>>
|
2239 |
<span class="fm-popover <?php echo $row->type == 'popover' ? ' active' : '' ?>"></span>
|
2240 |
<p><?php _e('Popup', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2241 |
</label>
|
2242 |
+
<label class="display_option_item">
|
2243 |
<input type="radio" name="form_type" value="topbar" onclick="change_form_type('topbar'); change_hide_show('fm-topbar');"
|
2244 |
<?php echo $row->type == 'topbar' ? 'checked="checked"' : '' ?>>
|
2245 |
<span class="fm-topbar <?php echo $row->type == 'topbar' ? ' active' : '' ?>"></span>
|
2246 |
<p><?php _e('Topbar', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2247 |
</label>
|
2248 |
+
<label class="display_option_item">
|
2249 |
<input type="radio" name="form_type" value="scrollbox" onclick="change_form_type('scrollbox'); change_hide_show('fm-scrollbox');"<?php echo $row->type == 'scrollbox' ? 'checked="checked"' : '' ?>>
|
2250 |
<span class="fm-scrollbox <?php echo $row->type == 'scrollbox' ? ' active' : '' ?>"></span>
|
2251 |
<p><?php _e('Scrollbox', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2256 |
</div>
|
2257 |
</div>
|
2258 |
</div>
|
|
|
2259 |
<div class="wd-table">
|
2260 |
+
<div class="wd-table-col-100 wd-table-col-left">
|
2261 |
<div class="wd-box-section">
|
2262 |
+
<div class="wd-box-content display-options-content">
|
2263 |
<span class="wd-group fm-embedded <?php echo $row->type == 'embedded' ? 'fm-show' : 'fm-hide' ?>">
|
2264 |
<label class="wd-label"><?php _e('Form Placement', WDFMInstance(self::PLUGIN)->prefix); ?></label>
|
2265 |
<div id="fm-embedded-element">
|
2266 |
<p><?php _e('Use', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2267 |
+
<input type="text" value='<?php echo (WDFMInstance(self::PLUGIN)->is_free == 2 ? '[wd_contact_form id="' . $row->form_id . '"]' : '[Form id="' . $row->form_id . '"]'); ?>' onclick="fm_select_value(this)" readonly="readonly"/>
|
2268 |
<p><?php _e('shortcode to display the form.', WDFMInstance(self::PLUGIN)->prefix); ?></p>
|
2269 |
</div>
|
2270 |
</span>
|
admin/views/Options_fm.php
CHANGED
@@ -56,6 +56,7 @@ class FMViewOptions_fmc extends FMAdminView_fmc {
|
|
56 |
$csv_delimiter = isset($fm_settings['csv_delimiter']) ? $fm_settings['csv_delimiter'] : ',';
|
57 |
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) && $fm_settings['fm_advanced_layout'] == '1' ? '1' : '0';
|
58 |
$fm_enable_wp_editor = !isset($fm_settings['fm_enable_wp_editor']) ? '1' : $fm_settings['fm_enable_wp_editor'];
|
|
|
59 |
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
60 |
$uninstall_href = add_query_arg( array( 'page' => 'uninstall' . WDFMInstance(self::PLUGIN)->menu_postfix), admin_url('admin.php') );
|
61 |
?>
|
56 |
$csv_delimiter = isset($fm_settings['csv_delimiter']) ? $fm_settings['csv_delimiter'] : ',';
|
57 |
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) && $fm_settings['fm_advanced_layout'] == '1' ? '1' : '0';
|
58 |
$fm_enable_wp_editor = !isset($fm_settings['fm_enable_wp_editor']) ? '1' : $fm_settings['fm_enable_wp_editor'];
|
59 |
+
|
60 |
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
61 |
$uninstall_href = add_query_arg( array( 'page' => 'uninstall' . WDFMInstance(self::PLUGIN)->menu_postfix), admin_url('admin.php') );
|
62 |
?>
|
admin/views/Pricing_fm.php
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
* Class FMViewPricing_fmc
|
5 |
*/
|
6 |
class FMViewPricing_fmc extends FMAdminView_fmc {
|
|
|
7 |
/**
|
8 |
* FMViewpricing_fm constructor.
|
9 |
*/
|
4 |
* Class FMViewPricing_fmc
|
5 |
*/
|
6 |
class FMViewPricing_fmc extends FMAdminView_fmc {
|
7 |
+
|
8 |
/**
|
9 |
* FMViewpricing_fm constructor.
|
10 |
*/
|
admin/views/Themes_fm.php
CHANGED
@@ -427,7 +427,7 @@ class FMViewThemes_fmc extends FMAdminView_fmc {
|
|
427 |
|
428 |
</div>
|
429 |
<div class="fm-close-icon" ng-class="{borderRight : CBPBorderRight, borderLeft : CBPBorderLeft, borderBottom : CBPBorderBottom, borderTop : CBPBorderTop, borderHoverRight : CBHPBorderRight, borderHoverLeft : CBHPBorderLeft, borderHoverBottom : CBHPBorderBottom, borderHoverTop : CBHPBorderTop}">
|
430 |
-
<span class="fm-close
|
431 |
</div>
|
432 |
<div class="fm-footer" ng-show="pagination != 'none'">
|
433 |
<div style="width: 100%;">
|
427 |
|
428 |
</div>
|
429 |
<div class="fm-close-icon" ng-class="{borderRight : CBPBorderRight, borderLeft : CBPBorderLeft, borderBottom : CBPBorderBottom, borderTop : CBPBorderTop, borderHoverRight : CBHPBorderRight, borderHoverLeft : CBHPBorderLeft, borderHoverBottom : CBHPBorderBottom, borderHoverTop : CBHPBorderTop}">
|
430 |
+
<span class="fm-close fm-ico-delete" ng-class="{borderRight : CBPBorderRight, borderLeft : CBPBorderLeft, borderBottom : CBPBorderBottom, borderTop : CBPBorderTop, borderHoverRight : CBHPBorderRight, borderHoverLeft : CBHPBorderLeft, borderHoverBottom : CBHPBorderBottom, borderHoverTop : CBHPBorderTop}"></span>
|
431 |
</div>
|
432 |
<div class="fm-footer" ng-show="pagination != 'none'">
|
433 |
<div style="width: 100%;">
|
admin/views/Uninstall_fm.php
CHANGED
@@ -74,18 +74,6 @@ class FMViewUninstall_fmc extends FMAdminView_fmc {
|
|
74 |
<p><?php echo $table; ?></p>
|
75 |
<?php
|
76 |
}
|
77 |
-
foreach ( $params['addons'] as $addon => $addon_name ) {
|
78 |
-
if ( defined($addon) && is_plugin_active(constant($addon)) ) {
|
79 |
-
if ( is_array($addon_name) ) {
|
80 |
-
foreach ( $addon_name as $ad_name ) {
|
81 |
-
echo '<p>' . WDFMInstance(self::PLUGIN)->prefix . 'formmaker_' . $ad_name . '</p>';
|
82 |
-
}
|
83 |
-
}
|
84 |
-
else {
|
85 |
-
echo '<p>' . WDFMInstance(self::PLUGIN)->prefix . 'formmaker_' . $addon_name . '</p>';
|
86 |
-
}
|
87 |
-
}
|
88 |
-
}
|
89 |
?>
|
90 |
</td>
|
91 |
</tr>
|
74 |
<p><?php echo $table; ?></p>
|
75 |
<?php
|
76 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
?>
|
78 |
</td>
|
79 |
</tr>
|
admin/views/Widget.php
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
* Class FMViewWidget_fmc
|
5 |
*/
|
6 |
class FMViewWidget_fmc {
|
|
|
7 |
/**
|
8 |
* Widget.
|
9 |
*
|
4 |
* Class FMViewWidget_fmc
|
5 |
*/
|
6 |
class FMViewWidget_fmc {
|
7 |
+
|
8 |
/**
|
9 |
* Widget.
|
10 |
*
|
admin/views/view.php
CHANGED
@@ -439,7 +439,7 @@ class FMAdminView_fmc {
|
|
439 |
),
|
440 |
);
|
441 |
?>
|
442 |
-
<style>#wpbody-content>div:not(.wrap), .wrap .notice:not(
|
443 |
<div class="fm-head">
|
444 |
<div><img src="<?php echo WDFMInstance(self::PLUGIN)->plugin_url . '/images/FormMaker.png'; ?>"></div>
|
445 |
<ul class="fm-breadcrumbs">
|
@@ -538,7 +538,7 @@ class FMAdminView_fmc {
|
|
538 |
<div class="fm-limitation-alert-container fm-hidden">
|
539 |
<div class="fm-limitation-alert-overlay"></div>
|
540 |
<div class="fm-limitation-alert">
|
541 |
-
<span class="
|
542 |
<div class="fm-limitation-alert-header">
|
543 |
<?php _e('The free version is limited up to 7 fields.', WDFMInstance(self::PLUGIN)->prefix); ?>
|
544 |
</div>
|
@@ -571,7 +571,7 @@ class FMAdminView_fmc {
|
|
571 |
}
|
572 |
}
|
573 |
jQuery(document).ready(function() {
|
574 |
-
jQuery('.fm-limitation-alert-overlay, .fm-limitation-alert .
|
575 |
fm_limitation_alert(false);
|
576 |
});
|
577 |
});
|
439 |
),
|
440 |
);
|
441 |
?>
|
442 |
+
<style>#wpbody-content>div:not(.wrap), .wrap .notice:not(.wd-notice) { display: none; }</style>
|
443 |
<div class="fm-head">
|
444 |
<div><img src="<?php echo WDFMInstance(self::PLUGIN)->plugin_url . '/images/FormMaker.png'; ?>"></div>
|
445 |
<ul class="fm-breadcrumbs">
|
538 |
<div class="fm-limitation-alert-container fm-hidden">
|
539 |
<div class="fm-limitation-alert-overlay"></div>
|
540 |
<div class="fm-limitation-alert">
|
541 |
+
<span class="fm-ico-delete"></span>
|
542 |
<div class="fm-limitation-alert-header">
|
543 |
<?php _e('The free version is limited up to 7 fields.', WDFMInstance(self::PLUGIN)->prefix); ?>
|
544 |
</div>
|
571 |
}
|
572 |
}
|
573 |
jQuery(document).ready(function() {
|
574 |
+
jQuery('.fm-limitation-alert-overlay, .fm-limitation-alert .fm-ico-delete').on('click', function() {
|
575 |
fm_limitation_alert(false);
|
576 |
});
|
577 |
});
|
contact-form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
-
* Version: 1.
|
7 |
* Author: WebDorado Form Builder Team
|
8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -95,8 +95,8 @@ final class WDCFM {
|
|
95 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
96 |
$this->front_urls = $this->get_front_urls();
|
97 |
$this->main_file = plugin_basename(__FILE__);
|
98 |
-
$this->plugin_version = '1.
|
99 |
-
$this->db_version = '2.
|
100 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
101 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
102 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
@@ -174,7 +174,8 @@ final class WDCFM {
|
|
174 |
add_shortcode('email_verification' . $this->plugin_postfix, array($this, 'fm_email_verification_shortcode'));
|
175 |
}
|
176 |
// Action to display not emedded type forms.
|
177 |
-
|
|
|
178 |
add_action('wp_footer', array($this, 'FM_front_end_main'));
|
179 |
}
|
180 |
|
@@ -227,7 +228,7 @@ final class WDCFM {
|
|
227 |
}
|
228 |
|
229 |
public function enqueue_editor_styles() {
|
230 |
-
wp_enqueue_style('
|
231 |
}
|
232 |
|
233 |
/**
|
@@ -245,8 +246,8 @@ final class WDCFM {
|
|
245 |
* @param $elements_manager
|
246 |
*/
|
247 |
public function register_widget_category( $elements_manager ) {
|
248 |
-
$elements_manager->add_category('tenweb-widgets', array(
|
249 |
-
'title' => __('10WEB', 'tenweb-builder'),
|
250 |
'icon' => 'fa fa-plug',
|
251 |
));
|
252 |
}
|
@@ -505,15 +506,19 @@ final class WDCFM {
|
|
505 |
$page = WDW_FM_Library(self::PLUGIN)->get('page');
|
506 |
if (($page != '') && (($page == 'manage' . $this->menu_postfix) || ($page == 'options' . $this->menu_postfix) || ($page == 'submissions' . $this->menu_postfix) || ($page == 'blocked_ips' . $this->menu_postfix) || ($page == 'themes' . $this->menu_postfix) || ($page == 'uninstall' . $this->menu_postfix) || ($page == 'addons' . $this->menu_postfix) || ($this->is_free && $page == 'pricing' . $this->menu_postfix))) {
|
507 |
$page = ucfirst(substr($page, 0, strlen($page) - strlen($this->menu_postfix)));
|
508 |
-
// This ugly span is here to hide admin output while css files are not loaded. Temporary.
|
509 |
-
// todo: Remove span somehow.
|
510 |
echo '<div id="fm_loading"></div>';
|
511 |
-
echo '<
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
}
|
518 |
}
|
519 |
|
@@ -552,18 +557,26 @@ final class WDCFM {
|
|
552 |
|
553 |
wp_register_script($this->handle_prefix . '-phone_field', $this->plugin_url . '/js/intlTelInput.js', array(), '11.0.0');
|
554 |
|
|
|
|
|
|
|
555 |
wp_register_script($this->handle_prefix . '-admin', $this->plugin_url . '/js/form_maker_admin.js', array(), $this->plugin_version);
|
556 |
wp_register_script($this->handle_prefix . '-manage', $this->plugin_url . '/js/form_maker_manage.js', array(), $this->plugin_version);
|
557 |
wp_register_script($this->handle_prefix . '-manage-edit', $this->plugin_url . '/js/form_maker_manage_edit.js', array(), $this->plugin_version);
|
558 |
wp_register_script($this->handle_prefix . '-formmaker_div', $this->plugin_url . '/js/formmaker_div.js', array(), $this->plugin_version);
|
559 |
wp_register_script($this->handle_prefix . '-form-options', $this->plugin_url . '/js/form_maker_form_options.js', array(), $this->plugin_version);
|
560 |
-
wp_localize_script($this->handle_prefix . '-form-options', '
|
561 |
'not_valid_value' => __('Enter a valid value.', $this->prefix),
|
562 |
'required_field' => __('Field is required.', $this->prefix),
|
563 |
'not_valid_email' => __('Enter a valid email address.', $this->prefix),
|
564 |
));
|
565 |
wp_register_script($this->handle_prefix . '-form-advanced-layout', $this->plugin_url . '/js/form_maker_form_advanced_layout.js', array(), $this->plugin_version);
|
566 |
wp_register_script($this->handle_prefix . '-add-fields', $this->plugin_url . '/js/add_field.js', array($this->handle_prefix . '-formmaker_div'), $this->plugin_version);
|
|
|
|
|
|
|
|
|
|
|
567 |
wp_localize_script($this->handle_prefix . '-add-fields', 'form_maker', array(
|
568 |
'countries' => WDW_FM_Library(self::PLUGIN)->get_countries(),
|
569 |
'states' => WDW_FM_Library(self::PLUGIN)->get_states(),
|
@@ -664,6 +677,7 @@ final class WDCFM {
|
|
664 |
));
|
665 |
}
|
666 |
wp_register_style($this->handle_prefix . '-pricing', $this->plugin_url . '/css/pricing.css', array(), $this->plugin_version);
|
|
|
667 |
}
|
668 |
|
669 |
/**
|
@@ -1023,7 +1037,7 @@ final class WDCFM {
|
|
1023 |
}
|
1024 |
$version = get_option("wd_form_maker_version");
|
1025 |
$new_version = $this->db_version;
|
1026 |
-
|
1027 |
require_once $this->plugin_dir . "/form_maker_insert.php";
|
1028 |
if (!$version) {
|
1029 |
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker'") == $wpdb->prefix . "formmaker") {
|
@@ -1227,37 +1241,37 @@ final class WDCFM {
|
|
1227 |
*
|
1228 |
*/
|
1229 |
function fm_check_addons_compatibility() {
|
1230 |
-
//
|
1231 |
$add_ons = array(
|
|
|
|
|
|
|
1232 |
'form-maker-export-import' => array('version' => '2.0.7', 'file' => 'fm_exp_imp.php'),
|
1233 |
-
'form-maker-
|
1234 |
-
'form-maker-
|
1235 |
-
'form-maker-
|
1236 |
-
'form-maker-
|
1237 |
-
'form-maker-
|
1238 |
-
'form-maker-
|
1239 |
-
'form-maker-
|
1240 |
-
'form-maker-
|
1241 |
-
'form-maker-pdf-integration' => array('version' => '1.1.3', 'file' => 'fm_pdf_integration.php'),
|
1242 |
-
'form-maker-stripe' => array('version' => '1.1.5', 'file' => 'fm_stripe.php'),
|
1243 |
-
'form-maker-calculator' => array('version' => '1.0.3', 'file' => 'fm_calculator.php'),
|
1244 |
);
|
1245 |
|
1246 |
$add_ons_notice = array();
|
1247 |
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
1248 |
|
1249 |
-
foreach ($add_ons as $add_on_key => $add_on_value) {
|
1250 |
-
$addon_path = plugin_dir_path(
|
1251 |
-
if (is_plugin_active($add_on_key . '/' . $add_on_value['file'])) {
|
1252 |
$addon = get_plugin_data($addon_path); // array
|
1253 |
-
if (version_compare($addon['Version'], $add_on_value['version'], '
|
1254 |
-
|
1255 |
array_push($add_ons_notice, $addon['Name']);
|
1256 |
}
|
1257 |
}
|
1258 |
}
|
1259 |
|
1260 |
-
if (!empty($add_ons_notice)) {
|
1261 |
$this->fm_addons_compatibility_notice($add_ons_notice);
|
1262 |
}
|
1263 |
}
|
@@ -1354,7 +1368,7 @@ function fmc_bp_install_notice() {
|
|
1354 |
$dismiss_url = add_query_arg(array( 'action' => 'wd_bp_dismiss' ), admin_url('admin-ajax.php'));
|
1355 |
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd'));
|
1356 |
?>
|
1357 |
-
<div class="notice notice-info" id="wd_bp_notice_cont">
|
1358 |
<p>
|
1359 |
<img id="wd_bp_logo_notice" src="<?php echo $url . '/images/logo.png'; ?>" />
|
1360 |
<?php echo sprintf(__("%s advises: Install brand new FREE %s plugin to keep your forms and website safe.", $prefix), $nicename, '<a href="https://wordpress.org/plugins/backup-wd/" title="' . __("More details", $prefix) . '" target="_blank">' . __("Backup WD", $prefix) . '</a>'); ?>
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
+
* Version: 1.13.0
|
7 |
* Author: WebDorado Form Builder Team
|
8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
95 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
96 |
$this->front_urls = $this->get_front_urls();
|
97 |
$this->main_file = plugin_basename(__FILE__);
|
98 |
+
$this->plugin_version = '1.13.0';
|
99 |
+
$this->db_version = '2.13.0';
|
100 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
101 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
102 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
174 |
add_shortcode('email_verification' . $this->plugin_postfix, array($this, 'fm_email_verification_shortcode'));
|
175 |
}
|
176 |
// Action to display not emedded type forms.
|
177 |
+
global $pagenow;
|
178 |
+
if (!is_admin() || !in_array($pagenow, array('wp-login.php', 'wp-register.php'))) {
|
179 |
add_action('wp_footer', array($this, 'FM_front_end_main'));
|
180 |
}
|
181 |
|
228 |
}
|
229 |
|
230 |
public function enqueue_editor_styles() {
|
231 |
+
wp_enqueue_style($this->handle_prefix . '-icons', $this->plugin_url . '/fonts/style.css', array(), '1.0.0');
|
232 |
}
|
233 |
|
234 |
/**
|
246 |
* @param $elements_manager
|
247 |
*/
|
248 |
public function register_widget_category( $elements_manager ) {
|
249 |
+
$elements_manager->add_category('tenweb-plugins-widgets', array(
|
250 |
+
'title' => __('10WEB Plugins', 'tenweb-builder'),
|
251 |
'icon' => 'fa fa-plug',
|
252 |
));
|
253 |
}
|
506 |
$page = WDW_FM_Library(self::PLUGIN)->get('page');
|
507 |
if (($page != '') && (($page == 'manage' . $this->menu_postfix) || ($page == 'options' . $this->menu_postfix) || ($page == 'submissions' . $this->menu_postfix) || ($page == 'blocked_ips' . $this->menu_postfix) || ($page == 'themes' . $this->menu_postfix) || ($page == 'uninstall' . $this->menu_postfix) || ($page == 'addons' . $this->menu_postfix) || ($this->is_free && $page == 'pricing' . $this->menu_postfix))) {
|
508 |
$page = ucfirst(substr($page, 0, strlen($page) - strlen($this->menu_postfix)));
|
|
|
|
|
509 |
echo '<div id="fm_loading"></div>';
|
510 |
+
echo '<div id="fm_admin_container" class="fm-form-container" style="display: none;">';
|
511 |
+
try {
|
512 |
+
require_once ($this->plugin_dir . '/admin/controllers/' . $page . '_fm.php');
|
513 |
+
$controller_class = 'FMController' . $page . $this->menu_postfix;
|
514 |
+
$controller = new $controller_class();
|
515 |
+
$controller->execute();
|
516 |
+
} catch (Exception $e) {
|
517 |
+
ob_start();
|
518 |
+
debug_print_backtrace();
|
519 |
+
error_log(ob_get_clean());
|
520 |
+
}
|
521 |
+
echo '</div>';
|
522 |
}
|
523 |
}
|
524 |
|
557 |
|
558 |
wp_register_script($this->handle_prefix . '-phone_field', $this->plugin_url . '/js/intlTelInput.js', array(), '11.0.0');
|
559 |
|
560 |
+
// For drag and drop on mobiles.
|
561 |
+
wp_register_script($this->handle_prefix . '_jquery.ui.touch-punch.min', $this->plugin_url . '/js/jquery.ui.touch-punch.min.js', array('jquery'), '0.2.3');
|
562 |
+
|
563 |
wp_register_script($this->handle_prefix . '-admin', $this->plugin_url . '/js/form_maker_admin.js', array(), $this->plugin_version);
|
564 |
wp_register_script($this->handle_prefix . '-manage', $this->plugin_url . '/js/form_maker_manage.js', array(), $this->plugin_version);
|
565 |
wp_register_script($this->handle_prefix . '-manage-edit', $this->plugin_url . '/js/form_maker_manage_edit.js', array(), $this->plugin_version);
|
566 |
wp_register_script($this->handle_prefix . '-formmaker_div', $this->plugin_url . '/js/formmaker_div.js', array(), $this->plugin_version);
|
567 |
wp_register_script($this->handle_prefix . '-form-options', $this->plugin_url . '/js/form_maker_form_options.js', array(), $this->plugin_version);
|
568 |
+
wp_localize_script($this->handle_prefix . '-form-options', 'form_maker_options', array(
|
569 |
'not_valid_value' => __('Enter a valid value.', $this->prefix),
|
570 |
'required_field' => __('Field is required.', $this->prefix),
|
571 |
'not_valid_email' => __('Enter a valid email address.', $this->prefix),
|
572 |
));
|
573 |
wp_register_script($this->handle_prefix . '-form-advanced-layout', $this->plugin_url . '/js/form_maker_form_advanced_layout.js', array(), $this->plugin_version);
|
574 |
wp_register_script($this->handle_prefix . '-add-fields', $this->plugin_url . '/js/add_field.js', array($this->handle_prefix . '-formmaker_div'), $this->plugin_version);
|
575 |
+
wp_localize_script($this->handle_prefix . '-manage', 'form_maker_manage', array(
|
576 |
+
'add_new_field' => __('Add Field', $this->prefix),
|
577 |
+
'add_column' => __('Add Column', $this->prefix),
|
578 |
+
'add_row' => __('Add Section', $this->prefix),
|
579 |
+
));
|
580 |
wp_localize_script($this->handle_prefix . '-add-fields', 'form_maker', array(
|
581 |
'countries' => WDW_FM_Library(self::PLUGIN)->get_countries(),
|
582 |
'states' => WDW_FM_Library(self::PLUGIN)->get_states(),
|
677 |
));
|
678 |
}
|
679 |
wp_register_style($this->handle_prefix . '-pricing', $this->plugin_url . '/css/pricing.css', array(), $this->plugin_version);
|
680 |
+
wp_register_style($this->handle_prefix . '-icons', $this->plugin_url . '/fonts/style.css', array(), '1.0.0');
|
681 |
}
|
682 |
|
683 |
/**
|
1037 |
}
|
1038 |
$version = get_option("wd_form_maker_version");
|
1039 |
$new_version = $this->db_version;
|
1040 |
+
$option_key = ($this->is_free == 2 ? 'fmc_settings' : 'fm_settings');
|
1041 |
require_once $this->plugin_dir . "/form_maker_insert.php";
|
1042 |
if (!$version) {
|
1043 |
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker'") == $wpdb->prefix . "formmaker") {
|
1241 |
*
|
1242 |
*/
|
1243 |
function fm_check_addons_compatibility() {
|
1244 |
+
// Add-on last version(version which is compatible with current version of form maker).
|
1245 |
$add_ons = array(
|
1246 |
+
'form-maker-calculator' => array('version' => '1.1.2', 'file' => 'fm_calculator.php'),
|
1247 |
+
'form-maker-conditional-emails' => array('version' => '1.1.6', 'file' => 'fm_conditional_emails.php'),
|
1248 |
+
'form-maker-dropbox-integration' => array('version' => '1.2.5', 'file' => 'fm_dropbox_integration.php'),
|
1249 |
'form-maker-export-import' => array('version' => '2.0.7', 'file' => 'fm_exp_imp.php'),
|
1250 |
+
'form-maker-gdrive-integration' => array('version' => '1.1.2', 'file' => 'fm_gdrive_integration.php'),
|
1251 |
+
'form-maker-mailchimp' => array('version' => '1.1.6', 'file' => 'fm_mailchimp.php'),
|
1252 |
+
'form-maker-pdf-integration' => array('version' => '1.1.7', 'file' => 'fm_pdf_integration.php'),
|
1253 |
+
'form-maker-post-generation' => array('version' => '1.1.5', 'file' => 'fm_post_generation.php'),
|
1254 |
+
'form-maker-pushover' => array('version' => '1.1.4', 'file' => 'fm_pushover.php'),
|
1255 |
+
'form-maker-reg' => array('version' => '1.2.5', 'file' => 'fm_reg.php'),
|
1256 |
+
'form-maker-save-progress' => array('version' => '1.1.6', 'file' => 'fm_save.php'),
|
1257 |
+
'form-maker-stripe' => array('version' => '1.1.6', 'file' => 'fm_stripe.php'),
|
|
|
|
|
|
|
1258 |
);
|
1259 |
|
1260 |
$add_ons_notice = array();
|
1261 |
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
1262 |
|
1263 |
+
foreach ( $add_ons as $add_on_key => $add_on_value ) {
|
1264 |
+
$addon_path = plugin_dir_path(dirname(__FILE__)) . $add_on_key . '/' . $add_on_value['file'];
|
1265 |
+
if ( is_plugin_active($add_on_key . '/' . $add_on_value['file']) ) {
|
1266 |
$addon = get_plugin_data($addon_path); // array
|
1267 |
+
if ( version_compare($addon['Version'], $add_on_value['version'], '<') ) {
|
1268 |
+
// deactivate_plugins($addon_path);
|
1269 |
array_push($add_ons_notice, $addon['Name']);
|
1270 |
}
|
1271 |
}
|
1272 |
}
|
1273 |
|
1274 |
+
if ( !empty($add_ons_notice) ) {
|
1275 |
$this->fm_addons_compatibility_notice($add_ons_notice);
|
1276 |
}
|
1277 |
}
|
1368 |
$dismiss_url = add_query_arg(array( 'action' => 'wd_bp_dismiss' ), admin_url('admin-ajax.php'));
|
1369 |
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd'));
|
1370 |
?>
|
1371 |
+
<div class="notice notice-info wd-notice" id="wd_bp_notice_cont">
|
1372 |
<p>
|
1373 |
<img id="wd_bp_logo_notice" src="<?php echo $url . '/images/logo.png'; ?>" />
|
1374 |
<?php echo sprintf(__("%s advises: Install brand new FREE %s plugin to keep your forms and website safe.", $prefix), $nicename, '<a href="https://wordpress.org/plugins/backup-wd/" title="' . __("More details", $prefix) . '" target="_blank">' . __("Backup WD", $prefix) . '</a>'); ?>
|
css/fm_elementor_icon/fm_elementor_icon.css
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
@font-face {
|
2 |
-
font-family: 'twbb-icons';
|
3 |
-
src: url('../../fonts/twbb-icons.eot');
|
4 |
-
src: url('../../fonts/twbb-icons.eot') format('embedded-opentype'),
|
5 |
-
url('../../fonts/twbb-icons.ttf') format('truetype'),
|
6 |
-
url('../../fonts/twbb-icons.woff') format('woff'),
|
7 |
-
url('../../fonts/twbb-icon.svg') format('svg');
|
8 |
-
font-weight: normal;
|
9 |
-
font-style: normal;
|
10 |
-
}
|
11 |
-
|
12 |
-
.twbb-widget-icon {
|
13 |
-
/* use !important to prevent issues with browser extensions that change fonts */
|
14 |
-
font-family: 'twbb-icons' !important;
|
15 |
-
speak: none;
|
16 |
-
font-style: normal;
|
17 |
-
font-weight: normal;
|
18 |
-
font-variant: normal;
|
19 |
-
text-transform: none;
|
20 |
-
line-height: 1;
|
21 |
-
/* Better Font Rendering =========== */
|
22 |
-
-webkit-font-smoothing: antialiased;
|
23 |
-
-moz-osx-font-smoothing: grayscale;
|
24 |
-
}
|
25 |
-
|
26 |
-
.twbb-widget-icon:before {
|
27 |
-
color: #556068;
|
28 |
-
}
|
29 |
-
|
30 |
-
.elementor-element:hover .twbb-widget-icon:before {
|
31 |
-
color: #d30c5c;
|
32 |
-
}
|
33 |
-
|
34 |
-
/*ICONS*/
|
35 |
-
|
36 |
-
.twbb-photo-gallery.twbb-widget-icon:before {
|
37 |
-
content: "\e906";
|
38 |
-
color: #556068;
|
39 |
-
}
|
40 |
-
.twbb-slider-wd.twbb-widget-icon:before {
|
41 |
-
content: "\e907";
|
42 |
-
color: #556068;
|
43 |
-
}
|
44 |
-
.twbb-form-maker.twbb-widget-icon:before {
|
45 |
-
content: "\e908";
|
46 |
-
color: #556068;
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/form_maker_frontend.css
CHANGED
@@ -30,6 +30,12 @@
|
|
30 |
vertical-align: top !important;
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
div[type="type_captcha"] .wdform-element-section * {
|
34 |
vertical-align: middle;
|
35 |
}
|
@@ -766,6 +772,10 @@ div[type="type_file_upload"] .wdform-element-section {
|
|
766 |
font-size: 20px;
|
767 |
}
|
768 |
|
|
|
|
|
|
|
|
|
769 |
input[type=number].wd-type-number::-webkit-inner-spin-button,
|
770 |
input[type=number].wd-type-number::-webkit-outer-spin-button {
|
771 |
-webkit-appearance: none;
|
@@ -1039,3 +1049,70 @@ div[type="type_slider"] .label {
|
|
1039 |
display: initial !important;
|
1040 |
margin-right: 5px;
|
1041 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
vertical-align: top !important;
|
31 |
}
|
32 |
|
33 |
+
div[type="type_submit_reset"],
|
34 |
+
div[type="type_button"] {
|
35 |
+
height: 100%;
|
36 |
+
justify-content: flex-end;
|
37 |
+
}
|
38 |
+
|
39 |
div[type="type_captcha"] .wdform-element-section * {
|
40 |
vertical-align: middle;
|
41 |
}
|
772 |
font-size: 20px;
|
773 |
}
|
774 |
|
775 |
+
.rtl .fm-form .wd-calendar-button {
|
776 |
+
margin: 0 -25px 0 0;
|
777 |
+
}
|
778 |
+
|
779 |
input[type=number].wd-type-number::-webkit-inner-spin-button,
|
780 |
input[type=number].wd-type-number::-webkit-outer-spin-button {
|
781 |
-webkit-appearance: none;
|
1049 |
display: initial !important;
|
1050 |
margin-right: 5px;
|
1051 |
}
|
1052 |
+
|
1053 |
+
.fm-form-builder .wdform_page {
|
1054 |
+
display: flex;
|
1055 |
+
}
|
1056 |
+
.fm-form-builder .wdform_section {
|
1057 |
+
flex-direction: column;
|
1058 |
+
flex: 1;
|
1059 |
+
}
|
1060 |
+
.fm-form-builder .wdform_row {
|
1061 |
+
flex: 1;
|
1062 |
+
}
|
1063 |
+
.wdform_column {
|
1064 |
+
display: flex;
|
1065 |
+
flex-direction: column;
|
1066 |
+
}
|
1067 |
+
.fm-form-builder .wdform_column {
|
1068 |
+
width: initial !important;
|
1069 |
+
flex-direction: row;
|
1070 |
+
}
|
1071 |
+
.fm-form-builder .wdform_section {
|
1072 |
+
display: inline-block;
|
1073 |
+
flex-wrap: unset;
|
1074 |
+
vertical-align: top;
|
1075 |
+
}
|
1076 |
+
.fm-form .fm-form-builder .wdform_section:first-child:nth-last-child(1) {
|
1077 |
+
width: 100%;
|
1078 |
+
}
|
1079 |
+
.fm-form .fm-form-builder .wdform_section:first-child:nth-last-child(2),
|
1080 |
+
.fm-form .fm-form-builder .wdform_section:first-child:nth-last-child(2) ~ .wdform_section {
|
1081 |
+
width: 100%;
|
1082 |
+
}
|
1083 |
+
.fm-form .fm-form-builder .wdform_section:first-child:nth-last-child(3),
|
1084 |
+
.fm-form .fm-form-builder .wdform_section:first-child:nth-last-child(3) ~ .wdform_section {
|
1085 |
+
width: 50%;
|
1086 |
+
}
|
1087 |
+
.fm-form .fm-form-builder .wdform_section:first-child:nth-last-child(4),
|
1088 |
+
.fm-form .fm-form-builder .wdform_section:first-child:nth-last-child(4) ~ .wdform_section {
|
1089 |
+
width: 33.33%;
|
1090 |
+
}
|
1091 |
+
|
1092 |
+
@media screen and (max-width: 768px) {
|
1093 |
+
.fm-form .fm-form-builder .wdform_section,
|
1094 |
+
.fm-form .fm-form-builder .wdform_column {
|
1095 |
+
width: 100% !important;
|
1096 |
+
}
|
1097 |
+
.fm-form-container .fm-form-builder .fm-form .wdform-label-section,
|
1098 |
+
.fm-form-container .fm-form-builder .fm-form .wdform-element-section {
|
1099 |
+
width: 100%;
|
1100 |
+
}
|
1101 |
+
}
|
1102 |
+
|
1103 |
+
.fm-col-1 {
|
1104 |
+
flex: 0 1 100% !important;;
|
1105 |
+
width: 100% !important;;
|
1106 |
+
}
|
1107 |
+
.fm-col-2 {
|
1108 |
+
flex: 0 1 50% !important;;
|
1109 |
+
width: 50% !important;;
|
1110 |
+
}
|
1111 |
+
.fm-col-3 {
|
1112 |
+
flex: 0 1 33.33% !important;;
|
1113 |
+
width: 33.33% !important;;
|
1114 |
+
}
|
1115 |
+
.fm-col-4 {
|
1116 |
+
flex: 0 1 25% !important;
|
1117 |
+
width: 25% !important;;
|
1118 |
+
}
|
css/form_maker_tables.css
CHANGED
@@ -213,19 +213,19 @@
|
|
213 |
|
214 |
#manage_form .first-time-use-close {
|
215 |
background-color: #ffffff;
|
216 |
-
border: 1px solid #0085ba;
|
217 |
border-radius: 50%;
|
218 |
box-sizing: content-box;
|
219 |
cursor: pointer;
|
220 |
-
font-size:
|
221 |
-
height: 15px;
|
222 |
-
line-height: 16px;
|
223 |
margin: 0;
|
224 |
padding: 0;
|
225 |
position: absolute;
|
226 |
right: -9px;
|
227 |
top: -9px;
|
228 |
-
|
|
|
|
|
|
|
229 |
}
|
230 |
|
231 |
#add_field {
|
@@ -238,8 +238,8 @@
|
|
238 |
animation-fill-mode: both;
|
239 |
color: #0085ba;
|
240 |
position: absolute;
|
241 |
-
top:
|
242 |
-
right:
|
243 |
min-width: 50px;
|
244 |
height: auto;
|
245 |
width: initial;
|
@@ -249,13 +249,14 @@
|
|
249 |
|
250 |
#add_field_cont .wdform_field {
|
251 |
display: table-cell;
|
252 |
-
cursor:
|
253 |
background-color: transparent !important;
|
254 |
border: none;
|
255 |
padding: 0;
|
256 |
}
|
257 |
|
258 |
-
#add_field_cont .add-new-button{
|
|
|
259 |
padding: 5px 15px 5px 5px;
|
260 |
color:#fff;
|
261 |
font-size: 16px;
|
@@ -265,9 +266,9 @@
|
|
265 |
height: 30px;
|
266 |
}
|
267 |
|
268 |
-
.add-new-button .
|
269 |
-
|
270 |
-
font-size:
|
271 |
}
|
272 |
|
273 |
@-webkit-keyframes bounceInUp {
|
@@ -421,9 +422,18 @@
|
|
421 |
color: #757575;
|
422 |
}
|
423 |
|
424 |
-
.hide
|
425 |
display: none;
|
426 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
|
428 |
.fm-add-new {
|
429 |
cursor: pointer;
|
@@ -512,7 +522,8 @@ div .wd-button:first-child {
|
|
512 |
|
513 |
.wd-box-section {
|
514 |
background-color: #FFFFFF;
|
515 |
-
border: 1px solid #
|
|
|
516 |
margin: 5px 0;
|
517 |
}
|
518 |
|
@@ -525,7 +536,7 @@ div .wd-button:first-child {
|
|
525 |
|
526 |
.wd-box-content {
|
527 |
overflow-wrap: break-word;
|
528 |
-
padding:
|
529 |
box-sizing: border-box;
|
530 |
-moz-box-sizing: border-box;
|
531 |
-webkit-box-sizing: border-box;
|
@@ -700,7 +711,8 @@ div.error_fm {
|
|
700 |
margin: 3px 3px 3px 4px;
|
701 |
}
|
702 |
|
703 |
-
.wdform_column input[type="checkbox"],
|
|
|
704 |
float: right !important;
|
705 |
margin: 3px 3px 3px 4px;
|
706 |
}
|
@@ -747,9 +759,10 @@ div.error_fm {
|
|
747 |
.add-popup .close-popup {
|
748 |
cursor: pointer;
|
749 |
float: right;
|
750 |
-
height:
|
751 |
-
width:
|
752 |
-
font-size:
|
|
|
753 |
color: #000000;
|
754 |
}
|
755 |
|
@@ -1133,7 +1146,6 @@ div.error_fm {
|
|
1133 |
|
1134 |
.display-options-container {
|
1135 |
background: transparent;
|
1136 |
-
margin-top: 10px;
|
1137 |
}
|
1138 |
|
1139 |
.display-options-container .wd-table {
|
@@ -1174,28 +1186,49 @@ div.error_fm {
|
|
1174 |
margin-right: 10px !important;
|
1175 |
}
|
1176 |
|
1177 |
-
.
|
1178 |
-
|
1179 |
-
|
|
|
1180 |
}
|
1181 |
|
1182 |
-
.
|
1183 |
-
|
1184 |
}
|
1185 |
|
1186 |
-
.submenu-box
|
1187 |
-
display:
|
1188 |
-
|
1189 |
-
|
|
|
|
|
|
|
|
|
|
|
1190 |
}
|
1191 |
|
1192 |
#submenu {
|
|
|
|
|
|
|
1193 |
margin: 0;
|
1194 |
-
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1195 |
}
|
1196 |
|
1197 |
#submenu li {
|
1198 |
-
display: inline;
|
1199 |
margin: 0;
|
1200 |
padding: 0;
|
1201 |
}
|
@@ -1203,8 +1236,8 @@ div.error_fm {
|
|
1203 |
#submenu a:hover,
|
1204 |
#submenu a.active,
|
1205 |
#submenu span.nolink.active {
|
1206 |
-
|
1207 |
-
|
1208 |
}
|
1209 |
|
1210 |
#submenu a:focus {
|
@@ -1213,8 +1246,7 @@ div.error_fm {
|
|
1213 |
|
1214 |
#submenu li a,
|
1215 |
#submenu span.nolink {
|
1216 |
-
|
1217 |
-
color: #444;
|
1218 |
cursor: pointer;
|
1219 |
font-size: 13px;
|
1220 |
font-weight: bold;
|
@@ -1222,7 +1254,7 @@ div.error_fm {
|
|
1222 |
background: #fff;
|
1223 |
text-decoration: none;
|
1224 |
display: inline-block;
|
1225 |
-
|
1226 |
}
|
1227 |
|
1228 |
fieldset.adminform {
|
@@ -1715,7 +1747,7 @@ button:focus {
|
|
1715 |
vertical-align: middle;
|
1716 |
}
|
1717 |
|
1718 |
-
.fm-theme-banner #edit_css
|
1719 |
position: absolute;
|
1720 |
top: 7px;
|
1721 |
left: 298px
|
@@ -2314,11 +2346,21 @@ button:focus {
|
|
2314 |
.fm_form_options .theme-wrap {
|
2315 |
position: relative;
|
2316 |
}
|
2317 |
-
|
|
|
|
|
|
|
|
|
|
|
2318 |
cursor: pointer;
|
2319 |
position: absolute;
|
2320 |
-
top:
|
2321 |
-
right:
|
|
|
|
|
|
|
|
|
|
|
2322 |
}
|
2323 |
|
2324 |
.fm_form_options #form_javascript {
|
@@ -2360,7 +2402,8 @@ button:focus {
|
|
2360 |
max-width: 94px;
|
2361 |
}
|
2362 |
|
2363 |
-
.fm_form_options .dashicons
|
|
|
2364 |
vertical-align: middle;
|
2365 |
font-size: 20px;
|
2366 |
cursor: pointer;
|
@@ -2379,6 +2422,12 @@ button:focus {
|
|
2379 |
text-align: right;
|
2380 |
}
|
2381 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2382 |
.wd-has-placeholder input[type="text"] {
|
2383 |
padding-right: 35px;
|
2384 |
}
|
@@ -2389,6 +2438,11 @@ button:focus {
|
|
2389 |
position: absolute;
|
2390 |
}
|
2391 |
|
|
|
|
|
|
|
|
|
|
|
2392 |
.fm_form_options #emailTab_fieldset .mail_name {
|
2393 |
width: 92%;
|
2394 |
display: inline-block;
|
@@ -2431,12 +2485,67 @@ button:focus {
|
|
2431 |
}
|
2432 |
|
2433 |
.wdform_footer {
|
|
|
2434 |
padding: 0 10px 10px 10px;
|
2435 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2436 |
|
2437 |
-
|
2438 |
-
|
2439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2440 |
}
|
2441 |
|
2442 |
.form-example-preview .fm-form .wdform-field .wdform-element-section input[type="text"],
|
@@ -2480,7 +2589,6 @@ button:focus {
|
|
2480 |
width: 100%;
|
2481 |
}
|
2482 |
.wdform_field div[id$='_element_sectionform_id_temp'][style^="display: table-cell"] {
|
2483 |
-
width: 70%;
|
2484 |
display: inline-block !important;
|
2485 |
}
|
2486 |
|
@@ -2624,22 +2732,6 @@ p.fm-validate-description {
|
|
2624 |
border: 1px solid #FF0000 !important;
|
2625 |
}
|
2626 |
|
2627 |
-
#description_editor {
|
2628 |
-
display: inline-block;
|
2629 |
-
vertical-align: middle;
|
2630 |
-
width: 100%;
|
2631 |
-
}
|
2632 |
-
#header_description {
|
2633 |
-
width: 100%;
|
2634 |
-
height: 100px;
|
2635 |
-
}
|
2636 |
-
|
2637 |
-
#form_maker_editor {
|
2638 |
-
width: 100%;
|
2639 |
-
height: 100%;
|
2640 |
-
min-height: 150px;
|
2641 |
-
}
|
2642 |
-
|
2643 |
/*---------form_maker_first.css-----------*/
|
2644 |
.wdform-page-and-images {
|
2645 |
border: 1px solid #e5e5e5 !important;
|
@@ -2846,7 +2938,8 @@ input[readonly],
|
|
2846 |
select[readonly],
|
2847 |
textarea[readonly] {
|
2848 |
cursor: not-allowed;
|
2849 |
-
background-color: #
|
|
|
2850 |
}
|
2851 |
|
2852 |
#edit_table .fm-label {
|
@@ -2975,6 +3068,7 @@ textarea[readonly] {
|
|
2975 |
|
2976 |
|
2977 |
.wdform_tr_section_break {
|
|
|
2978 |
min-width:480px;
|
2979 |
}
|
2980 |
|
@@ -3025,16 +3119,15 @@ textarea[readonly] {
|
|
3025 |
display: table-cell;
|
3026 |
vertical-align: middle;
|
3027 |
text-align: right;
|
3028 |
-
padding-right: 10px;
|
3029 |
}
|
3030 |
-
#edit_page_navigation .
|
3031 |
-
font-size:
|
3032 |
cursor: pointer;
|
3033 |
-
color
|
3034 |
}
|
3035 |
.page_toolbar {
|
3036 |
cursor: pointer;
|
3037 |
-
margin: 0
|
3038 |
}
|
3039 |
.page_toolbar.dashicons {
|
3040 |
font-size: 25px;
|
@@ -3042,35 +3135,17 @@ textarea[readonly] {
|
|
3042 |
.page_toolbar.dashicons-dismiss {
|
3043 |
display: none;
|
3044 |
}
|
3045 |
-
.page_toolbar.dashicons-no,
|
3046 |
-
.page_toolbar.dashicons-no-alt,
|
3047 |
-
.page_toolbar.dashicons-dismiss {
|
3048 |
-
color: #aa0000;
|
3049 |
-
}
|
3050 |
-
.page_toolbar.dashicons-no:hover,
|
3051 |
-
.page_toolbar.dashicons-no-alt:hover,
|
3052 |
-
.page_toolbar.dashicons-dismiss:hover {
|
3053 |
-
color: #dc3232;
|
3054 |
-
}
|
3055 |
-
.page_toolbar.dashicons-edit,
|
3056 |
.page_toolbar.dashicons-arrow-left-alt,
|
3057 |
.page_toolbar.dashicons-arrow-right-alt,
|
3058 |
.page_toolbar.dashicons-arrow-up-alt,
|
3059 |
-
.page_toolbar.dashicons-arrow-down-alt
|
3060 |
-
|
3061 |
-
.page_toolbar.dashicons-arrow-down-alt2,
|
3062 |
-
.page_toolbar.dashicons-admin-page {
|
3063 |
-
color: #0073aa;
|
3064 |
}
|
3065 |
-
.page_toolbar.dashicons-edit:hover,
|
3066 |
.page_toolbar.dashicons-arrow-left-alt:hover,
|
3067 |
.page_toolbar.dashicons-arrow-right-alt:hover,
|
3068 |
.page_toolbar.dashicons-arrow-up-alt:hover,
|
3069 |
-
.page_toolbar.dashicons-arrow-down-alt:hover
|
3070 |
-
|
3071 |
-
.page_toolbar.dashicons-arrow-down-alt2:hover,
|
3072 |
-
.page_toolbar.dashicons-admin-page:hover {
|
3073 |
-
color: #00a0d2;
|
3074 |
}
|
3075 |
.page_toolbar.dashicons-upload,
|
3076 |
.page_toolbar.dashicons-download {
|
@@ -3080,6 +3155,47 @@ textarea[readonly] {
|
|
3080 |
.page_toolbar.dashicons-download:hover {
|
3081 |
color: #d8ce7f;
|
3082 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3083 |
.wdform_field_section_break {
|
3084 |
min-width: 300px;
|
3085 |
display: inline-block;
|
@@ -3091,15 +3207,17 @@ textarea[readonly] {
|
|
3091 |
width: 100%;
|
3092 |
}
|
3093 |
#page_bar {
|
3094 |
-
border: 1px solid transparent;
|
3095 |
-
}
|
3096 |
-
#page_bar:hover {
|
3097 |
border: 1px solid #e5e5e5;
|
|
|
|
|
3098 |
}
|
3099 |
|
3100 |
.wdform_section {
|
3101 |
display: flex;
|
3102 |
flex-wrap: wrap;
|
|
|
|
|
|
|
3103 |
}
|
3104 |
.wdform_arrows_container {
|
3105 |
display: inline-flex;
|
@@ -3117,29 +3235,92 @@ textarea[readonly] {
|
|
3117 |
.wdform-page-and-images.ui-sortable-helper {
|
3118 |
border: 1px dashed #0085BA !important;
|
3119 |
}
|
3120 |
-
#fm_admin_container .wdform_page .
|
3121 |
-
display: none;
|
3122 |
}
|
3123 |
-
|
3124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3125 |
}
|
3126 |
-
|
3127 |
border: 1px solid #e5e5e5 !important;
|
3128 |
-
|
3129 |
-
|
3130 |
-
|
3131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3132 |
text-align: center;
|
3133 |
}
|
3134 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3135 |
border: 1px solid #e5e5e5 !important;
|
3136 |
-
display: inline-block;
|
3137 |
-
flex: 1;
|
3138 |
margin: 10px;
|
3139 |
min-height: 100px;
|
3140 |
min-width: 200px;
|
|
|
3141 |
vertical-align: top;
|
3142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3143 |
}
|
3144 |
.wdform_row,
|
3145 |
.wdform_tr_section_break {
|
@@ -3153,7 +3334,7 @@ textarea[readonly] {
|
|
3153 |
}
|
3154 |
.wdform_row:hover,
|
3155 |
.wdform_row:active {
|
3156 |
-
border:
|
3157 |
cursor: move;
|
3158 |
}
|
3159 |
.wdform_tr_section_break:hover,
|
@@ -3197,6 +3378,7 @@ textarea[readonly] {
|
|
3197 |
.wdform_column:not(#add_field_cont).highlight,
|
3198 |
.highlight:not(.country) {
|
3199 |
border: 1px dashed #141414 !important;
|
|
|
3200 |
}
|
3201 |
|
3202 |
.wdform_column.ui-sortable-helper {
|
@@ -3208,23 +3390,51 @@ textarea[readonly] {
|
|
3208 |
width: 100%;
|
3209 |
height: 30px;
|
3210 |
}
|
|
|
|
|
|
|
|
|
|
|
3211 |
|
3212 |
.fm-divider {
|
3213 |
border-bottom: 1px solid #E5E5E5;
|
3214 |
margin: 0 10px;
|
|
|
3215 |
}
|
3216 |
|
3217 |
-
.
|
3218 |
-
|
3219 |
-
|
3220 |
-
|
3221 |
-
|
3222 |
-
|
|
|
3223 |
}
|
3224 |
|
3225 |
-
.
|
3226 |
-
|
3227 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3228 |
}
|
3229 |
|
3230 |
.highlight:not(.country) {
|
@@ -3375,8 +3585,8 @@ input:focus{
|
|
3375 |
.fm-edit-content {
|
3376 |
position: relative;
|
3377 |
background:#fff;
|
3378 |
-
margin:
|
3379 |
-
padding:
|
3380 |
}
|
3381 |
|
3382 |
.fm-drag-and-drop {
|
@@ -3523,6 +3733,14 @@ div.ui-datepicker{
|
|
3523 |
.fm-table-submissions th {
|
3524 |
max-width: none;
|
3525 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3526 |
}
|
3527 |
|
3528 |
.header_img #remove_header_img {
|
@@ -3537,9 +3755,6 @@ div.ui-datepicker{
|
|
3537 |
background-color: #4EC0D9;
|
3538 |
border: 1px solid transparent;
|
3539 |
}
|
3540 |
-
.fm-hide {
|
3541 |
-
display: none;
|
3542 |
-
}
|
3543 |
#manage_form .fm-header .fm-heading {
|
3544 |
background-color: #1a89bc;
|
3545 |
font-size: 20px;
|
@@ -4092,50 +4307,63 @@ li.pp_selected > span {
|
|
4092 |
|
4093 |
.fm-row.fm-form-types span {
|
4094 |
display: inline-block;
|
4095 |
-
width:
|
4096 |
-
height:
|
4097 |
vertical-align: middle;
|
4098 |
}
|
4099 |
|
4100 |
.fm-form-types span.fm-embedded {
|
4101 |
-
background: url("../images/
|
|
|
4102 |
}
|
4103 |
|
4104 |
.fm-form-types span.fm-embedded.active {
|
4105 |
-
background: url("../images/
|
|
|
4106 |
}
|
4107 |
|
4108 |
.fm-form-types span.fm-popover {
|
4109 |
-
background: url("../images/
|
|
|
4110 |
}
|
4111 |
|
4112 |
.fm-form-types span.fm-popover.active {
|
4113 |
-
background: url("../images/
|
|
|
4114 |
}
|
4115 |
|
4116 |
.fm-form-types span.fm-topbar {
|
4117 |
-
background: url("../images/
|
|
|
4118 |
}
|
4119 |
|
4120 |
.fm-form-types span.fm-topbar.active {
|
4121 |
-
background: url("../images/
|
|
|
4122 |
}
|
4123 |
|
4124 |
.fm-form-types span.fm-scrollbox {
|
4125 |
-
background: url("../images/
|
|
|
4126 |
}
|
4127 |
|
4128 |
.fm-form-types span.fm-scrollbox.active {
|
4129 |
-
background: url("../images/
|
|
|
4130 |
}
|
4131 |
|
4132 |
.fm-form-types label {
|
4133 |
-
width: initial
|
4134 |
}
|
4135 |
|
4136 |
.fm-form-types label > input{
|
|
|
4137 |
visibility: hidden;
|
|
|
|
|
4138 |
position: absolute;
|
|
|
|
|
4139 |
}
|
4140 |
|
4141 |
.fm-form-types label > input + span{
|
@@ -4146,8 +4374,8 @@ li.pp_selected > span {
|
|
4146 |
.fm-form-types label > p{
|
4147 |
padding: 5px 0;
|
4148 |
text-align: center;
|
4149 |
-
font-size:
|
4150 |
-
color: #
|
4151 |
margin: 0;
|
4152 |
}
|
4153 |
|
@@ -4300,7 +4528,7 @@ li.pp_selected > span {
|
|
4300 |
line-height: 29px;
|
4301 |
}
|
4302 |
.form_view_hide {
|
4303 |
-
display: none;
|
4304 |
}
|
4305 |
.form_view_show {
|
4306 |
display:block;
|
@@ -4421,15 +4649,20 @@ li.pp_selected > span {
|
|
4421 |
margin: 0 50px;
|
4422 |
}
|
4423 |
.fm-alert-header {
|
4424 |
-
padding: 30px 0;
|
4425 |
text-align: center;
|
4426 |
}
|
4427 |
.fm-alert-body {
|
4428 |
text-align: center;
|
|
|
4429 |
}
|
4430 |
.fm-alert-header label {
|
4431 |
color: #32373C;
|
4432 |
-
|
|
|
|
|
|
|
|
|
|
|
4433 |
}
|
4434 |
.fm-section {
|
4435 |
padding: 10px 50px;
|
@@ -4452,6 +4685,10 @@ li.pp_selected > span {
|
|
4452 |
}
|
4453 |
#header_image_url {
|
4454 |
width: calc(100% - 110px);
|
|
|
|
|
|
|
|
|
4455 |
}
|
4456 |
.fm-section .fm-row input[type="text"], .fm-section .fm-row select {
|
4457 |
width: 100%;
|
@@ -4479,6 +4716,9 @@ li.pp_selected > span {
|
|
4479 |
left: 0;
|
4480 |
}
|
4481 |
.fm_popup_container .fm-popup-wrap {
|
|
|
|
|
|
|
4482 |
background: #fff;
|
4483 |
font-size: 0;
|
4484 |
height: 100%;
|
@@ -4495,13 +4735,714 @@ li.pp_selected > span {
|
|
4495 |
max-width: 710px;
|
4496 |
max-height: 600px;
|
4497 |
}
|
4498 |
-
#fm_delete_page_popup_container .fm-popup-wrap
|
|
|
4499 |
max-width: 744px;
|
4500 |
-
max-height:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4501 |
}
|
4502 |
.fm-disable-scroll {
|
4503 |
overflow: hidden;
|
4504 |
}
|
4505 |
.fm-align-right {
|
4506 |
text-align: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4507 |
}
|
213 |
|
214 |
#manage_form .first-time-use-close {
|
215 |
background-color: #ffffff;
|
|
|
216 |
border-radius: 50%;
|
217 |
box-sizing: content-box;
|
218 |
cursor: pointer;
|
219 |
+
font-size: 17px;
|
|
|
|
|
220 |
margin: 0;
|
221 |
padding: 0;
|
222 |
position: absolute;
|
223 |
right: -9px;
|
224 |
top: -9px;
|
225 |
+
}
|
226 |
+
|
227 |
+
#manage_form .first-time-use-close:before {
|
228 |
+
margin: 1px 0 0 3px;
|
229 |
}
|
230 |
|
231 |
#add_field {
|
238 |
animation-fill-mode: both;
|
239 |
color: #0085ba;
|
240 |
position: absolute;
|
241 |
+
top: 10px;
|
242 |
+
right: 10px;
|
243 |
min-width: 50px;
|
244 |
height: auto;
|
245 |
width: initial;
|
249 |
|
250 |
#add_field_cont .wdform_field {
|
251 |
display: table-cell;
|
252 |
+
cursor: move;
|
253 |
background-color: transparent !important;
|
254 |
border: none;
|
255 |
padding: 0;
|
256 |
}
|
257 |
|
258 |
+
#add_field_cont .add-new-button {
|
259 |
+
cursor: move;
|
260 |
padding: 5px 15px 5px 5px;
|
261 |
color:#fff;
|
262 |
font-size: 16px;
|
266 |
height: 30px;
|
267 |
}
|
268 |
|
269 |
+
#add_field_cont .add-new-button .fm-ico-draggable {
|
270 |
+
padding: 5px 5px 5px 15px;
|
271 |
+
font-size: 12px;
|
272 |
}
|
273 |
|
274 |
@-webkit-keyframes bounceInUp {
|
422 |
color: #757575;
|
423 |
}
|
424 |
|
425 |
+
.hide {
|
426 |
display: none;
|
427 |
}
|
428 |
+
.fm-hide {
|
429 |
+
display: none !important;
|
430 |
+
}
|
431 |
+
.fm-hidden {
|
432 |
+
visibility: hidden;
|
433 |
+
height: 0;
|
434 |
+
display: block;
|
435 |
+
border: none;
|
436 |
+
}
|
437 |
|
438 |
.fm-add-new {
|
439 |
cursor: pointer;
|
522 |
|
523 |
.wd-box-section {
|
524 |
background-color: #FFFFFF;
|
525 |
+
border: 1px solid #E5E5E5;
|
526 |
+
border-radius: 6px;
|
527 |
margin: 5px 0;
|
528 |
}
|
529 |
|
536 |
|
537 |
.wd-box-content {
|
538 |
overflow-wrap: break-word;
|
539 |
+
padding: 20px;
|
540 |
box-sizing: border-box;
|
541 |
-moz-box-sizing: border-box;
|
542 |
-webkit-box-sizing: border-box;
|
711 |
margin: 3px 3px 3px 4px;
|
712 |
}
|
713 |
|
714 |
+
.wdform_column input[type="checkbox"],
|
715 |
+
.wdform_column input[type="radio"] {
|
716 |
float: right !important;
|
717 |
margin: 3px 3px 3px 4px;
|
718 |
}
|
759 |
.add-popup .close-popup {
|
760 |
cursor: pointer;
|
761 |
float: right;
|
762 |
+
height: 15px;
|
763 |
+
width: 15px;
|
764 |
+
font-size: 15px;
|
765 |
+
margin: 8px;
|
766 |
color: #000000;
|
767 |
}
|
768 |
|
1146 |
|
1147 |
.display-options-container {
|
1148 |
background: transparent;
|
|
|
1149 |
}
|
1150 |
|
1151 |
.display-options-container .wd-table {
|
1186 |
margin-right: 10px !important;
|
1187 |
}
|
1188 |
|
1189 |
+
.fm-options-container {
|
1190 |
+
display: flex;
|
1191 |
+
max-width: 1050px;
|
1192 |
+
margin: 0 auto;
|
1193 |
}
|
1194 |
|
1195 |
+
.fm-options-body {
|
1196 |
+
flex: 0.78;
|
1197 |
}
|
1198 |
|
1199 |
+
.submenu-box {
|
1200 |
+
display: flex;
|
1201 |
+
flex-direction: column;
|
1202 |
+
padding: 15px 36px 0 15px;
|
1203 |
+
flex: 0.22;
|
1204 |
+
}
|
1205 |
+
|
1206 |
+
.fm-options-body {
|
1207 |
+
padding-right: 10px;
|
1208 |
}
|
1209 |
|
1210 |
#submenu {
|
1211 |
+
border: 1px solid #E5E5E5;
|
1212 |
+
border-radius: 6px;
|
1213 |
+
overflow: hidden;
|
1214 |
margin: 0;
|
1215 |
+
padding: 15px 0;
|
1216 |
+
}
|
1217 |
+
|
1218 |
+
#fm-tabs .ui-widget-header {
|
1219 |
+
background-color: #FFFFFF;
|
1220 |
+
}
|
1221 |
+
|
1222 |
+
@media (min-width: 420px) and (max-width: 600px) {
|
1223 |
+
#fm-tabs .tab-label {
|
1224 |
+
display: none;
|
1225 |
+
}
|
1226 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li > a {
|
1227 |
+
padding: 20px 10px !important;
|
1228 |
+
}
|
1229 |
}
|
1230 |
|
1231 |
#submenu li {
|
|
|
1232 |
margin: 0;
|
1233 |
padding: 0;
|
1234 |
}
|
1236 |
#submenu a:hover,
|
1237 |
#submenu a.active,
|
1238 |
#submenu span.nolink.active {
|
1239 |
+
color: #FFFFFF;
|
1240 |
+
background: none repeat scroll 0 0 #3A3E43;
|
1241 |
}
|
1242 |
|
1243 |
#submenu a:focus {
|
1246 |
|
1247 |
#submenu li a,
|
1248 |
#submenu span.nolink {
|
1249 |
+
color: #555555;
|
|
|
1250 |
cursor: pointer;
|
1251 |
font-size: 13px;
|
1252 |
font-weight: bold;
|
1254 |
background: #fff;
|
1255 |
text-decoration: none;
|
1256 |
display: inline-block;
|
1257 |
+
width: 100%;
|
1258 |
}
|
1259 |
|
1260 |
fieldset.adminform {
|
1747 |
vertical-align: middle;
|
1748 |
}
|
1749 |
|
1750 |
+
.fm-theme-banner #edit_css {
|
1751 |
position: absolute;
|
1752 |
top: 7px;
|
1753 |
left: 298px
|
2346 |
.fm_form_options .theme-wrap {
|
2347 |
position: relative;
|
2348 |
}
|
2349 |
+
|
2350 |
+
.theme-content {
|
2351 |
+
position: relative;
|
2352 |
+
}
|
2353 |
+
|
2354 |
+
.theme-content .theme-wrap #edit_css {
|
2355 |
cursor: pointer;
|
2356 |
position: absolute;
|
2357 |
+
top: 56px;
|
2358 |
+
right: 40px;
|
2359 |
+
}
|
2360 |
+
|
2361 |
+
.rtl .fm_form_options .theme-wrap #edit_css {
|
2362 |
+
left: 20px;
|
2363 |
+
right: unset;
|
2364 |
}
|
2365 |
|
2366 |
.fm_form_options #form_javascript {
|
2402 |
max-width: 94px;
|
2403 |
}
|
2404 |
|
2405 |
+
.fm_form_options .dashicons,
|
2406 |
+
#form_email_options_tab_content .dashicons {
|
2407 |
vertical-align: middle;
|
2408 |
font-size: 20px;
|
2409 |
cursor: pointer;
|
2422 |
text-align: right;
|
2423 |
}
|
2424 |
|
2425 |
+
.rtl .wd-editor-placeholder {
|
2426 |
+
padding-left: 5px;
|
2427 |
+
padding-right: unset;
|
2428 |
+
text-align: left;
|
2429 |
+
}
|
2430 |
+
|
2431 |
.wd-has-placeholder input[type="text"] {
|
2432 |
padding-right: 35px;
|
2433 |
}
|
2438 |
position: absolute;
|
2439 |
}
|
2440 |
|
2441 |
+
.rtl .wd-has-placeholder .dashicons.dashicons-list-view {
|
2442 |
+
left: 5px;
|
2443 |
+
right: unset;
|
2444 |
+
}
|
2445 |
+
|
2446 |
.fm_form_options #emailTab_fieldset .mail_name {
|
2447 |
width: 92%;
|
2448 |
display: inline-block;
|
2485 |
}
|
2486 |
|
2487 |
.wdform_footer {
|
2488 |
+
display: none;
|
2489 |
padding: 0 10px 10px 10px;
|
2490 |
}
|
2491 |
+
#take .label {
|
2492 |
+
line-height: 16px;
|
2493 |
+
text-align:left;
|
2494 |
+
font-size: 14px;
|
2495 |
+
color: #000;
|
2496 |
+
}
|
2497 |
+
#take input,
|
2498 |
+
#take textarea,
|
2499 |
+
#take select
|
2500 |
+
{
|
2501 |
+
background: #f6f6f6;
|
2502 |
+
border-radius: 6px 6px;
|
2503 |
+
border: 1px solid #e5e5e5;
|
2504 |
+
height: 36px;
|
2505 |
+
}
|
2506 |
|
2507 |
+
#take input[type=file] {
|
2508 |
+
padding: 0px;
|
2509 |
+
}
|
2510 |
+
|
2511 |
+
#take input[type="file"]::-webkit-file-upload-button{
|
2512 |
+
height:32px;
|
2513 |
+
margin-top: 1px;
|
2514 |
+
margin-left: 1px;
|
2515 |
+
}
|
2516 |
+
|
2517 |
+
#take input[type=checkbox],
|
2518 |
+
#take input[type=radio] {
|
2519 |
+
height: 16px;
|
2520 |
+
}
|
2521 |
+
#take input[type=checkbox] {
|
2522 |
+
border-radius: unset;
|
2523 |
+
}
|
2524 |
+
#take .button.button-submit,
|
2525 |
+
#take .button.button-reset,
|
2526 |
+
#take .button.button-large {
|
2527 |
+
width: 110px !important;
|
2528 |
+
padding: 0 15px;
|
2529 |
+
height: 36px !important;
|
2530 |
+
line-height: 20px;
|
2531 |
+
text-align: center;
|
2532 |
+
font-size: 16px;
|
2533 |
+
text-shadow: unset !important;
|
2534 |
+
box-shadow: unset !important;
|
2535 |
+
border-radius: 6px 6px;
|
2536 |
+
cursor: default;
|
2537 |
+
}
|
2538 |
+
#take .button.button-submit {
|
2539 |
+
margin-right: 10px;
|
2540 |
+
background: rgb(0, 133, 186) !important;
|
2541 |
+
border-color: rgb(0, 133, 186) !important;
|
2542 |
+
color: #fff !important;
|
2543 |
+
}
|
2544 |
+
#take .button.button-reset,
|
2545 |
+
#take .button-large {
|
2546 |
+
background: rgb(226, 226, 226) !important;
|
2547 |
+
border-color: rgb(226, 226, 226) !important;
|
2548 |
+
color: #fff !important;
|
2549 |
}
|
2550 |
|
2551 |
.form-example-preview .fm-form .wdform-field .wdform-element-section input[type="text"],
|
2589 |
width: 100%;
|
2590 |
}
|
2591 |
.wdform_field div[id$='_element_sectionform_id_temp'][style^="display: table-cell"] {
|
|
|
2592 |
display: inline-block !important;
|
2593 |
}
|
2594 |
|
2732 |
border: 1px solid #FF0000 !important;
|
2733 |
}
|
2734 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2735 |
/*---------form_maker_first.css-----------*/
|
2736 |
.wdform-page-and-images {
|
2737 |
border: 1px solid #e5e5e5 !important;
|
2938 |
select[readonly],
|
2939 |
textarea[readonly] {
|
2940 |
cursor: not-allowed;
|
2941 |
+
background-color: #e5e5e5;
|
2942 |
+
border:1px solid #e5e5e5;
|
2943 |
}
|
2944 |
|
2945 |
#edit_table .fm-label {
|
3068 |
|
3069 |
|
3070 |
.wdform_tr_section_break {
|
3071 |
+
display: none !important;
|
3072 |
min-width:480px;
|
3073 |
}
|
3074 |
|
3119 |
display: table-cell;
|
3120 |
vertical-align: middle;
|
3121 |
text-align: right;
|
|
|
3122 |
}
|
3123 |
+
#edit_page_navigation .fm-ico-edit {
|
3124 |
+
font-size: 18px;
|
3125 |
cursor: pointer;
|
3126 |
+
color: #555555;
|
3127 |
}
|
3128 |
.page_toolbar {
|
3129 |
cursor: pointer;
|
3130 |
+
margin: 0 8px 0 6px;
|
3131 |
}
|
3132 |
.page_toolbar.dashicons {
|
3133 |
font-size: 25px;
|
3135 |
.page_toolbar.dashicons-dismiss {
|
3136 |
display: none;
|
3137 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3138 |
.page_toolbar.dashicons-arrow-left-alt,
|
3139 |
.page_toolbar.dashicons-arrow-right-alt,
|
3140 |
.page_toolbar.dashicons-arrow-up-alt,
|
3141 |
+
.page_toolbar.dashicons-arrow-down-alt {
|
3142 |
+
color: #555555;
|
|
|
|
|
|
|
3143 |
}
|
|
|
3144 |
.page_toolbar.dashicons-arrow-left-alt:hover,
|
3145 |
.page_toolbar.dashicons-arrow-right-alt:hover,
|
3146 |
.page_toolbar.dashicons-arrow-up-alt:hover,
|
3147 |
+
.page_toolbar.dashicons-arrow-down-alt:hover {
|
3148 |
+
color: #000000;
|
|
|
|
|
|
|
3149 |
}
|
3150 |
.page_toolbar.dashicons-upload,
|
3151 |
.page_toolbar.dashicons-download {
|
3155 |
.page_toolbar.dashicons-download:hover {
|
3156 |
color: #d8ce7f;
|
3157 |
}
|
3158 |
+
|
3159 |
+
.page_toolbar.fm-ico-edit,
|
3160 |
+
.wdform_page_title .fm-ico-draggable,
|
3161 |
+
.wdform_row_handle .fm-ico-draggable,
|
3162 |
+
.wdform_section_handle .fm-ico-draggable,
|
3163 |
+
.page_toolbar.fm-ico-collapse,
|
3164 |
+
.page_toolbar.fm-ico-expand,
|
3165 |
+
.page_toolbar.fm-ico-delete,
|
3166 |
+
.page_toolbar.fm-ico-duplicate {
|
3167 |
+
color: #555555;
|
3168 |
+
font-size: 17px;
|
3169 |
+
}
|
3170 |
+
.page_toolbar.fm-ico-edit:hover,
|
3171 |
+
#edit_page_navigation .fm-ico-edit:hover,
|
3172 |
+
.wdform_page_title .fm-ico-draggable:hover,
|
3173 |
+
.wdform_row_handle .fm-ico-draggable:hover,
|
3174 |
+
.wdform_section_handle .fm-ico-draggable:hover,
|
3175 |
+
.page_toolbar.fm-ico-collapse:hover,
|
3176 |
+
.page_toolbar.fm-ico-expand:hover,
|
3177 |
+
.page_toolbar.fm-ico-delete:hover,
|
3178 |
+
.page_toolbar.fm-ico-duplicate:hover {
|
3179 |
+
color: #000000;
|
3180 |
+
}
|
3181 |
+
.wdform_row_handle .fm-ico-draggable,
|
3182 |
+
.wdform_section_handle .fm-ico-draggable {
|
3183 |
+
cursor: move;
|
3184 |
+
font-size: 12px;
|
3185 |
+
margin: 10px 5px 4px 10px;
|
3186 |
+
float: left;
|
3187 |
+
}
|
3188 |
+
.form_id_tempform_view_img .fm-ico-draggable {
|
3189 |
+
cursor: move;
|
3190 |
+
font-size: 12px;
|
3191 |
+
margin: 5px 5px 4px 10px;
|
3192 |
+
}
|
3193 |
+
|
3194 |
+
.form_id_tempform_view_img .fm-ico-draggable {
|
3195 |
+
font-size: 12px;
|
3196 |
+
margin: 0 10px 0 5px;
|
3197 |
+
}
|
3198 |
+
|
3199 |
.wdform_field_section_break {
|
3200 |
min-width: 300px;
|
3201 |
display: inline-block;
|
3207 |
width: 100%;
|
3208 |
}
|
3209 |
#page_bar {
|
|
|
|
|
|
|
3210 |
border: 1px solid #e5e5e5;
|
3211 |
+
padding: 14px;
|
3212 |
+
margin: 10px 0;
|
3213 |
}
|
3214 |
|
3215 |
.wdform_section {
|
3216 |
display: flex;
|
3217 |
flex-wrap: wrap;
|
3218 |
+
border: 1px solid #e5e5e5;
|
3219 |
+
margin: 10px;
|
3220 |
+
position: relative;
|
3221 |
}
|
3222 |
.wdform_arrows_container {
|
3223 |
display: inline-flex;
|
3235 |
.wdform-page-and-images.ui-sortable-helper {
|
3236 |
border: 1px dashed #0085BA !important;
|
3237 |
}
|
3238 |
+
#fm_admin_container .wdform_page .wdform_row_empty:nth-child(n+4) {
|
3239 |
+
display: none !important;
|
3240 |
}
|
3241 |
+
.wdform_column:not(#add_field_cont) {
|
3242 |
+
display: inline-block;
|
3243 |
+
flex: 1;
|
3244 |
+
min-height: 20px;
|
3245 |
+
min-width: 200px;
|
3246 |
+
vertical-align: top;
|
3247 |
+
}
|
3248 |
+
.wdform_column:not(#add_field_cont).fm-hover,
|
3249 |
+
.wdform_section.fm-hover {
|
3250 |
+
border: 1px dashed rgb(0, 133, 186) !important;
|
3251 |
}
|
3252 |
+
.wdform_row_empty {
|
3253 |
border: 1px solid #e5e5e5 !important;
|
3254 |
+
flex: 1;
|
3255 |
+
padding: 10px;
|
3256 |
+
vertical-align: top;
|
3257 |
+
display: flex;
|
3258 |
+
flex-direction: row;
|
3259 |
+
justify-content: center;
|
3260 |
+
align-items: center;
|
3261 |
+
}
|
3262 |
+
.wdform_row_empty > div {
|
3263 |
+
display: flex;
|
3264 |
+
flex-direction: row;
|
3265 |
+
justify-content: center;
|
3266 |
+
align-items: center;
|
3267 |
+
cursor: pointer;
|
3268 |
+
}
|
3269 |
+
.wdform_row_empty .add_row_icon {
|
3270 |
+
color: #E5E5E5;
|
3271 |
+
width: 34px;
|
3272 |
+
height: 34px;
|
3273 |
+
font-size: 34px;
|
3274 |
text-align: center;
|
3275 |
}
|
3276 |
+
.wdform_row_empty > div:hover .add_row_icon {
|
3277 |
+
color: #0085BA;
|
3278 |
+
}
|
3279 |
+
.wdform_row_empty > div:hover .add_row_button {
|
3280 |
+
color: #0085BA;
|
3281 |
+
}
|
3282 |
+
.wdform_row_empty .add_row_button {
|
3283 |
+
color: #32373C;
|
3284 |
+
font-size: 20px;
|
3285 |
+
margin: 10px;
|
3286 |
+
}
|
3287 |
+
|
3288 |
+
.wdform_column_empty {
|
3289 |
border: 1px solid #e5e5e5 !important;
|
|
|
|
|
3290 |
margin: 10px;
|
3291 |
min-height: 100px;
|
3292 |
min-width: 200px;
|
3293 |
+
flex: 0 23.3%;
|
3294 |
vertical-align: top;
|
3295 |
+
display: flex;
|
3296 |
+
flex-direction: column;
|
3297 |
+
justify-content: center;
|
3298 |
+
align-items: center;
|
3299 |
+
}
|
3300 |
+
.wdform_column_empty > div {
|
3301 |
+
display: flex;
|
3302 |
+
flex-direction: column;
|
3303 |
+
justify-content: center;
|
3304 |
+
align-items: center;
|
3305 |
+
cursor: pointer;
|
3306 |
+
}
|
3307 |
+
.wdform_column_empty .add_column_icon {
|
3308 |
+
color: #E5E5E5;
|
3309 |
+
width: 34px;
|
3310 |
+
height: 34px;
|
3311 |
+
font-size: 34px;
|
3312 |
+
text-align: center;
|
3313 |
+
}
|
3314 |
+
.wdform_column_empty > div:hover .add_column_icon {
|
3315 |
+
color: #0085BA;
|
3316 |
+
}
|
3317 |
+
.wdform_column_empty > div:hover .add_column_button {
|
3318 |
+
color: #0085BA;
|
3319 |
+
}
|
3320 |
+
.wdform_column_empty .add_column_button {
|
3321 |
+
color: #32373C;
|
3322 |
+
font-size: 20px;
|
3323 |
+
margin-top: 5px;
|
3324 |
}
|
3325 |
.wdform_row,
|
3326 |
.wdform_tr_section_break {
|
3334 |
}
|
3335 |
.wdform_row:hover,
|
3336 |
.wdform_row:active {
|
3337 |
+
border: 1px dashed rgb(0, 133, 186);
|
3338 |
cursor: move;
|
3339 |
}
|
3340 |
.wdform_tr_section_break:hover,
|
3378 |
.wdform_column:not(#add_field_cont).highlight,
|
3379 |
.highlight:not(.country) {
|
3380 |
border: 1px dashed #141414 !important;
|
3381 |
+
min-height: 100px;
|
3382 |
}
|
3383 |
|
3384 |
.wdform_column.ui-sortable-helper {
|
3390 |
width: 100%;
|
3391 |
height: 30px;
|
3392 |
}
|
3393 |
+
.wdform_row_handle {
|
3394 |
+
cursor: move;
|
3395 |
+
height: 30px;
|
3396 |
+
flex: 0 100%;
|
3397 |
+
}
|
3398 |
|
3399 |
.fm-divider {
|
3400 |
border-bottom: 1px solid #E5E5E5;
|
3401 |
margin: 0 10px;
|
3402 |
+
clear: both;
|
3403 |
}
|
3404 |
|
3405 |
+
.wdform_row_handle .add-new-field {
|
3406 |
+
cursor: pointer;
|
3407 |
+
float: right;
|
3408 |
+
margin: 5px 10px 4px 5px;
|
3409 |
+
color: #0085BA;
|
3410 |
+
font-size: 13px;
|
3411 |
+
font-weight: bold;
|
3412 |
}
|
3413 |
|
3414 |
+
.wdform_row_handle .add-new-field:hover {
|
3415 |
+
color: #006992;
|
3416 |
+
}
|
3417 |
+
|
3418 |
+
.wdform_row_handle .add-new-field:before {
|
3419 |
+
content: "\e901";
|
3420 |
+
display: inline-block;
|
3421 |
+
width: 11px;
|
3422 |
+
height: 11px;
|
3423 |
+
font-size: 11px;
|
3424 |
+
line-height: 1.6;
|
3425 |
+
font-family: fm-icons;
|
3426 |
+
text-decoration: inherit;
|
3427 |
+
font-weight: normal;
|
3428 |
+
font-style: normal;
|
3429 |
+
vertical-align: top;
|
3430 |
+
text-align: center;
|
3431 |
+
margin-right: 2px;
|
3432 |
+
}
|
3433 |
+
|
3434 |
+
.wdform_row_handle .page_toolbar.fm-ico-delete {
|
3435 |
+
float: right;
|
3436 |
+
font-size: 13px;
|
3437 |
+
margin: 7px 10px 0 0;
|
3438 |
}
|
3439 |
|
3440 |
.highlight:not(.country) {
|
3585 |
.fm-edit-content {
|
3586 |
position: relative;
|
3587 |
background:#fff;
|
3588 |
+
margin: 0 auto;
|
3589 |
+
padding: 40px 10px 10px 10px;
|
3590 |
}
|
3591 |
|
3592 |
.fm-drag-and-drop {
|
3733 |
.fm-table-submissions th {
|
3734 |
max-width: none;
|
3735 |
}
|
3736 |
+
|
3737 |
+
.wd-table input[type="checkbox"],
|
3738 |
+
.wd-table input[type="checkbox"] + label,
|
3739 |
+
.wd-table .wd-radio,
|
3740 |
+
.wd-table .wd-radio + label {
|
3741 |
+
margin-bottom: 5px;
|
3742 |
+
display: inline-block;
|
3743 |
+
}
|
3744 |
}
|
3745 |
|
3746 |
.header_img #remove_header_img {
|
3755 |
background-color: #4EC0D9;
|
3756 |
border: 1px solid transparent;
|
3757 |
}
|
|
|
|
|
|
|
3758 |
#manage_form .fm-header .fm-heading {
|
3759 |
background-color: #1a89bc;
|
3760 |
font-size: 20px;
|
4307 |
|
4308 |
.fm-row.fm-form-types span {
|
4309 |
display: inline-block;
|
4310 |
+
width: 75px;
|
4311 |
+
height: 45px;
|
4312 |
vertical-align: middle;
|
4313 |
}
|
4314 |
|
4315 |
.fm-form-types span.fm-embedded {
|
4316 |
+
background: url("../css/images/embedded.png") no-repeat;
|
4317 |
+
background-size: 100% 100%;
|
4318 |
}
|
4319 |
|
4320 |
.fm-form-types span.fm-embedded.active {
|
4321 |
+
background: url("../css/images/embedded_active.svg") no-repeat;
|
4322 |
+
background-size: 100% 100%;
|
4323 |
}
|
4324 |
|
4325 |
.fm-form-types span.fm-popover {
|
4326 |
+
background: url("../css/images/popup.svg") no-repeat;
|
4327 |
+
background-size: 100% 100%;
|
4328 |
}
|
4329 |
|
4330 |
.fm-form-types span.fm-popover.active {
|
4331 |
+
background: url("../css/images/popup_active.png") no-repeat;
|
4332 |
+
background-size: 100% 100%;
|
4333 |
}
|
4334 |
|
4335 |
.fm-form-types span.fm-topbar {
|
4336 |
+
background: url("../css/images/topbar.svg") no-repeat;
|
4337 |
+
background-size: 100% 100%;
|
4338 |
}
|
4339 |
|
4340 |
.fm-form-types span.fm-topbar.active {
|
4341 |
+
background: url("../css/images/topbar_active.png") no-repeat;
|
4342 |
+
background-size: 100% 100%;
|
4343 |
}
|
4344 |
|
4345 |
.fm-form-types span.fm-scrollbox {
|
4346 |
+
background: url("../css/images/scrollbox.svg") no-repeat;
|
4347 |
+
background-size: 100% 100%;
|
4348 |
}
|
4349 |
|
4350 |
.fm-form-types span.fm-scrollbox.active {
|
4351 |
+
background: url("../css/images/scrollbox_active.png") no-repeat;
|
4352 |
+
background-size: 100% 100%;
|
4353 |
}
|
4354 |
|
4355 |
.fm-form-types label {
|
4356 |
+
width: initial;
|
4357 |
}
|
4358 |
|
4359 |
.fm-form-types label > input{
|
4360 |
+
/*
|
4361 |
visibility: hidden;
|
4362 |
+
|
4363 |
+
*/
|
4364 |
position: absolute;
|
4365 |
+
right: 3%;
|
4366 |
+
top: 17px;
|
4367 |
}
|
4368 |
|
4369 |
.fm-form-types label > input + span{
|
4374 |
.fm-form-types label > p{
|
4375 |
padding: 5px 0;
|
4376 |
text-align: center;
|
4377 |
+
font-size: 14px;
|
4378 |
+
color: #32373C;
|
4379 |
margin: 0;
|
4380 |
}
|
4381 |
|
4528 |
line-height: 29px;
|
4529 |
}
|
4530 |
.form_view_hide {
|
4531 |
+
display: none !important;
|
4532 |
}
|
4533 |
.form_view_show {
|
4534 |
display:block;
|
4649 |
margin: 0 50px;
|
4650 |
}
|
4651 |
.fm-alert-header {
|
|
|
4652 |
text-align: center;
|
4653 |
}
|
4654 |
.fm-alert-body {
|
4655 |
text-align: center;
|
4656 |
+
margin-top: 30px;
|
4657 |
}
|
4658 |
.fm-alert-header label {
|
4659 |
color: #32373C;
|
4660 |
+
display: block;
|
4661 |
+
margin: 10px;
|
4662 |
+
font-size: 15px;
|
4663 |
+
}
|
4664 |
+
.fm-alert-body button.button {
|
4665 |
+
margin: 0 5px;
|
4666 |
}
|
4667 |
.fm-section {
|
4668 |
padding: 10px 50px;
|
4685 |
}
|
4686 |
#header_image_url {
|
4687 |
width: calc(100% - 110px);
|
4688 |
+
display: inline-block;
|
4689 |
+
}
|
4690 |
+
#fm-header-content .add-button {
|
4691 |
+
vertical-align: baseline;
|
4692 |
}
|
4693 |
.fm-section .fm-row input[type="text"], .fm-section .fm-row select {
|
4694 |
width: 100%;
|
4716 |
left: 0;
|
4717 |
}
|
4718 |
.fm_popup_container .fm-popup-wrap {
|
4719 |
+
display: flex;
|
4720 |
+
flex-direction: column;
|
4721 |
+
justify-content: center;
|
4722 |
background: #fff;
|
4723 |
font-size: 0;
|
4724 |
height: 100%;
|
4735 |
max-width: 710px;
|
4736 |
max-height: 600px;
|
4737 |
}
|
4738 |
+
#fm_delete_page_popup_container .fm-popup-wrap,
|
4739 |
+
#fm_delete_row_popup_container .fm-popup-wrap {
|
4740 |
max-width: 744px;
|
4741 |
+
max-height: 200px;
|
4742 |
+
-webkit-border-radius: 6px;
|
4743 |
+
-moz-border-radius: 6px;
|
4744 |
+
border-radius: 6px;
|
4745 |
+
}
|
4746 |
+
#fm_delete_field_popup_container .fm-popup-wrap,
|
4747 |
+
#fm_delete_column_popup_container .fm-popup-wrap {
|
4748 |
+
max-width: 466px;
|
4749 |
+
max-height: 171px;
|
4750 |
+
-webkit-border-radius: 6px;
|
4751 |
+
-moz-border-radius: 6px;
|
4752 |
+
border-radius: 6px;
|
4753 |
}
|
4754 |
.fm-disable-scroll {
|
4755 |
overflow: hidden;
|
4756 |
}
|
4757 |
.fm-align-right {
|
4758 |
text-align: right;
|
4759 |
+
}
|
4760 |
+
|
4761 |
+
#fm_revision_popup_container .fm-popup-wrap {
|
4762 |
+
max-width: 550px;
|
4763 |
+
width: 550px;
|
4764 |
+
max-height: 515px;
|
4765 |
+
height: 515px;
|
4766 |
+
-webkit-border-radius: 6px;
|
4767 |
+
-moz-border-radius: 6px;
|
4768 |
+
border-radius: 6px;
|
4769 |
+
padding: 5px 0;
|
4770 |
+
}
|
4771 |
+
|
4772 |
+
.fm_rev_index {
|
4773 |
+
float:left;
|
4774 |
+
width:25%;
|
4775 |
+
font-weight: 500;
|
4776 |
+
}
|
4777 |
+
.fm_rev_date {
|
4778 |
+
float:left;
|
4779 |
+
width:30%;
|
4780 |
+
min-height: 20px;
|
4781 |
+
}
|
4782 |
+
|
4783 |
+
.fm_rev_time {
|
4784 |
+
float:left;
|
4785 |
+
width:30%;
|
4786 |
+
min-height: 20px;
|
4787 |
+
}
|
4788 |
+
|
4789 |
+
|
4790 |
+
.fm_rev_button{
|
4791 |
+
width: 15%;
|
4792 |
+
min-height: 20px;
|
4793 |
+
float: right;
|
4794 |
+
text-align: right;
|
4795 |
+
}
|
4796 |
+
|
4797 |
+
#fm_revision_popup_container .fm_row {
|
4798 |
+
padding: 5px 30px;
|
4799 |
+
height: 42px;
|
4800 |
+
line-height: 30px;
|
4801 |
+
font-size: 15px;
|
4802 |
+
font-weight: normal;
|
4803 |
+
}
|
4804 |
+
|
4805 |
+
#fm_revision_popup_container .fm_row div {
|
4806 |
+
font-size: 15px;
|
4807 |
+
}
|
4808 |
+
|
4809 |
+
#fm_revision_popup_container .fm-section {
|
4810 |
+
padding: 0px;
|
4811 |
+
margin-top: 65px;
|
4812 |
+
}
|
4813 |
+
|
4814 |
+
#fm_revision_popup_container .fm-section-header label {
|
4815 |
+
margin: 0 30px;
|
4816 |
+
}
|
4817 |
+
|
4818 |
+
.fm_rev_active {
|
4819 |
+
background-color: #ffb900;
|
4820 |
+
}
|
4821 |
+
|
4822 |
+
#fm_revision_popup_container .fm-section-header {
|
4823 |
+
position: absolute;
|
4824 |
+
width: inherit;
|
4825 |
+
background-color: #ffffff;
|
4826 |
+
height: 65px;
|
4827 |
+
top: 0;
|
4828 |
+
}
|
4829 |
+
|
4830 |
+
.fm_not-active {
|
4831 |
+
pointer-events: none;
|
4832 |
+
cursor: default;
|
4833 |
+
text-decoration: none;
|
4834 |
+
}
|
4835 |
+
|
4836 |
+
#fm_revision_popup_container .fm-ico-delete {
|
4837 |
+
font-size: 13px;
|
4838 |
+
text-align: right;
|
4839 |
+
width: 13px;
|
4840 |
+
cursor: pointer;
|
4841 |
+
color:#32373C;
|
4842 |
+
float: right;
|
4843 |
+
margin-right: 25px;
|
4844 |
+
}
|
4845 |
+
#fm_revision_popup_container .fm-section-header-title {
|
4846 |
+
max-width: 80%;
|
4847 |
+
float: left;
|
4848 |
+
}
|
4849 |
+
|
4850 |
+
#fm_revision_popup_container .fm-section-header-title label {
|
4851 |
+
font-size:20px;
|
4852 |
+
}
|
4853 |
+
|
4854 |
+
#fm_revision_popup_container .fm-section-header {
|
4855 |
+
border-bottom: none;
|
4856 |
+
}
|
4857 |
+
|
4858 |
+
#fm_revision_popup_container .fm_row.fm_rev_header {
|
4859 |
+
border-bottom: 1px solid #E5E5E5;
|
4860 |
+
border-top: 1px solid #E5E5E5;
|
4861 |
+
font-weight: 500;
|
4862 |
+
font-size:16px;
|
4863 |
+
height:50px;
|
4864 |
+
line-height: 40px;
|
4865 |
+
}
|
4866 |
+
|
4867 |
+
#fm_revision_popup_container .fm_row.fm_rev_header div {
|
4868 |
+
line-height: 40px;
|
4869 |
+
}
|
4870 |
+
|
4871 |
+
#fm_revision_popup_container .fm_row.fm_rev_header a {
|
4872 |
+
margin-top: 5px;
|
4873 |
+
}
|
4874 |
+
|
4875 |
+
#fm_revision_popup_container .fm_row.fm_title_row {
|
4876 |
+
font-weight: 500;
|
4877 |
+
}
|
4878 |
+
|
4879 |
+
.curr_rev_button {
|
4880 |
+
font-size:15px;
|
4881 |
+
font-weight: 400;
|
4882 |
+
}
|
4883 |
+
|
4884 |
+
.fm_vr {
|
4885 |
+
line-height: 30px;
|
4886 |
+
width: 1px;
|
4887 |
+
color: #ccc;
|
4888 |
+
font-size: 15px;
|
4889 |
+
margin-right: 12px;
|
4890 |
+
margin-left: 10px;
|
4891 |
+
border-right: 2px solid #E5E5E5;
|
4892 |
+
|
4893 |
+
}
|
4894 |
+
|
4895 |
+
.button_revisions {
|
4896 |
+
margin-right: 10px!important;
|
4897 |
+
}
|
4898 |
+
|
4899 |
+
.revision_content {
|
4900 |
+
overflow-y: auto;
|
4901 |
+
height: 340px;
|
4902 |
+
}
|
4903 |
+
|
4904 |
+
a.fm_not-active {
|
4905 |
+
padding: 3px 15px;
|
4906 |
+
background-color: #E5E5E5;
|
4907 |
+
color:#555555;
|
4908 |
+
-webkit-border-radius: 6px;
|
4909 |
+
-moz-border-radius: 6px;
|
4910 |
+
border-radius: 6px;
|
4911 |
+
}
|
4912 |
+
|
4913 |
+
#form_email_options_tab_content {
|
4914 |
+
width: 75%;
|
4915 |
+
max-width: 800px;
|
4916 |
+
margin: 0 auto;
|
4917 |
+
background-color: #ffffff;
|
4918 |
+
}
|
4919 |
+
|
4920 |
+
#fm-header-content {
|
4921 |
+
width: 75%;
|
4922 |
+
max-width: 800px;
|
4923 |
+
margin: 0 auto;
|
4924 |
+
background-color: #ffffff;
|
4925 |
+
}
|
4926 |
+
|
4927 |
+
.display-options-container .wd-box-content {
|
4928 |
+
width: 75%;
|
4929 |
+
max-width: 800px;
|
4930 |
+
margin: auto;
|
4931 |
+
padding: 0px;
|
4932 |
+
}
|
4933 |
+
|
4934 |
+
.display-options-container .wd-box-section {
|
4935 |
+
background-color: #FFFFFF;
|
4936 |
+
border: none;
|
4937 |
+
margin: 0;
|
4938 |
+
}
|
4939 |
+
|
4940 |
+
.display-options-container .wd-table {
|
4941 |
+
background-color: #ffffff;
|
4942 |
+
}
|
4943 |
+
|
4944 |
+
.wd-box-content.display-options-header {
|
4945 |
+
padding: 20px 0;
|
4946 |
+
}
|
4947 |
+
|
4948 |
+
.wd-box-content.display-options-content,
|
4949 |
+
.wd-box-content.theme-content{
|
4950 |
+
padding: 20px;
|
4951 |
+
margin-bottom: 10px;
|
4952 |
+
}
|
4953 |
+
|
4954 |
+
.fm-form-types label.display_option_item {
|
4955 |
+
padding: 10px;
|
4956 |
+
border:1px solid #E5E5E5;
|
4957 |
+
-webkit-border-radius: 6px;
|
4958 |
+
-moz-border-radius: 6px;
|
4959 |
+
border-radius: 6px;
|
4960 |
+
width: calc(23% - 2px);
|
4961 |
+
text-align: center;
|
4962 |
+
position: relative;
|
4963 |
+
margin-right: 2.4%;
|
4964 |
+
}
|
4965 |
+
|
4966 |
+
|
4967 |
+
|
4968 |
+
.fm-form-types label.display_option_item:last-child {
|
4969 |
+
margin-right: 0px!important;
|
4970 |
+
}
|
4971 |
+
|
4972 |
+
.display-options-content, .theme-content {
|
4973 |
+
border:1px solid #E5E5E5;
|
4974 |
+
-webkit-border-radius: 6px;
|
4975 |
+
-moz-border-radius: 6px;
|
4976 |
+
border-radius: 6px;
|
4977 |
+
}
|
4978 |
+
|
4979 |
+
.display-options-content .wd-label,
|
4980 |
+
.theme-content .wd-label{
|
4981 |
+
font-size: 16px;
|
4982 |
+
font-weight: bold;
|
4983 |
+
}
|
4984 |
+
|
4985 |
+
#fm-embedded-element p {
|
4986 |
+
font-size: 14px;
|
4987 |
+
}
|
4988 |
+
|
4989 |
+
#fm-embedded-element input[type="text"] {
|
4990 |
+
border-radius: 0px;
|
4991 |
+
width: 70%;
|
4992 |
+
}
|
4993 |
+
|
4994 |
+
|
4995 |
+
#themes_container {
|
4996 |
+
display: flex!important;
|
4997 |
+
height: 100px;
|
4998 |
+
border-bottom: 1px solid #E5E5E5;
|
4999 |
+
}
|
5000 |
+
|
5001 |
+
.themes_container_col {
|
5002 |
+
display: flex;
|
5003 |
+
flex-direction: column;
|
5004 |
+
justify-content: center;
|
5005 |
+
}
|
5006 |
+
#themes_icon {
|
5007 |
+
width: 10%;
|
5008 |
+
}
|
5009 |
+
|
5010 |
+
#themes_icon img {
|
5011 |
+
max-height: 55px;
|
5012 |
+
}
|
5013 |
+
|
5014 |
+
#themes_descr {
|
5015 |
+
width: 50%;
|
5016 |
+
font-size: 16px;
|
5017 |
+
}
|
5018 |
+
|
5019 |
+
.rtl #themes_descr {
|
5020 |
+
margin-right: 20px;
|
5021 |
+
}
|
5022 |
+
|
5023 |
+
#themes_descr h3 {
|
5024 |
+
font-weight: bold;
|
5025 |
+
padding: 0px;
|
5026 |
+
margin: 0px;
|
5027 |
+
font-size: 16px;
|
5028 |
+
}
|
5029 |
+
|
5030 |
+
#themes_descr p {
|
5031 |
+
font-size: 16px;
|
5032 |
+
}
|
5033 |
+
|
5034 |
+
#themes_select {
|
5035 |
+
width: 40%;
|
5036 |
+
}
|
5037 |
+
|
5038 |
+
#themes_select_row {
|
5039 |
+
float: right;
|
5040 |
+
vertical-align: middle;
|
5041 |
+
margin-top: 33px;
|
5042 |
+
}
|
5043 |
+
|
5044 |
+
.rtl #themes_select_row {
|
5045 |
+
float: left;
|
5046 |
+
margin-left: 20px;
|
5047 |
+
}
|
5048 |
+
|
5049 |
+
|
5050 |
+
#themes_select_row a {
|
5051 |
+
display: unset;
|
5052 |
+
margin-right: 20px;
|
5053 |
+
font-size: 14px;
|
5054 |
+
padding: 5px 10px;
|
5055 |
+
line-height: 33px;
|
5056 |
+
}
|
5057 |
+
|
5058 |
+
#themes_select_row #theme {
|
5059 |
+
width: 300px;
|
5060 |
+
height: 33px;
|
5061 |
+
font-size: 16px;
|
5062 |
+
}
|
5063 |
+
|
5064 |
+
@media screen and (max-width: 1300px) {
|
5065 |
+
#fm-embedded-element input[type="text"] {
|
5066 |
+
width: 50%;
|
5067 |
+
}
|
5068 |
+
|
5069 |
+
#themes_select_row #theme {
|
5070 |
+
width: auto;
|
5071 |
+
}
|
5072 |
+
}
|
5073 |
+
|
5074 |
+
@media screen and (max-width: 1100px) {
|
5075 |
+
|
5076 |
+
#themes_container {
|
5077 |
+
display: block!important;
|
5078 |
+
height: auto;
|
5079 |
+
padding: 20px 0;
|
5080 |
+
}
|
5081 |
+
|
5082 |
+
#themes_select_row #theme {
|
5083 |
+
width: 250px;
|
5084 |
+
}
|
5085 |
+
|
5086 |
+
|
5087 |
+
#themes_select_row {
|
5088 |
+
float: none;
|
5089 |
+
}
|
5090 |
+
|
5091 |
+
#themes_select {
|
5092 |
+
display: inline-block;
|
5093 |
+
width: 100%;
|
5094 |
+
height: auto;
|
5095 |
+
text-align: center;
|
5096 |
+
float: none;
|
5097 |
+
}
|
5098 |
+
|
5099 |
+
#themes_icon {
|
5100 |
+
width: 20%;
|
5101 |
+
float: left;
|
5102 |
+
}
|
5103 |
+
|
5104 |
+
#themes_descr {
|
5105 |
+
width: calc(80% - 20px);
|
5106 |
+
}
|
5107 |
+
|
5108 |
+
#themes_select {
|
5109 |
+
width: 100%;
|
5110 |
+
}
|
5111 |
+
}
|
5112 |
+
|
5113 |
+
@media screen and (max-width: 450px) {
|
5114 |
+
#themes_select_row {
|
5115 |
+
text-align: center;
|
5116 |
+
float: none;
|
5117 |
+
}
|
5118 |
+
|
5119 |
+
|
5120 |
+
#themes_select_row #theme {
|
5121 |
+
width: 150px;
|
5122 |
+
}
|
5123 |
+
}
|
5124 |
+
|
5125 |
+
@media screen and (max-width: 782px) {
|
5126 |
+
#fm-header-content {
|
5127 |
+
width: 100%;
|
5128 |
+
}
|
5129 |
+
|
5130 |
+
#fm-embedded-element input[type="text"] {
|
5131 |
+
border-radius: 0px;
|
5132 |
+
width: 30%;
|
5133 |
+
}
|
5134 |
+
|
5135 |
+
|
5136 |
+
.fm-form-types label.display_option_item {
|
5137 |
+
padding: 10px;
|
5138 |
+
border:1px solid #E5E5E5;
|
5139 |
+
-webkit-border-radius: 6px;
|
5140 |
+
-moz-border-radius: 6px;
|
5141 |
+
border-radius: 6px;
|
5142 |
+
width: 48.5%;
|
5143 |
+
text-align: center;
|
5144 |
+
position: relative;
|
5145 |
+
margin-right: 2%;
|
5146 |
+
}
|
5147 |
+
|
5148 |
+
.fm-form-types label.display_option_item:nth-child(3) {
|
5149 |
+
margin-right: 0px!important;
|
5150 |
+
}
|
5151 |
+
|
5152 |
+
}
|
5153 |
+
|
5154 |
+
@media screen and (max-width: 570px) {
|
5155 |
+
#fm_revision_popup_container .fm-popup-wrap {
|
5156 |
+
width: 100%;
|
5157 |
+
height: 515px;
|
5158 |
+
-webkit-border-radius: 0px;
|
5159 |
+
-moz-border-radius: 0px;
|
5160 |
+
border-radius: 0px;
|
5161 |
+
padding: 5px 0;
|
5162 |
+
|
5163 |
+
}
|
5164 |
+
|
5165 |
+
#fm-embedded-element input[type="text"] {
|
5166 |
+
border-radius: 0px;
|
5167 |
+
width: 50%;
|
5168 |
+
}
|
5169 |
+
|
5170 |
+
|
5171 |
+
|
5172 |
+
.fm-form-types label.display_option_item {
|
5173 |
+
padding: 10px;
|
5174 |
+
border:1px solid #E5E5E5;
|
5175 |
+
-webkit-border-radius: 6px;
|
5176 |
+
-moz-border-radius: 6px;
|
5177 |
+
border-radius: 6px;
|
5178 |
+
width: 100%;
|
5179 |
+
text-align: center;
|
5180 |
+
position: relative;
|
5181 |
+
margin-right: 9.5%;
|
5182 |
+
}
|
5183 |
+
|
5184 |
+
.fm-form-types label.display_option_item:nth-child(3) {
|
5185 |
+
margin-right: 0px!important;
|
5186 |
+
}
|
5187 |
+
|
5188 |
+
}
|
5189 |
+
|
5190 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs {
|
5191 |
+
display: flex;
|
5192 |
+
flex-wrap: wrap;
|
5193 |
+
justify-content: center;
|
5194 |
+
border: none;
|
5195 |
+
border-bottom: 1px solid #E5E5E5;
|
5196 |
+
font-size: 16px;
|
5197 |
+
margin: 0;
|
5198 |
+
padding: 0;
|
5199 |
+
}
|
5200 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li#form_empty_tab {
|
5201 |
+
cursor: initial;
|
5202 |
+
}
|
5203 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li#form_empty_tab > a {
|
5204 |
+
display: none;
|
5205 |
+
}
|
5206 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li {
|
5207 |
+
background: #ffffff !important;
|
5208 |
+
border: none !important;
|
5209 |
+
box-shadow: none !important;
|
5210 |
+
cursor: pointer;
|
5211 |
+
margin: 0;
|
5212 |
+
}
|
5213 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li > a {
|
5214 |
+
display: inline-block;
|
5215 |
+
padding: 20px;
|
5216 |
+
box-shadow: none;
|
5217 |
+
color: #32373C;
|
5218 |
+
font-size: 16px;
|
5219 |
+
font-weight: 600;
|
5220 |
+
}
|
5221 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li > a .tab-label {
|
5222 |
+
font-size: 16px;
|
5223 |
+
}
|
5224 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li:hover {
|
5225 |
+
background: #ffffff !important;
|
5226 |
+
}
|
5227 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li:focus {
|
5228 |
+
box-shadow: none !important;
|
5229 |
+
outline: none !important;
|
5230 |
+
}
|
5231 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li:hover > a {
|
5232 |
+
color: #0085BA;
|
5233 |
+
}
|
5234 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li.ui-tabs-active {
|
5235 |
+
border-bottom: 2px solid #0085BA !important;
|
5236 |
+
}
|
5237 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs > li.ui-tabs-active > a {
|
5238 |
+
color: #0085BA;
|
5239 |
+
}
|
5240 |
+
#fm_admin_container.fm-form-container .fm-edit-tabs #form_empty_tab {
|
5241 |
+
flex: 1;
|
5242 |
+
}
|
5243 |
+
#fm_admin_container.fm-form-container .ui-tabs-panel {
|
5244 |
+
background: #ffffff;
|
5245 |
+
border: none;
|
5246 |
+
min-height: 600px;
|
5247 |
+
}
|
5248 |
+
#fm_admin_container.fm-form-container .ui-widget-content span.dashicons-admin-generic {
|
5249 |
+
line-height: 20px;
|
5250 |
+
font-size: 15px;
|
5251 |
+
margin-left: 5px;
|
5252 |
+
}
|
5253 |
+
.rtl #fm_admin_container.fm-form-container .ui-widget-content span.dashicons-admin-generic {
|
5254 |
+
margin-right: 5px;
|
5255 |
+
margin-left: unset;
|
5256 |
+
}
|
5257 |
+
#fm-tabs {
|
5258 |
+
background: #FFFFFF;
|
5259 |
+
}
|
5260 |
+
.fm-tab-loading-indicator {
|
5261 |
+
padding: 20px;
|
5262 |
+
text-align: center;
|
5263 |
+
font-size: 16px;
|
5264 |
+
}
|
5265 |
+
.fm_popup_container .fm-button-delete {
|
5266 |
+
background-color: #CA4A1F;
|
5267 |
+
border-color: #CA4A1F;
|
5268 |
+
box-shadow: 0 1px 0 #802F14;
|
5269 |
+
text-shadow: none;
|
5270 |
+
}
|
5271 |
+
.fm_popup_container .fm-button-delete:hover {
|
5272 |
+
background-color: #9E3B19;
|
5273 |
+
border-color: #CA4A1F;
|
5274 |
+
}
|
5275 |
+
|
5276 |
+
.fm-form-builder .wdform_page {
|
5277 |
+
display: flex;
|
5278 |
+
flex-wrap: wrap;
|
5279 |
+
justify-content: flex-end;
|
5280 |
+
min-height: 100px;
|
5281 |
+
}
|
5282 |
+
.fm-form-builder .wdform_section {
|
5283 |
+
flex-direction: column;
|
5284 |
+
flex: 1;
|
5285 |
+
}
|
5286 |
+
.fm-form-builder .wdform_page > .highlight {
|
5287 |
+
flex: 1;
|
5288 |
+
margin: 10px;
|
5289 |
+
}
|
5290 |
+
.fm-form-builder .wdform_row_empty {
|
5291 |
+
flex: 0 20%;
|
5292 |
+
}
|
5293 |
+
.wdform_column:not(#add_field_cont) {
|
5294 |
+
display: flex;
|
5295 |
+
flex-direction: column;
|
5296 |
+
}
|
5297 |
+
.fm-form-builder .wdform_column:not(#add_field_cont) {
|
5298 |
+
flex-direction: row;
|
5299 |
+
}
|
5300 |
+
.fm-form-builder .wdform_column_empty > div {
|
5301 |
+
flex-direction: row;
|
5302 |
+
}
|
5303 |
+
.fm-form-builder .wdform_row_empty > div {
|
5304 |
+
flex-direction: column;
|
5305 |
+
}
|
5306 |
+
.fm-form-builder .wdform_section {
|
5307 |
+
display: initial;
|
5308 |
+
flex-wrap: unset;
|
5309 |
+
}
|
5310 |
+
.fm-form-builder .wdform_row_empty {
|
5311 |
+
margin: 10px;
|
5312 |
+
}
|
5313 |
+
.fm-section-overlay {
|
5314 |
+
background: rgba(242,242,242, 0.5);
|
5315 |
+
display: none;
|
5316 |
+
flex-direction: column;
|
5317 |
+
height: calc(100% - 30px);
|
5318 |
+
left: 0;
|
5319 |
+
position: absolute;
|
5320 |
+
text-align: center;
|
5321 |
+
top: 30px;
|
5322 |
+
vertical-align: middle;
|
5323 |
+
width: 100%;
|
5324 |
+
z-index: 9;
|
5325 |
+
}
|
5326 |
+
.fm-hover .fm-section-overlay {
|
5327 |
+
display: inline-block;
|
5328 |
+
}
|
5329 |
+
.fm-hover .wdform_row_handle {
|
5330 |
+
background: rgba(242,242,242, 0.5);
|
5331 |
+
}
|
5332 |
+
@media screen and (max-width: 768px) {
|
5333 |
+
.fm-form-builder .wdform_page > * {
|
5334 |
+
flex: 0 100%;
|
5335 |
+
}
|
5336 |
+
}
|
5337 |
+
.rtl .intl-tel-input .selected-flag {
|
5338 |
+
padding: 0 8px 0 0;
|
5339 |
+
}
|
5340 |
+
|
5341 |
+
.rtl .ui-spinner input {
|
5342 |
+
text-align: left;
|
5343 |
+
}
|
5344 |
+
|
5345 |
+
.rtl div[type="type_phone_new"] input[type="text"]{
|
5346 |
+
padding-left: 6px !important;
|
5347 |
+
padding-right: 52px !important;
|
5348 |
+
}
|
5349 |
+
|
5350 |
+
.rtl .button-submit {
|
5351 |
+
margin-left: 15px;
|
5352 |
+
}
|
5353 |
+
|
5354 |
+
.rtl .ch-rad-label {
|
5355 |
+
display: inline;
|
5356 |
+
}
|
5357 |
+
|
5358 |
+
.rtl .wd-calendar-button {
|
5359 |
+
margin: 3px -23px 0 0;
|
5360 |
+
}
|
5361 |
+
|
5362 |
+
.rtl div[id$='_td_name_input_first'] {
|
5363 |
+
text-align: left;
|
5364 |
+
}
|
5365 |
+
|
5366 |
+
.rtl .fm-page-actions,
|
5367 |
+
.rtl div.wd-buttons,
|
5368 |
+
.rtl .fm-export-tools {
|
5369 |
+
float: left;
|
5370 |
+
}
|
5371 |
+
|
5372 |
+
.rtl .wd-table-col-left .wd-box-section {
|
5373 |
+
margin-left: 5px;
|
5374 |
+
margin-right: unset;
|
5375 |
+
}
|
5376 |
+
|
5377 |
+
.rtl .page-title-action {
|
5378 |
+
display: inline-block;
|
5379 |
+
}
|
5380 |
+
|
5381 |
+
.rtl .fm-edit-content #add_field_cont {
|
5382 |
+
left: 10px;
|
5383 |
+
right: unset;
|
5384 |
+
}
|
5385 |
+
|
5386 |
+
.rtl .fm_php_function {
|
5387 |
+
direction: ltr;
|
5388 |
+
text-align: right;
|
5389 |
+
}
|
5390 |
+
|
5391 |
+
.rtl .fm-input-container input[type="radio"] + label, .fm-input-container input[type="checkbox"] + label {
|
5392 |
+
padding-left: 10px;
|
5393 |
+
padding-right: unset;
|
5394 |
+
}
|
5395 |
+
|
5396 |
+
.rtl #edit_page_navigation {
|
5397 |
+
text-align: left;
|
5398 |
+
}
|
5399 |
+
|
5400 |
+
.rtl .fm-input-container input[type='radio'],
|
5401 |
+
.rtl .fm-input-container label {
|
5402 |
+
display: inline-block;
|
5403 |
+
}
|
5404 |
+
|
5405 |
+
#form_email_options_tab_content .wd-table-col-50 {
|
5406 |
+
margin: auto;
|
5407 |
+
}
|
5408 |
+
#fm-edit-disable-overlay {
|
5409 |
+
padding: 70px;
|
5410 |
+
z-index: 10;
|
5411 |
+
}
|
5412 |
+
#fm-edit-disable-overlay .fm-edit-disable-overlay-text {
|
5413 |
+
background-color: #ececec;
|
5414 |
+
border: 1px solid #dddddd;
|
5415 |
+
padding: 20px;
|
5416 |
+
}
|
5417 |
+
#fm-edit-disable-overlay .fm-edit-disable-overlay-text span,
|
5418 |
+
#fm-edit-disable-overlay .fm-edit-disable-overlay-text span * {
|
5419 |
+
font-size: 20px;
|
5420 |
+
line-height: 25px;
|
5421 |
+
}
|
5422 |
+
#fm-edit-disable-overlay .fm-edit-disable-overlay-button {
|
5423 |
+
padding-top: 20px;
|
5424 |
+
}
|
5425 |
+
|
5426 |
+
#manage_form [type="type_button"],
|
5427 |
+
#manage_form [type="type_submit_reset"] {
|
5428 |
+
display: flex !important;
|
5429 |
+
align-items: flex-end;
|
5430 |
+
height: 100%;
|
5431 |
+
}
|
5432 |
+
|
5433 |
+
.fm-col-1 {
|
5434 |
+
flex: 0 1 calc(100% - 20px) !important;;
|
5435 |
+
width: calc(100% - 20px) !important;;
|
5436 |
+
}
|
5437 |
+
.fm-col-2 {
|
5438 |
+
flex: 0 1 calc(50% - 20px) !important;;
|
5439 |
+
width: calc(50% - 20px) !important;;
|
5440 |
+
}
|
5441 |
+
.fm-col-3 {
|
5442 |
+
flex: 0 1 calc(33.33% - 20px) !important;;
|
5443 |
+
width: calc(33.33% - 20px) !important;;
|
5444 |
+
}
|
5445 |
+
.fm-col-4 {
|
5446 |
+
flex: 0 1 calc(25% - 20px) !important;
|
5447 |
+
width: calc(25% - 20px) !important;;
|
5448 |
}
|
css/images/embedded.png
ADDED
Binary file
|
css/images/embedded_active.svg
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73 44.154">
|
2 |
+
<defs>
|
3 |
+
<style>
|
4 |
+
.cls-1 {
|
5 |
+
fill: #fff;
|
6 |
+
}
|
7 |
+
|
8 |
+
.cls-2, .cls-3, .cls-6 {
|
9 |
+
fill: #e5e5e5;
|
10 |
+
}
|
11 |
+
|
12 |
+
.cls-2 {
|
13 |
+
stroke: #5848de;
|
14 |
+
stroke-width: 3px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.cls-4 {
|
18 |
+
fill: #0085ba;
|
19 |
+
}
|
20 |
+
|
21 |
+
.cls-5, .cls-6 {
|
22 |
+
stroke: none;
|
23 |
+
}
|
24 |
+
</style>
|
25 |
+
</defs>
|
26 |
+
<g id="Group_256" data-name="Group 256" transform="translate(-694 -422)">
|
27 |
+
<g id="Path_129" data-name="Path 129" class="cls-1" transform="translate(694 425)">
|
28 |
+
<path class="cls-5" d="M 69 40.65436172485352 L 4 40.65436172485352 C 2.070090055465698 40.65436172485352 0.5 39.08427047729492 0.5 37.15436172485352 L 0.5 1.000000834465027 C 0.5 -0.9299091100692749 2.070090055465698 -2.499999046325684 4 -2.499999046325684 L 69 -2.499999046325684 C 70.92990875244141 -2.499999046325684 72.5 -0.9299091100692749 72.5 1.000000834465027 L 72.5 37.15436172485352 C 72.5 39.08427047729492 70.92990875244141 40.65436172485352 69 40.65436172485352 Z"/>
|
29 |
+
<path class="cls-6" d="M 4 -2 C 2.345787048339844 -2 1 -0.6542091369628906 1 1 L 1 37.15436172485352 C 1 38.80857086181641 2.345787048339844 40.15436172485352 4 40.15436172485352 L 69 40.15436172485352 C 70.65421295166016 40.15436172485352 72 38.80857086181641 72 37.15436172485352 L 72 1 C 72 -0.6542091369628906 70.65421295166016 -2 69 -2 L 4 -2 M 4 -3 L 69 -3 C 71.20913696289063 -3 73 -1.209140777587891 73 1 L 73 37.15436172485352 C 73 39.36350250244141 71.20913696289063 41.15436172485352 69 41.15436172485352 L 4 41.15436172485352 C 1.790863037109375 41.15436172485352 0 39.36350250244141 0 37.15436172485352 L 0 1 C 0 -1.209140777587891 1.790863037109375 -3 4 -3 Z"/>
|
30 |
+
</g>
|
31 |
+
<g id="Group_85" data-name="Group 85" transform="translate(349 -264)">
|
32 |
+
<path id="Path_119" data-name="Path 119" class="cls-2" d="M23.831,0" transform="translate(385.388 693.5)"/>
|
33 |
+
<rect id="Rectangle_110" data-name="Rectangle 110" class="cls-3" width="59" height="8" rx="1" transform="translate(352 692)"/>
|
34 |
+
</g>
|
35 |
+
<rect id="Rectangle_123" data-name="Rectangle 123" class="cls-4" width="59" height="8" rx="1" transform="translate(701 440)"/>
|
36 |
+
<rect id="Rectangle_124" data-name="Rectangle 124" class="cls-3" width="59" height="8" rx="1" transform="translate(701 452)"/>
|
37 |
+
</g>
|
38 |
+
</svg>
|
css/images/popup.svg
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73 44.154">
|
2 |
+
<defs>
|
3 |
+
<style>
|
4 |
+
.cls-1 {
|
5 |
+
fill: #fff;
|
6 |
+
}
|
7 |
+
|
8 |
+
.cls-2, .cls-3, .cls-6 {
|
9 |
+
fill: #e5e5e5;
|
10 |
+
}
|
11 |
+
|
12 |
+
.cls-2 {
|
13 |
+
stroke: #5848de;
|
14 |
+
stroke-width: 3px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.cls-4 {
|
18 |
+
fill: #555;
|
19 |
+
}
|
20 |
+
|
21 |
+
.cls-5, .cls-6 {
|
22 |
+
stroke: none;
|
23 |
+
}
|
24 |
+
</style>
|
25 |
+
</defs>
|
26 |
+
<g id="Group_257" data-name="Group 257" transform="translate(-901 -422)">
|
27 |
+
<g id="Path_129" data-name="Path 129" class="cls-1" transform="translate(901 425)">
|
28 |
+
<path class="cls-5" d="M 69 40.65436172485352 L 4 40.65436172485352 C 2.070090055465698 40.65436172485352 0.5 39.08427047729492 0.5 37.15436172485352 L 0.5 1.000000834465027 C 0.5 -0.9299091100692749 2.070090055465698 -2.499999046325684 4 -2.499999046325684 L 69 -2.499999046325684 C 70.92990875244141 -2.499999046325684 72.5 -0.9299091100692749 72.5 1.000000834465027 L 72.5 37.15436172485352 C 72.5 39.08427047729492 70.92990875244141 40.65436172485352 69 40.65436172485352 Z"/>
|
29 |
+
<path class="cls-6" d="M 4 -2 C 2.345787048339844 -2 1 -0.6542091369628906 1 1 L 1 37.15436172485352 C 1 38.80857086181641 2.345787048339844 40.15436172485352 4 40.15436172485352 L 69 40.15436172485352 C 70.65421295166016 40.15436172485352 72 38.80857086181641 72 37.15436172485352 L 72 1 C 72 -0.6542091369628906 70.65421295166016 -2 69 -2 L 4 -2 M 4 -3 L 69 -3 C 71.20913696289063 -3 73 -1.209140777587891 73 1 L 73 37.15436172485352 C 73 39.36350250244141 71.20913696289063 41.15436172485352 69 41.15436172485352 L 4 41.15436172485352 C 1.790863037109375 41.15436172485352 0 39.36350250244141 0 37.15436172485352 L 0 1 C 0 -1.209140777587891 1.790863037109375 -3 4 -3 Z"/>
|
30 |
+
</g>
|
31 |
+
<g id="Group_85" data-name="Group 85" transform="translate(556 -264)">
|
32 |
+
<path id="Path_119" data-name="Path 119" class="cls-2" d="M23.831,0" transform="translate(385.388 693.5)"/>
|
33 |
+
<rect id="Rectangle_110" data-name="Rectangle 110" class="cls-3" width="59" height="8" rx="1" transform="translate(352 692)"/>
|
34 |
+
</g>
|
35 |
+
<rect id="Rectangle_123" data-name="Rectangle 123" class="cls-3" width="59" height="8" rx="1" transform="translate(908 440)"/>
|
36 |
+
<rect id="Rectangle_124" data-name="Rectangle 124" class="cls-3" width="59" height="8" rx="1" transform="translate(908 452)"/>
|
37 |
+
<rect id="Rectangle_162" data-name="Rectangle 162" class="cls-4" width="26" height="22" rx="1" transform="translate(925 433)"/>
|
38 |
+
</g>
|
39 |
+
</svg>
|
css/images/popup_active.png
ADDED
Binary file
|
css/images/scrollbox.svg
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73 44.154">
|
2 |
+
<defs>
|
3 |
+
<style>
|
4 |
+
.cls-1 {
|
5 |
+
fill: #fff;
|
6 |
+
}
|
7 |
+
|
8 |
+
.cls-2, .cls-3, .cls-6 {
|
9 |
+
fill: #e5e5e5;
|
10 |
+
}
|
11 |
+
|
12 |
+
.cls-2 {
|
13 |
+
stroke: #5848de;
|
14 |
+
stroke-width: 3px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.cls-4 {
|
18 |
+
fill: #555;
|
19 |
+
}
|
20 |
+
|
21 |
+
.cls-5, .cls-6 {
|
22 |
+
stroke: none;
|
23 |
+
}
|
24 |
+
</style>
|
25 |
+
</defs>
|
26 |
+
<g id="Group_259" data-name="Group 259" transform="translate(-1315 -422)">
|
27 |
+
<g id="Path_134" data-name="Path 134" class="cls-1" transform="translate(1315 425)">
|
28 |
+
<path class="cls-5" d="M 69 40.65436172485352 L 4 40.65436172485352 C 2.070090055465698 40.65436172485352 0.5 39.08427047729492 0.5 37.15436172485352 L 0.5 1.000000834465027 C 0.5 -0.9299091100692749 2.070090055465698 -2.499999046325684 4 -2.499999046325684 L 69 -2.499999046325684 C 70.92990875244141 -2.499999046325684 72.5 -0.9299091100692749 72.5 1.000000834465027 L 72.5 37.15436172485352 C 72.5 39.08427047729492 70.92990875244141 40.65436172485352 69 40.65436172485352 Z"/>
|
29 |
+
<path class="cls-6" d="M 4 -2 C 2.345787048339844 -2 1 -0.6542091369628906 1 1 L 1 37.15436172485352 C 1 38.80857086181641 2.345787048339844 40.15436172485352 4 40.15436172485352 L 69 40.15436172485352 C 70.65421295166016 40.15436172485352 72 38.80857086181641 72 37.15436172485352 L 72 1 C 72 -0.6542091369628906 70.65421295166016 -2 69 -2 L 4 -2 M 4 -3 L 69 -3 C 71.20913696289063 -3 73 -1.209140777587891 73 1 L 73 37.15436172485352 C 73 39.36350250244141 71.20913696289063 41.15436172485352 69 41.15436172485352 L 4 41.15436172485352 C 1.790863037109375 41.15436172485352 0 39.36350250244141 0 37.15436172485352 L 0 1 C 0 -1.209140777587891 1.790863037109375 -3 4 -3 Z"/>
|
30 |
+
</g>
|
31 |
+
<g id="Group_131" data-name="Group 131" transform="translate(970 -264)">
|
32 |
+
<path id="Path_119" data-name="Path 119" class="cls-2" d="M23.831,0" transform="translate(385.388 693.5)"/>
|
33 |
+
<rect id="Rectangle_110" data-name="Rectangle 110" class="cls-3" width="59" height="8" rx="1" transform="translate(352 692)"/>
|
34 |
+
</g>
|
35 |
+
<rect id="Rectangle_166" data-name="Rectangle 166" class="cls-3" width="59" height="8" rx="1" transform="translate(1322 440)"/>
|
36 |
+
<rect id="Rectangle_167" data-name="Rectangle 167" class="cls-3" width="40" height="8" rx="1" transform="translate(1322 452)"/>
|
37 |
+
<rect id="Rectangle_168" data-name="Rectangle 168" class="cls-4" width="15" height="8" rx="1" transform="translate(1366 452)"/>
|
38 |
+
</g>
|
39 |
+
</svg>
|
css/images/scrollbox_active.png
ADDED
Binary file
|
css/images/themes.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 52.498"><defs><style>.a{fill:#0085ba;}.b{opacity:0.6;}.c{opacity:0.3;}</style></defs><g transform="translate(-2781 -7711)"><g transform="translate(2781 7711)"><g transform="translate(0 0)"><path class="a" d="M59.327,47.149l-28.75-15a1.261,1.261,0,0,0-1.157,0l-28.75,15a1.249,1.249,0,0,0,0,2.215l28.75,15a1.241,1.241,0,0,0,1.155,0l28.75-15a1.248,1.248,0,0,0,0-2.215Z" transform="translate(0 -32.008)"/></g></g><g class="b" transform="translate(2781 7733.658)"><g transform="translate(0 0)"><path class="a" d="M59.327,227.839l-4.757-2.482L31.732,237.272a3.748,3.748,0,0,1-3.457.005L5.43,225.357.673,227.839a1.248,1.248,0,0,0,0,2.215l28.75,15a1.242,1.242,0,0,0,1.155,0l28.75-15a1.248,1.248,0,0,0,0-2.215Z" transform="translate(0 -225.357)"/></g></g><g class="c" transform="translate(2781 7743.658)"><g transform="translate(0 0)"><path class="a" d="M59.327,313.174l-4.757-2.482L31.732,322.606a3.748,3.748,0,0,1-3.457.005L5.43,310.691.673,313.174a1.248,1.248,0,0,0,0,2.215l28.75,15a1.241,1.241,0,0,0,1.155,0l28.75-15a1.248,1.248,0,0,0,0-2.215Z" transform="translate(0 -310.691)"/></g></g></g></svg>
|
css/images/topbar.svg
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73 44.154">
|
2 |
+
<defs>
|
3 |
+
<style>
|
4 |
+
.cls-1 {
|
5 |
+
fill: #fff;
|
6 |
+
}
|
7 |
+
|
8 |
+
.cls-2, .cls-3 {
|
9 |
+
fill: #555;
|
10 |
+
}
|
11 |
+
|
12 |
+
.cls-2 {
|
13 |
+
stroke: #5848de;
|
14 |
+
stroke-width: 3px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.cls-4, .cls-6 {
|
18 |
+
fill: #e5e5e5;
|
19 |
+
}
|
20 |
+
|
21 |
+
.cls-5, .cls-6 {
|
22 |
+
stroke: none;
|
23 |
+
}
|
24 |
+
</style>
|
25 |
+
</defs>
|
26 |
+
<g id="Group_258" data-name="Group 258" transform="translate(-1108 -422)">
|
27 |
+
<g id="Path_133" data-name="Path 133" class="cls-1" transform="translate(1108 425)">
|
28 |
+
<path class="cls-5" d="M 69 40.65436172485352 L 4 40.65436172485352 C 2.070090055465698 40.65436172485352 0.5 39.08427047729492 0.5 37.15436172485352 L 0.5 1.000000834465027 C 0.5 -0.9299091100692749 2.070090055465698 -2.499999046325684 4 -2.499999046325684 L 69 -2.499999046325684 C 70.92990875244141 -2.499999046325684 72.5 -0.9299091100692749 72.5 1.000000834465027 L 72.5 37.15436172485352 C 72.5 39.08427047729492 70.92990875244141 40.65436172485352 69 40.65436172485352 Z"/>
|
29 |
+
<path class="cls-6" d="M 4 -2 C 2.345787048339844 -2 1 -0.6542091369628906 1 1 L 1 37.15436172485352 C 1 38.80857086181641 2.345787048339844 40.15436172485352 4 40.15436172485352 L 69 40.15436172485352 C 70.65421295166016 40.15436172485352 72 38.80857086181641 72 37.15436172485352 L 72 1 C 72 -0.6542091369628906 70.65421295166016 -2 69 -2 L 4 -2 M 4 -3 L 69 -3 C 71.20913696289063 -3 73 -1.209140777587891 73 1 L 73 37.15436172485352 C 73 39.36350250244141 71.20913696289063 41.15436172485352 69 41.15436172485352 L 4 41.15436172485352 C 1.790863037109375 41.15436172485352 0 39.36350250244141 0 37.15436172485352 L 0 1 C 0 -1.209140777587891 1.790863037109375 -3 4 -3 Z"/>
|
30 |
+
</g>
|
31 |
+
<g id="Group_130" data-name="Group 130" transform="translate(763 -264)">
|
32 |
+
<path id="Path_119" data-name="Path 119" class="cls-2" d="M23.831,0" transform="translate(385.388 693.5)"/>
|
33 |
+
<rect id="Rectangle_110" data-name="Rectangle 110" class="cls-3" width="59" height="8" rx="1" transform="translate(352 692)"/>
|
34 |
+
</g>
|
35 |
+
<rect id="Rectangle_163" data-name="Rectangle 163" class="cls-4" width="59" height="8" rx="1" transform="translate(1115 440)"/>
|
36 |
+
<rect id="Rectangle_165" data-name="Rectangle 165" class="cls-4" width="59" height="8" rx="1" transform="translate(1115 452)"/>
|
37 |
+
</g>
|
38 |
+
</svg>
|
css/images/topbar_active.png
ADDED
Binary file
|
css/jquery-ui.custom.css
CHANGED
@@ -350,7 +350,6 @@ button.ui-button::-moz-focus-inner {
|
|
350 |
position: absolute;
|
351 |
z-index: 9999;
|
352 |
max-width: 300px;
|
353 |
-
background-color: #FFF;
|
354 |
}
|
355 |
|
356 |
/* Component containers
|
@@ -370,7 +369,9 @@ button.ui-button::-moz-focus-inner {
|
|
370 |
.fm-form-container .ui-widget-header a {
|
371 |
color: #ffffff;
|
372 |
}
|
373 |
-
|
|
|
|
|
374 |
/* Interaction states
|
375 |
----------------------------------*/
|
376 |
.ui-state-default,
|
@@ -380,6 +381,7 @@ button.ui-button::-moz-focus-inner {
|
|
380 |
background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
|
381 |
font-weight: bold;
|
382 |
color: #1c94c4;
|
|
|
383 |
}
|
384 |
.fm-form-container .ui-state-default a,
|
385 |
.fm-form-container .ui-state-default a:link,
|
350 |
position: absolute;
|
351 |
z-index: 9999;
|
352 |
max-width: 300px;
|
|
|
353 |
}
|
354 |
|
355 |
/* Component containers
|
369 |
.fm-form-container .ui-widget-header a {
|
370 |
color: #ffffff;
|
371 |
}
|
372 |
+
.fm-form-container #take .ui-widget-content {
|
373 |
+
border-style:unset;
|
374 |
+
}
|
375 |
/* Interaction states
|
376 |
----------------------------------*/
|
377 |
.ui-state-default,
|
381 |
background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
|
382 |
font-weight: bold;
|
383 |
color: #1c94c4;
|
384 |
+
display: initial;
|
385 |
}
|
386 |
.fm-form-container .ui-state-default a,
|
387 |
.fm-form-container .ui-state-default a:link,
|
css/pricing.css
CHANGED
@@ -444,12 +444,12 @@
|
|
444 |
.fm-topbar-container * {
|
445 |
box-sizing: border-box;
|
446 |
}
|
447 |
-
.fm-topbar {
|
448 |
background-color: #FFFFFF;
|
449 |
border: 1px solid #D0D0D080;
|
450 |
border-radius: 7px;
|
451 |
color: #000000;
|
452 |
-
padding:
|
453 |
}
|
454 |
.fm-topbar-content {
|
455 |
display: flex;
|
@@ -701,13 +701,13 @@
|
|
701 |
height: 100%;
|
702 |
text-align: center;
|
703 |
}
|
704 |
-
.fm-limitation-alert span.
|
705 |
cursor: pointer;
|
706 |
position: absolute;
|
707 |
top: 10px;
|
708 |
right: 10px;
|
709 |
color: #000000;
|
710 |
-
font-size:
|
711 |
opacity: 0.3;
|
712 |
}
|
713 |
.fm-hidden {
|
444 |
.fm-topbar-container * {
|
445 |
box-sizing: border-box;
|
446 |
}
|
447 |
+
.fm-topbar-container .fm-topbar {
|
448 |
background-color: #FFFFFF;
|
449 |
border: 1px solid #D0D0D080;
|
450 |
border-radius: 7px;
|
451 |
color: #000000;
|
452 |
+
padding: 10px;
|
453 |
}
|
454 |
.fm-topbar-content {
|
455 |
display: flex;
|
701 |
height: 100%;
|
702 |
text-align: center;
|
703 |
}
|
704 |
+
.fm-limitation-alert span.fm-ico-delete {
|
705 |
cursor: pointer;
|
706 |
position: absolute;
|
707 |
top: 10px;
|
708 |
right: 10px;
|
709 |
color: #000000;
|
710 |
+
font-size: 10px;
|
711 |
opacity: 0.3;
|
712 |
}
|
713 |
.fm-hidden {
|
fonts/fonts/fm-icons.svg
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>Generated by IcoMoon</metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="fm-icons" horiz-adv-x="1024">
|
7 |
+
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
+
<missing-glyph horiz-adv-x="1024" />
|
9 |
+
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
+
<glyph unicode="" glyph-name="plus-circle" d="M512-64c-282.682 0.22-511.756 229.43-511.756 512.143 0 210.73 127.273 391.734 309.145 470.336l3.32 1.277c58.025 24.762 125.533 39.156 196.403 39.156 282.849 0 512.143-229.294 512.143-512.143 0-209.775-126.122-390.092-306.674-469.261l-3.291-1.286c-58.51-25.43-126.664-40.224-198.274-40.224-0.357 0-0.715 0-1.072 0.001h0.055zM307.2 459.653v-51.2h179.241v-179.241h51.2v179.343h179.159v51.2h-179.22v179.159h-51.2v-179.241z" />
|
11 |
+
<glyph unicode="" glyph-name="plus" d="M402.289-64v402.289h-402.289v219.423h402.289v402.289h219.423v-402.289h402.289v-219.423h-402.289v-402.289z" />
|
12 |
+
<glyph unicode="" glyph-name="collapse" d="M4.096 222.72c-2.048 4.096-4.096 10.24-4.096 16.384s2.048 12.288 4.096 16.384l477.184 409.6c0 0 18.432 16.384 30.72 16.384s30.72-16.384 30.72-16.384l477.184-409.6c10.24-16.384 4.096-36.864-12.288-47.104-6.144-2.048-10.24-4.096-16.384-4.096h-954.368c-14.336 0-26.624 6.144-32.768 18.432z" />
|
13 |
+
<glyph unicode="" glyph-name="draggable" horiz-adv-x="761" d="M146.289 228.577c-80.793 0-146.289-65.496-146.289-146.289s65.496-146.289 146.289-146.289c80.793 0 146.289 65.496 146.289 146.289v0c-0.093 80.756-65.533 146.196-146.28 146.289h-0.009zM614.4 228.577c-80.793 0-146.289-65.496-146.289-146.289s65.496-146.289 146.289-146.289c80.793 0 146.289 65.496 146.289 146.289v0c-0.093 80.756-65.533 146.196-146.28 146.289h-0.009zM146.289 594.289c-80.793 0-146.289-65.496-146.289-146.289s65.496-146.289 146.289-146.289c80.793 0 146.289 65.496 146.289 146.289v0c-0.093 80.756-65.533 146.196-146.28 146.289h-0.009zM614.4 594.289c-80.793 0-146.289-65.496-146.289-146.289s65.496-146.289 146.289-146.289c80.793 0 146.289 65.496 146.289 146.289v0c-0.093 80.756-65.533 146.196-146.28 146.289h-0.009zM146.289 960c-80.793 0-146.289-65.496-146.289-146.289s65.496-146.289 146.289-146.289c80.793 0 146.289 65.496 146.289 146.289v0c-0.093 80.756-65.533 146.196-146.28 146.289h-0.009zM614.4 960c-80.793 0-146.289-65.496-146.289-146.289s65.496-146.289 146.289-146.289c80.793 0 146.289 65.496 146.289 146.289v0c-0.093 80.756-65.533 146.196-146.28 146.289h-0.009z" />
|
14 |
+
<glyph unicode="" glyph-name="duplicate" horiz-adv-x="962" d="M888.381 960h-508.948c-40.366-0.070-73.067-32.786-73.114-73.15v-171.708h275.804c77.249-0.093 139.847-62.691 139.94-139.931v-327.566h166.359c40.383 0.047 73.108 32.771 73.155 73.15v566.051c-0.047 40.398-32.795 73.131-73.193 73.155h-0.002zM582.103 648.294h-508.948c-40.395-0.012-73.146-32.726-73.216-73.107v-566.033c0.047-40.383 32.771-73.108 73.15-73.155h508.932c40.383 0.047 73.108 32.771 73.155 73.15v566.030c-0.070 40.337-32.739 73.021-73.064 73.114h-0.009z" />
|
15 |
+
<glyph unicode="" glyph-name="edit" d="M612.557 795.484l239.247-240.23-507.576-510.054-239.124 240.23zM1003.95 805.356l-128.143 128.573c-16.018 16.092-38.186 26.049-62.679 26.049s-46.661-9.958-62.676-26.046l-0.003-0.003-85.668-86.016 239.247-240.23 99.922 100.352c12.425 12.466 20.107 29.666 20.107 48.66s-7.682 36.194-20.108 48.662l0.002-0.002zM0.164 2.191c-3.645-16.507 49.91-70.021 66.335-66.007l223.437 54.436-239.124 240.251z" />
|
16 |
+
<glyph unicode="" glyph-name="expand" d="M1019.392 666.317c2.897-4.927 4.608-10.853 4.608-17.179 0-0.009 0-0.017 0-0.026v0.001c-0.002-6.334-1.712-12.268-4.696-17.366l0.088 0.163-477.594-410.112s-17.51-17.203-29.798-17.203-29.778 17.203-29.778 17.203l-477.614 410.112c-2.889 4.93-4.595 10.857-4.595 17.183 0 19.002 15.394 34.408 34.391 34.427h955.189c0 0 0.001 0 0.002 0 12.668 0 23.737-6.846 29.709-17.041l0.088-0.162z" />
|
17 |
+
<glyph unicode="" glyph-name="delete" d="M1007.37 138.752l-309.33 309.248 309.248 309.248c10.195 10.232 16.497 24.348 16.497 39.936s-6.303 29.704-16.499 39.938l-106.412 106.33c-10.214 10.234-24.336 16.565-39.936 16.565s-29.722-6.331-39.935-16.564l-309.249-309.249-309.166 309.248c-10.214 10.234-24.336 16.565-39.936 16.565s-29.722-6.331-39.935-16.564l-106.251-106.333c-10.195-10.232-16.497-24.348-16.497-39.936s6.303-29.704 16.499-39.938l309.144-309.246-309.146-309.248c-10.195-10.232-16.497-24.348-16.497-39.936s6.303-29.704 16.499-39.938l106.392-106.494c10.232-10.195 24.348-16.497 39.936-16.497s29.704 6.303 39.938 16.499l309.246 309.246 309.248-309.248c10.232-10.195 24.348-16.497 39.936-16.497s29.704 6.303 39.938 16.499l106.494 106.494c10.147 10.212 16.419 24.285 16.419 39.823 0 15.65-6.363 29.814-16.642 40.047l-0.002 0.002z" />
|
18 |
+
<glyph unicode="" glyph-name="form-maker" horiz-adv-x="1234" d="M77.847-64c-0.041 0-0.091 0-0.14 0-42.917 0-77.708 34.791-77.708 77.708 0 0.049 0 0.098 0 0.147v-0.008 868.305c0 0.041 0 0.091 0 0.14 0 42.917 34.791 77.708 77.708 77.708 0.049 0 0.098 0 0.147 0h1077.892c0.048 0 0.106 0 0.163 0 42.904 0 77.684-34.78 77.684-77.684 0-0.057 0-0.115 0-0.172v0.009-868.305c0-0.048 0-0.106 0-0.163 0-42.904-34.78-77.684-77.684-77.684-0.057 0-0.115 0-0.172 0h0.009zM35.933 882.153v-868.305c0-0.069-0.001-0.151-0.001-0.233 0-23.007 18.651-41.658 41.658-41.658 0.082 0 0.164 0 0.246 0.001h1077.91c0.069 0 0.151-0.001 0.233-0.001 23.007 0 41.658 18.651 41.658 41.658 0 0.082 0 0.164-0.001 0.246v-0.013 868.305c0 0.069 0.001 0.151 0.001 0.233 0 23.007-18.651 41.658-41.658 41.658-0.082 0-0.164 0-0.246-0.001h-1077.887c-0.076 0.001-0.166 0.001-0.257 0.001-23.007 0-41.658-18.651-41.658-41.658 0-0.082 0-0.164 0.001-0.246v0.013zM145.524 57.553c-0.092-0.002-0.199-0.003-0.308-0.003-9.756 0-17.664 7.908-17.664 17.664 0 0.148 0.002 0.296 0.005 0.443v-0.022 216.669c-0.002 0.098-0.003 0.213-0.003 0.329 0 9.743 7.898 17.641 17.641 17.641 0.116 0 0.231-0.001 0.346-0.003h947.928c0.098 0.002 0.213 0.003 0.329 0.003 9.743 0 17.641-7.898 17.641-17.641 0-0.116-0.001-0.231-0.003-0.346v0.017-216.669c-0.026-9.912-8.055-17.94-17.964-17.967h-0.003zM163.491 93.487h912.012v180.852h-912.012zM145.524 370.153c-0.098-0.002-0.213-0.003-0.329-0.003-9.743 0-17.641 7.898-17.641 17.641 0 0.116 0.001 0.231 0.003 0.346v-0.017 91.020c-0.002 0.091-0.003 0.198-0.003 0.305 0 9.756 7.908 17.664 17.664 17.664 0.107 0 0.214-0.001 0.321-0.003h947.929c0.098 0.002 0.213 0.003 0.329 0.003 9.743 0 17.641-7.898 17.641-17.641 0-0.116-0.001-0.231-0.003-0.346v0.017-91.020c-0.026-9.912-8.055-17.94-17.964-17.967h-0.003zM163.491 406.109h912.012v55.063h-912.012zM842.473 557.591c-0.098-0.002-0.213-0.003-0.329-0.003-9.743 0-17.641 7.898-17.641 17.641 0 0.116 0.001 0.231 0.003 0.346v-0.017 89.204c-0.002 0.098-0.003 0.213-0.003 0.329 0 9.743 7.898 17.641 17.641 17.641 0.116 0 0.231-0.001 0.346-0.003h251.584c0.098 0.002 0.213 0.003 0.329 0.003 9.743 0 17.641-7.898 17.641-17.641 0-0.116-0.001-0.231-0.003-0.346v0.017-89.204c-0.040-9.907-8.060-17.927-17.963-17.967h-0.004zM859.834 593.524h215.575v53.295h-215.482zM522.775 557.591c-0.098-0.002-0.213-0.003-0.329-0.003-9.743 0-17.641 7.898-17.641 17.641 0 0.116 0.001 0.231 0.003 0.346v-0.017 89.204c-0.002 0.098-0.003 0.213-0.003 0.329 0 9.743 7.898 17.641 17.641 17.641 0.116 0 0.231-0.001 0.346-0.003h251.491c0.098 0.002 0.213 0.003 0.329 0.003 9.743 0 17.641-7.898 17.641-17.641 0-0.116-0.001-0.231-0.003-0.346v0.017-89.204c-0.040-9.907-8.060-17.927-17.963-17.967h-0.004zM540.137 593.524h215.575v53.295h-215.575zM145.524 557.591c-0.098-0.002-0.213-0.003-0.329-0.003-9.743 0-17.641 7.898-17.641 17.641 0 0.116 0.001 0.231 0.003 0.346v-0.017 244.317c-0.002 0.098-0.003 0.213-0.003 0.329 0 9.743 7.898 17.641 17.641 17.641 0.116 0 0.231-0.001 0.346-0.003h251.491c0.098 0.002 0.213 0.003 0.329 0.003 9.743 0 17.641-7.898 17.641-17.641 0-0.116-0.001-0.231-0.003-0.346v0.017-244.364c-0.040-9.907-8.060-17.927-17.963-17.967h-0.004zM163.491 593.524h215.575v208.384h-215.575zM842.473 713.309c-0.098-0.002-0.213-0.003-0.329-0.003-9.743 0-17.641 7.898-17.641 17.641 0 0.116 0.001 0.231 0.003 0.346v-0.017 89.088c-0.002 0.098-0.003 0.213-0.003 0.329 0 9.743 7.898 17.641 17.641 17.641 0.116 0 0.231-0.001 0.346-0.003h251.584c0.098 0.002 0.213 0.003 0.329 0.003 9.743 0 17.641-7.898 17.641-17.641 0-0.116-0.001-0.231-0.003-0.346v0.017-89.111c-0.026-9.912-8.055-17.94-17.964-17.967h-0.003zM859.834 749.242h215.575v53.271h-215.482zM522.775 713.309c-0.098-0.002-0.213-0.003-0.329-0.003-9.743 0-17.641 7.898-17.641 17.641 0 0.116 0.001 0.231 0.003 0.346v-0.017 89.088c-0.002 0.098-0.003 0.213-0.003 0.329 0 9.743 7.898 17.641 17.641 17.641 0.116 0 0.231-0.001 0.346-0.003h251.491c0.098 0.002 0.213 0.003 0.328 0.003 9.756 0 17.664-7.908 17.664-17.664 0-0.107-0.001-0.215-0.003-0.322v0.016-89.111c-0.026-9.912-8.055-17.94-17.964-17.967h-0.003zM540.137 749.242h215.575v53.271h-215.575z" />
|
19 |
+
<glyph unicode="" glyph-name="close" d="M572.191 447.468l110.387 110.387c8.094 8.092 13.101 19.272 13.101 31.621 0 24.694-20.018 44.712-44.712 44.712-12.344 0-23.52-5.002-31.611-13.091l-110.387-110.408-110.408 110.408c-8.091 8.088-19.267 13.091-31.611 13.091-24.694 0-44.712-20.018-44.712-44.712 0-12.349 5.007-23.529 13.101-31.621l110.387-110.387-110.387-110.387c-8.112-8.099-13.13-19.295-13.13-31.662 0-24.71 20.031-44.741 44.741-44.741 12.342 0 23.517 4.997 31.611 13.079l110.386 110.386 110.387-110.387c8.104-8.109 19.302-13.125 31.672-13.125 24.73 0 44.777 20.047 44.777 44.777 0 12.36-5.008 23.55-13.105 31.652v0zM512-64c-0.032 0-0.069 0-0.107 0-36.485 0-72.085 3.788-106.429 10.993l3.357-0.589c-69.46 14.522-130.869 41.294-184.82 78.175l1.749-1.129c-81.681 55.669-145.4 132.172-184.227 221.953l-1.281 3.327c-11.933 27.285-22.224 59.427-29.253 92.77l-0.586 3.323c-6.615 31.021-10.402 66.663-10.402 103.188s3.788 72.167 10.992 106.552l-0.59-3.364c14.522 69.46 41.294 130.869 78.175 184.82l-1.129-1.749c55.669 81.681 132.172 145.4 221.953 184.227l3.327 1.281c27.286 11.927 59.428 22.211 92.771 29.233l3.321 0.585c31.021 6.615 66.663 10.402 103.188 10.402s72.167-3.788 106.552-10.992l-3.364 0.59c69.46-14.522 130.869-41.294 184.82-78.175l-1.749 1.129c81.681-55.669 145.4-132.172 184.227-221.953l1.281-3.327c11.934-27.292 22.225-59.44 29.254-92.791l0.586-3.322c6.615-31.021 10.402-66.663 10.402-103.188s-3.788-72.167-10.992-106.552l0.59 3.364c-14.522-69.46-41.294-130.869-78.175-184.82l1.129 1.749c-55.669-81.681-132.172-145.4-221.953-184.227l-3.327-1.281c-27.292-11.934-59.44-22.225-92.791-29.254l-3.322-0.586c-30.926-6.59-66.458-10.363-102.871-10.363-0.108 0-0.216 0-0.324 0h0.016zM512 881.234c-239.268 0-433.234-193.965-433.234-433.234s193.965-433.234 433.234-433.234c239.268 0 433.234 193.965 433.234 433.234v0c-0.28 239.156-194.078 432.954-433.207 433.234h-0.027z" />
|
20 |
+
</font></defs></svg>
|
fonts/fonts/fm-icons.ttf
ADDED
Binary file
|
fonts/fonts/fm-icons.woff
ADDED
Binary file
|
fonts/icons/close.svg
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
2 |
+
<g id="Group_11" data-name="Group 11" transform="translate(-539 -2572)">
|
3 |
+
<g id="_1" data-name="1" transform="translate(554.734 2587.909)">
|
4 |
+
<path id="Path_16" data-name="Path 16" d="M12.205,9.118l5.39-5.39A2.183,2.183,0,0,0,14.508.64L9.118,6.031,3.727.64A2.183,2.183,0,0,0,.64,3.728l5.39,5.39L.64,14.508A2.183,2.183,0,0,0,3.727,17.6l5.39-5.39,5.39,5.39A2.183,2.183,0,0,0,17.6,14.509Z" transform="translate(0 -0.001)"/>
|
5 |
+
</g>
|
6 |
+
<path id="Path_18" data-name="Path 18" d="M25,50a25.184,25.184,0,0,1-5.038-.508,24.863,24.863,0,0,1-8.939-3.762,25.073,25.073,0,0,1-9.058-11A24.874,24.874,0,0,1,.508,30.038a25.244,25.244,0,0,1,0-10.077A24.863,24.863,0,0,1,4.27,11.022a25.073,25.073,0,0,1,11-9.058A24.874,24.874,0,0,1,19.962.508a25.244,25.244,0,0,1,10.077,0A24.863,24.863,0,0,1,38.978,4.27a25.073,25.073,0,0,1,9.058,11,24.875,24.875,0,0,1,1.457,4.693,25.244,25.244,0,0,1,0,10.077,24.863,24.863,0,0,1-3.762,8.939,25.073,25.073,0,0,1-11,9.058,24.875,24.875,0,0,1-4.693,1.457A25.184,25.184,0,0,1,25,50ZM25,3.846A21.154,21.154,0,1,0,46.154,25,21.178,21.178,0,0,0,25,3.846Z" transform="translate(539 2572)"/>
|
7 |
+
</g>
|
8 |
+
</svg>
|
fonts/icons/collapse.svg
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 50 23.4" style="enable-background:new 0 0 50 23.4;" xml:space="preserve">
|
5 |
+
<g id="media-play-symbol" transform="translate(44 -43.137) rotate(90)">
|
6 |
+
<g id="Layer_8_16_" transform="translate(43.137 -6)">
|
7 |
+
<path id="Path_66" d="M22.5,49.8C22.3,49.9,22,50,21.7,50c-0.3,0-0.6-0.1-0.8-0.2l-20-23.3c0,0-0.8-0.9-0.8-1.5s0.8-1.5,0.8-1.5
|
8 |
+
l20-23.3c0.8-0.5,1.8-0.2,2.3,0.6c0.1,0.3,0.2,0.5,0.2,0.8v46.6C23.4,48.9,23.1,49.5,22.5,49.8z"/>
|
9 |
+
</g>
|
10 |
+
</g>
|
11 |
+
</svg>
|
fonts/icons/delete.svg
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49.996 50">
|
2 |
+
<g id="icon" transform="translate(-0.001)">
|
3 |
+
<path id="Path_132" data-name="Path 132" d="M49.189,40.1,34.085,25l15.1-15.1a2.763,2.763,0,0,0,0-3.9L43.989.808a2.755,2.755,0,0,0-3.9,0l-15.1,15.1L9.893.808a2.755,2.755,0,0,0-3.9,0L.805,6a2.763,2.763,0,0,0,0,3.9L15.9,25,.805,40.1a2.763,2.763,0,0,0,0,3.9L6,49.2a2.763,2.763,0,0,0,3.9,0l15.1-15.1L40.1,49.2a2.763,2.763,0,0,0,3.9,0l5.2-5.2A2.759,2.759,0,0,0,49.189,40.1Z" transform="translate(0)"/>
|
4 |
+
</g>
|
5 |
+
</svg>
|
fonts/icons/draggable.svg
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="menu" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37.143 50">
|
2 |
+
<path id="Path_8" data-name="Path 8" d="M7.143,40a7.143,7.143,0,1,0,7.143,7.143A7.151,7.151,0,0,0,7.143,40Z" transform="translate(0 -4.286)"/>
|
3 |
+
<path id="Path_9" data-name="Path 9" d="M27.143,40a7.143,7.143,0,1,0,7.143,7.143A7.151,7.151,0,0,0,27.143,40Z" transform="translate(2.857 -4.286)"/>
|
4 |
+
<path id="Path_11" data-name="Path 11" d="M7.143,20a7.143,7.143,0,1,0,7.143,7.143A7.151,7.151,0,0,0,7.143,20Z" transform="translate(0 -2.143)"/>
|
5 |
+
<path id="Path_12" data-name="Path 12" d="M27.143,20a7.143,7.143,0,1,0,7.143,7.143A7.151,7.151,0,0,0,27.143,20Z" transform="translate(2.857 -2.143)"/>
|
6 |
+
<path id="Path_14" data-name="Path 14" d="M7.143,0a7.143,7.143,0,1,0,7.143,7.143A7.151,7.151,0,0,0,7.143,0Z" transform="translate(0 0)"/>
|
7 |
+
<path id="Path_15" data-name="Path 15" d="M27.143,0a7.143,7.143,0,1,0,7.143,7.143A7.151,7.151,0,0,0,27.143,0Z" transform="translate(2.857 0)"/>
|
8 |
+
</svg>
|
fonts/icons/duplicate.svg
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46.95 50">
|
2 |
+
<g id="Group_498" data-name="Group 498" transform="translate(-2878.762 -2793.065)">
|
3 |
+
<path id="Path_350" data-name="Path 350" d="M168.221,0H143.37A3.576,3.576,0,0,0,139.8,3.572v8.384h13.467a6.841,6.841,0,0,1,6.833,6.833V34.783h8.123a3.576,3.576,0,0,0,3.572-3.572V3.572A3.576,3.576,0,0,0,168.221,0Z" transform="translate(2753.919 2793.065)"/>
|
4 |
+
<path id="Path_351" data-name="Path 351" d="M30.626,140H5.775A3.576,3.576,0,0,0,2.2,143.57v27.638a3.576,3.576,0,0,0,3.572,3.572h24.85a3.576,3.576,0,0,0,3.572-3.572V143.57A3.576,3.576,0,0,0,30.626,140Z" transform="translate(2876.559 2668.285)"/>
|
5 |
+
</g>
|
6 |
+
</svg>
|
fonts/icons/edit.svg
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50.003 50">
|
2 |
+
<g id="pencil-edit-button" transform="translate(-0.008 -1.288)">
|
3 |
+
<path id="Path_65" data-name="Path 65" d="M29.918,9.321,41.6,21.051,16.816,45.956,5.14,34.226Zm19.111-.482L42.772,2.561a4.318,4.318,0,0,0-6.121,0l-4.183,4.2,11.682,11.73,4.879-4.9A3.366,3.366,0,0,0,49.029,8.839ZM.016,48.056c-.178.806,2.437,3.419,3.239,3.223l10.91-2.658L2.489,36.89Z" transform="translate(0 0)"/>
|
4 |
+
</g>
|
5 |
+
</svg>
|
fonts/icons/expand.svg
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 23.386">
|
2 |
+
<g id="media-play-symbol" transform="translate(44 -43.137) rotate(90)">
|
3 |
+
<g id="Layer_8_16_" transform="translate(43.137 -6)">
|
4 |
+
<path id="Path_66" data-name="Path 66" d="M52.977-5.775A1.676,1.676,0,0,1,53.817-6a1.682,1.682,0,0,1,.84.225l20.025,23.32s.84.855.84,1.455-.84,1.454-.84,1.454L54.657,43.775a1.681,1.681,0,0,1-2.52-1.455V-4.32A1.68,1.68,0,0,1,52.977-5.775Z" transform="translate(-52.137 6)"/>
|
5 |
+
</g>
|
6 |
+
</g>
|
7 |
+
</svg>
|
fonts/icons/form-maker.svg
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 53.006 44">
|
2 |
+
<defs>
|
3 |
+
<style>
|
4 |
+
.cls-1 {
|
5 |
+
fill: #6e7883;
|
6 |
+
}
|
7 |
+
</style>
|
8 |
+
</defs>
|
9 |
+
<path id="Form_Maker" data-name="Form Maker" class="cls-1" d="M3.345,44A3.339,3.339,0,0,1,0,40.655V3.345A3.339,3.339,0,0,1,3.345,0H49.661a3.338,3.338,0,0,1,3.345,3.345v37.31A3.338,3.338,0,0,1,49.661,44ZM1.544,3.345v37.31a1.79,1.79,0,0,0,1.8,1.8H49.661a1.79,1.79,0,0,0,1.8-1.8V3.345a1.79,1.79,0,0,0-1.8-1.8H3.345A1.79,1.79,0,0,0,1.544,3.345ZM6.253,38.777A.759.759,0,0,1,5.481,38V28.69a.758.758,0,0,1,.772-.772H46.985a.758.758,0,0,1,.772.772V38a.774.774,0,0,1-.772.772Zm.772-1.544H46.213V29.462H7.025ZM6.253,25.345a.758.758,0,0,1-.772-.772V20.662a.759.759,0,0,1,.772-.772H46.985a.758.758,0,0,1,.772.772v3.911a.774.774,0,0,1-.772.772ZM7.025,23.8H46.213V21.434H7.025ZM36.2,17.291a.758.758,0,0,1-.772-.772V12.686a.758.758,0,0,1,.772-.772H47.011a.758.758,0,0,1,.772.772v3.833a.775.775,0,0,1-.772.772Zm.746-1.544h9.263v-2.29H36.95ZM22.463,17.291a.758.758,0,0,1-.772-.772V12.686a.758.758,0,0,1,.772-.772H33.27a.758.758,0,0,1,.772.772v3.833a.775.775,0,0,1-.772.772Zm.746-1.544h9.263v-2.29H23.209ZM6.253,17.291a.758.758,0,0,1-.772-.772V6.021a.758.758,0,0,1,.772-.772H17.06a.758.758,0,0,1,.772.772v10.5a.775.775,0,0,1-.772.772Zm.772-1.544h9.263V6.793H7.025ZM36.2,10.6a.758.758,0,0,1-.772-.772V6a.758.758,0,0,1,.772-.772H47.011A.758.758,0,0,1,47.783,6V9.829a.774.774,0,0,1-.772.772Zm.746-1.544h9.263V6.767H36.95ZM22.463,10.6a.758.758,0,0,1-.772-.772V6a.758.758,0,0,1,.772-.772H33.27A.759.759,0,0,1,34.043,6V9.829a.774.774,0,0,1-.772.772Zm.746-1.544h9.263V6.767H23.209Z"/>
|
10 |
+
</svg>
|
fonts/icons/plus-circled.svg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
2 |
+
<path id="Path_351" data-name="Path 351" d="M25,50A25.007,25.007,0,0,1,15.269,1.965,25.007,25.007,0,0,1,34.731,48.036,24.843,24.843,0,0,1,25,50ZM15,24.431v2.5h8.752v8.752h2.5V26.926H35v-2.5H26.249V15.678h-2.5v8.752Z"/>
|
3 |
+
</svg>
|
fonts/icons/plus.svg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
2 |
+
<path id="Path_350" data-name="Path 350" d="M19.643,50V30.357H0V19.643H19.643V0H30.357V19.643H50V30.357H30.357V50Z"/>
|
3 |
+
</svg>
|
fonts/style.css
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'fm-icons';
|
3 |
+
src:
|
4 |
+
url('fonts/fm-icons.ttf?cj1n1r') format('truetype'),
|
5 |
+
url('fonts/fm-icons.woff?cj1n1r') format('woff'),
|
6 |
+
url('fonts/fm-icons.svg?cj1n1r#fm-icons') format('svg');
|
7 |
+
font-weight: normal;
|
8 |
+
font-style: normal;
|
9 |
+
}
|
10 |
+
|
11 |
+
[class^="fm-ico-"], [class*=" fm-ico-"] {
|
12 |
+
/* use !important to prevent issues with browser extensions that change fonts */
|
13 |
+
font-family: 'fm-icons' !important;
|
14 |
+
speak: none;
|
15 |
+
font-style: normal;
|
16 |
+
font-weight: normal;
|
17 |
+
font-variant: normal;
|
18 |
+
text-transform: none;
|
19 |
+
line-height: 1;
|
20 |
+
|
21 |
+
/* Better Font Rendering =========== */
|
22 |
+
-webkit-font-smoothing: antialiased;
|
23 |
+
-moz-osx-font-smoothing: grayscale;
|
24 |
+
}
|
25 |
+
|
26 |
+
.fm-ico-form-maker:before {
|
27 |
+
content: "\e908";
|
28 |
+
color: #6e7883;
|
29 |
+
}
|
30 |
+
.fm-ico-plus-circle:before {
|
31 |
+
content: "\e900";
|
32 |
+
}
|
33 |
+
.fm-ico-plus:before {
|
34 |
+
content: "\e901";
|
35 |
+
}
|
36 |
+
.fm-ico-collapse:before {
|
37 |
+
content: "\e902";
|
38 |
+
}
|
39 |
+
.fm-ico-expand:before {
|
40 |
+
content: "\e906";
|
41 |
+
}
|
42 |
+
.fm-ico-duplicate:before {
|
43 |
+
content: "\e904";
|
44 |
+
}
|
45 |
+
.fm-ico-edit:before {
|
46 |
+
content: "\e905";
|
47 |
+
}
|
48 |
+
.fm-ico-delete:before {
|
49 |
+
content: "\e907";
|
50 |
+
}
|
51 |
+
.fm-ico-draggable:before {
|
52 |
+
content: "\e903";
|
53 |
+
}
|
54 |
+
.fm-ico-close:before {
|
55 |
+
content: "\e909";
|
56 |
+
}
|
fonts/twbb-icon.svg
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?xml version="1.0" standalone="no"?>
|
2 |
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
-
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
-
<metadata>Generated by IcoMoon</metadata>
|
5 |
-
<defs>
|
6 |
-
<font id="twbb-icons" horiz-adv-x="1024">
|
7 |
-
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
-
<missing-glyph horiz-adv-x="1024" />
|
9 |
-
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
-
<glyph unicode="" glyph-name="share-buttons" horiz-adv-x="663" d="M420.793 222.473c-7.286 3.871-15.914 6.184-25.074 6.285h-0.032c-15.75-1.033-29.684-8.054-39.692-18.785l-0.032-0.035-50.176 29.272c3.967 7.634 6.293 16.668 6.293 26.245 0 0.332-0.003 0.663-0.008 0.994l0.001-0.050c-0.199 8.291-1.709 16.165-4.33 23.512l0.163-0.525 50.176 29.272c9.006-11.070 22.431-18.245 37.547-18.818l0.094-0.003c9.191 0.104 17.819 2.417 25.409 6.431l-0.303-0.146c10.769 6.738 18.873 16.877 22.877 28.89l0.11 0.382c1.319 4.179 2.078 8.986 2.078 13.969 0 8.704-2.317 16.866-6.368 23.904l0.124-0.233c-8.559 14.651-23.969 24.485-41.722 25.103l-0.086 0.002c-9.191-0.099-17.82-2.413-25.408-6.431l0.302 0.146c-10.771-6.736-18.876-16.876-22.877-28.891l-0.11-0.382c-0.933-3.708-1.468-7.965-1.468-12.347 0-6.838 1.304-13.371 3.676-19.365l-0.124 0.356-50.176-29.272c-11.552 16.494-30.468 27.145-51.872 27.145-34.716 0-62.888-28.021-63.133-62.679v-0.023c0.864-34.301 28.445-61.883 62.665-62.745l0.081-0.002c20.353 0.442 38.361 10.106 50.070 24.966l0.106 0.139 52.259-29.272c-2.081-5.29-3.287-11.416-3.287-17.824 0-18.073 9.596-33.906 23.971-42.679l0.22-0.125c7.285-3.872 15.914-6.186 25.074-6.285h0.031c18.32 1.091 34.186 10.709 43.798 24.906l0.128 0.2c2.599 5.983 4.111 12.952 4.111 20.275 0 18.78-9.947 35.237-24.859 44.39l-0.227 0.129zM362.249 358.382c2.498 9.148 8.557 16.567 16.557 20.816l0.18 0.087c4.899 2.247 10.593 3.739 16.582 4.158l0.155 0.009c0.139 0.002 0.304 0.003 0.469 0.003 12.875 0 24.208-6.6 30.801-16.602l0.086-0.138c3.139-5.567 4.988-12.222 4.988-19.309 0-2.789-0.286-5.511-0.831-8.138l0.045 0.258c-2.493-9.15-8.554-16.571-16.557-20.817l-0.18-0.087c-5.137-3.229-11.382-5.145-18.075-5.145-12.847 0-24.045 7.058-29.928 17.508l-0.089 0.172c-3.896 4.559-6.267 10.524-6.267 17.043 0 3.689 0.759 7.201 2.131 10.388l-0.065-0.171zM247.243 216.188c-27.711 0-50.176 22.465-50.176 50.176s22.465 50.176 50.176 50.176c27.711 0 50.176-22.465 50.176-50.176v0c-0.411-27.537-22.636-49.749-50.139-50.14h-0.037zM427.079 161.81c-5.972-10.622-17.171-17.68-30.017-17.68-6.693 0-12.939 1.916-18.218 5.229l0.143-0.084c-10.538 6.1-17.514 17.321-17.514 30.171 0 6.62 1.852 12.808 5.065 18.074l-0.087-0.153c6.678 10.14 18.012 16.74 30.887 16.74 0.165 0 0.33-0.001 0.494-0.003h-0.025c0.104 0.001 0.228 0.002 0.351 0.002 18.858 0 34.145-15.287 34.145-34.145 0-6.729-1.946-13.003-5.307-18.29l0.082 0.139zM496.040 960h-496.040v-1024h662.599v836.22zM499.571 928.221l131.107-155.895h-131.072zM646.638-42.814h-628.983v985.159h460.694v-187.78h159.462l5.332-797.237zM46.045 758.060h325.985v-21.257h-325.985v21.257zM46.045 843.087h191.347v-21.257h-191.347v21.257zM46.045 683.626h435.836v-21.257h-435.836v21.257zM46.045 612.793h566.908v-21.257h-566.908v21.257zM46.045 474.589v-418.11h566.908v418.11zM591.695 453.402v-375.596h-524.465v375.596z" />
|
11 |
-
<glyph unicode="" glyph-name="pricing-table" horiz-adv-x="1439" d="M1439.214 175.298v0 721.355h-457.587v63.347h-524.182v-66.842h-457.446v-890.315h457.446v-66.842h524.182v66.842h457.587zM28.142 175.298h429.303v-147.809h-429.197zM1414.603 200.015h-432.975v668.495h429.444v-668.601zM482.092 935.283h475.065v-756.489h-475.065v756.489zM457.375 199.839h-429.127v668.672h429.197v-668.601zM482.092 2.772v0 151.411h475.065v-193.465h-475.065zM981.628 175.298h429.444v-147.809h-429.444zM70.374 769.995h337.814v-21.116h-337.814v21.116zM87.993 678.471h302.61v-21.116h-302.61v21.116zM133.72 590.513h211.121v-21.116h-211.121v21.116zM1027.531 769.995h337.814v-21.116h-337.814v21.116zM1045.116 678.471h302.61v-21.116h-302.61v21.116zM1090.878 590.513h211.121v-21.116h-211.121v21.116zM548.935 850.926h337.814v-21.116h-337.814v21.116zM566.554 759.437h302.61v-21.116h-302.61v21.116zM612.281 674.975h211.121v-21.116h-211.121v21.116zM1104.967 122.509h182.978v-45.762h-182.978v45.762zM147.809 122.509h182.978v-45.762h-182.978v45.762zM626.37 69.72h182.978v-45.762h-182.978v45.762zM711.362 382.146c1.126-0.11 2.433-0.173 3.756-0.173 7.739 0 14.975 2.152 21.143 5.89l-0.182-0.102c4.305 3.206 7.063 8.281 7.063 14 0 0.044 0 0.087 0 0.13v-0.007c0.005 0.17 0.008 0.369 0.008 0.569 0 3.871-1.149 7.474-3.125 10.485l0.045-0.073c-2.221 3.186-4.958 5.844-8.115 7.911l-0.112 0.069c-3.405 2.27-7.31 4.343-11.419 6.019l-0.446 0.161q-6.744 2.754-13.806 5.261t-13.594 5.614c-4.586 2.096-8.538 4.623-12.082 7.619l0.076-0.063c-3.471 2.929-6.341 6.441-8.487 10.404l-0.094 0.189c-2.104 4.202-3.336 9.155-3.336 14.396 0 0.364 0.006 0.726 0.018 1.088l-0.001-0.053c-0.018 0.43-0.028 0.935-0.028 1.442 0 9.712 3.699 18.56 9.765 25.212l-0.027-0.030c7.375 7.25 17.167 12.062 28.058 13.12l0.19 0.015v26.271h18.962v-25.6c6.794-0.274 13.226-1.173 19.437-2.644l-0.687 0.137c5.548-1.249 10.131-2.585 14.602-4.161l-0.901 0.277-4.343-17.655q-5.473 2.048-13.7 4.237c-5.638 1.381-12.111 2.173-18.769 2.173-0.627 0-1.252-0.007-1.875-0.021l0.093 0.002c-0.678 0.045-1.47 0.071-2.267 0.071-6.999 0-13.534-1.985-19.073-5.422l0.155 0.089c-4.513-3.129-7.432-8.283-7.432-14.118 0-0.263 0.006-0.525 0.018-0.785l-0.001 0.037c-0.006-0.166-0.009-0.362-0.009-0.558 0-3.062 0.802-5.937 2.207-8.426l-0.044 0.086c1.635-2.617 3.738-4.786 6.209-6.449l0.076-0.048c2.797-1.93 5.994-3.66 9.373-5.034l0.337-0.121q5.614-2.295 12.465-4.802 8.898-3.531 16.914-7.062c5.396-2.429 10.047-5.372 14.218-8.869l-0.094 0.076c3.959-3.364 7.214-7.42 9.606-11.997l0.105-0.22c2.243-4.63 3.554-10.070 3.554-15.817 0-0.46-0.008-0.919-0.025-1.375l0.002 0.066c0.022-0.473 0.035-1.027 0.035-1.584 0-9.54-3.753-18.204-9.864-24.595l0.013 0.013c-8.107-7.183-18.642-11.791-30.233-12.458l-0.134-0.006v-29.484h-18.962v28.778c-9.285 0.037-18.254 1.324-26.768 3.7l0.709-0.169c-5.813 1.654-10.817 3.638-15.566 6.051l0.488-0.225 5.72 17.126c4.552-2.129 10.018-4.152 15.666-5.742l0.789-0.19c6.458-1.7 13.872-2.676 21.514-2.676 0.779 0 1.555 0.010 2.329 0.030l-0.114-0.002zM233.225 346.165c0.881-0.087 1.905-0.136 2.941-0.136 6.005 0 11.62 1.665 16.41 4.559l-0.142-0.080c3.358 2.497 5.51 6.453 5.51 10.912 0 0.074-0.001 0.148-0.002 0.222v-0.011c0.004 0.126 0.006 0.275 0.006 0.425 0 3.020-0.898 5.829-2.442 8.177l0.035-0.056c-1.726 2.48-3.851 4.549-6.304 6.161l-0.087 0.054c-2.655 1.765-5.7 3.377-8.904 4.677l-0.348 0.125q-5.261 2.119-10.593 4.096t-10.593 4.343c-3.575 1.625-6.655 3.586-9.418 5.912l0.061-0.050c-2.709 2.313-4.944 5.088-6.6 8.217l-0.073 0.152c-1.634 3.269-2.59 7.121-2.59 11.197 0 0.284 0.005 0.568 0.014 0.85l-0.001-0.041c-0.014 0.333-0.021 0.723-0.021 1.116 0 7.562 2.878 14.452 7.599 19.635l-0.021-0.023c5.735 5.641 13.346 9.391 21.813 10.228l0.15 0.012v20.48h14.76v-19.915c5.283-0.211 10.286-0.908 15.118-2.049l-0.535 0.106c4.297-0.982 7.839-2.026 11.294-3.254l-0.701 0.217-3.531-13.877q-4.273 1.589-10.593 3.284c-4.412 1.086-9.478 1.709-14.689 1.709-0.472 0-0.942-0.005-1.412-0.015l0.070 0.001c-0.514 0.033-1.114 0.052-1.718 0.052-5.451 0-10.541-1.544-14.857-4.218l0.121 0.070c-3.524-2.438-5.803-6.458-5.803-11.011 0-0.201 0.004-0.401 0.013-0.599l-0.001 0.028c-0.007-0.157-0.010-0.34-0.010-0.525 0-2.401 0.632-4.655 1.74-6.603l-0.035 0.066c1.275-2.049 2.917-3.747 4.849-5.047l0.059-0.037c2.176-1.493 4.664-2.833 7.293-3.896l0.263-0.094q4.343-1.766 9.71-3.743 7.062-2.684 13.171-5.508c4.182-1.896 7.786-4.188 11.017-6.909l-0.071 0.058c3.082-2.625 5.616-5.79 7.475-9.362l0.081-0.172c1.812-3.664 2.871-7.978 2.871-12.539 0-0.284-0.004-0.567-0.012-0.85l0.001 0.041c0.017-0.362 0.027-0.787 0.027-1.213 0-7.438-2.93-14.192-7.698-19.171l0.009 0.010c-6.315-5.597-14.523-9.187-23.554-9.706l-0.104-0.005v-22.952h-14.76v22.422c-7.235 0.030-14.222 1.033-20.856 2.886l0.552-0.132c-4.521 1.333-8.408 2.918-12.093 4.836l0.37-0.175 4.449 13.347c3.546-1.66 7.804-3.237 12.203-4.478l0.615-0.148c5.053-1.336 10.853-2.104 16.833-2.104 0.587 0 1.173 0.007 1.756 0.022l-0.086-0.002zM1197.374 346.165c0.881-0.087 1.905-0.136 2.941-0.136 6.005 0 11.62 1.665 16.41 4.559l-0.142-0.080c3.358 2.497 5.51 6.453 5.51 10.912 0 0.074-0.001 0.148-0.002 0.222v-0.011c0.004 0.126 0.006 0.275 0.006 0.425 0 3.020-0.898 5.829-2.442 8.177l0.035-0.056c-1.726 2.48-3.851 4.549-6.304 6.161l-0.087 0.054c-2.655 1.765-5.7 3.377-8.904 4.677l-0.348 0.125q-5.261 2.119-10.593 4.096t-10.593 4.343c-3.575 1.625-6.655 3.586-9.418 5.912l0.061-0.050c-2.709 2.313-4.944 5.088-6.6 8.217l-0.073 0.152c-1.634 3.269-2.59 7.121-2.59 11.197 0 0.284 0.005 0.568 0.014 0.85l-0.001-0.041c-0.014 0.333-0.021 0.723-0.021 1.116 0 7.562 2.878 14.452 7.599 19.635l-0.021-0.023c5.735 5.641 13.346 9.391 21.813 10.228l0.15 0.012v20.48h14.76v-19.915c5.283-0.211 10.286-0.908 15.118-2.049l-0.535 0.106c4.297-0.982 7.839-2.026 11.294-3.254l-0.701 0.217-3.531-13.877q-4.273 1.589-10.593 3.284c-4.412 1.086-9.478 1.709-14.689 1.709-0.472 0-0.942-0.005-1.412-0.015l0.070 0.001c-0.514 0.033-1.114 0.052-1.718 0.052-5.451 0-10.541-1.544-14.857-4.218l0.121 0.070c-3.524-2.438-5.803-6.458-5.803-11.011 0-0.201 0.004-0.401 0.013-0.599l-0.001 0.028c-0.007-0.157-0.010-0.34-0.010-0.525 0-2.401 0.632-4.655 1.74-6.603l-0.035 0.066c1.275-2.049 2.917-3.747 4.849-5.047l0.059-0.037c2.176-1.493 4.664-2.833 7.293-3.896l0.263-0.094q4.343-1.766 9.71-3.743 7.062-2.684 13.171-5.508c4.182-1.896 7.786-4.188 11.017-6.909l-0.071 0.058c3.082-2.625 5.616-5.79 7.475-9.362l0.081-0.172c1.812-3.664 2.871-7.978 2.871-12.539 0-0.284-0.004-0.567-0.012-0.85l0.001 0.041c0.017-0.362 0.027-0.787 0.027-1.213 0-7.438-2.93-14.192-7.698-19.171l0.009 0.010c-6.315-5.597-14.523-9.187-23.554-9.706l-0.104-0.005v-22.952h-14.76v22.422c-7.235 0.030-14.222 1.033-20.856 2.886l0.552-0.132c-4.521 1.333-8.408 2.918-12.093 4.836l0.37-0.175 4.449 13.347c3.546-1.66 7.804-3.237 12.203-4.478l0.615-0.148c5.053-1.336 10.853-2.104 16.833-2.104 0.587 0 1.173 0.007 1.756 0.022l-0.086-0.002z" />
|
12 |
-
<glyph unicode="" glyph-name="posts" horiz-adv-x="670" d="M496.040 573.775h173.621v-46.045h-173.621v46.045zM248.020 605.661h226.763v-21.257h-226.763v21.257zM248.020 665.9h421.641v-21.257h-421.641v21.257zM248.020 548.988h226.763v-21.257h-226.763v21.257zM3.531 662.369v0l-3.531-138.169h152.364v138.169zM24.717 545.457v95.726h109.85v-95.656zM496.040 867.875h173.621v-46.045h-173.621v46.045zM248.020 903.292h226.763v-21.257h-226.763v21.257zM248.020 960h421.641v-21.257h-421.641v21.257zM248.020 843.087h226.763v-21.257h-226.763v21.257zM3.531 818.264h152.364v141.736h-152.364zM134.638 938.743v-95.656h-109.921v95.726zM496.040 279.711h173.621v-46.045h-173.621v46.045zM248.020 311.596h226.763v-21.257h-226.763v21.257zM248.020 371.836h421.641v-21.257h-421.641v21.257zM248.020 254.888h226.763v-21.257h-226.763v21.257zM3.531 368.269v0l-3.531-138.169h152.364v138.169zM24.717 251.357v95.726h109.85v-95.656zM496.040-14.389h173.621v-46.045h-173.621v46.045zM248.020 17.496h226.763v-21.257h-226.763v21.257zM248.020 77.736h421.641v-21.257h-421.641v21.257zM248.020-39.212h226.763v-21.257h-226.763v21.257zM3.531 74.169v0l-3.531-138.169h152.364v138.169zM24.717-42.743v95.726h109.85v-95.656z" />
|
13 |
-
<glyph unicode="" glyph-name="flip-box" horiz-adv-x="663" d="M499.606 960h-499.606v-1024h662.599v832.653zM637.775 750.963v-790.246h-620.12v978.097h460.694v-187.851zM499.606 772.149v156.072l131.107-155.895zM347.242 414.349h53.142v-17.726h-53.142v17.726zM449.995 414.349h53.142v-17.726h-53.142v17.726zM152.364 414.349h53.142v-17.726h-53.142v17.726zM109.85 414.349h17.726v-17.726h-17.726v17.726zM527.96 414.349h21.257v-17.726h-21.257v17.726zM248.020 414.349h53.142v-17.726h-53.142v17.726zM325.985 354.11l-223.232-205.506-3.531-3.531h457.092l-230.294 209.037zM155.895 169.86l170.090 155.895 170.090-155.895zM106.284 658.838l219.666-201.975 205.506 187.78 21.186 21.186-446.358-6.991zM325.95 485.217l-170.055 155.966h340.145z" />
|
14 |
-
<glyph unicode="" glyph-name="countdown" horiz-adv-x="3050" d="M1491.957 558.108h60.559v-44.043h-60.559v44.043zM1491.957 381.935h60.559v-44.043h-60.559v44.043zM44.043 514.065h44.043v-132.129h-44.043v132.129zM589.075 514.065h44.043v-132.129h-44.043v132.129zM765.247 514.065h44.043v-132.129h-44.043v132.129zM1310.28 514.065h44.043v-132.129h-44.043v132.129zM1690.151 514.065h44.043v-132.129h-44.043v132.129zM2235.183 514.065h44.043v-132.129h-44.043v132.129zM2416.86 514.065h44.043v-132.129h-44.043v132.129zM2961.892 514.065h44.043v-132.129h-44.043v132.129zM649.634-41.978h-627.613v467.957h-22.022v-489.978h666.151v489.978h-16.516v-467.957zM22.022 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM1370.839-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM743.226 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM2301.247-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM1679.14 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM2400.344 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM3022.452-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM22.022 470.022h627.613v-44.043h-627.613v44.043zM2400.344 470.022h627.613v-44.043h-627.613v44.043zM743.226 470.022h627.613v-44.043h-627.613v44.043zM1679.14 470.022h627.613v-44.043h-627.613v44.043zM924.903 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM1194.667 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM1849.806 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM2119.57 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM2576.516 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM2846.28 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM313.806 409.462h71.57v-291.785h-71.57v291.785zM297.29 706.753c5.505 5.505 16.516 11.011 22.022 16.516 0-33.032-5.505-71.57-5.505-104.602v-132.129h71.57v313.806h-60.559l-165.161-126.624 38.538-49.548c29.979 29.099 62.32 56.2 96.552 80.838l2.545 1.743z" />
|
15 |
-
<glyph unicode="" glyph-name="call-to-action" horiz-adv-x="665" d="M0 960v-1024h665.070v1024zM21.186-39.283v974.566h619.343v-974.566h-619.343zM112.605 643.302h429.303v-21.116h-429.303v21.116zM112.605 544.786h429.303v-21.116h-429.303v21.116zM112.605 432.181h429.303v-21.116h-429.303v21.116zM214.652 769.995h232.236v-21.116h-232.236v21.116zM239.298 168.271h175.951v-45.762h-175.951v45.762zM555.502 100.97l-209.178 109.003 61.864-226.834 38.276 61.864 47.139-58.933 41.242 32.415-47.139 58.933zM511.294 21.416l-17.655-14.724-52.966 64.794-29.449-50.070-41.242 159.073 147.315-76.588-55.967-17.655zM369.876 180.524l147.279-76.588-55.967-17.655 50.070-64.83-17.655-14.724-50.070 64.794-32.38-50.070z" />
|
16 |
-
<glyph unicode="" glyph-name="photo-gallery" horiz-adv-x="1209" d="M120.139 1.925c-0.597-0.011-1.301-0.017-2.007-0.017-65.153 0-117.97 52.817-117.97 117.97 0 1.264 0.020 2.524 0.059 3.779l-0.005-0.183v484.080c-0.13 2.562-0.204 5.564-0.204 8.583 0 91.281 67.543 166.787 155.377 179.266l0.963 0.112 4.879 0.976c4.494 0.581 8.573 1.762 12.363 3.472l-0.274-0.11c0.564 1.459 0.891 3.148 0.891 4.913 0 0.677-0.048 1.342-0.141 1.993l0.009-0.075c-0.083 0.834-0.13 1.802-0.13 2.781 0 7.761 2.976 14.826 7.848 20.118l-0.019-0.021c6.765 5.9 15.672 9.498 25.419 9.498 1.934 0 3.836-0.142 5.694-0.415l-0.211 0.025h126.59c2.184 0.32 4.706 0.503 7.271 0.503 12.394 0 23.79-4.274 32.793-11.429l-0.108 0.083c7.257-7.803 11.711-18.299 11.711-29.834 0-0.051 0-0.103 0-0.154v0.008c3.376-0.834 7.252-1.312 11.239-1.312 10.56 0 20.337 3.355 28.323 9.057l-0.148-0.101c20.039 25.414 39.526 53.938 57.042 83.76l1.944 3.58c21.248 40.183 62.778 67.098 110.594 67.098 2.786 0 5.55-0.091 8.291-0.271l-0.372 0.020c108.429-0.867 224.773-0.922 336.454 0 2.578 0.201 5.584 0.315 8.615 0.315 46.146 0 86.101-26.507 105.468-65.126l0.309-0.68c13.228-27.107 33.288-66.738 52.967-105.718 35.619-70.479 52.967-104.959 59.636-122.85v-0.325c6.126-16.264 3.036-18.812-3.036-23.15-2.668-1.9-5.994-3.037-9.586-3.037-4.599 0-8.762 1.865-11.775 4.881v0c-0.457 0.493-0.901 1.023-1.318 1.575l-0.038 0.052c-87.298 113.335-223.049 185.641-375.687 185.641-108.035 0-207.61-36.222-287.242-97.184l1.135 0.834q-17.728-13.499-34.101-28.625c-161.017-155.975-212.412-446.401 9.921-676.757 2.812-2.919 4.544-6.896 4.544-11.277 0-8.979-7.276-16.259-16.254-16.264h-0.001zM206.882 806.302c0.027-0.552 0.043-1.198 0.043-1.848 0-21.823-17.52-39.555-39.262-39.897h-0.032l-5.421-1.030c-73.56-10.028-129.64-72.444-129.64-147.958 0-2.553 0.064-5.091 0.191-7.612l-0.014 0.354v-484.893c-0.053-1.124-0.083-2.441-0.083-3.765 0-47.098 38.181-85.279 85.279-85.279 0.716 0 1.429 0.009 2.14 0.026l-0.105-0.002h291.022c-82.729 88.69-133.517 208.111-133.517 339.394 0 139.474 57.322 265.559 149.693 355.982l0.088 0.086c11.981 10.843 24.071 21.252 36.757 30.848 83.952 64.372 190.475 103.155 306.055 103.155 125.606 0 240.514-45.802 328.933-121.615l-0.681 0.57-15.505 30.74c-19.68 39.089-39.793 78.936-52.967 105.772-14.17 28.685-43.222 48.067-76.8 48.067-2.297 0-4.573-0.091-6.825-0.269l0.297 0.019h-1.898c-111.953-1.084-228.784-1.084-337.864 0-1.63 0.1-3.535 0.157-5.453 0.157-35.95 0-67.221-20.029-83.265-49.537l-0.248-0.498c-20.363-35.081-40.784-65.041-63.1-93.442l1.296 1.711c-13.752-13.38-32.554-21.63-53.283-21.63-7.734 0-15.2 1.149-22.237 3.285l0.541-0.141c-12.154 2.439-21.362 12.494-22.491 24.884l-0.008 0.109c0.109 0.828 0.172 1.786 0.172 2.758 0 3.619-0.865 7.035-2.399 10.054l0.058-0.126c-3.693 1.137-7.939 1.792-12.338 1.792-1.536 0-3.053-0.080-4.547-0.235l0.187 0.016h-124.097c-3.578 0-6.723 0-8.945 0zM771.253-64h-4.283c-239.762 1.124-433.692 195.748-433.692 435.666 0 240.614 195.056 435.671 435.671 435.671 0.696 0 1.391-0.002 2.086-0.005h3.037c169.409-0.715 315.772-98.666 386.23-240.897l1.131-2.525c1.046-2.089 1.659-4.551 1.659-7.156 0-8.983-7.282-16.264-16.264-16.264-0.011 0-0.023 0-0.034 0h-263.588c-0.080-0.001-0.175-0.002-0.27-0.002-4.047 0-7.749 1.478-10.595 3.924l0.022-0.018c-23.665 20.668-54.836 33.272-88.95 33.272-2.599 0-5.181-0.073-7.744-0.218l0.355 0.016c-1.903 0.065-4.14 0.102-6.385 0.102-54.786 0-104.428-22.023-140.556-57.698l0.021 0.021c-38.484-37.259-62.373-89.392-62.373-147.106 0-111.972 89.922-202.942 201.49-204.635l0.159-0.002h7.427c3.639-0.262 7.885-0.412 12.166-0.412 53.089 0 100.808 22.991 133.744 59.56l0.143 0.162h-148.439c-8.983 0-16.264 7.282-16.264 16.264v0 179.992c0 8.983 7.282 16.264 16.264 16.264v0h418.426c0.012 0 0.026 0 0.040 0 4.522 0 8.612-1.845 11.56-4.824l0.001-0.001c5.421-5.421 5.421-5.421 4.879-68.147v0c-3.181-238.713-197.437-431.004-436.606-431.004-0.165 0-0.33 0-0.495 0h0.025zM770.928 774.804c-221.776-1.031-401.161-181.052-401.161-402.971 0-222.557 180.418-402.975 402.975-402.975 220.974 0 400.406 177.86 402.948 398.231l0.002 0.24v40.119h-386.060v-147.463h164.757c8.982-0.001 16.263-7.282 16.263-16.264 0-3.172-0.908-6.132-2.478-8.634l0.040 0.068c-37.923-60.404-104.174-99.969-179.667-99.969-4.749 0-9.462 0.157-14.133 0.465l0.635-0.034h-7.102c-129.427 2.041-233.563 107.439-233.563 237.16 0 66.854 27.659 127.249 72.159 170.363l0.062 0.060c43.026 41.346 101.581 66.808 166.084 66.808 0.982 0 1.963-0.006 2.943-0.018l-0.149 0.001c2.639 0.149 5.728 0.234 8.836 0.234 39.808 0 76.363-13.93 105.055-37.182l-0.312 0.245h230.682c-70.048 120.854-198.577 200.971-345.863 201.514h-0.078z" />
|
17 |
-
<glyph unicode="" glyph-name="slider-wd" horiz-adv-x="1481" d="M370.188 316.518c-0.153-0.006-0.333-0.009-0.514-0.009-7.749 0-14.032 6.282-14.032 14.032 0 7.569 5.992 13.738 13.492 14.021l0.026 0.001c24.603 4.927 44.377 21.855 53.209 44.289l0.169 0.488c6.59 24.726-15.705 45.946-35.57 59.408-31.27 21.174-45.759 43.89-43.282 67.26 4.347 39.356 56.463 60.763 62.399 63.334 1.43 0.538 3.082 0.85 4.807 0.85 7.744 0 14.022-6.278 14.022-14.022 0-5.767-3.481-10.72-8.456-12.874l-0.091-0.035c-10.937-4.347-42.721-21.174-44.825-40.478-1.636-15.144 16.032-30.475 31.129-40.711 49.639-33.56 52.957-67.354 46.741-89.836-12.12-34.32-41.691-59.595-77.773-65.363l-0.565-0.074zM580.896 316.518h-98.156c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0 7.744 6.278 14.022 14.022 14.022s14.022-6.278 14.022-14.022v-221.552h84.134c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022v0zM621.654 316.518c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0 7.744 6.278 14.022 14.022 14.022s14.022-6.278 14.022-14.022v0-235.574c0-7.744-6.278-14.022-14.022-14.022v0zM674.892 316.518c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0.051 4.084 1.84 7.741 4.661 10.271l0.013 0.012c2.631 2.33 6.113 3.753 9.926 3.753 0.224 0 0.447-0.005 0.669-0.015l-0.032 0.001c71.039-2.285 127.768-60.388 127.836-131.756v-0.007c-1.042-70.859-56.999-128.315-127.152-131.751l-0.31-0.012zM688.914 549.708v-202.528c49.372 7.858 86.658 50.13 86.658 101.111 0 0.013 0 0.026 0 0.039v-0.002c0.007 0.452 0.011 0.985 0.011 1.518 0 50.699-37.404 92.661-86.122 99.797l-0.547 0.066zM965.948 316.518h-1.449c-0.643-0.012-1.4-0.019-2.16-0.019-65.891 0-119.632 52.019-122.396 117.229l-0.008 0.25v132.137c0 7.744 6.278 14.022 14.022 14.022v0h112.178c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022h-98.156v-118.395c0-3.459 0-79.132 99.371-89.228 7.446-0.384 13.339-6.515 13.339-14.022 0-7.754-6.286-14.040-14.040-14.040-0.247 0-0.492 0.006-0.735 0.019l0.034-0.001zM965.901 482.448h-142.046c-7.744 0-14.022 6.278-14.022 14.022s6.278 14.022 14.022 14.022h142.046c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022v0zM1113.976 315.957c-36.605 0.871-68.526 20.142-86.964 48.888l-0.254 0.423v-34.729c0-7.744-6.278-14.022-14.022-14.022s-14.022 6.278-14.022 14.022v0 235.574c0 0.033 0 0.072 0 0.111 0 4.147 1.8 7.873 4.661 10.44l0.013 0.012c2.398 2.162 5.591 3.485 9.091 3.485 0.634 0 1.259-0.043 1.87-0.127l-0.071 0.008c37.393-4.674 108.579-32.999 109.841-104.232 0.038-0.992 0.059-2.158 0.059-3.328 0-44.864-31.604-82.346-73.763-91.398l-0.614-0.11c13.635-22.201 37.784-36.785 65.339-36.785 2.487 0 4.946 0.119 7.372 0.351l-0.309-0.024c0.561 0.082 1.208 0.128 1.866 0.128 7.155 0 13.024-5.506 13.602-12.512l0.003-0.049c0.050-0.445 0.079-0.961 0.079-1.484 0-7.212-5.445-13.153-12.448-13.935l-0.064-0.006c-3.419-0.428-7.395-0.682-11.426-0.701h-0.026zM1026.758 548.727v-143.448h0.654c2.851 0 70.111 6.404 68.99 70.111-0.841 47.255-45.152 66.325-69.644 73.336zM740.75-64c-0.028 0-0.060 0-0.093 0-282.77 0-512 229.23-512 512s229.23 512 512 512c282.77 0 512-229.23 512-512 0-0.016 0-0.033 0-0.049v0.002c-0.026-282.717-229.193-511.9-511.901-511.953h-0.005zM740.75 932.002c-0.042 0-0.091 0-0.14 0-267.307 0-484.002-216.695-484.002-484.002s216.695-484.002 484.002-484.002c267.307 0 484.002 216.695 484.002 484.002 0 0.016 0 0.033 0 0.049v-0.002c-0.026 267.237-216.632 483.876-483.854 483.955h-0.008zM1217.601 124.74c-7.739 0.007-14.011 6.282-14.011 14.022 0 3.193 1.067 6.137 2.865 8.494l-0.025-0.034c63.267 82.503 101.383 187.189 101.383 300.778s-38.117 218.274-102.257 301.965l0.873-1.187c-1.778 2.325-2.849 5.274-2.849 8.472 0 7.744 6.278 14.022 14.022 14.022 1.009 0 1.992-0.106 2.941-0.309l-0.092 0.016c150.228-33.093 260.97-165.092 260.97-322.956s-110.742-289.863-258.778-322.55l-2.192-0.406c-0.856-0.208-1.839-0.327-2.85-0.327-0.001 0-0.001 0-0.002 0v0zM1251.768 733.073c52.728-80.52 84.099-179.156 84.099-285.12s-31.371-204.6-85.332-287.129l1.233 2.010c118.558 42.685 201.8 154.181 201.8 285.12s-83.242 242.435-199.694 284.456l-2.106 0.664zM263.899 124.74c-0.014 0-0.031 0-0.048 0-1.011 0-1.994 0.119-2.936 0.345l0.086-0.017c-150.228 33.093-260.97 165.092-260.97 322.956s110.742 289.863 258.778 322.55l2.192 0.406c0.856 0.186 1.84 0.292 2.849 0.292 7.744 0 14.022-6.278 14.022-14.022 0-3.198-1.071-6.147-2.874-8.506l0.025 0.034c-63.267-82.503-101.383-187.189-101.383-300.778s38.117-218.274 102.257-301.965l-0.873 1.187c1.772-2.323 2.84-5.267 2.84-8.46 0-7.74-6.271-14.016-14.010-14.022h-0.001zM229.685 733.073c-118.558-42.685-201.8-154.181-201.8-285.12s83.242-242.435 199.694-284.456l2.106-0.664c-52.728 80.52-84.099 179.156-84.099 285.12s31.371 204.6 85.332 287.129l-1.233-2.010zM1380.306 480.204l-9.348-9.348 28.045-23.37-28.045-23.37 9.348-9.348 37.393 32.719zM66.419 448.047l37.393-32.719 9.348 9.348-28.045 23.37 28.045 23.37-9.348 9.348z" />
|
18 |
-
<glyph unicode="" glyph-name="form-maker" horiz-adv-x="1101" d="M385.133 479.717h-267.327v249.204h262.796v-249.204zM140.46 502.372h222.018v203.894h-222.018v-203.894zM987.752 348.319h-869.947v95.15h869.947v-95.15zM140.46 370.973h824.637v45.31h-824.637v-45.31zM987.752 99.115h-869.947v212.956h869.947v-212.956zM140.46 121.77h824.637v167.646h-824.637v-167.646zM987.752 620.177h-262.796v108.743h267.327v-108.743zM747.611 642.832h222.018v63.434h-222.018v-63.434zM693.239 620.177h-267.327v108.743h267.327v-108.743zM448.566 642.832h222.018v63.434h-222.018v-63.434zM987.752 479.717h-262.796v99.681h267.327v-99.681zM747.611 502.372h222.018v54.372h-222.018v-54.372zM693.239 479.717h-267.327v99.681h267.327v-99.681zM448.566 502.372h222.018v54.372h-222.018v-54.372zM22.655 3.965h1055.717v838.23h-1055.717v-838.23zM1046.655 810.478v-774.796h-992.283v774.796h992.283z" />
|
19 |
-
</font></defs></svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fonts/twbb-icons.eot
DELETED
Binary file
|
fonts/twbb-icons.ttf
DELETED
Binary file
|
fonts/twbb-icons.woff
DELETED
Binary file
|
form_maker_insert.php
CHANGED
@@ -79,6 +79,7 @@ class WDCFMInsert {
|
|
79 |
`header_image_url` varchar(255) NOT NULL,
|
80 |
`header_image_animation` varchar(200) NOT NULL,
|
81 |
`header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
|
|
|
82 |
`jsversion` int(11) NOT NULL,
|
83 |
`privacy` longtext NOT NULL,
|
84 |
PRIMARY KEY (`id`)
|
@@ -153,20 +154,20 @@ class WDCFMInsert {
|
|
153 |
|
154 |
$form_maker_theme_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "formmaker_themes");
|
155 |
if (!$form_maker_theme_row) {
|
156 |
-
$default = json_encode(array('AGPWidth' => '70', 'AGPSPWidth' => '30', 'HPAlign' => 'top', 'HTPWidth' => '40', 'HPTextAlign' => 'center', 'HTPFontSize' => '24', 'HDPFontSize' => '15', 'HIPAlign' => 'top', 'HIPWidth' => '80', 'GPWidth' => '100', 'GTPWidth' => '60', 'SPAlign' => 'left', 'PSAPAlign' => 'right', 'PPAPWidth' => '100%', 'CBPPosition' => 'absolute', 'CBPTop' => '10px', 'CBPRight' => '10px', 'PSAPBGColor' =>'#7f7f7f', 'PSAPPadding' => '8px', 'PSDPBGColor' => '#999999', 'PSDPPadding' => '4px 6px', 'PSDPMargin' => '0 0 10px 0', 'FPMargin' => '15px 0 0 0', 'IPHeight' =>'40', 'IPFontSize' => '16', 'IPPadding' => '6px 10px', 'IPBorderTop' => 'top', 'IPBorderRight' => 'right', 'IPBorderBottom' => 'bottom', 'IPBorderLeft' => 'left', 'IPBorderColor' => '#dfdfdf', 'IPBorderType' => 'solid', 'IPBorderWidth' => '1', 'IPBorderRadius' => '2', 'GPMLFontSize' => '12', 'GPMLFontWeight' => 'normal', 'OPRColor' => '
|
157 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Default Theme", \'' . $default .'\', 1, 2);');
|
158 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 1", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#96afab","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"24","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"15","HDPColor":"#607370","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#607370","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#868686","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"6px 10px","IPMargin":"0","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#e74c3c","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#e74c3c","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#701e16","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#701e16","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#96afab","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#8a8a8a","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5a7784","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#5a7784","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 1px 0 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#ededed","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#737373","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"3px 5px","PSDPMargin":"0 1px 0 0 ","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#ededed","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#607370","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#96afab","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#607370","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#96afab","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#777777","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#e74c3c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#96afab","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#96afab","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#96afab","MBHPColor":"#607370","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#96afab","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
159 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#16afbf","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#387185","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#387185","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#777777","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#777777","IPPadding":"5px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#a3aa44","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"8px 8px","SPMargin":"0 5px 0 0 ","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#a3aa44","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#c2d852","SHPColor":"#445d71","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c2d852","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#16afbf","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"8px 8px","BPMargin":"0 15px 0 0 ","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#16afbf","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#435c71","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#435c71","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#a3aa44","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#a3aa44","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#16afbf","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#16afbf","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#16afbf","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"22","CBPFontWeight":"normal","CBPColor":"#387185","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#a3aa44","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#16afbf","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#387185","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#16afbf","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#387185","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
160 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#b7b7b7","HPWidth":"100","HTPWidth":"35","HPPadding":"10px 13px 25px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#354f5d","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"65","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#627781","GPPadding":"10px","GPMargin":"-25px 0 0 ","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#627781","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f3f3f3","SEPPadding":"10px 15px","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#627781","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#627781","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#627781","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#676767","SPWidth":"","SPHeight":"40","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0px","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#676767","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#ededed","SHPColor":"#676767","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#676767","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f3f3f3","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#777777","BPPadding":"5px 8px","BPMargin":"0px","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#ededed","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#ededed","BHPColor":"#777777","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#ededed","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#354f5d","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#354f5d","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#b7b7b7","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#b7b7b7","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#838383","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"
|
161 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#606060","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"","HTPColor":"#930912","HDPFontSize":"17","HDPColor":"#666666","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d8d8","GPFontSize":"16","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"70","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#2d4d5f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#2d4d5f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d8d8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"30","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#9c9c9c","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#930912","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#e8e8e8","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#930912","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#51030b","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#51030b","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#666666","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#666666","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#2d4d5f","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#930912","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#930912","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#2d4d5f","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#2d4d5f","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#666666","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#930912","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#666666","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#930912","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
162 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#aee2de","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#042325","HDPFontSize":"13","HDPColor":"#518a88","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#214555","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#d4d4d4","GPPadding":"10px 20px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#d4d4d4","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#214555","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#518a88","IPPadding":"5px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#518a88","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#518a88","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#518a88","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f46322","SPWidth":"130","SPHeight":"40","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f46322","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f46322","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#f46322","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#bababa","BPWidth":"","BPHeight":"40","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#454545","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#bababa","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#bababa","BHPColor":"#454545","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#bababa","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f46322","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#bababa","PSDPFontSize":"13","PSDPFontWeight":"normal","PSDPColor":"#518a88","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#f46322","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d4d4d4","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#d4d4d4","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#f46322","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
163 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 6", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#1d6d69","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#3a9391","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#3a9391","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0","SPBorderColor":"#1d6d69","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1d6d69","SHPBGColor":"#f60c5b","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#1d6d69","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0","BPBorderColor":"#357773","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1d6d69","BHPBGColor":"#35a098","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#ffb33a","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#ffb33a","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#1d6d69","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#1d6d69","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#018c8b","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#ffb33a","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f60c5b","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#1d6d69","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#1d6d69","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#1d6d69","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#1d6d69","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffffff","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
164 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 7", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#3596d4","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#2d4d5f","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#2d4d5f","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1f3c4c","SHPBGColor":"#ba9911","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#44acf0","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1f3c4c","BHPBGColor":"#44acf0","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#44acf0","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#44acf0","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#808080","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#808080","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#ba9911","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#ba9911","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#808080","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#ffb33a","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#3596d4","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#2d4d5f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#3596d4","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#2d4d5f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffb33a","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
165 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 8", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#435c71","HPWidth":"100","HTPWidth":"40","HPPadding":"20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"30","HTPWeight":"bold","HTPColor":"#e6c41b","HDPFontSize":"15","HDPColor":"#ffffff","HIPAlign":"right","HIPWidth":"40","HIPHeight":"26","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"11","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"6px 10px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f05e22","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#435c71","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#e6c41b","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#435c71","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#e6c41b","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#435c71","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
166 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 9", \'{"GPFontFamily":"Open Sans Condensed","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"left","HPBGColor":"#4d4d4d","HPWidth":"50","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#b95d3c","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"50","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#4d4d4d","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#4d4d4d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#f05e22","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#f05e22","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
167 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 10", \'{"GPFontFamily":"arial","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#00bff3","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#00bff3","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"left","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"41","HIPHeight":"31","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"100","GPAlign":"left","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#494949","GPPadding":"15px 15px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#494949","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"10px 20px 10px 10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"30","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"6px 6px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#00bff3","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#00bff3","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#00bff3","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#000000","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 10px","SPMargin":"","SPBorderColor":"#b0b5b8","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"6","SPBoxShadow":"2px 2px 2px #b0b5b8","SHPBGColor":"#000000","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#dfc97a","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#272727","BPPadding":"15px 20px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #b0b5b8","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#139e92","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#f8f8f8","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#272727","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#dfc97a","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#137065","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#137065","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#757575","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#139e92","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#139e92","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#139e92","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#137065","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#137065","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f82c2c","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":"div[type=\\\\"type_section_break\\\\"] {\\\\r\\\\n display: none !important;\\\\r\\\\n}\\\\r\\\\ndiv[wdid=\\\\"12\\\\"] {\\\\r\\\\n border: 1px solid #00bff3;\\\\r\\\\n padding: 10px 30px 0px;\\\\r\\\\n}\\\\r\\\\ninput.time_box {\\\\r\\\\n width: 40px;\\\\r\\\\n}"}\', 0, 2);');
|
168 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 11", \'{"GPFontFamily":"Roboto","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#f2ecde","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#7a134b","HPBorderType":"solid","HPBorderWidth":"4","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"bold","HTPColor":"#042325","HDPFontSize":"14","HDPColor":"#8a877f","HIPAlign":"right","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d5c6","GPFontSize":"14","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#37352f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#37352f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d5c6","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#b7b3a7","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#b7b3a7","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#7a134b","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#7a134b","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#7a134b","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#7a134b","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#7a134b","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#7a134b","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#630538","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#630538","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f2ecde","BPWidth":"60","BPHeight":"28","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#37352f","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#f2ecde","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#7a134b","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 -2px 0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderLeft":"left","PSAPBorderColor":"#7a134b","PSAPBorderType":"solid","PSAPBorderWidth":"3","PSAPBorderRadius":"0","PSDPBGColor":"#f2ecde","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#000000","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#7a134b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#630538","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#7a134b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#630538","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
169 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 12", \'{"GPFontFamily":"trebuchet ms","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#5d98b1","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#ffffff","HPBorderType":"solid","HPBorderWidth":"5","HPBorderRadius":"0","HTPFontSize":"22","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#36748e","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#36748e","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#204a5c","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#204a5c","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#204a5c","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#204a5c","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#204a5c","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#204a5c","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#1e6466","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#1e6466","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#268285","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#268285","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#d4d4d4","BPWidth":"60","BPHeight":"28","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#11393a","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#d4d4d4","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#268285","PSAPFontSize":"14","PSAPFontWeight":"bold","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"10px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"4","PSAPBorderRadius":"0","PSDPBGColor":"#d4d4d4","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#100e0e","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"center","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#132d39","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#132d39","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#132d39","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#132d39","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
170 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 13", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"20","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#43aeab","HPWidth":"100","HTPWidth":"40","HPPadding":"20px 0","HPMargin":"0","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"20","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#676767","GPPadding":"10px 0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#9c9c9c","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#e4e4e4","IPColor":"#9a9a9a","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#e4e4e4","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f38989","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f38989","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#c17777","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c17777","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#ffffff","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#8c8c8c","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#43aeab","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#43aeab","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#787878","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f38989","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f38989","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"2px 4px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#43aeab","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#777777","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#43aeab","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#777777","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f38989","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#b7b7b7","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#8f8f8f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#8f8f8f","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#8f8f8f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#aeaeae","OPFontStyle":"normal","OPRColor":"#cf1515","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":".mwd-header-text { padding: 15px 15px 0; }"}\', 0, 2);');
|
171 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 14", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#386f74","HPWidth":"100","HTPWidth":"26","HPPadding":"0 20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"40","HIPHeight":"","GPBGColor":"#5dbac2","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"74","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#5dbac2","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#ffffff","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f6c37a","SPWidth":"","SPHeight":"","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 15px","SPMargin":"0 15px 0 0","SPBorderBottom":"bottom","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"3","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f4b459","SHPColor":"#ffffff","SHPBorderBottom":"bottom","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"3","BPBGColor":"#5dbac2","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"3","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5dbac2","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#e74c3c","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#2d4d5f","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"22px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#f6c37a","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f6c37a","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#386f74","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#386f74","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5dbac2","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5dbac2","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#386f74","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
172 |
}
|
@@ -284,7 +285,9 @@ class WDCFMInsert {
|
|
284 |
`header_image_url` varchar(255) NOT NULL,
|
285 |
`header_image_animation` varchar(200) NOT NULL,
|
286 |
`header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
|
|
|
287 |
`privacy` longtext NOT NULL,
|
|
|
288 |
PRIMARY KEY (`backup_id`)
|
289 |
) " . $charset_collate . ";";
|
290 |
$wpdb->query($formmaker_backup);
|
@@ -296,17 +299,17 @@ class WDCFMInsert {
|
|
296 |
$form_maker_row = $wpdb->get_var('SELECT * FROM ' . $wpdb->prefix . 'formmaker' . (!WDFMInstance(self::PLUGIN)->is_free ? '' : ' WHERE id' . (WDFMInstance(self::PLUGIN)->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')'));
|
297 |
if ( !$form_maker_row ) {
|
298 |
$insert_form_id = array();
|
299 |
-
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `jsversion`, `privacy`) VALUES (NULL, 'Contact Us', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Subject%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Message%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>',
|
300 |
$insert_form_id[] = $wpdb->insert_id;
|
301 |
-
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `jsversion`, `privacy`) VALUES (NULL, 'Client List Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - First Name%</div><div wdid=\"3\" class=\"wdform_row\">%3 - Last Name%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Phone%</div><div wdid=\"6\" class=\"wdform_row\">%6 - Website%</div><div wdid=\"7\" class=\"wdform_row\">%7 - Address%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>',
|
302 |
$insert_form_id[] = $wpdb->insert_id;
|
303 |
|
304 |
if ( WDFMInstance(self::PLUGIN)->is_free != 2 ) {
|
305 |
-
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `jsversion`, `privacy`) VALUES (NULL, 'Feedback Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Name%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div><div wdid=\"5\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%5 - CMS%</div><div wdid=\"6\" class=\"wdform_row\">%6 - Extension%</div><div wdid=\"7\" class=\"wdform_row\">%7 - Plugin%</div><div wdid=\"2\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%2 - Subject%</div><div wdid=\"8\" class=\"wdform_row\">%8 - Message%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>',
|
306 |
$insert_form_id[] = $wpdb->insert_id;
|
307 |
-
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `jsversion`, `privacy`) VALUES (NULL, 'Business Demographic Survey', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - What is your employment status?%</div><div wdid=\"3\" class=\"wdform_row\">%3 - What is your level of education?%</div><div wdid=\"4\" class=\"wdform_row\">%4 - In which industry do you work?%</div><div wdid=\"6\" class=\"wdform_row\">%6 - What is the annual revenue of your company?%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Enter characters for verification.%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', '4', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', '1', '{all}', '{all}', '7', '1', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp0#**id**#What is your employment status?#**label**#type_radio#****#6_elementform_id_temp1#**id**#What is your level of education?#**label**#type_radio#****#6_elementform_id_temp2#**id**#In which industry do you work?#**label**#type_own_select#****#6_elementform_id_temp3#**id**#Enter characters for verification.#**label**#type_captcha#****#6_elementform_id_temp4#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp5#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp6#**id**##**label**##****#6_elementform_id_temp7#**id**#undefined#**label**#undefined#****#6_elementform_id_temp8#**id**#undefined#**label**#undefined#****#6_elementform_id_temp9#**id**#undefined#**label**#undefined#****#6_elementform_id_temp10#**id**#undefined#**label**#undefined#****#6_elementform_id_temp11#**id**#undefined#**label**#undefined#****#6_elementform_id_temp12#**id**#undefined#**label**#undefined#****#6_elementform_id_temp13#**id**#undefined#**label**#undefined#****#6_elementform_id_temp14#**id**#undefined#**label**#undefined#****#6_elementform_id_temp15#**id**#undefined#**label**#undefined#****#6_elementform_id_temp16#**id**#undefined#**label**#undefined#****#6_elementform_id_temp17#**id**#undefined#**label**#undefined#****#6_elementform_id_temp18#**id**#undefined#**label**#undefined#****#6_elementform_id_temp19#**id**#undefined#**label**#undefined#****#6_elementform_id_temp20#**id**#undefined#**label**#undefined#****#6_elementform_id_temp21#**id**#undefined#**label**#undefined#****#6_elementform_id_temp22#**id**#undefined#**label**#undefined#****#6_elementform_id_temp23#**id**#undefined#**label**#undefined#****#6_elementform_id_temp24#**id**#undefined#**label**#undefined#****#6_elementform_id_temp25#**id**#undefined#**label**#undefined#****#6_elementform_id_temp26#**id**#undefined#**label**#undefined#****#6_elementform_id_temp27#**id**#undefined#**label**#undefined#****#6_elementform_id_temp28#**id**#undefined#**label**#undefined#****#6_elementform_id_temp29#**id**#undefined#**label**#undefined#****#6_elementform_id_temp30#**id**#undefined#**label**#undefined#****#6_elementform_id_temp31#**id**#undefined#**label**#undefined#****#6_elementform_id_temp32#**id**#undefined#**label**#undefined#****#6_elementform_id_temp33#**id**#undefined#**label**#undefined#****#6_elementform_id_temp34#**id**#undefined#**label**#undefined#****#6_elementform_id_temp35#**id**#undefined#**label**#undefined#****#6_elementform_id_temp36#**id**#undefined#**label**#undefined#****#6_elementform_id_temp37#**id**#undefined#**label**#undefined#****#6_elementform_id_temp38#**id**#undefined#**label**#undefined#****#6_elementform_id_temp39#**id**#undefined#**label**#undefined#****#6_elementform_id_temp40#**id**#undefined#**label**#undefined#****#6_elementform_id_temp41#**id**#undefined#**label**#undefined#****#6_elementform_id_temp42#**id**#undefined#**label**#undefined#****#6_elementform_id_temp43#**id**#undefined#**label**#undefined#****#6_elementform_id_temp44#**id**#undefined#**label**#undefined#****#6_elementform_id_temp45#**id**#undefined#**label**#undefined#****#6_elementform_id_temp46#**id**#undefined#**label**#undefined#****#6_elementform_id_temp47#**id**#undefined#**label**#undefined#****#6_elementform_id_temp48#**id**#undefined#**label**#undefined#****#6_elementform_id_temp49#**id**#undefined#**label**#undefined#****#', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', '0', 'testmode', '', '', '0', '2*:*id*:*type_radio*:*type*:*What is your employment status?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*3*:*id*:*type_radio*:*type*:*What is your level of education?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*4*:*id*:*type_own_select*:*type*:*In which industry do you work?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select industry***Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices*:*true***false***false***false***false***false*:*w_choices_checked*:*true***false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*no*:*w_value_disabled*:****Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices_value*:*****************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_radio*:*type*:*What is the annual revenue of your company?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices*:*false***false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices_value*:**************************:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_captcha*:*type*:*Enter characters for verification.*:*w_field_label*:**:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '{adminemail}', '', '', '', '1', '', '{adminemail}', '', '', '', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '0', '1', 'Business Demographic Survey', 'Thank you for joining our business demographic survey. Please give us your feedback by filling in the information bellow.', '', 'none', '1', '0', '');");
|
308 |
$insert_form_id[] = $wpdb->insert_id;
|
309 |
-
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `jsversion`, `privacy`) VALUES (NULL, 'Cupcake Order Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Date%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Cupcakes Flavors (1 doz. minimum)%</div><div wdid=\"6\" class=\"wdform_row\">%6 - Quantity%</div><div wdid=\"7\" class=\"wdform_row\">%7 - Details (if any)%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>',
|
310 |
$insert_form_id[] = $wpdb->insert_id;
|
311 |
}
|
312 |
else {
|
79 |
`header_image_url` varchar(255) NOT NULL,
|
80 |
`header_image_animation` varchar(200) NOT NULL,
|
81 |
`header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
|
82 |
+
`header_hide` tinyint(4) NOT NULL DEFAULT '1',
|
83 |
`jsversion` int(11) NOT NULL,
|
84 |
`privacy` longtext NOT NULL,
|
85 |
PRIMARY KEY (`id`)
|
154 |
|
155 |
$form_maker_theme_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "formmaker_themes");
|
156 |
if (!$form_maker_theme_row) {
|
157 |
+
$default = json_encode(array('AGPWidth' => '70', 'AGPSPWidth' => '30', 'HPAlign' => 'top', 'HTPWidth' => '40', 'HPTextAlign' => 'center', 'HTPFontSize' => '24', 'HDPFontSize' => '15', 'HIPAlign' => 'top', 'HIPWidth' => '80', 'GPWidth' => '100', 'GTPWidth' => '60', 'SPAlign' => 'left', 'PSAPAlign' => 'right', 'PPAPWidth' => '100%', 'CBPPosition' => 'absolute', 'CBPTop' => '10px', 'CBPRight' => '10px', 'PSAPBGColor' =>'#7f7f7f', 'PSAPPadding' => '8px', 'PSDPBGColor' => '#999999', 'PSDPPadding' => '4px 6px', 'PSDPMargin' => '0 0 10px 0', 'FPMargin' => '15px 0 0 0', 'IPHeight' =>'40', 'IPFontSize' => '16', 'IPPadding' => '6px 10px', 'IPBorderTop' => 'top', 'IPBorderRight' => 'right', 'IPBorderBottom' => 'bottom', 'IPBorderLeft' => 'left', 'IPBorderColor' => '#dfdfdf', 'IPBorderType' => 'solid', 'IPBorderWidth' => '1', 'IPBorderRadius' => '2', 'GPMLFontSize' => '12', 'GPMLFontWeight' => 'normal', 'OPRColor' => '' ));
|
158 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Default Theme", \'' . $default .'\', 1, 2);');
|
159 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 1", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#96afab","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"24","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"15","HDPColor":"#607370","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#607370","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#868686","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"6px 10px","IPMargin":"0","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#e74c3c","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#e74c3c","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#701e16","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#701e16","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#96afab","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#8a8a8a","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5a7784","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#5a7784","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 1px 0 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#ededed","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#737373","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"3px 5px","PSDPMargin":"0 1px 0 0 ","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#ededed","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#607370","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#96afab","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#607370","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#96afab","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#777777","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#e74c3c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#96afab","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#96afab","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#96afab","MBHPColor":"#607370","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#96afab","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
160 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#16afbf","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#387185","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#387185","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#777777","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#777777","IPPadding":"5px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#a3aa44","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"8px 8px","SPMargin":"0 5px 0 0 ","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#a3aa44","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#c2d852","SHPColor":"#445d71","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c2d852","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#16afbf","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"8px 8px","BPMargin":"0 15px 0 0 ","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#16afbf","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#435c71","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#435c71","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#a3aa44","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#a3aa44","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#16afbf","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#16afbf","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#16afbf","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"22","CBPFontWeight":"normal","CBPColor":"#387185","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#a3aa44","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#16afbf","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#387185","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#16afbf","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#387185","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
161 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#b7b7b7","HPWidth":"100","HTPWidth":"35","HPPadding":"10px 13px 25px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#354f5d","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"65","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#627781","GPPadding":"10px","GPMargin":"-25px 0 0 ","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#627781","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f3f3f3","SEPPadding":"10px 15px","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#627781","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#627781","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#627781","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#676767","SPWidth":"","SPHeight":"40","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0px","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#676767","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#ededed","SHPColor":"#676767","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#676767","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f3f3f3","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#777777","BPPadding":"5px 8px","BPMargin":"0px","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#ededed","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#ededed","BHPColor":"#777777","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#ededed","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#354f5d","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#354f5d","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#b7b7b7","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#b7b7b7","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#838383","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"20px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#838383","CBPPadding":"3px 5px","CBPMargin":"0px","CBPBorderColor":"","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"30","CBHPBGColor":"","CBHPColor":"#ffffff","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f3f3f3","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#354f5d","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#354f5d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#b7b7b7","MBHPColor":"#354f5d","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#354f5d","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
162 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#606060","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"","HTPColor":"#930912","HDPFontSize":"17","HDPColor":"#666666","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d8d8","GPFontSize":"16","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"70","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#2d4d5f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#2d4d5f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d8d8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"30","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#9c9c9c","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#930912","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#e8e8e8","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#930912","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#51030b","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#51030b","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#666666","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#666666","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#2d4d5f","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#930912","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#930912","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#2d4d5f","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#2d4d5f","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#666666","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#930912","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#666666","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#930912","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"25px","CBPRight":"20px","CBPBottom":"","CBPLeft":"","CBPBGColor":"#ffffff","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#930912","CBPPadding":"","CBPMargin":"0px","CBPBorderTop":"top","CBPBorderRight":"right","CBPBorderBottom":"bottom","CBPBorderLeft":"left","CBPBorderColor":"#606060","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"15","CBHPBGColor":"#ffffff","CBHPColor":"#2d4d5f","CBHPBorderTop":"top","CBHPBorderRight":"right","CBHPBorderBottom":"bottom","CBHPBorderLeft":"left","CBHPBorderColor":"#606060","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#930912","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#606060","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#666666","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#930912","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
163 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#aee2de","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#042325","HDPFontSize":"13","HDPColor":"#518a88","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#214555","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#d4d4d4","GPPadding":"10px 20px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#d4d4d4","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#214555","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#518a88","IPPadding":"5px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#518a88","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#518a88","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#518a88","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f46322","SPWidth":"130","SPHeight":"40","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f46322","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f46322","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#f46322","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#bababa","BPWidth":"","BPHeight":"40","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#454545","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#bababa","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#bababa","BHPColor":"#454545","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#bababa","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f46322","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#bababa","PSDPFontSize":"13","PSDPFontWeight":"normal","PSDPColor":"#518a88","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#f46322","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d4d4d4","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#d4d4d4","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#f46322","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"0px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#f46322","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#214555","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#aee2de","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#518a88","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#518a88","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#518a88","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
164 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 6", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#1d6d69","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#3a9391","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#3a9391","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0","SPBorderColor":"#1d6d69","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1d6d69","SHPBGColor":"#f60c5b","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#1d6d69","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0","BPBorderColor":"#357773","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1d6d69","BHPBGColor":"#35a098","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#ffb33a","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#ffb33a","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#1d6d69","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#1d6d69","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#018c8b","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#ffb33a","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f60c5b","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#1d6d69","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#1d6d69","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#1d6d69","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#1d6d69","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffffff","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
165 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 7", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#3596d4","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#2d4d5f","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#2d4d5f","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1f3c4c","SHPBGColor":"#ba9911","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#44acf0","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1f3c4c","BHPBGColor":"#44acf0","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#44acf0","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#44acf0","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#808080","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#808080","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#ba9911","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#ba9911","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#808080","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#ffb33a","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#3596d4","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#2d4d5f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#3596d4","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#2d4d5f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffb33a","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
166 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 8", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#435c71","HPWidth":"100","HTPWidth":"40","HPPadding":"20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"30","HTPWeight":"bold","HTPColor":"#e6c41b","HDPFontSize":"15","HDPColor":"#ffffff","HIPAlign":"right","HIPWidth":"40","HIPHeight":"26","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"11","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"6px 10px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f05e22","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#435c71","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#e6c41b","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#435c71","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#e6c41b","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#435c71","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
167 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 9", \'{"GPFontFamily":"Open Sans Condensed","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"left","HPBGColor":"#4d4d4d","HPWidth":"50","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#b95d3c","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"50","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#4d4d4d","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#4d4d4d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#f05e22","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#f05e22","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
168 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 10", \'{"GPFontFamily":"arial","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#00bff3","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#00bff3","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"left","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"41","HIPHeight":"31","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"100","GPAlign":"left","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#494949","GPPadding":"15px 15px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#494949","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"10px 20px 10px 10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"30","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"6px 6px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#00bff3","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#00bff3","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#00bff3","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#000000","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 10px","SPMargin":"","SPBorderColor":"#b0b5b8","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"6","SPBoxShadow":"2px 2px 2px #b0b5b8","SHPBGColor":"#000000","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#dfc97a","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#272727","BPPadding":"15px 20px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #b0b5b8","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#139e92","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#f8f8f8","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#272727","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#dfc97a","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#137065","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#137065","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#757575","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#139e92","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#139e92","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#139e92","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#137065","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#137065","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f82c2c","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":"div[type=\\\\"type_section_break\\\\"] {\\\\r\\\\n display: none !important;\\\\r\\\\n}\\\\r\\\\ndiv[wdid=\\\\"12\\\\"] {\\\\r\\\\n border: 1px solid #00bff3;\\\\r\\\\n padding: 10px 30px 0px;\\\\r\\\\n}\\\\r\\\\ninput.time_box {\\\\r\\\\n width: 40px;\\\\r\\\\n}"}\', 0, 2);');
|
169 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 11", \'{"GPFontFamily":"Roboto","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#f2ecde","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#7a134b","HPBorderType":"solid","HPBorderWidth":"4","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"bold","HTPColor":"#042325","HDPFontSize":"14","HDPColor":"#8a877f","HIPAlign":"right","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d5c6","GPFontSize":"14","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#37352f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#37352f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d5c6","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#b7b3a7","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#b7b3a7","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#7a134b","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#7a134b","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#7a134b","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#7a134b","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#7a134b","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#7a134b","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#630538","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#630538","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f2ecde","BPWidth":"60","BPHeight":"28","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#37352f","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#f2ecde","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#7a134b","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 -2px 0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderLeft":"left","PSAPBorderColor":"#7a134b","PSAPBorderType":"solid","PSAPBorderWidth":"3","PSAPBorderRadius":"0","PSDPBGColor":"#f2ecde","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#000000","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#7a134b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#630538","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#7a134b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#630538","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#7a134b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#630538","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f2ecde","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderColor":"#7a134b","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#f2ecde","MBHPColor":"#7a134b","MBHPBorderTop":"top","MBHPBorderColor":"#7a134b","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#ffffff","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
170 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 12", \'{"GPFontFamily":"trebuchet ms","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#5d98b1","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#ffffff","HPBorderType":"solid","HPBorderWidth":"5","HPBorderRadius":"0","HTPFontSize":"22","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#36748e","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#36748e","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#204a5c","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#204a5c","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#204a5c","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#204a5c","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#204a5c","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#204a5c","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#1e6466","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#1e6466","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#268285","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#268285","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#d4d4d4","BPWidth":"60","BPHeight":"28","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#11393a","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#d4d4d4","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#268285","PSAPFontSize":"14","PSAPFontWeight":"bold","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"10px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"4","PSAPBorderRadius":"0","PSDPBGColor":"#d4d4d4","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#100e0e","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"center","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#132d39","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#132d39","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#132d39","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#132d39","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"15px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#1e6466","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#204a5c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#204a5c","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#204a5c","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5d98b1","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5d98b1","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#ffffff","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
171 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 13", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"20","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#43aeab","HPWidth":"100","HTPWidth":"40","HPPadding":"20px 0","HPMargin":"0","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"20","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#676767","GPPadding":"10px 0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#9c9c9c","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#e4e4e4","IPColor":"#9a9a9a","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#e4e4e4","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f38989","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f38989","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#c17777","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c17777","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#ffffff","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#8c8c8c","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#43aeab","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#43aeab","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#787878","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f38989","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f38989","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"2px 4px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#43aeab","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#777777","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#43aeab","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#777777","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f38989","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#b7b7b7","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#8f8f8f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#8f8f8f","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#8f8f8f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#aeaeae","OPFontStyle":"normal","OPRColor":"#cf1515","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":".mwd-header-text { padding: 15px 15px 0; }"}\', 0, 2);');
|
172 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 14", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#386f74","HPWidth":"100","HTPWidth":"26","HPPadding":"0 20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"40","HIPHeight":"","GPBGColor":"#5dbac2","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"74","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#5dbac2","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#ffffff","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f6c37a","SPWidth":"","SPHeight":"","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 15px","SPMargin":"0 15px 0 0","SPBorderBottom":"bottom","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"3","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f4b459","SHPColor":"#ffffff","SHPBorderBottom":"bottom","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"3","BPBGColor":"#5dbac2","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"3","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5dbac2","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#e74c3c","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#2d4d5f","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"22px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#f6c37a","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f6c37a","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#386f74","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#386f74","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5dbac2","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5dbac2","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#386f74","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
173 |
}
|
285 |
`header_image_url` varchar(255) NOT NULL,
|
286 |
`header_image_animation` varchar(200) NOT NULL,
|
287 |
`header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
|
288 |
+
`header_hide` tinyint(4) NOT NULL DEFAULT '1',
|
289 |
`privacy` longtext NOT NULL,
|
290 |
+
`date` int(10) NOT NULL,
|
291 |
PRIMARY KEY (`backup_id`)
|
292 |
) " . $charset_collate . ";";
|
293 |
$wpdb->query($formmaker_backup);
|
299 |
$form_maker_row = $wpdb->get_var('SELECT * FROM ' . $wpdb->prefix . 'formmaker' . (!WDFMInstance(self::PLUGIN)->is_free ? '' : ' WHERE id' . (WDFMInstance(self::PLUGIN)->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')'));
|
300 |
if ( !$form_maker_row ) {
|
301 |
$insert_form_id = array();
|
302 |
+
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Contact Us', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Subject%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Message%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 1, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}\r\n// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 6, 1, '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_text*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*5*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', '{adminemail}', '', '', '', 1, '', '{adminemail}', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Contact Us', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '', 'none', 0, 1, 0, '');");
|
303 |
$insert_form_id[] = $wpdb->insert_id;
|
304 |
+
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Client List Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - First Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Last Name%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Phone%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Website%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Address%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 1, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 13, 1, '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#7_street1form_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*3*:*id*:*type_text*:*type*:*Last Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Phone*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Website*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:*http://example.com*:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*7*:*id*:*type_address*:*type*:*Address*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', '{adminemail}', '', '', '', 1, '', '{adminemail}', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, '', '', '', 'none', 0, 1, 0, '');");
|
305 |
$insert_form_id[] = $wpdb->insert_id;
|
306 |
|
307 |
if ( WDFMInstance(self::PLUGIN)->is_free != 2 ) {
|
308 |
+
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Feedback Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%5 - CMS%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Extension%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Plugin%</div></div><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%2 - Subject%</div></div><div class=\"wdform_column\"><div wdid=\"8\" class=\"wdform_row\">%8 - Message%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 3, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 9, 1, '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#Text#**label**#type_text#****#', '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, '0', '', 'USD', 0, '3*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_radio*:*type*:*CMS*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Joomla!***Wordpress*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Joomla!***Wordpress*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*6*:*id*:*type_own_select*:*type*:*Extension*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select extension***Form Maker***Gallery WD***Spider Calendar*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Gallery WD***Spider Calendar*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_own_select*:*type*:*Plugin*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select plugin***Form Maker***Photo Gallery***Ecommerce WD*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Photo Gallery***Ecommerce WD*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*8*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*', 1, 1, '*', '{adminemail}', '', '', '', 1, '', '{adminemail}', '', '', '1*:*show_hide*:*6*:*field_label*:*and*:*all_any*:*5***==***Joomla!*:*next_condition*:**:*new_condition*:*1*:*show_hide*:*7*:*field_label*:*and*:*all_any*:*5***==***Wordpress*:*next_condition*:**:*new_condition*:*', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Feedback Form', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '" . WDFMInstance(self::PLUGIN)->plugin_url . "/images/demo/2.png', 'flash', 0, 1, 0, '');");
|
309 |
$insert_form_id[] = $wpdb->insert_id;
|
310 |
+
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Business Demographic Survey', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - What is your employment status?%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - What is your level of education?%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - In which industry do you work?%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - What is the annual revenue of your company?%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Enter characters for verification.%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 4, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 7, 1, '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp0#**id**#What is your employment status?#**label**#type_radio#****#6_elementform_id_temp1#**id**#What is your level of education?#**label**#type_radio#****#6_elementform_id_temp2#**id**#In which industry do you work?#**label**#type_own_select#****#6_elementform_id_temp3#**id**#Enter characters for verification.#**label**#type_captcha#****#6_elementform_id_temp4#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp5#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_radio*:*type*:*What is your employment status?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*3*:*id*:*type_radio*:*type*:*What is your level of education?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*4*:*id*:*type_own_select*:*type*:*In which industry do you work?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select industry***Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices*:*true***false***false***false***false***false*:*w_choices_checked*:*true***false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*no*:*w_value_disabled*:****Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices_value*:*****************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_radio*:*type*:*What is the annual revenue of your company?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices*:*false***false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices_value*:**************************:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_captcha*:*type*:*Enter characters for verification.*:*w_field_label*:**:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', '{adminemail}', '', '', '', 1, '', '{adminemail}', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Business Demographic Survey', 'Thank you for joining our business demographic survey. Please give us your feedback by filling in the information bellow.', '', 'none', 1, 1, 0, '');");
|
311 |
$insert_form_id[] = $wpdb->insert_id;
|
312 |
+
$wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Cupcake Order Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Date%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Cupcakes Flavors (1 doz. minimum)%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Quantity%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Details (if any)%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 6, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 8, 1, '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp0#**id**#Name#**label**#type_name#****#5_elementform_id_temp1#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp2#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp3#**id**#Name:* Email:* Date* Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#5_elementform_id_temp4#**id**#Quantity#**label**#type_spinner#****#5_elementform_id_temp5#**id**#Details (if any)#**label**#type_textarea#****#5_elementform_id_temp6#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp7#**id**#Name#**label**#type_name#****#5_elementform_id_temp8#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp9#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp10#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp11#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:***********:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_date_new*:*type*:*Date*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*5*:*id*:*type_radio*:*type*:*Cupcakes Flavors (1 doz. minimum)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices*:*false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices_value*:********************:*w_choices_params*:**:*w_class*:**:*new_field*:*6*:*id*:*type_spinner*:*type*:*Quantity*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*60*:*w_field_width*:**:*w_field_min_value*:**:*w_field_max_value*:*1*:*w_field_step*:*null*:*w_field_value*:*no*:*w_required*:**:*w_class*:**:*new_field*:*7*:*id*:*type_textarea*:*type*:*Details (if any)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', '{adminemail}', '', '', '', 1, '', '{adminemail}', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Cupcake Order Form', '', '', 'none', 1, 1, 0, '');");
|
313 |
$insert_form_id[] = $wpdb->insert_id;
|
314 |
}
|
315 |
else {
|
form_maker_update.php
CHANGED
@@ -183,16 +183,16 @@ class WDCFMUpdate {
|
|
183 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#16afbf","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#387185","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#387185","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#777777","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#777777","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#a3aa44","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 5px 0 0 ","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#a3aa44","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#c2d852","SHPColor":"#445d71","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c2d852","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#16afbf","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0 ","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#16afbf","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#435c71","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#435c71","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor"
|
184 |
:"#a3aa44","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#a3aa44","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#16afbf","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#16afbf","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#16afbf","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"22","CBPFontWeight":"normal","CBPColor":"#387185","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#a3aa44","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#16afbf","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#387185","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#16afbf","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#387185","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
185 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#b7b7b7","HPWidth":"100","HTPWidth":"35","HPPadding":"10px 4px 25px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#354f5d","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"65","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#627781","GPPadding":"10px","GPMargin":"-25px 0 0 ","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#627781","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f3f3f3","SEPPadding":"10px 15px","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#627781","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#627781","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#627781","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#676767","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0px","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#676767","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#ededed","SHPColor":"#676767","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#676767","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f3f3f3","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#777777","BPPadding":"5px 8px","BPMargin":"0px","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#ededed","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#ededed","BHPColor":"#777777","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#ededed","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#354f
|
186 |
-
5d","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#354f5d","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#b7b7b7","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#b7b7b7","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#838383","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"
|
187 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#606060","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#930912","HDPFontSize":"17","HDPColor":"#666666","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d8d8","GPFontSize":"16","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"70","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#2d4d5f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#2d4d5f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d8d8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#9c9c9c","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#930912","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#e8e8e8","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#930912","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#51030b","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#51030b","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#666666","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#666666","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#2d4d5f","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#930912","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#930912","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#2d4d5f","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#2d4d5f","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#666666","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#930912","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#666666","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#930912","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
188 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#aee2de","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#042325","HDPFontSize":"13","HDPColor":"#518a88","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#214555","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#d4d4d4","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#d4d4d4","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#214555","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#518a88","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#518a88","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#518a88","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#518a88","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f46322","SPWidth":"130","SPHeight":"26","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f46322","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f46322","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#f46322","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#bababa","BPWidth":"","BPHeight":"26","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#454545","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#bababa","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#bababa","BHPColor":"#454545","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#bababa","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f46322","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#bababa","PSDPFontSize":"13","PSDPFontWeight":"normal","PSDPColor":"#518a88","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#f46322","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d4d4d4","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#d4d4d4","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#f46322","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
189 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 6", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#1d6d69","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#3a9391","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#3a9391","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0","SPBorderColor":"#1d6d69","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1d6d69","SHPBGColor":"#f60c5b","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#1d6d69","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0","BPBorderColor":"#357773","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1d6d69","BHPBGColor":"#35a098","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#ffb33a","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#ffb33a","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#1d6d69","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#1d6d69","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#018c8b","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#ffb33a","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f60c5b","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#1d6d69","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#1d6d69","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#1d6d69","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#1d6d69","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffffff","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
190 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 7", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#3596d4","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#2d4d5f","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#2d4d5f","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1f3c4c","SHPBGColor":"#ba9911","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#44acf0","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1f3c4c","BHPBGColor":"#44acf0","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#44acf0","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#44acf0","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#808080","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#808080","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#ba9911","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#ba9911","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#808080","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#ffb33a","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#3596d4","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#2d4d5f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#3596d4","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#2d4d5f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffb33a","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
191 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 8", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#435c71","HPWidth":"100","HTPWidth":"40","HPPadding":"20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"30","HTPWeight":"bold","HTPColor":"#e6c41b","HDPFontSize":"15","HDPColor":"#ffffff","HIPAlign":"right","HIPWidth":"40","HIPHeight":"40","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"11","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f05e22","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#435c71","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#e6c41b","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#435c71","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#e6c41b","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#435c71","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
192 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 9", \'{"GPFontFamily":"Open Sans Condensed","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"left","HPBGColor":"#4d4d4d","HPWidth":"50","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#b95d3c","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"50","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#4d4d4d","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#4d4d4d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#f05e22","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#f05e22","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
193 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 10", \'{"GPFontFamily":"arial","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#00bff3","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#00bff3","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"left","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"41","HIPHeight":"31","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"100","GPAlign":"left","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#494949","GPPadding":"0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#494949","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"10px 20px 10px 10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#00bff3","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#00bff3","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#00bff3","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#000000","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"15px 20px","SPMargin":"","SPBorderColor":"#b0b5b8","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"6","SPBoxShadow":"2px 2px 2px #b0b5b8","SHPBGColor":"#000000","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#dfc97a","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#272727","BPPadding":"15px 20px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #b0b5b8","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#139e92","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#f8f8f8","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#272727","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#dfc97a","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#137065","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#137065","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#757575","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#139e92","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#139e92","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#139e92","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#137065","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#137065","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f82c2c","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":"div[type=\"type_section_break\"] {\r\n display: none !important;\r\n}\r\ndiv[wdid=\"12\"] {\r\n border: 1px solid #00bff3;\r\n padding: 10px 30px 0px;\r\n}\r\ninput.time_box {\r\n width: 40px;\r\n}"}\', 0, 2);');
|
194 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 11", \'{"GPFontFamily":"Roboto","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#f2ecde","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#7a134b","HPBorderType":"solid","HPBorderWidth":"4","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"bold","HTPColor":"#042325","HDPFontSize":"14","HDPColor":"#8a877f","HIPAlign":"right","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d5c6","GPFontSize":"14","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#37352f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#37352f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d5c6","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#b7b3a7","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#b7b3a7","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#7a134b","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#7a134b","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#7a134b","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#7a134b","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#7a134b","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#7a134b","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#630538","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#630538","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f2ecde","BPWidth":"60","BPHeight":"28","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#37352f","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#f2ecde","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#7a134b","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 -2px 0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderLeft":"left","PSAPBorderColor":"#7a134b","PSAPBorderType":"solid","PSAPBorderWidth":"3","PSAPBorderRadius":"0","PSDPBGColor":"#f2ecde","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#000000","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#7a134b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#630538","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#7a134b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#630538","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
195 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 12", \'{"GPFontFamily":"trebuchet ms","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#5d98b1","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#ffffff","HPBorderType":"solid","HPBorderWidth":"5","HPBorderRadius":"0","HTPFontSize":"22","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#36748e","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#36748e","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#204a5c","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#204a5c","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#204a5c","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#204a5c","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#204a5c","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#204a5c","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#1e6466","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#1e6466","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#268285","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#268285","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#d4d4d4","BPWidth":"60","BPHeight":"28","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#11393a","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#d4d4d4","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#268285","PSAPFontSize":"14","PSAPFontWeight":"bold","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"10px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"4","PSAPBorderRadius":"0","PSDPBGColor":"#d4d4d4","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#100e0e","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"center","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#132d39","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#132d39","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#132d39","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#132d39","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"
|
196 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 13", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"20","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#43aeab","HPWidth":"100","HTPWidth":"40","HPPadding":"20px 0","HPMargin":"0","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"20","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#676767","GPPadding":"10px 0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#9c9c9c","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#e4e4e4","IPColor":"#9a9a9a","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#e4e4e4","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f38989","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f38989","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#c17777","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c17777","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#ffffff","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#8c8c8c","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#43aeab","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#43aeab","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#787878","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f38989","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f38989","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"2px 4px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#43aeab","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#777777","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#43aeab","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#777777","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f38989","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#b7b7b7","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#8f8f8f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#8f8f8f","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#8f8f8f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#aeaeae","OPFontStyle":"normal","OPRColor":"#cf1515","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":".mwd-header-text { padding: 15px 15px 0; }"}\', 0, 2);');
|
197 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 14", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#386f74","HPWidth":"100","HTPWidth":"26","HPPadding":"0 20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"40","HIPHeight":"","GPBGColor":"#5dbac2","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"74","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#5dbac2","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#ffffff","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f6c37a","SPWidth":"","SPHeight":"","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 15px","SPMargin":"0 15px 0 0","SPBorderBottom":"bottom","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"3","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f4b459","SHPColor":"#ffffff","SHPBorderBottom":"bottom","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"3","BPBGColor":"#5dbac2","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"3","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5dbac2","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#e74c3c","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#2d4d5f","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"22px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#f6c37a","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f6c37a","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#386f74","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#386f74","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5dbac2","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5dbac2","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#386f74","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
198 |
|
@@ -233,7 +233,7 @@ class WDCFMUpdate {
|
|
233 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `jsversion` int(11) NOT NULL");
|
234 |
}
|
235 |
if (version_compare($version, '1.12.5') == -1) {
|
236 |
-
$default = json_encode(array('AGPWidth' => '70', 'AGPSPWidth' => '30', 'HPAlign' => 'top', 'HTPWidth' => '40', 'HPTextAlign' => 'center', 'HTPFontSize' => '24', 'HDPFontSize' => '15', 'HIPAlign' => 'top', 'HIPWidth' => '80', 'GPWidth' => '100', 'GTPWidth' => '60', 'SPAlign' => 'left', 'PSAPAlign' => 'right', 'PPAPWidth' => '100%', 'CBPPosition' => 'absolute', 'CBPTop' => '10px', 'CBPRight' => '10px', 'PSAPBGColor' =>'#7f7f7f', 'PSAPPadding' => '8px', 'PSDPBGColor' => '#999999', 'PSDPPadding' => '4px 6px', 'PSDPMargin' => '0 0 10px 0', 'FPMargin' => '15px 0 0 0', 'IPHeight' =>'40', 'IPFontSize' => '16', 'IPPadding' => '6px 10px', 'IPBorderTop' => 'top', 'IPBorderRight' => 'right', 'IPBorderBottom' => 'bottom', 'IPBorderLeft' => 'left', 'IPBorderColor' => '#dfdfdf', 'IPBorderType' => 'solid', 'IPBorderWidth' => '1', 'IPBorderRadius' => '2', 'GPMLFontSize' => '12', 'GPMLFontWeight' => 'normal', 'OPRColor' => '
|
237 |
$wpdb->update($wpdb->prefix . 'formmaker_themes', array('default' => 0), array('default' => 1));
|
238 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Default Theme", \''. $default .'\', 1, 2);');
|
239 |
}
|
@@ -259,6 +259,12 @@ class WDCFMUpdate {
|
|
259 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker` ADD `privacy` longtext NOT NULL DEFAULT ''");
|
260 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_backup` ADD `privacy` longtext NOT NULL DEFAULT ''");
|
261 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
return;
|
263 |
}
|
264 |
}
|
183 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#16afbf","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#387185","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#387185","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#777777","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#777777","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#a3aa44","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 5px 0 0 ","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#a3aa44","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#c2d852","SHPColor":"#445d71","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c2d852","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#16afbf","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0 ","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#16afbf","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#435c71","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#435c71","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor"
|
184 |
:"#a3aa44","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#a3aa44","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#16afbf","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#16afbf","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#16afbf","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"22","CBPFontWeight":"normal","CBPColor":"#387185","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#a3aa44","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#16afbf","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#387185","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#16afbf","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#387185","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
185 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#b7b7b7","HPWidth":"100","HTPWidth":"35","HPPadding":"10px 4px 25px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#354f5d","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"65","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#627781","GPPadding":"10px","GPMargin":"-25px 0 0 ","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#627781","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f3f3f3","SEPPadding":"10px 15px","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#627781","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#627781","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#627781","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#676767","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0px","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#676767","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#ededed","SHPColor":"#676767","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#676767","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f3f3f3","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#777777","BPPadding":"5px 8px","BPMargin":"0px","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#ededed","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#ededed","BHPColor":"#777777","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#ededed","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#354f
|
186 |
+
5d","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#354f5d","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#b7b7b7","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#b7b7b7","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#838383","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"20px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#838383","CBPPadding":"3px 5px","CBPMargin":"0px","CBPBorderColor":"","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"30","CBHPBGColor":"","CBHPColor":"#ffffff","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f3f3f3","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#354f5d","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#354f5d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#b7b7b7","MBHPColor":"#354f5d","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#354f5d","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
187 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#606060","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#930912","HDPFontSize":"17","HDPColor":"#666666","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d8d8","GPFontSize":"16","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"70","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#2d4d5f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#2d4d5f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d8d8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#9c9c9c","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#930912","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#e8e8e8","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#930912","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#51030b","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#51030b","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#666666","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#666666","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#2d4d5f","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#930912","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#930912","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#2d4d5f","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#2d4d5f","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#666666","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#930912","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#666666","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#930912","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"25x","CBPRight":"20px","CBPBottom":"","CBPLeft":"","CBPBGColor":"#ffffff","CBPFontSize":"12","CBPFontWeight":"normal","CBPColor":"#930912","CBPPadding":"","CBPMargin":"0px","CBPBorderTop":"top","CBPBorderRight":"right","CBPBorderBottom":"bottom","CBPBorderLeft":"left","CBPBorderColor":"#606060","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"15","CBHPBGColor":"#ffffff","CBHPColor":"#2d4d5f","CBHPBorderTop":"top","CBHPBorderRight":"right","CBHPBorderBottom":"bottom","CBHPBorderLeft":"left","CBHPBorderColor":"#606060","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#930912","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#606060","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#666666","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#930912","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
188 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#aee2de","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#042325","HDPFontSize":"13","HDPColor":"#518a88","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#214555","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#d4d4d4","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#d4d4d4","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#214555","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#518a88","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#518a88","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#518a88","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#518a88","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f46322","SPWidth":"130","SPHeight":"26","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f46322","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f46322","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#f46322","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#bababa","BPWidth":"","BPHeight":"26","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#454545","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#bababa","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#bababa","BHPColor":"#454545","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#bababa","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f46322","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#bababa","PSDPFontSize":"13","PSDPFontWeight":"normal","PSDPColor":"#518a88","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#f46322","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d4d4d4","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#d4d4d4","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#f46322","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"0px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#f46322","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#214555","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#aee2de","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#518a88","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#518a88","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#518a88","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
189 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 6", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#1d6d69","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#3a9391","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#3a9391","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0","SPBorderColor":"#1d6d69","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1d6d69","SHPBGColor":"#f60c5b","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#1d6d69","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0","BPBorderColor":"#357773","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1d6d69","BHPBGColor":"#35a098","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#ffb33a","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#ffb33a","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#1d6d69","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#1d6d69","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#018c8b","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#ffb33a","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f60c5b","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#1d6d69","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#1d6d69","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#1d6d69","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#1d6d69","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffffff","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
190 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 7", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#3596d4","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#2d4d5f","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#2d4d5f","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1f3c4c","SHPBGColor":"#ba9911","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#44acf0","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1f3c4c","BHPBGColor":"#44acf0","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#44acf0","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#44acf0","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#808080","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#808080","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#ba9911","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#ba9911","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#808080","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#ffb33a","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#3596d4","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#2d4d5f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#3596d4","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#2d4d5f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffb33a","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
191 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 8", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#435c71","HPWidth":"100","HTPWidth":"40","HPPadding":"20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"30","HTPWeight":"bold","HTPColor":"#e6c41b","HDPFontSize":"15","HDPColor":"#ffffff","HIPAlign":"right","HIPWidth":"40","HIPHeight":"40","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"11","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f05e22","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#435c71","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#e6c41b","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#435c71","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#e6c41b","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#435c71","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
192 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 9", \'{"GPFontFamily":"Open Sans Condensed","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"left","HPBGColor":"#4d4d4d","HPWidth":"50","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#b95d3c","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"50","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#4d4d4d","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#4d4d4d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#f05e22","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#f05e22","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
193 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 10", \'{"GPFontFamily":"arial","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#00bff3","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#00bff3","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"left","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"41","HIPHeight":"31","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"100","GPAlign":"left","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#494949","GPPadding":"0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#494949","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"10px 20px 10px 10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#00bff3","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#00bff3","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#00bff3","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#000000","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"15px 20px","SPMargin":"","SPBorderColor":"#b0b5b8","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"6","SPBoxShadow":"2px 2px 2px #b0b5b8","SHPBGColor":"#000000","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#dfc97a","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#272727","BPPadding":"15px 20px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #b0b5b8","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#139e92","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#f8f8f8","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#272727","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#dfc97a","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#137065","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#137065","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#757575","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#139e92","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#139e92","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#139e92","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#137065","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#137065","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f82c2c","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":"div[type=\"type_section_break\"] {\r\n display: none !important;\r\n}\r\ndiv[wdid=\"12\"] {\r\n border: 1px solid #00bff3;\r\n padding: 10px 30px 0px;\r\n}\r\ninput.time_box {\r\n width: 40px;\r\n}"}\', 0, 2);');
|
194 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 11", \'{"GPFontFamily":"Roboto","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#f2ecde","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#7a134b","HPBorderType":"solid","HPBorderWidth":"4","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"bold","HTPColor":"#042325","HDPFontSize":"14","HDPColor":"#8a877f","HIPAlign":"right","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d5c6","GPFontSize":"14","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#37352f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#37352f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d5c6","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#b7b3a7","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#b7b3a7","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#7a134b","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#7a134b","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#7a134b","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#7a134b","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#7a134b","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#7a134b","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#630538","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#630538","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f2ecde","BPWidth":"60","BPHeight":"28","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#37352f","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#f2ecde","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#7a134b","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 -2px 0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderLeft":"left","PSAPBorderColor":"#7a134b","PSAPBorderType":"solid","PSAPBorderWidth":"3","PSAPBorderRadius":"0","PSDPBGColor":"#f2ecde","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#000000","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#7a134b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#630538","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#7a134b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#630538","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#7a134b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#630538","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f2ecde","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderColor":"#7a134b","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#f2ecde","MBHPColor":"#7a134b","MBHPBorderTop":"top","MBHPBorderColor":"#7a134b","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#ffffff","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
195 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 12", \'{"GPFontFamily":"trebuchet ms","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#5d98b1","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#ffffff","HPBorderType":"solid","HPBorderWidth":"5","HPBorderRadius":"0","HTPFontSize":"22","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#36748e","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#36748e","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#204a5c","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#204a5c","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#204a5c","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#204a5c","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#204a5c","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#204a5c","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#1e6466","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#1e6466","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#268285","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#268285","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#d4d4d4","BPWidth":"60","BPHeight":"28","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#11393a","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#d4d4d4","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#268285","PSAPFontSize":"14","PSAPFontWeight":"bold","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"10px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"4","PSAPBorderRadius":"0","PSDPBGColor":"#d4d4d4","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#100e0e","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"center","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#132d39","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#132d39","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#132d39","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#132d39","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"15px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#1e6466","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#204a5c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#204a5c","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#204a5c","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5d98b1","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5d98b1","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#ffffff","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
196 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 13", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"20","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#43aeab","HPWidth":"100","HTPWidth":"40","HPPadding":"20px 0","HPMargin":"0","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"20","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#676767","GPPadding":"10px 0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#9c9c9c","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#e4e4e4","IPColor":"#9a9a9a","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#e4e4e4","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f38989","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f38989","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#c17777","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c17777","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#ffffff","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#8c8c8c","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#43aeab","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#43aeab","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#787878","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f38989","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f38989","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"2px 4px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#43aeab","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#777777","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#43aeab","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#777777","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f38989","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#b7b7b7","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#8f8f8f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#8f8f8f","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#8f8f8f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#aeaeae","OPFontStyle":"normal","OPRColor":"#cf1515","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":".mwd-header-text { padding: 15px 15px 0; }"}\', 0, 2);');
|
197 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 14", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#386f74","HPWidth":"100","HTPWidth":"26","HPPadding":"0 20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"40","HIPHeight":"","GPBGColor":"#5dbac2","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"74","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#5dbac2","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#ffffff","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f6c37a","SPWidth":"","SPHeight":"","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 15px","SPMargin":"0 15px 0 0","SPBorderBottom":"bottom","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"3","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f4b459","SHPColor":"#ffffff","SHPBorderBottom":"bottom","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"3","BPBGColor":"#5dbac2","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"3","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5dbac2","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#e74c3c","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#2d4d5f","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"22px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#f6c37a","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f6c37a","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#386f74","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#386f74","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5dbac2","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5dbac2","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#386f74","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
198 |
|
233 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `jsversion` int(11) NOT NULL");
|
234 |
}
|
235 |
if (version_compare($version, '1.12.5') == -1) {
|
236 |
+
$default = json_encode(array('AGPWidth' => '70', 'AGPSPWidth' => '30', 'HPAlign' => 'top', 'HTPWidth' => '40', 'HPTextAlign' => 'center', 'HTPFontSize' => '24', 'HDPFontSize' => '15', 'HIPAlign' => 'top', 'HIPWidth' => '80', 'GPWidth' => '100', 'GTPWidth' => '60', 'SPAlign' => 'left', 'PSAPAlign' => 'right', 'PPAPWidth' => '100%', 'CBPPosition' => 'absolute', 'CBPTop' => '10px', 'CBPRight' => '10px', 'PSAPBGColor' =>'#7f7f7f', 'PSAPPadding' => '8px', 'PSDPBGColor' => '#999999', 'PSDPPadding' => '4px 6px', 'PSDPMargin' => '0 0 10px 0', 'FPMargin' => '15px 0 0 0', 'IPHeight' =>'40', 'IPFontSize' => '16', 'IPPadding' => '6px 10px', 'IPBorderTop' => 'top', 'IPBorderRight' => 'right', 'IPBorderBottom' => 'bottom', 'IPBorderLeft' => 'left', 'IPBorderColor' => '#dfdfdf', 'IPBorderType' => 'solid', 'IPBorderWidth' => '1', 'IPBorderRadius' => '2', 'GPMLFontSize' => '12', 'GPMLFontWeight' => 'normal', 'OPRColor' => '' ));
|
237 |
$wpdb->update($wpdb->prefix . 'formmaker_themes', array('default' => 0), array('default' => 1));
|
238 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Default Theme", \''. $default .'\', 1, 2);');
|
239 |
}
|
259 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker` ADD `privacy` longtext NOT NULL DEFAULT ''");
|
260 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_backup` ADD `privacy` longtext NOT NULL DEFAULT ''");
|
261 |
}
|
262 |
+
|
263 |
+
if (version_compare($version, '2.12.39') == -1) {
|
264 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker` ADD `header_hide` tinyint(4) NOT NULL DEFAULT '1'");
|
265 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_backup` ADD `header_hide` tinyint(4) NOT NULL DEFAULT '1'");
|
266 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_backup` ADD `date` int(10) NOT NULL");
|
267 |
+
}
|
268 |
return;
|
269 |
}
|
270 |
}
|
framework/WDW_FM_Library.php
CHANGED
@@ -980,14 +980,14 @@ class WDW_FMC_Library {
|
|
980 |
}
|
981 |
$form_currency = apply_filters('fm_form_currency', $form_currency, $form_id);
|
982 |
$form_currency = self::replace_currency_code( $form_currency );
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
$is_type = array();
|
992 |
$id1s = array();
|
993 |
$types = array();
|
@@ -4426,6 +4426,7 @@ class WDW_FMC_Library {
|
|
4426 |
"Oman" => __("Oman", WDFMInstance(self::PLUGIN)->prefix),
|
4427 |
"Pakistan" => __("Pakistan", WDFMInstance(self::PLUGIN)->prefix),
|
4428 |
"Palau" => __("Palau", WDFMInstance(self::PLUGIN)->prefix),
|
|
|
4429 |
"Panama" => __("Panama", WDFMInstance(self::PLUGIN)->prefix),
|
4430 |
"Papua New Guinea" => __("Papua New Guinea", WDFMInstance(self::PLUGIN)->prefix),
|
4431 |
"Paraguay" => __("Paraguay", WDFMInstance(self::PLUGIN)->prefix),
|
@@ -5288,7 +5289,7 @@ class WDW_FMC_Library {
|
|
5288 |
$post_id = get_option( 'wp_page_for_privacy_policy' );
|
5289 |
if ( $post_id ) {
|
5290 |
$post = get_post( $post_id, OBJECT );
|
5291 |
-
if ( $post->post_status == 'publish' ) {
|
5292 |
$permalink = get_permalink( $post_id );
|
5293 |
$title = $post->post_title;
|
5294 |
}
|
980 |
}
|
981 |
$form_currency = apply_filters('fm_form_currency', $form_currency, $form_id);
|
982 |
$form_currency = self::replace_currency_code( $form_currency );
|
983 |
+
$form_paypal_tax = 0;
|
984 |
+
if ( $row->paypal_mode && $row->paypal_mode == 1 ) {
|
985 |
+
$form_paypal_tax = $row->tax;
|
986 |
+
}
|
987 |
+
if ( $row->paypal_mode && $row->paypal_mode == 2 ) {
|
988 |
+
$stripe_data = apply_filters('fm_addon_stripe_get_data_init', array('form_id' => $form_id));
|
989 |
+
$form_paypal_tax = $stripe_data->stripe_tax;
|
990 |
+
}
|
991 |
$is_type = array();
|
992 |
$id1s = array();
|
993 |
$types = array();
|
4426 |
"Oman" => __("Oman", WDFMInstance(self::PLUGIN)->prefix),
|
4427 |
"Pakistan" => __("Pakistan", WDFMInstance(self::PLUGIN)->prefix),
|
4428 |
"Palau" => __("Palau", WDFMInstance(self::PLUGIN)->prefix),
|
4429 |
+
"Palestine" => __("Palestine", WDFMInstance(self::PLUGIN)->prefix),
|
4430 |
"Panama" => __("Panama", WDFMInstance(self::PLUGIN)->prefix),
|
4431 |
"Papua New Guinea" => __("Papua New Guinea", WDFMInstance(self::PLUGIN)->prefix),
|
4432 |
"Paraguay" => __("Paraguay", WDFMInstance(self::PLUGIN)->prefix),
|
5289 |
$post_id = get_option( 'wp_page_for_privacy_policy' );
|
5290 |
if ( $post_id ) {
|
5291 |
$post = get_post( $post_id, OBJECT );
|
5292 |
+
if ( !empty($post) && $post->post_status == 'publish' ) {
|
5293 |
$permalink = get_permalink( $post_id );
|
5294 |
$title = $post->post_title;
|
5295 |
}
|
frontend/models/form_maker.php
CHANGED
@@ -501,9 +501,9 @@ class FMModelForm_maker_fmc {
|
|
501 |
}
|
502 |
}
|
503 |
}
|
504 |
-
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-action-buttons {' .
|
505 |
(!empty( $form_theme[ 'CBPFontWeight' ] ) ? 'font-weight:' . $form_theme[ 'CBPFontWeight' ] . ';' : '') .
|
506 |
-
(!empty( $form_theme[ 'CBPFontSize' ] ) ? 'font-size:' . $form_theme[ 'CBPFontSize' ] . 'px;' : '') .
|
507 |
(!empty( $form_theme[ 'CBPColor' ] ) ? 'color:' . $form_theme[ 'CBPColor' ] . ';' : '') .
|
508 |
'}';
|
509 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form,
|
@@ -1419,7 +1419,6 @@ class FMModelForm_maker_fmc {
|
|
1419 |
$missing_required_field = FALSE;
|
1420 |
$invalid_email_address = FALSE;
|
1421 |
$required = (isset($params[$i]) && strpos($params[$i], '*:*yes*:*w_required*:*') !== FALSE ? 1 : 0);
|
1422 |
-
|
1423 |
if ( !in_array( $i, $disabled_fields ) ) {
|
1424 |
switch ( $type ) {
|
1425 |
case 'type_text':
|
@@ -1432,14 +1431,14 @@ class FMModelForm_maker_fmc {
|
|
1432 |
case "type_textarea":
|
1433 |
case "type_send_copy":
|
1434 |
case "type_spinner": {
|
1435 |
-
$value = isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element" . $id ] ) : "";
|
1436 |
-
|
1437 |
$missing_required_field = TRUE;
|
1438 |
}
|
1439 |
break;
|
1440 |
}
|
1441 |
case "type_submitter_mail": {
|
1442 |
-
$value = isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element" . $id ] ) : "";
|
1443 |
if ( $required && !isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ) {
|
1444 |
$missing_required_field = TRUE;
|
1445 |
}
|
@@ -1515,8 +1514,8 @@ class FMModelForm_maker_fmc {
|
|
1515 |
break;
|
1516 |
}
|
1517 |
case "type_name": {
|
1518 |
-
$value0 = isset( $_POST[ 'wdform_' . $i . "_element_first" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element_first" . $id ] ) : "";
|
1519 |
-
$value1 = isset( $_POST[ 'wdform_' . $i . "_element_last" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element_last" . $id ] ) : "";
|
1520 |
$value2 = isset( $_POST[ 'wdform_' . $i . "_element_title" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element_title" . $id ] ) : "";
|
1521 |
$value3 = isset( $_POST[ 'wdform_' . $i . "_element_middle" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element_middle" . $id ] ) : "";
|
1522 |
|
@@ -1527,7 +1526,7 @@ class FMModelForm_maker_fmc {
|
|
1527 |
if ( $value3 ) {
|
1528 |
$value .= '@@@' . $value3;
|
1529 |
}
|
1530 |
-
if ( $required && (
|
1531 |
$missing_required_field = TRUE;
|
1532 |
}
|
1533 |
break;
|
@@ -1546,7 +1545,7 @@ class FMModelForm_maker_fmc {
|
|
1546 |
$upload_dir = wp_upload_dir();
|
1547 |
$files = isset( $_FILES[ 'wdform_' . $i . '_file' . $id ] ) ? $_FILES[ 'wdform_' . $i . '_file' . $id ] : array();
|
1548 |
if ( !empty($files) ) {
|
1549 |
-
|
1550 |
if ( $file_name ) {
|
1551 |
$untilupload = $form->form_fields;
|
1552 |
$untilupload = substr( $untilupload, strpos( $untilupload, $i . '*:*id*:*type_file_upload' ), -1 );
|
@@ -1714,10 +1713,10 @@ class FMModelForm_maker_fmc {
|
|
1714 |
}
|
1715 |
case 'type_address': {
|
1716 |
$value = '*#*#*#';
|
1717 |
-
$element = isset( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_street1" . $id
|
1718 |
if ( isset( $element ) ) {
|
1719 |
$value = $element;
|
1720 |
-
if ( $required && $value
|
1721 |
$missing_required_field = TRUE;
|
1722 |
}
|
1723 |
break;
|
@@ -2176,7 +2175,6 @@ class FMModelForm_maker_fmc {
|
|
2176 |
$fvals[ '{' . $i . '}' ] = '';
|
2177 |
}
|
2178 |
}
|
2179 |
-
|
2180 |
$user_fields = array(
|
2181 |
"subid" => $group_id,
|
2182 |
"ip" => $ip,
|
@@ -3459,7 +3457,7 @@ class FMModelForm_maker_fmc {
|
|
3459 |
|
3460 |
if ( $row->submit_text_type != 4 || $row->url == '' ) {
|
3461 |
// This ensures that no message is enqueued by an add-on.
|
3462 |
-
if ( !$_SESSION[ 'massage_after_submit' . $id ] ) {
|
3463 |
$_SESSION[ 'massage_after_submit' . $id ] = $msg;
|
3464 |
}
|
3465 |
if ( $row->type == 'popover' || $row->type == 'topbar' || $row->type == 'scrollbox' ) {
|
501 |
}
|
502 |
}
|
503 |
}
|
504 |
+
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-action-buttons * {' .
|
505 |
(!empty( $form_theme[ 'CBPFontWeight' ] ) ? 'font-weight:' . $form_theme[ 'CBPFontWeight' ] . ';' : '') .
|
506 |
+
(!empty( $form_theme[ 'CBPFontSize' ] ) ? 'font-size:' . $form_theme[ 'CBPFontSize' ] . 'px !important;' : '') .
|
507 |
(!empty( $form_theme[ 'CBPColor' ] ) ? 'color:' . $form_theme[ 'CBPColor' ] . ';' : '') .
|
508 |
'}';
|
509 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form,
|
1419 |
$missing_required_field = FALSE;
|
1420 |
$invalid_email_address = FALSE;
|
1421 |
$required = (isset($params[$i]) && strpos($params[$i], '*:*yes*:*w_required*:*') !== FALSE ? 1 : 0);
|
|
|
1422 |
if ( !in_array( $i, $disabled_fields ) ) {
|
1423 |
switch ( $type ) {
|
1424 |
case 'type_text':
|
1431 |
case "type_textarea":
|
1432 |
case "type_send_copy":
|
1433 |
case "type_spinner": {
|
1434 |
+
$value = isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ? trim( esc_html( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ) : "";
|
1435 |
+
if ( $required && empty( $value ) ) {
|
1436 |
$missing_required_field = TRUE;
|
1437 |
}
|
1438 |
break;
|
1439 |
}
|
1440 |
case "type_submitter_mail": {
|
1441 |
+
$value = isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ? trim( esc_html( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ) : "";
|
1442 |
if ( $required && !isset( $_POST[ 'wdform_' . $i . "_element" . $id ] ) ) {
|
1443 |
$missing_required_field = TRUE;
|
1444 |
}
|
1514 |
break;
|
1515 |
}
|
1516 |
case "type_name": {
|
1517 |
+
$value0 = isset( $_POST[ 'wdform_' . $i . "_element_first" . $id ] ) ? trim( esc_html( $_POST[ 'wdform_' . $i . "_element_first" . $id ] ) ) : "";
|
1518 |
+
$value1 = isset( $_POST[ 'wdform_' . $i . "_element_last" . $id ] ) ? trim( esc_html( $_POST[ 'wdform_' . $i . "_element_last" . $id ] ) ) : "";
|
1519 |
$value2 = isset( $_POST[ 'wdform_' . $i . "_element_title" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element_title" . $id ] ) : "";
|
1520 |
$value3 = isset( $_POST[ 'wdform_' . $i . "_element_middle" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_element_middle" . $id ] ) : "";
|
1521 |
|
1526 |
if ( $value3 ) {
|
1527 |
$value .= '@@@' . $value3;
|
1528 |
}
|
1529 |
+
if ( $required && ( empty($value0) || empty($value1) ) ) {
|
1530 |
$missing_required_field = TRUE;
|
1531 |
}
|
1532 |
break;
|
1545 |
$upload_dir = wp_upload_dir();
|
1546 |
$files = isset( $_FILES[ 'wdform_' . $i . '_file' . $id ] ) ? $_FILES[ 'wdform_' . $i . '_file' . $id ] : array();
|
1547 |
if ( !empty($files) ) {
|
1548 |
+
foreach ( $files[ 'name' ] as $file_key => $file_name ) {
|
1549 |
if ( $file_name ) {
|
1550 |
$untilupload = $form->form_fields;
|
1551 |
$untilupload = substr( $untilupload, strpos( $untilupload, $i . '*:*id*:*type_file_upload' ), -1 );
|
1713 |
}
|
1714 |
case 'type_address': {
|
1715 |
$value = '*#*#*#';
|
1716 |
+
$element = isset( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) ? trim( esc_html( $_POST[ 'wdform_' . $i . "_street1" . $id] ) ) : '';
|
1717 |
if ( isset( $element ) ) {
|
1718 |
$value = $element;
|
1719 |
+
if ( $required && empty($value) ) {
|
1720 |
$missing_required_field = TRUE;
|
1721 |
}
|
1722 |
break;
|
2175 |
$fvals[ '{' . $i . '}' ] = '';
|
2176 |
}
|
2177 |
}
|
|
|
2178 |
$user_fields = array(
|
2179 |
"subid" => $group_id,
|
2180 |
"ip" => $ip,
|
3457 |
|
3458 |
if ( $row->submit_text_type != 4 || $row->url == '' ) {
|
3459 |
// This ensures that no message is enqueued by an add-on.
|
3460 |
+
if ( !isset($_SESSION[ 'massage_after_submit' . $id ]) || !$_SESSION[ 'massage_after_submit' . $id ] ) {
|
3461 |
$_SESSION[ 'massage_after_submit' . $id ] = $msg;
|
3462 |
}
|
3463 |
if ( $row->type == 'popover' || $row->type == 'topbar' || $row->type == 'scrollbox' ) {
|
frontend/views/form_maker.php
CHANGED
@@ -139,40 +139,43 @@ class FMViewForm_maker_fmc {
|
|
139 |
$form_maker_front_end .= '<input type="hidden" id="fm_empty_field_validation' . $form_id . '" value="" name="fm_empty_field_validation' . $form_id . '" data-value="'. md5( WDFMInstance(self::PLUGIN)->prefix .''. $form_id) .'" />';
|
140 |
|
141 |
if ( !$fm_hide_form_after_submit ) {
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
if ( $
|
150 |
-
|
151 |
-
|
152 |
-
if ( $
|
153 |
-
|
|
|
|
|
154 |
}
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
}
|
|
|
170 |
}
|
171 |
-
$form_maker_front_end .= '</div></div>';
|
172 |
}
|
173 |
}
|
174 |
}
|
175 |
|
|
|
176 |
$is_type = array();
|
177 |
$id1s = array();
|
178 |
$types = array();
|
@@ -362,6 +365,25 @@ class FMViewForm_maker_fmc {
|
|
362 |
'w_readonly',
|
363 |
);
|
364 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
foreach ( $params_names as $params_name ) {
|
366 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
367 |
$param[$params_name] = $temp[0];
|
@@ -377,8 +399,9 @@ class FMViewForm_maker_fmc {
|
|
377 |
$param['w_first_val'] = (isset($_POST['wdform_' . $id1 . '_element' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id])) : $param['w_first_val']);
|
378 |
$param['w_regExp_status'] = (isset($param['w_regExp_status']) ? $param['w_regExp_status'] : "no");
|
379 |
$readonly = (isset($param['w_readonly']) && $param['w_readonly'] == "yes" ? "readonly='readonly'" : '');
|
|
|
380 |
$param['id'] = $id1;
|
381 |
-
$param['w_class']
|
382 |
|
383 |
$html = '';
|
384 |
if ( isset($symbol_begin[$id1]) ) {
|
@@ -1534,10 +1557,10 @@ class FMViewForm_maker_fmc {
|
|
1534 |
}
|
1535 |
|
1536 |
$rep = '';
|
1537 |
-
if ($row->gdpr_checkbox && $row->gdpr_checkbox_text) {
|
1538 |
$privacy_policy_page = WDW_FM_Library(self::PLUGIN)->get_privacy_policy_url();
|
1539 |
$privacy_policy_link = $privacy_policy_page['title'];
|
1540 |
-
if (!empty($privacy_policy_page['url'])) {
|
1541 |
$privacy_policy_link = ' <a href="' . $privacy_policy_page['url'] . '" target="_blank">' . $privacy_policy_page['title'] . '</a>';
|
1542 |
}
|
1543 |
$row->gdpr_checkbox_text = str_replace('{{privacy_policy}}', $privacy_policy_link, $row->gdpr_checkbox_text);
|
@@ -1644,7 +1667,7 @@ class FMViewForm_maker_fmc {
|
|
1644 |
if ( !$fm_hide_form_after_submit ) {
|
1645 |
$form_maker_front_end .= $form;
|
1646 |
if ( isset($form_theme['HPAlign']) && ($form_theme['HPAlign'] == 'right' || $form_theme['HPAlign'] == 'bottom') ) {
|
1647 |
-
if ( $row->header_title || $row->header_description || $row->header_image_url ) {
|
1648 |
$form_maker_front_end .= '<div class="fm-header-bg"><div class="fm-header ' . $image_pos . '">';
|
1649 |
if ( $form_theme['HIPAlign'] == 'left' || $form_theme['HIPAlign'] == 'top' ) {
|
1650 |
if ( $row->header_image_url ) {
|
139 |
$form_maker_front_end .= '<input type="hidden" id="fm_empty_field_validation' . $form_id . '" value="" name="fm_empty_field_validation' . $form_id . '" data-value="'. md5( WDFMInstance(self::PLUGIN)->prefix .''. $form_id) .'" />';
|
140 |
|
141 |
if ( !$fm_hide_form_after_submit ) {
|
142 |
+
if( $row->header_hide ) {
|
143 |
+
// Form header.
|
144 |
+
$image_pos = isset($form_theme['HIPAlign']) && ($form_theme['HIPAlign'] == 'left' || $form_theme['HIPAlign'] == 'right') ? 'image_left_right' : '';
|
145 |
+
$image_width = isset($form_theme['HIPWidth']) && $form_theme['HIPWidth'] ? 'width="' . $form_theme['HIPWidth'] . 'px"' : '';
|
146 |
+
$image_height = isset($form_theme['HIPHeight']) && $form_theme['HIPHeight'] ? 'height="' . $form_theme['HIPHeight'] . 'px"' : '';
|
147 |
+
$hide_header_image_class = wp_is_mobile() && $row->header_hide_image ? 'fm_hide_mobile' : '';
|
148 |
+
$header_image_animation = $formType == 'embedded' ? $row->header_image_animation : '';
|
149 |
+
if ( !isset($form_theme['HPAlign']) || ($form_theme['HPAlign'] == 'left' || $form_theme['HPAlign'] == 'top') ) {
|
150 |
+
if ( $row->header_title || $row->header_description || $row->header_image_url ) {
|
151 |
+
$form_maker_front_end .= '<div class="fm-header-bg"><div class="fm-header ' . $image_pos . '">';
|
152 |
+
if ( !isset($form_theme['HIPAlign']) || $form_theme['HIPAlign'] == 'left' || $form_theme['HIPAlign'] == 'top' ) {
|
153 |
+
if ( $row->header_image_url ) {
|
154 |
+
$form_maker_front_end .= '<div class="fm-header-img ' . $hide_header_image_class . ' fm-animated ' . $header_image_animation . '"><img src="' . $row->header_image_url . '" ' . $image_width . ' ' . $image_height . '/></div>';
|
155 |
+
}
|
156 |
}
|
157 |
+
if ( $row->header_title || $row->header_description ) {
|
158 |
+
$form_maker_front_end .= '<div class="fm-header-text">
|
159 |
+
<div class="fm-header-title">
|
160 |
+
' . $row->header_title . '
|
161 |
+
</div>
|
162 |
+
<div class="fm-header-description">
|
163 |
+
' . $row->header_description . '
|
164 |
+
</div>
|
165 |
+
</div>';
|
166 |
+
}
|
167 |
+
if ( isset($form_theme['HIPAlign']) && ($form_theme['HIPAlign'] == 'right' || $form_theme['HIPAlign'] == 'bottom') ) {
|
168 |
+
if ( $row->header_image_url ) {
|
169 |
+
$form_maker_front_end .= '<div class="fm-header-img"><img src="' . $row->header_image_url . '" ' . $image_width . ' ' . $image_height . '/></div>';
|
170 |
+
}
|
171 |
}
|
172 |
+
$form_maker_front_end .= '</div></div>';
|
173 |
}
|
|
|
174 |
}
|
175 |
}
|
176 |
}
|
177 |
|
178 |
+
|
179 |
$is_type = array();
|
180 |
$id1s = array();
|
181 |
$types = array();
|
365 |
'w_readonly',
|
366 |
);
|
367 |
}
|
368 |
+
if ( strpos($temp, 'w_class') > -1 ) {
|
369 |
+
$params_names = array(
|
370 |
+
'w_field_label_size',
|
371 |
+
'w_field_label_pos',
|
372 |
+
'w_hide_label',
|
373 |
+
'w_size',
|
374 |
+
'w_first_val',
|
375 |
+
'w_title',
|
376 |
+
'w_required',
|
377 |
+
'w_regExp_status',
|
378 |
+
'w_regExp_value',
|
379 |
+
'w_regExp_common',
|
380 |
+
'w_regExp_arg',
|
381 |
+
'w_regExp_alert',
|
382 |
+
'w_unique',
|
383 |
+
'w_readonly',
|
384 |
+
'w_class',
|
385 |
+
);
|
386 |
+
}
|
387 |
foreach ( $params_names as $params_name ) {
|
388 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
389 |
$param[$params_name] = $temp[0];
|
399 |
$param['w_first_val'] = (isset($_POST['wdform_' . $id1 . '_element' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id])) : $param['w_first_val']);
|
400 |
$param['w_regExp_status'] = (isset($param['w_regExp_status']) ? $param['w_regExp_status'] : "no");
|
401 |
$readonly = (isset($param['w_readonly']) && $param['w_readonly'] == "yes" ? "readonly='readonly'" : '');
|
402 |
+
$param['w_class'] = (isset($param['w_class']) ? $param['w_class'] : "");
|
403 |
$param['id'] = $id1;
|
404 |
+
$param['w_class'] .= ' wd-flex-row wd-align-items-center';
|
405 |
|
406 |
$html = '';
|
407 |
if ( isset($symbol_begin[$id1]) ) {
|
1557 |
}
|
1558 |
|
1559 |
$rep = '';
|
1560 |
+
if ( $row->gdpr_checkbox && $row->gdpr_checkbox_text ) {
|
1561 |
$privacy_policy_page = WDW_FM_Library(self::PLUGIN)->get_privacy_policy_url();
|
1562 |
$privacy_policy_link = $privacy_policy_page['title'];
|
1563 |
+
if ( !empty($privacy_policy_page['url']) ) {
|
1564 |
$privacy_policy_link = ' <a href="' . $privacy_policy_page['url'] . '" target="_blank">' . $privacy_policy_page['title'] . '</a>';
|
1565 |
}
|
1566 |
$row->gdpr_checkbox_text = str_replace('{{privacy_policy}}', $privacy_policy_link, $row->gdpr_checkbox_text);
|
1667 |
if ( !$fm_hide_form_after_submit ) {
|
1668 |
$form_maker_front_end .= $form;
|
1669 |
if ( isset($form_theme['HPAlign']) && ($form_theme['HPAlign'] == 'right' || $form_theme['HPAlign'] == 'bottom') ) {
|
1670 |
+
if ( $row->header_hide && $row->header_title || $row->header_description || $row->header_image_url ) {
|
1671 |
$form_maker_front_end .= '<div class="fm-header-bg"><div class="fm-header ' . $image_pos . '">';
|
1672 |
if ( $form_theme['HIPAlign'] == 'left' || $form_theme['HIPAlign'] == 'top' ) {
|
1673 |
if ( $row->header_image_url ) {
|
js/add_field.js
CHANGED
@@ -15,7 +15,7 @@ jQuery(window).on('load', function () {
|
|
15 |
}
|
16 |
else {
|
17 |
// Do not move.
|
18 |
-
var scrollToTop =
|
19 |
}
|
20 |
jQuery("#add_field_cont").css("top", scrollToTop);
|
21 |
}
|
@@ -181,7 +181,7 @@ function enable2() {
|
|
181 |
jQuery("#field_container").addClass('field_container_full');
|
182 |
}
|
183 |
|
184 |
-
function edit(id) {
|
185 |
if (need_enable) {
|
186 |
enable2();
|
187 |
}
|
@@ -279,7 +279,7 @@ function edit(id) {
|
|
279 |
w_attr_value = atrs[1];
|
280 |
w_readonly = document.getElementById(id + "_readonlyform_id_temp").value;
|
281 |
w_hide_label = document.getElementById(id + "_hide_labelform_id_temp").value;
|
282 |
-
type_text(id, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_regExp_status, w_regExp_value, w_regExp_common, w_regExp_arg, w_regExp_alert, w_unique, w_attr_name, w_attr_value, w_readonly);
|
283 |
break;
|
284 |
}
|
285 |
case 'type_number': {
|
@@ -1320,6 +1320,130 @@ function edit(id) {
|
|
1320 |
break;
|
1321 |
}
|
1322 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1323 |
}
|
1324 |
|
1325 |
function add(key, after_edit, wdid) {
|
@@ -1466,13 +1590,13 @@ function add(key, after_edit, wdid) {
|
|
1466 |
wdform_page = document.getElementById('form_id_tempform_view' + form_view);
|
1467 |
var arrows_body = '<span class="wdform_arrows_basic wdform_arrows_container">' +
|
1468 |
'<span id="edit_' + i + '" valign="middle" class="element_toolbar">' +
|
1469 |
-
'<span title="Edit the field" class="page_toolbar
|
1470 |
'</span>' +
|
1471 |
'<span id="duplicate_' + i + '" valign="middle" class="element_toolbar">' +
|
1472 |
-
'<span title="Duplicate the field" class="page_toolbar
|
1473 |
'</span>' +
|
1474 |
'<span id="X_' + i + '" valign="middle" align="right" class="element_toolbar">' +
|
1475 |
-
'<span title="Remove the field" class="page_toolbar
|
1476 |
'</span>' +
|
1477 |
'</span>';
|
1478 |
wdform_arrows.innerHTML = arrows_body;
|
@@ -1508,7 +1632,6 @@ function add(key, after_edit, wdid) {
|
|
1508 |
nextID = "";
|
1509 |
j = 2;
|
1510 |
}
|
1511 |
-
sortable_columns();
|
1512 |
jQuery(".wdform_arrows").hide();
|
1513 |
close_window();
|
1514 |
all_sortable_events();
|
@@ -1556,7 +1679,7 @@ function add(key, after_edit, wdid) {
|
|
1556 |
form_view_element.setAttribute('previous_class', previous_class);
|
1557 |
form_view_element.setAttribute('previous_checkable', previous_checkable);
|
1558 |
form_view_element.setAttribute('page_title', page_title);
|
1559 |
-
document.getElementById('form_id_tempform_view_img' + i).firstChild.innerHTML = '<span class="
|
1560 |
var input = document.getElementById('_div_between');
|
1561 |
atr = input.attributes;
|
1562 |
for (v = 0; v < 30; v++) {
|
@@ -1575,144 +1698,6 @@ function add(key, after_edit, wdid) {
|
|
1575 |
close_window();
|
1576 |
return;
|
1577 |
}
|
1578 |
-
else {
|
1579 |
-
for (t = form_view_max; t > 0; t--) {
|
1580 |
-
if (document.getElementById('form_id_tempform_view' + t)) {
|
1581 |
-
form_view = t;
|
1582 |
-
break;
|
1583 |
-
}
|
1584 |
-
}
|
1585 |
-
form_view_count = jQuery('.wdform-page-and-images').length;
|
1586 |
-
if (form_view_count == 1) {
|
1587 |
-
var icon_edit = document.createElement("span");
|
1588 |
-
icon_edit.setAttribute('title', 'Edit the pagination options');
|
1589 |
-
icon_edit.setAttribute("class", "page_toolbar dashicons dashicons-edit");
|
1590 |
-
icon_edit.setAttribute("onclick", 'el_page_navigation()');
|
1591 |
-
var edit_page_navigation = document.getElementById("edit_page_navigation");
|
1592 |
-
edit_page_navigation.appendChild(icon_edit);
|
1593 |
-
document.getElementById('page_navigation').appendChild(edit_page_navigation);
|
1594 |
-
}
|
1595 |
-
old_to_gen = form_view;
|
1596 |
-
form_view_max++;
|
1597 |
-
|
1598 |
-
|
1599 |
-
form_view = form_view_max;
|
1600 |
-
|
1601 |
-
if (form_view > 1) {
|
1602 |
-
jQuery(".form_id_tempform_view_img").removeClass('form_view_hide');
|
1603 |
-
}
|
1604 |
-
table = document.createElement('div');
|
1605 |
-
table.setAttribute('class', 'wdform-page-and-images');
|
1606 |
-
table.style.cssText = "display:table; border-top:1px solid black";
|
1607 |
-
form_tempform_view = document.createElement('div');
|
1608 |
-
form_tempform_view.setAttribute('id', 'form_id_tempform_view' + form_view);
|
1609 |
-
form_tempform_view.setAttribute('page_title', 'Untitled Page');
|
1610 |
-
form_tempform_view.setAttribute('class', 'wdform_page');
|
1611 |
-
|
1612 |
-
page_toolbar_wrap = document.createElement('div');
|
1613 |
-
page_toolbar_wrap.setAttribute('id', 'form_id_tempform_view_img' + form_view);
|
1614 |
-
page_toolbar_wrap.setAttribute('class', 'form_id_tempform_view_img');
|
1615 |
-
|
1616 |
-
page_title_div = document.createElement('div');
|
1617 |
-
page_toolbar_wrap.appendChild(page_title_div);
|
1618 |
-
|
1619 |
-
page_toolbar = document.createElement('div');
|
1620 |
-
var icon_show_hide = document.createElement('span');
|
1621 |
-
icon_show_hide.setAttribute('title', 'Show or hide the page');
|
1622 |
-
icon_show_hide.setAttribute("class", "page_toolbar dashicons dashicons-arrow-up-alt2");
|
1623 |
-
icon_show_hide.setAttribute('id', 'show_page_img_' + form_view);
|
1624 |
-
icon_show_hide.setAttribute('onClick', 'show_or_hide("' + form_view + '"); change_show_hide_icon(this);');
|
1625 |
-
|
1626 |
-
var icon_remove = document.createElement("span");
|
1627 |
-
icon_remove.setAttribute('title', 'Delete the page');
|
1628 |
-
icon_remove.setAttribute("class", "page_toolbar dashicons dashicons-no");
|
1629 |
-
icon_remove.setAttribute("onclick", 'remove_page("' + form_view + '")');
|
1630 |
-
|
1631 |
-
var icon_edit = document.createElement("span");
|
1632 |
-
icon_edit.setAttribute('title', 'Edit the page');
|
1633 |
-
icon_edit.setAttribute("class", "page_toolbar dashicons dashicons-edit");
|
1634 |
-
icon_edit.setAttribute("onclick", 'edit_page_break("' + form_view + '")');
|
1635 |
-
|
1636 |
-
page_toolbar.appendChild(icon_remove);
|
1637 |
-
page_toolbar.appendChild(icon_edit);
|
1638 |
-
page_toolbar.appendChild(icon_show_hide);
|
1639 |
-
page_toolbar_wrap.appendChild(page_toolbar);
|
1640 |
-
|
1641 |
-
tr = document.createElement('div');
|
1642 |
-
tr.setAttribute('class', 'wdform_section');
|
1643 |
-
tr_page_nav = document.createElement('div');
|
1644 |
-
tr_page_nav.setAttribute('valign', 'top');
|
1645 |
-
tr_page_nav.setAttribute('class', 'wdform_footer');
|
1646 |
-
tr_page_nav.style.width = "100%";
|
1647 |
-
td_page_nav = document.createElement('div');
|
1648 |
-
td_page_nav.style.width = "100%";
|
1649 |
-
table_min_page_nav = document.createElement('div');
|
1650 |
-
table_min_page_nav.style.width = "100%";
|
1651 |
-
table_min_page_nav.style.display = "table";
|
1652 |
-
tbody_min_page_nav = document.createElement('div');
|
1653 |
-
tbody_min_page_nav.style.display = "table-row-group";
|
1654 |
-
tr_min_page_nav = document.createElement('div');
|
1655 |
-
tr_min_page_nav.setAttribute('id', 'form_id_temppage_nav' + form_view);
|
1656 |
-
tr_min_page_nav.style.display = "table-row";
|
1657 |
-
table_min = document.createElement('div');
|
1658 |
-
table_min.setAttribute('class', 'wdform_column');
|
1659 |
-
table_min1 = document.createElement('div');
|
1660 |
-
table_min1.setAttribute('class', 'wdform_column');
|
1661 |
-
tr.appendChild(table_min);
|
1662 |
-
// tr.appendChild(table_min1);
|
1663 |
-
tbody_min_page_nav.appendChild(tr_min_page_nav);
|
1664 |
-
table_min_page_nav.appendChild(tbody_min_page_nav);
|
1665 |
-
td_page_nav.appendChild(table_min_page_nav);
|
1666 |
-
tr_page_nav.appendChild(td_page_nav);
|
1667 |
-
form_tempform_view.appendChild(tr);
|
1668 |
-
form_tempform_view.appendChild(tr_page_nav);
|
1669 |
-
table.appendChild(page_toolbar_wrap);
|
1670 |
-
table.appendChild(form_tempform_view);
|
1671 |
-
document.getElementById('take').insertBefore(table, document.getElementById("add_field_cont"));
|
1672 |
-
|
1673 |
-
form_view_element = document.getElementById('form_id_tempform_view' + form_view);
|
1674 |
-
page_title = document.getElementById('_div_between').getAttribute('page_title');
|
1675 |
-
next_title = document.getElementById('_div_between').getAttribute('next_title');
|
1676 |
-
next_type = document.getElementById('_div_between').getAttribute('next_type');
|
1677 |
-
next_class = document.getElementById('_div_between').getAttribute('next_class');
|
1678 |
-
next_checkable = document.getElementById('_div_between').getAttribute('next_checkable');
|
1679 |
-
previous_title = document.getElementById('_div_between').getAttribute('previous_title');
|
1680 |
-
previous_type = document.getElementById('_div_between').getAttribute('previous_type');
|
1681 |
-
previous_class = document.getElementById('_div_between').getAttribute('previous_class');
|
1682 |
-
previous_checkable = document.getElementById('_div_between').getAttribute('previous_checkable');
|
1683 |
-
form_view_element.setAttribute('next_title', next_title);
|
1684 |
-
form_view_element.setAttribute('next_type', next_type);
|
1685 |
-
form_view_element.setAttribute('next_class', next_class);
|
1686 |
-
form_view_element.setAttribute('next_checkable', next_checkable);
|
1687 |
-
form_view_element.setAttribute('previous_title', previous_title);
|
1688 |
-
form_view_element.setAttribute('previous_type', previous_type);
|
1689 |
-
form_view_element.setAttribute('previous_class', previous_class);
|
1690 |
-
form_view_element.setAttribute('previous_checkable', previous_checkable);
|
1691 |
-
form_view_element.setAttribute('page_title', page_title);
|
1692 |
-
page_title_div.innerHTML = '<span class="dashicons dashicons-move"></span>' + page_title;
|
1693 |
-
var input = document.getElementById('_div_between');
|
1694 |
-
atr = input.attributes;
|
1695 |
-
for (v = 0; v < 30; v++) {
|
1696 |
-
if (atr[v]) {
|
1697 |
-
if (atr[v].name.indexOf("add_") == 0) {
|
1698 |
-
form_view_element.setAttribute(atr[v].name, atr[v].value);
|
1699 |
-
}
|
1700 |
-
}
|
1701 |
-
}
|
1702 |
-
if (form_view_count == 2) {
|
1703 |
-
generate_page_nav(form_view);
|
1704 |
-
generate_page_nav(old_to_gen);
|
1705 |
-
}
|
1706 |
-
else {
|
1707 |
-
generate_page_nav(form_view);
|
1708 |
-
}
|
1709 |
-
sortable_columns();
|
1710 |
-
jQuery(".wdform_arrows").hide();
|
1711 |
-
draggable_page_break(nextID, form_view_max);
|
1712 |
-
nextID = "";
|
1713 |
-
close_window();
|
1714 |
-
return;
|
1715 |
-
}
|
1716 |
}
|
1717 |
|
1718 |
form_view = 0;
|
@@ -1792,13 +1777,13 @@ function add(key, after_edit, wdid) {
|
|
1792 |
'</span>' +
|
1793 |
'<span class="wdform_arrows_basic wdform_arrows_container">' +
|
1794 |
'<span id="edit_' + i + '" valign="middle" class="element_toolbar">' +
|
1795 |
-
'<span title="Edit the field" class="page_toolbar
|
1796 |
'</span>' +
|
1797 |
'<span id="duplicate_' + i + '" valign="middle" class="element_toolbar">' +
|
1798 |
-
'<span title="Duplicate the field" class="page_toolbar
|
1799 |
'</span>' +
|
1800 |
'<span id="X_' + i + '" valign="middle" align="right" class="element_toolbar">' +
|
1801 |
-
'<span title="Remove the field" class="page_toolbar
|
1802 |
'</span>' +
|
1803 |
'</span>';
|
1804 |
wdform_arrows.innerHTML = arrows_body;
|
@@ -1967,14 +1952,14 @@ function add(key, after_edit, wdid) {
|
|
1967 |
'</span>' +
|
1968 |
'<span class="wdform_arrows_basic wdform_arrows_container">' +
|
1969 |
'<span id="edit_' + i + '" valign="middle" class="element_toolbar">' +
|
1970 |
-
'<span title="Edit the field" class="page_toolbar
|
1971 |
'</span>' +
|
1972 |
(type != "type_captcha" && type != "type_arithmetic_captcha" && type != "type_recaptcha" && type != "type_send_copy" && type != "type_stripe" ?
|
1973 |
'<span id="duplicate_' + i + '" valign="middle" class="element_toolbar">' +
|
1974 |
-
'<span title="Duplicate the field" class="page_toolbar
|
1975 |
'</span>' : '')+
|
1976 |
'<span id="X_' + i + '" valign="middle" align="right" class="element_toolbar">' +
|
1977 |
-
'<span title="Remove the field" class="page_toolbar
|
1978 |
'</span>' +
|
1979 |
'</span>';
|
1980 |
wdform_arrows.innerHTML = arrows_body;
|
@@ -2019,15 +2004,10 @@ function add(key, after_edit, wdid) {
|
|
2019 |
/**
|
2020 |
* Add new field before submit button.
|
2021 |
*/
|
2022 |
-
function move_submit_to_end() {
|
2023 |
-
|
2024 |
-
|
2025 |
-
|
2026 |
-
var child_count = jQuery('.wdform_column').find('[type=type_submit_reset]').parent().parent().children().length;
|
2027 |
-
var submit_field = jQuery('.wdform_column').find('[type=type_submit_reset]').parent();
|
2028 |
-
var submit_field_index = submit_field.index();
|
2029 |
-
if ( child_count - submit_field_index == 1 ) {
|
2030 |
-
return submit_field;
|
2031 |
}
|
2032 |
return false;
|
2033 |
}
|
@@ -2040,17 +2020,18 @@ function move_submit_to_end() {
|
|
2040 |
*/
|
2041 |
function add_field_in_position( nextID, wdform_row ) {
|
2042 |
if( typeof nextID === 'undefined' || nextID === null || nextID == "" ) {
|
2043 |
-
var wdform_col =
|
2044 |
-
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
|
|
2048 |
} else {
|
2049 |
-
|
2050 |
}
|
2051 |
}
|
2052 |
else {
|
2053 |
-
wdform_col.
|
2054 |
}
|
2055 |
}
|
2056 |
else {
|
@@ -2058,6 +2039,8 @@ function add_field_in_position( nextID, wdform_row ) {
|
|
2058 |
wdform_column = beforeTr.parentNode;
|
2059 |
wdform_column.insertBefore( wdform_row, beforeTr );
|
2060 |
}
|
|
|
|
|
2061 |
jQuery("#cur_column").removeAttr("id");
|
2062 |
}
|
2063 |
|
@@ -2179,7 +2162,7 @@ function close_window() {
|
|
2179 |
if (need_enable) {
|
2180 |
popup_ready();
|
2181 |
/* In Firfox and Safari click action is working during the drag and drop also */
|
2182 |
-
jQuery(".add-new-button").attr("onclick","popup_ready(); Enable(); return false;")
|
2183 |
}
|
2184 |
need_enable = true;
|
2185 |
document.getElementById('edit_table').innerHTML = "";
|
@@ -2939,7 +2922,7 @@ function return_attributes(id) {
|
|
2939 |
function go_to_type_text(new_id) {
|
2940 |
w_attr_name = [];
|
2941 |
w_attr_value = [];
|
2942 |
-
type_text(new_id, 'Text', '', 'top', 'no', '', '', '', 'no', 'no', '', '', '', 'Incorrect Value', 'no', w_attr_name, w_attr_value, 'no');
|
2943 |
}
|
2944 |
|
2945 |
function delete_last_child() {
|
@@ -2954,7 +2937,7 @@ function delete_last_child() {
|
|
2954 |
jQuery('#edit_table').empty();
|
2955 |
}
|
2956 |
|
2957 |
-
function type_text(i, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_regExp_status, w_regExp_value, w_regExp_common, w_regExp_arg, w_regExp_alert, w_unique, w_attr_name, w_attr_value, w_readonly) {
|
2958 |
jQuery("#element_type").val("type_text");
|
2959 |
delete_last_child();
|
2960 |
|
@@ -2981,6 +2964,7 @@ function type_text(i, w_field_label, w_field_label_size, w_field_label_pos, w_hi
|
|
2981 |
advanced_options_container.append(create_custom_regexp(i, w_regExp_status, w_regExp_value));
|
2982 |
advanced_options_container.append(create_case_sensitive(i, w_regExp_status, w_regExp_arg));
|
2983 |
advanced_options_container.append(create_alert_message(i, w_regExp_status, w_regExp_alert));
|
|
|
2984 |
advanced_options_container.append(create_additional_attributes(i, w_attr_name, 'type_text'));
|
2985 |
|
2986 |
// Preview
|
@@ -3123,7 +3107,7 @@ function type_text(i, w_field_label, w_field_label_size, w_field_label_pos, w_hi
|
|
3123 |
|
3124 |
if (w_field_label_pos == "top")
|
3125 |
label_top(i);
|
3126 |
-
|
3127 |
refresh_attr(i, 'type_text');
|
3128 |
}
|
3129 |
|
@@ -4455,7 +4439,7 @@ function create_select_options(i, w_value_disabled, w_choices, w_choices_params,
|
|
4455 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + j + '_remove" onClick="remove_option(' + j + ', ' + i + ')"></span>' +
|
4456 |
'</div>' +
|
4457 |
'<div class="fm-table-col fm-width-10">' +
|
4458 |
-
'<span class="fm-move-attribute
|
4459 |
'</div>' +
|
4460 |
'<input type="hidden" class="el_option_params" id="el_option_params' + j + '" value="' + w_choices_params[j] + '" />' +
|
4461 |
'</div>');
|
@@ -4491,7 +4475,7 @@ function add_choise(type, num) {
|
|
4491 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_choices' + max_value + '_remove" onClick="remove_choise(' + max_value + ',' + num + ',\'' + type + '\')"></span>' +
|
4492 |
'</div>' +
|
4493 |
'<div class="fm-table-col fm-width-10">' +
|
4494 |
-
'<span class="fm-move-attribute
|
4495 |
'</div>' +
|
4496 |
'</div>');
|
4497 |
attr_table.append(attr);
|
@@ -4519,7 +4503,7 @@ function add_choise(type, num) {
|
|
4519 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_option(' + max_value + ', ' + num + ')"></span>' +
|
4520 |
'</div>' +
|
4521 |
'<div class="fm-table-col fm-width-10">' +
|
4522 |
-
'<span class="fm-move-attribute
|
4523 |
'</div>' +
|
4524 |
'<input type="hidden" id="el_option_params' + max_value + '" class="el_option_params" value=""></div>');
|
4525 |
attr_table.append(attr);
|
@@ -5073,7 +5057,7 @@ function set_allow_other(num, type) {
|
|
5073 |
'<div class="fm-table-col fm-width-10">' +
|
5074 |
'</div>' +
|
5075 |
'<div class="fm-table-col fm-width-10">' +
|
5076 |
-
'<span class="fm-move-attribute
|
5077 |
'</div>' +
|
5078 |
'</div>');
|
5079 |
attr_table.append(attr);
|
@@ -5109,7 +5093,7 @@ function create_radio_options(i, w_value_disabled, w_choices, w_choices_params,
|
|
5109 |
(w_allow_other == "yes" && j == w_allow_other_num ? '' : '<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_choices' + j + '_remove" onClick="remove_choise(' + j + ',' + i + ',\'' + type + '\')"></span>') +
|
5110 |
'</div>' +
|
5111 |
'<div class="fm-table-col fm-width-10">' +
|
5112 |
-
'<span class="fm-move-attribute
|
5113 |
'</div>' +
|
5114 |
'</div>');
|
5115 |
attr_table.append(attr);
|
@@ -8673,7 +8657,7 @@ function create_paypal_select_options(i, w_choices, w_choices_params, w_choices_
|
|
8673 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + j + '_remove" onClick="remove_option_price(' + j + ',' + i + ')"></span>' +
|
8674 |
'</div>' +
|
8675 |
'<div class="fm-table-col fm-width-10">' +
|
8676 |
-
'<span class="fm-move-attribute
|
8677 |
'</div>' +
|
8678 |
'</div>');
|
8679 |
attr_table.append(attr);
|
@@ -8810,7 +8794,7 @@ function add_choise_price(type, num) {
|
|
8810 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_choise_price(' + max_value + ',' + num + ')"></span>' +
|
8811 |
'</div>' +
|
8812 |
'<div class="fm-table-col fm-width-10">' +
|
8813 |
-
'<span class="fm-move-attribute
|
8814 |
'</div>' +
|
8815 |
'</div>');
|
8816 |
attr_table.append(attr);
|
@@ -8838,7 +8822,7 @@ function add_choise_price(type, num) {
|
|
8838 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_option_price(' + max_value + ',' + num + ')"></span>' +
|
8839 |
'</div>' +
|
8840 |
'<div class="fm-table-col fm-width-10">' +
|
8841 |
-
'<span class="fm-move-attribute
|
8842 |
'</div>' +
|
8843 |
'</div>');
|
8844 |
attr_table.append(attr);
|
@@ -8957,7 +8941,7 @@ function add_properties(id, w_property, w_property_values) {
|
|
8957 |
li_edit.setAttribute("class", "thickbox-preview");
|
8958 |
|
8959 |
var li_edit_img = document.createElement('span');
|
8960 |
-
li_edit_img.setAttribute("class", 'fm-edit-attribute
|
8961 |
li_edit.appendChild(li_edit_img);
|
8962 |
|
8963 |
var li_x = document.createElement('span');
|
@@ -9295,7 +9279,7 @@ function create_paypal_radio_options(i, w_choices, w_choices_params, w_choices_p
|
|
9295 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + j + '_remove" onClick="remove_choise_price(' + j + ',' + i + ')"></span>' +
|
9296 |
'</div>' +
|
9297 |
'<div class="fm-table-col fm-width-10">' +
|
9298 |
-
'<span class="fm-move-attribute
|
9299 |
'</div>' +
|
9300 |
'</div>');
|
9301 |
attr_table.append(attr);
|
@@ -14610,10 +14594,6 @@ function type_page_navigation(w_type, w_show_title, w_show_numbers, w_attr_name,
|
|
14610 |
td2.setAttribute("width", "100%");
|
14611 |
|
14612 |
var br1 = document.createElement('br');
|
14613 |
-
var br2 = document.createElement('br');
|
14614 |
-
var br3 = document.createElement('br');
|
14615 |
-
var br4 = document.createElement('br');
|
14616 |
-
// table_little -@ sarqaca tbody table_little darela table_little_t
|
14617 |
|
14618 |
var pages_div = document.createElement('div');
|
14619 |
pages_div.setAttribute("align", "left");
|
@@ -14726,6 +14706,7 @@ function gen_form_fields() {
|
|
14726 |
form_fields += w_regExp_alert + "*:*w_regExp_alert*:*";
|
14727 |
form_fields += w_unique + "*:*w_unique*:*";
|
14728 |
form_fields += w_readonly + "*:*w_readonly*:*";
|
|
|
14729 |
for (j = 0; j < w_attr_name.length; j++) {
|
14730 |
form_fields += w_attr_name[j] + "=" + w_attr_value[j] + "*:*w_attr_name*:*";
|
14731 |
}
|
15 |
}
|
16 |
else {
|
17 |
// Do not move.
|
18 |
+
var scrollToTop = 10;
|
19 |
}
|
20 |
jQuery("#add_field_cont").css("top", scrollToTop);
|
21 |
}
|
181 |
jQuery("#field_container").addClass('field_container_full');
|
182 |
}
|
183 |
|
184 |
+
function edit(id, e) {
|
185 |
if (need_enable) {
|
186 |
enable2();
|
187 |
}
|
279 |
w_attr_value = atrs[1];
|
280 |
w_readonly = document.getElementById(id + "_readonlyform_id_temp").value;
|
281 |
w_hide_label = document.getElementById(id + "_hide_labelform_id_temp").value;
|
282 |
+
type_text(id, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_regExp_status, w_regExp_value, w_regExp_common, w_regExp_arg, w_regExp_alert, w_unique, w_attr_name, w_attr_value, w_readonly, w_class);
|
283 |
break;
|
284 |
}
|
285 |
case 'type_number': {
|
1320 |
break;
|
1321 |
}
|
1322 |
}
|
1323 |
+
if ( typeof e != "undefined" ) {
|
1324 |
+
e.stopPropagation();
|
1325 |
+
e.preventDefault();
|
1326 |
+
}
|
1327 |
+
}
|
1328 |
+
|
1329 |
+
function fm_add_page() {
|
1330 |
+
for (t = form_view_max; t > 0; t--) {
|
1331 |
+
if (document.getElementById('form_id_tempform_view' + t)) {
|
1332 |
+
form_view = t;
|
1333 |
+
break;
|
1334 |
+
}
|
1335 |
+
}
|
1336 |
+
form_view_count = jQuery('.wdform-page-and-images').length;
|
1337 |
+
if (form_view_count == 1) {
|
1338 |
+
var icon_edit = document.createElement("span");
|
1339 |
+
icon_edit.setAttribute('title', 'Edit the pagination options');
|
1340 |
+
icon_edit.setAttribute("class", "page_toolbar fm-ico-edit");
|
1341 |
+
icon_edit.setAttribute("onclick", 'el_page_navigation()');
|
1342 |
+
var edit_page_navigation = document.getElementById("edit_page_navigation");
|
1343 |
+
edit_page_navigation.appendChild(icon_edit);
|
1344 |
+
document.getElementById('page_navigation').appendChild(edit_page_navigation);
|
1345 |
+
}
|
1346 |
+
jQuery('#page_bar').removeClass('form_view_hide');
|
1347 |
+
old_to_gen = form_view;
|
1348 |
+
form_view_max++;
|
1349 |
+
|
1350 |
+
form_view = form_view_max;
|
1351 |
+
|
1352 |
+
if (form_view > 1) {
|
1353 |
+
jQuery(".form_id_tempform_view_img").removeClass('form_view_hide');
|
1354 |
+
}
|
1355 |
+
table = document.createElement('div');
|
1356 |
+
table.setAttribute('class', 'wdform-page-and-images fm-form-builder');
|
1357 |
+
form_tempform_view = document.createElement('div');
|
1358 |
+
form_tempform_view.setAttribute('id', 'form_id_tempform_view' + form_view);
|
1359 |
+
form_tempform_view.setAttribute('page_title', 'Untitled Page');
|
1360 |
+
form_tempform_view.setAttribute('class', 'wdform_page');
|
1361 |
+
|
1362 |
+
page_toolbar_wrap = document.createElement('div');
|
1363 |
+
page_toolbar_wrap.setAttribute('id', 'form_id_tempform_view_img' + form_view);
|
1364 |
+
page_toolbar_wrap.setAttribute('class', 'form_id_tempform_view_img');
|
1365 |
+
|
1366 |
+
page_title_div = document.createElement('div');
|
1367 |
+
page_title_div.setAttribute('class', 'wdform_page_title');
|
1368 |
+
page_toolbar_wrap.appendChild(page_title_div);
|
1369 |
+
|
1370 |
+
page_toolbar = document.createElement('div');
|
1371 |
+
var icon_show_hide = document.createElement('span');
|
1372 |
+
icon_show_hide.setAttribute('title', 'Show or hide the page');
|
1373 |
+
icon_show_hide.setAttribute("class", "page_toolbar fm-ico-collapse");
|
1374 |
+
icon_show_hide.setAttribute('id', 'show_page_img_' + form_view);
|
1375 |
+
icon_show_hide.setAttribute('onClick', 'show_or_hide("' + form_view + '"); change_show_hide_icon(this);');
|
1376 |
+
|
1377 |
+
var icon_remove = document.createElement("span");
|
1378 |
+
icon_remove.setAttribute('title', 'Delete the page');
|
1379 |
+
icon_remove.setAttribute("class", "page_toolbar fm-ico-delete");
|
1380 |
+
icon_remove.setAttribute("onclick", 'remove_page("' + form_view + '")');
|
1381 |
+
|
1382 |
+
var icon_edit = document.createElement("span");
|
1383 |
+
icon_edit.setAttribute('title', 'Edit the page');
|
1384 |
+
icon_edit.setAttribute("class", "page_toolbar fm-ico-edit");
|
1385 |
+
icon_edit.setAttribute("onclick", 'edit_page_break("' + form_view + '")');
|
1386 |
+
|
1387 |
+
page_toolbar.appendChild(icon_remove);
|
1388 |
+
page_toolbar.appendChild(icon_edit);
|
1389 |
+
page_toolbar.appendChild(icon_show_hide);
|
1390 |
+
page_toolbar_wrap.appendChild(page_toolbar);
|
1391 |
+
|
1392 |
+
tr = document.createElement('div');
|
1393 |
+
tr.setAttribute('class', 'wdform_section');
|
1394 |
+
tr_page_nav = document.createElement('div');
|
1395 |
+
tr_page_nav.setAttribute('valign', 'top');
|
1396 |
+
tr_page_nav.setAttribute('class', 'wdform_footer');
|
1397 |
+
tr_page_nav.style.width = "100%";
|
1398 |
+
td_page_nav = document.createElement('div');
|
1399 |
+
td_page_nav.style.width = "100%";
|
1400 |
+
table_min_page_nav = document.createElement('div');
|
1401 |
+
table_min_page_nav.style.width = "100%";
|
1402 |
+
table_min_page_nav.style.display = "table";
|
1403 |
+
tbody_min_page_nav = document.createElement('div');
|
1404 |
+
tbody_min_page_nav.style.display = "table-row-group";
|
1405 |
+
tr_min_page_nav = document.createElement('div');
|
1406 |
+
tr_min_page_nav.setAttribute('id', 'form_id_temppage_nav' + form_view);
|
1407 |
+
tr_min_page_nav.style.display = "table-row";
|
1408 |
+
table_min = document.createElement('div');
|
1409 |
+
table_min.setAttribute('class', 'wdform_column');
|
1410 |
+
table_min1 = document.createElement('div');
|
1411 |
+
table_min1.setAttribute('class', 'wdform_column');
|
1412 |
+
tr.appendChild(table_min);
|
1413 |
+
// tr.appendChild(table_min1);
|
1414 |
+
tbody_min_page_nav.appendChild(tr_min_page_nav);
|
1415 |
+
table_min_page_nav.appendChild(tbody_min_page_nav);
|
1416 |
+
td_page_nav.appendChild(table_min_page_nav);
|
1417 |
+
tr_page_nav.appendChild(td_page_nav);
|
1418 |
+
form_tempform_view.appendChild(tr);
|
1419 |
+
form_tempform_view.appendChild(tr_page_nav);
|
1420 |
+
table.appendChild(page_toolbar_wrap);
|
1421 |
+
table.appendChild(form_tempform_view);
|
1422 |
+
document.getElementById('take').insertBefore(table, document.getElementById("add_field_cont"));
|
1423 |
+
|
1424 |
+
form_view_element = document.getElementById('form_id_tempform_view' + form_view);
|
1425 |
+
form_view_element.setAttribute('next_title', 'Next');
|
1426 |
+
form_view_element.setAttribute('next_type', 'text');
|
1427 |
+
form_view_element.setAttribute('next_class', 'wdform-page-button');
|
1428 |
+
form_view_element.setAttribute('next_checkable', 'true');
|
1429 |
+
form_view_element.setAttribute('previous_title', 'Previous');
|
1430 |
+
form_view_element.setAttribute('previous_type', 'text');
|
1431 |
+
form_view_element.setAttribute('previous_class', 'wdform-page-button');
|
1432 |
+
form_view_element.setAttribute('previous_checkable', 'false');
|
1433 |
+
form_view_element.setAttribute('page_title', 'Untitled Page');
|
1434 |
+
page_title_div.innerHTML = '<span class="fm-ico-draggable"></span>Untitled Page';
|
1435 |
+
if (form_view_count == 2) {
|
1436 |
+
generate_page_nav(form_view);
|
1437 |
+
generate_page_nav(old_to_gen);
|
1438 |
+
}
|
1439 |
+
else {
|
1440 |
+
generate_page_nav(form_view);
|
1441 |
+
}
|
1442 |
+
all_sortable_events();
|
1443 |
+
jQuery(".wdform_arrows").hide();
|
1444 |
+
draggable_page_break(nextID, form_view_max);
|
1445 |
+
nextID = "";
|
1446 |
+
form_view_element.scrollIntoView();
|
1447 |
}
|
1448 |
|
1449 |
function add(key, after_edit, wdid) {
|
1590 |
wdform_page = document.getElementById('form_id_tempform_view' + form_view);
|
1591 |
var arrows_body = '<span class="wdform_arrows_basic wdform_arrows_container">' +
|
1592 |
'<span id="edit_' + i + '" valign="middle" class="element_toolbar">' +
|
1593 |
+
'<span title="Edit the field" class="page_toolbar fm-ico-edit" ontouchend="edit("' + i + '", event)" onclick="edit("' + i + '", event)"></span>' +
|
1594 |
'</span>' +
|
1595 |
'<span id="duplicate_' + i + '" valign="middle" class="element_toolbar">' +
|
1596 |
+
'<span title="Duplicate the field" class="page_toolbar fm-ico-duplicate" ontouchend="duplicate("' + i + '", event)" onclick="duplicate("' + i + '", event)"></span>' +
|
1597 |
'</span>' +
|
1598 |
'<span id="X_' + i + '" valign="middle" align="right" class="element_toolbar">' +
|
1599 |
+
'<span title="Remove the field" class="page_toolbar fm-ico-delete" onclick="remove_section_break("' + i + '")"></span>' +
|
1600 |
'</span>' +
|
1601 |
'</span>';
|
1602 |
wdform_arrows.innerHTML = arrows_body;
|
1632 |
nextID = "";
|
1633 |
j = 2;
|
1634 |
}
|
|
|
1635 |
jQuery(".wdform_arrows").hide();
|
1636 |
close_window();
|
1637 |
all_sortable_events();
|
1679 |
form_view_element.setAttribute('previous_class', previous_class);
|
1680 |
form_view_element.setAttribute('previous_checkable', previous_checkable);
|
1681 |
form_view_element.setAttribute('page_title', page_title);
|
1682 |
+
document.getElementById('form_id_tempform_view_img' + i).firstChild.innerHTML = '<span class="fm-ico-draggable"></span>' + page_title;
|
1683 |
var input = document.getElementById('_div_between');
|
1684 |
atr = input.attributes;
|
1685 |
for (v = 0; v < 30; v++) {
|
1698 |
close_window();
|
1699 |
return;
|
1700 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1701 |
}
|
1702 |
|
1703 |
form_view = 0;
|
1777 |
'</span>' +
|
1778 |
'<span class="wdform_arrows_basic wdform_arrows_container">' +
|
1779 |
'<span id="edit_' + i + '" valign="middle" class="element_toolbar">' +
|
1780 |
+
'<span title="Edit the field" class="page_toolbar fm-ico-edit" ontouchend="edit("' + i + '", event)" onclick="edit("' + i + '", event)"></span>' +
|
1781 |
'</span>' +
|
1782 |
'<span id="duplicate_' + i + '" valign="middle" class="element_toolbar">' +
|
1783 |
+
'<span title="Duplicate the field" class="page_toolbar fm-ico-duplicate" ontouchend="duplicate(duplicate("' + i + '", event))" onclick="duplicate("' + i + '", event)"></span>' +
|
1784 |
'</span>' +
|
1785 |
'<span id="X_' + i + '" valign="middle" align="right" class="element_toolbar">' +
|
1786 |
+
'<span title="Remove the field" class="page_toolbar fm-ico-delete" ontouchend="remove_field("' + i + '", event)" onclick="remove_field("' + i + '", event)"></span>' +
|
1787 |
'</span>' +
|
1788 |
'</span>';
|
1789 |
wdform_arrows.innerHTML = arrows_body;
|
1952 |
'</span>' +
|
1953 |
'<span class="wdform_arrows_basic wdform_arrows_container">' +
|
1954 |
'<span id="edit_' + i + '" valign="middle" class="element_toolbar">' +
|
1955 |
+
'<span title="Edit the field" class="page_toolbar fm-ico-edit" ontouchend="edit("' + i + '", event)" onclick="edit("' + i + '", event)"></span>' +
|
1956 |
'</span>' +
|
1957 |
(type != "type_captcha" && type != "type_arithmetic_captcha" && type != "type_recaptcha" && type != "type_send_copy" && type != "type_stripe" ?
|
1958 |
'<span id="duplicate_' + i + '" valign="middle" class="element_toolbar">' +
|
1959 |
+
'<span title="Duplicate the field" class="page_toolbar fm-ico-duplicate" ontouchend="duplicate("' + i + '", event)" onclick="duplicate("' + i + '", event)"></span>' +
|
1960 |
'</span>' : '')+
|
1961 |
'<span id="X_' + i + '" valign="middle" align="right" class="element_toolbar">' +
|
1962 |
+
'<span title="Remove the field" class="page_toolbar fm-ico-delete" ontouchend="remove_field("' + i + '", event)" onclick="remove_field("' + i + '", event)"></span>' +
|
1963 |
'</span>' +
|
1964 |
'</span>';
|
1965 |
wdform_arrows.innerHTML = arrows_body;
|
2004 |
/**
|
2005 |
* Add new field before submit button.
|
2006 |
*/
|
2007 |
+
function move_submit_to_end(column) {
|
2008 |
+
var last_child = jQuery(column).children(':not(.fm-hidden)').last();
|
2009 |
+
if (last_child.find('[type=type_submit_reset]').length) {
|
2010 |
+
return last_child;
|
|
|
|
|
|
|
|
|
|
|
2011 |
}
|
2012 |
return false;
|
2013 |
}
|
2020 |
*/
|
2021 |
function add_field_in_position( nextID, wdform_row ) {
|
2022 |
if( typeof nextID === 'undefined' || nextID === null || nextID == "" ) {
|
2023 |
+
var wdform_col = jQuery('#cur_column'); // getting current column for insert
|
2024 |
+
if ( wdform_col.val() == 1 ) { // when add field button submitted not moved
|
2025 |
+
var column = jQuery('<div class="wdform_column"></div>').append(wdform_row);
|
2026 |
+
var submit_button_parent = move_submit_to_end(wdform_col);
|
2027 |
+
if ( submit_button_parent !== false ) {
|
2028 |
+
jQuery(column).insertBefore( submit_button_parent );
|
2029 |
} else {
|
2030 |
+
wdform_col.append(column);
|
2031 |
}
|
2032 |
}
|
2033 |
else {
|
2034 |
+
wdform_col.append(wdform_row);
|
2035 |
}
|
2036 |
}
|
2037 |
else {
|
2039 |
wdform_column = beforeTr.parentNode;
|
2040 |
wdform_column.insertBefore( wdform_row, beforeTr );
|
2041 |
}
|
2042 |
+
|
2043 |
+
jQuery(window).scrollTop(jQuery(wdform_row).offset().top - 100);
|
2044 |
jQuery("#cur_column").removeAttr("id");
|
2045 |
}
|
2046 |
|
2162 |
if (need_enable) {
|
2163 |
popup_ready();
|
2164 |
/* In Firfox and Safari click action is working during the drag and drop also */
|
2165 |
+
/*jQuery(".add-new-button").attr("onclick","popup_ready(); Enable(); return false;");*/
|
2166 |
}
|
2167 |
need_enable = true;
|
2168 |
document.getElementById('edit_table').innerHTML = "";
|
2922 |
function go_to_type_text(new_id) {
|
2923 |
w_attr_name = [];
|
2924 |
w_attr_value = [];
|
2925 |
+
type_text(new_id, 'Text', '', 'top', 'no', '', '', '', 'no', 'no', '', '', '', 'Incorrect Value', 'no', w_attr_name, w_attr_value, 'no', '');
|
2926 |
}
|
2927 |
|
2928 |
function delete_last_child() {
|
2937 |
jQuery('#edit_table').empty();
|
2938 |
}
|
2939 |
|
2940 |
+
function type_text(i, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_regExp_status, w_regExp_value, w_regExp_common, w_regExp_arg, w_regExp_alert, w_unique, w_attr_name, w_attr_value, w_readonly, w_class) {
|
2941 |
jQuery("#element_type").val("type_text");
|
2942 |
delete_last_child();
|
2943 |
|
2964 |
advanced_options_container.append(create_custom_regexp(i, w_regExp_status, w_regExp_value));
|
2965 |
advanced_options_container.append(create_case_sensitive(i, w_regExp_status, w_regExp_arg));
|
2966 |
advanced_options_container.append(create_alert_message(i, w_regExp_status, w_regExp_alert));
|
2967 |
+
advanced_options_container.append(create_class(i, w_class));
|
2968 |
advanced_options_container.append(create_additional_attributes(i, w_attr_name, 'type_text'));
|
2969 |
|
2970 |
// Preview
|
3107 |
|
3108 |
if (w_field_label_pos == "top")
|
3109 |
label_top(i);
|
3110 |
+
change_class(w_class, i);
|
3111 |
refresh_attr(i, 'type_text');
|
3112 |
}
|
3113 |
|
4439 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + j + '_remove" onClick="remove_option(' + j + ', ' + i + ')"></span>' +
|
4440 |
'</div>' +
|
4441 |
'<div class="fm-table-col fm-width-10">' +
|
4442 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
4443 |
'</div>' +
|
4444 |
'<input type="hidden" class="el_option_params" id="el_option_params' + j + '" value="' + w_choices_params[j] + '" />' +
|
4445 |
'</div>');
|
4475 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_choices' + max_value + '_remove" onClick="remove_choise(' + max_value + ',' + num + ',\'' + type + '\')"></span>' +
|
4476 |
'</div>' +
|
4477 |
'<div class="fm-table-col fm-width-10">' +
|
4478 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
4479 |
'</div>' +
|
4480 |
'</div>');
|
4481 |
attr_table.append(attr);
|
4503 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_option(' + max_value + ', ' + num + ')"></span>' +
|
4504 |
'</div>' +
|
4505 |
'<div class="fm-table-col fm-width-10">' +
|
4506 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
4507 |
'</div>' +
|
4508 |
'<input type="hidden" id="el_option_params' + max_value + '" class="el_option_params" value=""></div>');
|
4509 |
attr_table.append(attr);
|
5057 |
'<div class="fm-table-col fm-width-10">' +
|
5058 |
'</div>' +
|
5059 |
'<div class="fm-table-col fm-width-10">' +
|
5060 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
5061 |
'</div>' +
|
5062 |
'</div>');
|
5063 |
attr_table.append(attr);
|
5093 |
(w_allow_other == "yes" && j == w_allow_other_num ? '' : '<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_choices' + j + '_remove" onClick="remove_choise(' + j + ',' + i + ',\'' + type + '\')"></span>') +
|
5094 |
'</div>' +
|
5095 |
'<div class="fm-table-col fm-width-10">' +
|
5096 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
5097 |
'</div>' +
|
5098 |
'</div>');
|
5099 |
attr_table.append(attr);
|
8657 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + j + '_remove" onClick="remove_option_price(' + j + ',' + i + ')"></span>' +
|
8658 |
'</div>' +
|
8659 |
'<div class="fm-table-col fm-width-10">' +
|
8660 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
8661 |
'</div>' +
|
8662 |
'</div>');
|
8663 |
attr_table.append(attr);
|
8794 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_choise_price(' + max_value + ',' + num + ')"></span>' +
|
8795 |
'</div>' +
|
8796 |
'<div class="fm-table-col fm-width-10">' +
|
8797 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
8798 |
'</div>' +
|
8799 |
'</div>');
|
8800 |
attr_table.append(attr);
|
8822 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + max_value + '_remove" onClick="remove_option_price(' + max_value + ',' + num + ')"></span>' +
|
8823 |
'</div>' +
|
8824 |
'<div class="fm-table-col fm-width-10">' +
|
8825 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
8826 |
'</div>' +
|
8827 |
'</div>');
|
8828 |
attr_table.append(attr);
|
8941 |
li_edit.setAttribute("class", "thickbox-preview");
|
8942 |
|
8943 |
var li_edit_img = document.createElement('span');
|
8944 |
+
li_edit_img.setAttribute("class", 'fm-edit-attribute fm-ico-edit');
|
8945 |
li_edit.appendChild(li_edit_img);
|
8946 |
|
8947 |
var li_x = document.createElement('span');
|
9279 |
'<span class="fm-remove-attribute dashicons dashicons-dismiss" id="el_option' + j + '_remove" onClick="remove_choise_price(' + j + ',' + i + ')"></span>' +
|
9280 |
'</div>' +
|
9281 |
'<div class="fm-table-col fm-width-10">' +
|
9282 |
+
'<span class="fm-move-attribute fm-ico-draggable el_choices_sortable"></span>' +
|
9283 |
'</div>' +
|
9284 |
'</div>');
|
9285 |
attr_table.append(attr);
|
14594 |
td2.setAttribute("width", "100%");
|
14595 |
|
14596 |
var br1 = document.createElement('br');
|
|
|
|
|
|
|
|
|
14597 |
|
14598 |
var pages_div = document.createElement('div');
|
14599 |
pages_div.setAttribute("align", "left");
|
14706 |
form_fields += w_regExp_alert + "*:*w_regExp_alert*:*";
|
14707 |
form_fields += w_unique + "*:*w_unique*:*";
|
14708 |
form_fields += w_readonly + "*:*w_readonly*:*";
|
14709 |
+
form_fields += w_class + "*:*w_class*:*";
|
14710 |
for (j = 0; j < w_attr_name.length; j++) {
|
14711 |
form_fields += w_attr_name[j] + "=" + w_attr_value[j] + "*:*w_attr_name*:*";
|
14712 |
}
|
js/form_maker_admin.js
CHANGED
@@ -1,6 +1,16 @@
|
|
1 |
-
jQuery(document).ready
|
|
|
|
|
|
|
2 |
jQuery('#fm_loading').hide();
|
3 |
-
jQuery('#fm_admin_container').
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
// Set click action to add new buttons.
|
5 |
jQuery(".wd-header a").on("click", function () {
|
6 |
jQuery("input[name='task']").val("add");
|
@@ -14,10 +24,10 @@ jQuery(document).ready(function () {
|
|
14 |
jQuery(this).datepicker();
|
15 |
jQuery(this).datepicker("option", "dateFormat", jQuery(this).data("format"));
|
16 |
});
|
17 |
-
|
18 |
-
|
19 |
jQuery(".hndle:not(.readonly), .handlediv").each(function () {
|
20 |
-
jQuery(this).on("click", function () {
|
21 |
fm_toggle_postbox(this);
|
22 |
});
|
23 |
});
|
@@ -33,7 +43,7 @@ jQuery(document).ready(function () {
|
|
33 |
|
34 |
fm_disabled_uninstall_btn();
|
35 |
jQuery('.fm-uninstall-form #check_yes').on("click", function () {
|
36 |
-
|
37 |
});
|
38 |
|
39 |
/* Add tooltip to elements with "wd-info" class. */
|
@@ -80,7 +90,7 @@ jQuery(document).ready(function () {
|
|
80 |
}
|
81 |
});
|
82 |
}
|
83 |
-
}
|
84 |
|
85 |
function wd_insert_placeholder(id, placeholder) {
|
86 |
var field = document.getElementById(id);
|
@@ -678,7 +688,7 @@ function fm_toggle_pages(that) {
|
|
678 |
|
679 |
function fm_apply_options(task) {
|
680 |
fm_set_input_value('task', task);
|
681 |
-
document.getElementById('
|
682 |
}
|
683 |
|
684 |
function pp_live_search(input, delay, full_content) {
|
@@ -1001,7 +1011,6 @@ function show_stats() {
|
|
1001 |
error: function (err) {},
|
1002 |
success: function (response) {
|
1003 |
jQuery('.fm-div_stats-loading').removeClass('is-active');
|
1004 |
-
console.log(response.html);
|
1005 |
if(response.html){
|
1006 |
jQuery('#div_stats').html(response.html);
|
1007 |
}
|
@@ -1018,6 +1027,10 @@ function fm_loading_show() {
|
|
1018 |
}
|
1019 |
function fm_loading_hide() {
|
1020 |
jQuery('#fm_loading').hide();
|
|
|
|
|
|
|
|
|
1021 |
}
|
1022 |
|
1023 |
/**
|
1 |
+
jQuery(document).on('ready fm_tab_loaded, ready fm_tab_email_loaded', function () {
|
2 |
+
fm_admin_ready();
|
3 |
+
});
|
4 |
+
jQuery(window).on('load', function () {
|
5 |
jQuery('#fm_loading').hide();
|
6 |
+
jQuery('#fm_admin_container').show();
|
7 |
+
if ( typeof add_scroll_width == 'function' ) {
|
8 |
+
add_scroll_width();
|
9 |
+
}
|
10 |
+
set_no_items();
|
11 |
+
});
|
12 |
+
|
13 |
+
function fm_admin_ready() {
|
14 |
// Set click action to add new buttons.
|
15 |
jQuery(".wd-header a").on("click", function () {
|
16 |
jQuery("input[name='task']").val("add");
|
24 |
jQuery(this).datepicker();
|
25 |
jQuery(this).datepicker("option", "dateFormat", jQuery(this).data("format"));
|
26 |
});
|
27 |
+
|
28 |
+
// Open/close section container on its header click.
|
29 |
jQuery(".hndle:not(.readonly), .handlediv").each(function () {
|
30 |
+
jQuery(this).off('click').on("click", function () {
|
31 |
fm_toggle_postbox(this);
|
32 |
});
|
33 |
});
|
43 |
|
44 |
fm_disabled_uninstall_btn();
|
45 |
jQuery('.fm-uninstall-form #check_yes').on("click", function () {
|
46 |
+
fm_disabled_uninstall_btn();
|
47 |
});
|
48 |
|
49 |
/* Add tooltip to elements with "wd-info" class. */
|
90 |
}
|
91 |
});
|
92 |
}
|
93 |
+
}
|
94 |
|
95 |
function wd_insert_placeholder(id, placeholder) {
|
96 |
var field = document.getElementById(id);
|
688 |
|
689 |
function fm_apply_options(task) {
|
690 |
fm_set_input_value('task', task);
|
691 |
+
document.getElementById('manage_form').submit();
|
692 |
}
|
693 |
|
694 |
function pp_live_search(input, delay, full_content) {
|
1011 |
error: function (err) {},
|
1012 |
success: function (response) {
|
1013 |
jQuery('.fm-div_stats-loading').removeClass('is-active');
|
|
|
1014 |
if(response.html){
|
1015 |
jQuery('#div_stats').html(response.html);
|
1016 |
}
|
1027 |
}
|
1028 |
function fm_loading_hide() {
|
1029 |
jQuery('#fm_loading').hide();
|
1030 |
+
if ( typeof add_scroll_width == 'function' ) {
|
1031 |
+
add_scroll_width();
|
1032 |
+
}
|
1033 |
+
set_no_items();
|
1034 |
}
|
1035 |
|
1036 |
/**
|
js/form_maker_form_advanced_layout.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
var editor
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
if (custom_front == '') {
|
10 |
custom_front = form_front;
|
11 |
}
|
1 |
+
var editor;
|
2 |
+
jQuery(document).on('fm_tab_layout_loaded', function () {
|
3 |
+
editor = CodeMirror.fromTextArea(document.getElementById("source"), {
|
4 |
+
lineNumbers: true,
|
5 |
+
lineWrapping: true,
|
6 |
+
mode: "htmlmixed",
|
7 |
+
value: form_front
|
8 |
+
});
|
9 |
if (custom_front == '') {
|
10 |
custom_front = form_front;
|
11 |
}
|
js/form_maker_form_options.js
CHANGED
@@ -1,29 +1,36 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
});
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
// Bind filter action on entering search key and when the user cancel the input.
|
29 |
jQuery(".placeholders-filter").on("keyup input", function() { filter_placeholders(this); });
|
@@ -37,19 +44,37 @@
|
|
37 |
}
|
38 |
}
|
39 |
});
|
40 |
-
|
41 |
-
}
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
fm_change_payment_method(jQuery('input[name=paypal_mode]:checked').val());
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
|
51 |
-
|
52 |
-
}
|
53 |
|
54 |
/**
|
55 |
* Filter placeholders.
|
@@ -85,16 +110,21 @@ function filter_placeholders(that) {
|
|
85 |
}
|
86 |
}
|
87 |
|
88 |
-
function wd_fm_apply_options(
|
|
|
|
|
|
|
|
|
|
|
89 |
var success = true;
|
90 |
jQuery(".fm-validate").each(function() {
|
91 |
var type = jQuery(this).attr("data-type");
|
92 |
-
var message =
|
93 |
if ( type == 'required' ) {
|
94 |
-
message =
|
95 |
}
|
96 |
else if ( type == 'email' ) {
|
97 |
-
message =
|
98 |
}
|
99 |
message = "<p class='description fm-validate-description'>" + message + "</p>";
|
100 |
var callback = jQuery(this).attr("data-callback");
|
@@ -104,14 +134,23 @@ function wd_fm_apply_options(task) {
|
|
104 |
var value = jQuery(this).val();
|
105 |
|
106 |
if ( typeof window[callback] == "function" && !window[callback](value, callbackParameter ) ) { /* Check validation.*/
|
107 |
-
/*
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
if ( jQuery(this).parent().find(".fm-validate-description").length === 0 ) {
|
116 |
var description_container = jQuery(this).parent().find(".description");
|
117 |
if ( description_container.length ) {
|
@@ -134,9 +173,7 @@ function wd_fm_apply_options(task) {
|
|
134 |
|
135 |
if ( success ) {
|
136 |
set_condition();
|
137 |
-
fm_set_input_value('task', task);
|
138 |
}
|
139 |
-
|
140 |
return success;
|
141 |
}
|
142 |
|
@@ -176,7 +213,7 @@ function fm_validate_email(value, obj) {
|
|
176 |
function fm_add_inline_email_validation_message(obj) {
|
177 |
var value = jQuery(obj).val();
|
178 |
if ( !fm_validate_email(value, '') ) {
|
179 |
-
jQuery(obj).after("<p class='description fm-validate-description'>" +
|
180 |
jQuery(obj).addClass("fm-validate-field");
|
181 |
jQuery('html, body').animate({
|
182 |
scrollTop: jQuery(this).offset().top - 200
|
@@ -222,6 +259,7 @@ function set_condition() {
|
|
222 |
field_condition+=document.getElementById("fields"+i).value+"*:*field_label*:*";
|
223 |
field_condition+=document.getElementById("all_any"+i).value+"*:*all_any*:*";
|
224 |
for(k=0;k<500;k++) {
|
|
|
225 |
if(document.getElementById("condition_div"+i+"_"+k)) {
|
226 |
conditions+=document.getElementById("field_labels"+i+"_"+k).value+"***";
|
227 |
conditions+=document.getElementById("is_select"+i+"_"+k).value+"***";
|
@@ -248,7 +286,11 @@ function set_condition() {
|
|
248 |
field_condition+="*:*new_condition*:*";
|
249 |
}
|
250 |
}
|
251 |
-
|
|
|
|
|
|
|
|
|
252 |
}
|
253 |
|
254 |
function show_verify_options(s){
|
1 |
+
jQuery(document).on('fm_tab_loaded', function () {
|
2 |
+
fm_options_ready();
|
3 |
+
fm_document_ready();
|
4 |
+
});
|
5 |
+
jQuery(document).on('fm_tab_email_loaded', function () {
|
6 |
+
fm_email_options_ready();
|
7 |
+
});
|
|
|
8 |
|
9 |
+
function fm_options_ready() {
|
10 |
+
jQuery('.filed_label').each(function() {
|
11 |
+
if(document.getElementById("frontend_submit_fields").value == document.getElementById("all_fields").value)
|
12 |
+
document.getElementById("all_fields").checked = true;
|
13 |
+
if(inArray(this.value, document.getElementById("frontend_submit_fields").value.split(","))) {
|
14 |
+
this.checked = true;
|
15 |
+
}
|
16 |
+
});
|
17 |
|
18 |
+
jQuery('.stats_filed_label').each(function() {
|
19 |
+
if(document.getElementById("frontend_submit_stat_fields").value == document.getElementById("all_stats_fields").value)
|
20 |
+
document.getElementById("all_stats_fields").checked = true;
|
21 |
+
if(inArray(this.value, document.getElementById("frontend_submit_stat_fields").value.split(","))) {
|
22 |
+
this.checked = true;
|
23 |
+
}
|
24 |
+
});
|
25 |
|
26 |
+
jQuery(document).on('change','input[name="all_fields"]',function() {
|
27 |
+
jQuery('.filed_label').prop("checked" , this.checked);
|
28 |
+
});
|
29 |
+
|
30 |
+
jQuery(document).on('change','input[name="all_stats_fields"]',function() {
|
31 |
+
jQuery('.stats_filed_label').prop("checked" , this.checked);
|
32 |
+
});
|
33 |
+
fm_toggle_options('#div_gdpr_checkbox_text', jQuery('input[name=gdpr_checkbox]:checked').val() == '1' ? true : false);
|
34 |
|
35 |
// Bind filter action on entering search key and when the user cancel the input.
|
36 |
jQuery(".placeholders-filter").on("keyup input", function() { filter_placeholders(this); });
|
44 |
}
|
45 |
}
|
46 |
});
|
47 |
+
fm_remove_validate_error_message();
|
48 |
+
}
|
49 |
|
50 |
+
function fm_email_options_ready() {
|
51 |
+
fm_toggle_options('.fm_email_options', jQuery('input[name=sendemail]:checked').val() == '1' ? true : false);
|
52 |
+
|
53 |
+
// Bind filter action on entering search key and when the user cancel the input.
|
54 |
+
jQuery(".placeholders-filter").on("keyup input", function() { filter_placeholders(this); });
|
55 |
+
jQuery('#placeholders_overlay').on("click", function() { fm_placeholders_popup_close(); });
|
56 |
+
|
57 |
+
// Close popup on escape.
|
58 |
+
jQuery(document).on('keydown', function (e) {
|
59 |
+
if (e.keyCode === 27) { /* Esc.*/
|
60 |
+
if (jQuery("#placeholders_overlay").is(":visible")) {
|
61 |
+
fm_placeholders_popup_close();
|
62 |
+
}
|
63 |
+
}
|
64 |
+
});
|
65 |
+
fm_remove_validate_error_message();
|
66 |
+
}
|
67 |
+
|
68 |
+
function fm_document_ready() {
|
69 |
+
var fieldset_id = jQuery("#fieldset_id").val();
|
70 |
+
form_maker_options_tabs(fieldset_id);
|
71 |
fm_change_payment_method(jQuery('input[name=paypal_mode]:checked').val());
|
72 |
+
if ( fieldset_id == 'javascript' ) {
|
73 |
+
codemirror_for_javascript();
|
74 |
+
}
|
75 |
|
76 |
+
fm_popup();
|
77 |
+
}
|
78 |
|
79 |
/**
|
80 |
* Filter placeholders.
|
110 |
}
|
111 |
}
|
112 |
|
113 |
+
function wd_fm_apply_options() {
|
114 |
+
var tabs_loaded = JSON.parse(jQuery('#fm_tabs_loaded').val());
|
115 |
+
if ( !inArray('form_options_tab', tabs_loaded) && !inArray('form_email_options_tab', tabs_loaded)) {
|
116 |
+
return true;
|
117 |
+
}
|
118 |
+
|
119 |
var success = true;
|
120 |
jQuery(".fm-validate").each(function() {
|
121 |
var type = jQuery(this).attr("data-type");
|
122 |
+
var message = form_maker_options.not_valid_value;
|
123 |
if ( type == 'required' ) {
|
124 |
+
message = form_maker_options.required_field;
|
125 |
}
|
126 |
else if ( type == 'email' ) {
|
127 |
+
message = form_maker_options.not_valid_email;
|
128 |
}
|
129 |
message = "<p class='description fm-validate-description'>" + message + "</p>";
|
130 |
var callback = jQuery(this).attr("data-callback");
|
134 |
var value = jQuery(this).val();
|
135 |
|
136 |
if ( typeof window[callback] == "function" && !window[callback](value, callbackParameter ) ) { /* Check validation.*/
|
137 |
+
/* Change to tab with error in it.*/
|
138 |
+
var active_tab = jQuery("#" + contentId).closest(".ui-tabs-panel");
|
139 |
+
jQuery("#fm-tabs").tabs({
|
140 |
+
active: jQuery(".ui-tabs-panel").index(active_tab)
|
141 |
+
});
|
142 |
+
|
143 |
+
if ( jQuery(".fm_fieldset_active:visible").length !== 0 ) {
|
144 |
+
/* Remove active class from all subtabs.*/
|
145 |
+
jQuery(".fm_fieldset_active").addClass("fm_fieldset_deactive").removeClass("fm_fieldset_active");
|
146 |
+
jQuery(".fm_fieldset_tab").removeClass("active");
|
147 |
+
/* Add active class to required subtab.*/
|
148 |
+
jQuery("#" + contentId).removeClass("fm_fieldset_deactive").addClass("fm_fieldset_active");
|
149 |
+
jQuery("#" + tabId).addClass("active");
|
150 |
+
/* Change to subtab with error in it.*/
|
151 |
+
jQuery("#fieldset_id").val(tabId);
|
152 |
+
}
|
153 |
+
/* Add error message to the field.*/
|
154 |
if ( jQuery(this).parent().find(".fm-validate-description").length === 0 ) {
|
155 |
var description_container = jQuery(this).parent().find(".description");
|
156 |
if ( description_container.length ) {
|
173 |
|
174 |
if ( success ) {
|
175 |
set_condition();
|
|
|
176 |
}
|
|
|
177 |
return success;
|
178 |
}
|
179 |
|
213 |
function fm_add_inline_email_validation_message(obj) {
|
214 |
var value = jQuery(obj).val();
|
215 |
if ( !fm_validate_email(value, '') ) {
|
216 |
+
jQuery(obj).after("<p class='description fm-validate-description'>" + form_maker_options.not_valid_value + "</p>");
|
217 |
jQuery(obj).addClass("fm-validate-field");
|
218 |
jQuery('html, body').animate({
|
219 |
scrollTop: jQuery(this).offset().top - 200
|
259 |
field_condition+=document.getElementById("fields"+i).value+"*:*field_label*:*";
|
260 |
field_condition+=document.getElementById("all_any"+i).value+"*:*all_any*:*";
|
261 |
for(k=0;k<500;k++) {
|
262 |
+
|
263 |
if(document.getElementById("condition_div"+i+"_"+k)) {
|
264 |
conditions+=document.getElementById("field_labels"+i+"_"+k).value+"***";
|
265 |
conditions+=document.getElementById("is_select"+i+"_"+k).value+"***";
|
286 |
field_condition+="*:*new_condition*:*";
|
287 |
}
|
288 |
}
|
289 |
+
|
290 |
+
if ( jQuery('#condition').length ) {
|
291 |
+
document.getElementById('condition').value = field_condition;
|
292 |
+
}
|
293 |
+
|
294 |
}
|
295 |
|
296 |
function show_verify_options(s){
|
js/form_maker_manage.js
CHANGED
@@ -14,78 +14,68 @@ function remove_whitespace(node) {
|
|
14 |
return;
|
15 |
}
|
16 |
|
17 |
-
function
|
18 |
-
jQuery('.wdform_section').each(function() {
|
19 |
-
if(jQuery(this).find('.wdform_column').last().prev().html()=='') {
|
20 |
-
if(jQuery(this).children().length>2) {
|
21 |
-
jQuery(this).find('.wdform_column').last().prev().remove();
|
22 |
-
remove_empty_columns();
|
23 |
-
}
|
24 |
-
}
|
25 |
-
});
|
26 |
-
}
|
27 |
-
|
28 |
-
function fm_section_handle(section) {
|
29 |
var fm_section = jQuery(section);
|
30 |
-
fm_section.find('.
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
function fm_update_columns() {
|
40 |
-
jQuery('.wdform_section .wdform_column:last-child').each(function() {
|
41 |
-
if (jQuery(this).find('.wdform_row').length > 0) {
|
42 |
-
fm_section_handle(this);
|
43 |
-
jQuery(this).parent().append(jQuery('<div></div>').addClass("wdform_column"));
|
44 |
-
sortable_columns();
|
45 |
-
}
|
46 |
-
});
|
47 |
}
|
48 |
|
49 |
function sortable_columns() {
|
50 |
jQuery( "#take" ).sortable({
|
51 |
cursor: 'move',
|
52 |
-
cursorAt: { left: 5, top: 5 },
|
53 |
placeholder: "highlight",
|
54 |
tolerance: "pointer",
|
55 |
-
handle: ".form_id_tempform_view_img .
|
56 |
items: "> .wdform-page-and-images",
|
57 |
axis: "y",
|
58 |
update: function(event, ui) {
|
59 |
refresh_page_numbers();
|
60 |
},
|
61 |
});
|
62 |
-
jQuery( ".
|
63 |
-
connectWith: ".
|
64 |
cursor: 'move',
|
65 |
-
|
66 |
-
placeholder: "highlight wdform_column",
|
67 |
tolerance: "pointer",
|
68 |
-
handle: ".
|
69 |
-
|
|
|
70 |
create: function( event, ui ) {
|
71 |
-
jQuery(event.target).find('.
|
72 |
-
|
73 |
});
|
74 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
});
|
76 |
jQuery( ".wdform_column" ).sortable({
|
77 |
connectWith: ".wdform_column",
|
78 |
cursor: 'move',
|
79 |
placeholder: "highlight",
|
|
|
80 |
cancel: ".wdform_section_handle",
|
81 |
items: "> .wdform_row, #add_field",
|
82 |
start: function(e, ui) {
|
83 |
jQuery(".add-new-button").off("click");
|
84 |
-
|
85 |
-
|
86 |
-
fm_update_columns();
|
87 |
-
},
|
88 |
stop: function(event, ui) {
|
|
|
|
|
|
|
|
|
89 |
if (ui.item.attr("id") == "add_field" && ui.item.parent().attr("id") != "add_field_cont") {
|
90 |
nextID = jQuery("#add_field").next(".wdform_row").attr("wdid"); //find next row id for position
|
91 |
jQuery("#add_field").parent().attr("id", "cur_column"); // add id cur_column to this column
|
@@ -95,24 +85,30 @@ function sortable_columns() {
|
|
95 |
jQuery(".add-new-button").removeAttr("onclick");
|
96 |
return false;
|
97 |
}
|
98 |
-
|
|
|
99 |
}
|
100 |
});
|
101 |
}
|
102 |
|
103 |
function all_sortable_events() {
|
104 |
-
|
|
|
|
|
105 |
if (!jQuery(this).find('.wdform_arrows').is(':visible')) {
|
106 |
jQuery('.wdform_arrows').hide();
|
107 |
jQuery(this).find('.wdform_arrows').show();
|
108 |
event.preventDefault();
|
109 |
return false;
|
110 |
}
|
111 |
-
})
|
112 |
-
jQuery(".wdform_row, .wdform_tr_section_break").on("mouseleave", function () {
|
113 |
jQuery(this).find('.wdform_arrows').hide();
|
114 |
});
|
115 |
-
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
jQuery(document).on( "dblclick", ".wdform_row, .wdform_tr_section_break", function() {
|
14 |
return;
|
15 |
}
|
16 |
|
17 |
+
function fm_row_handle(section) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
var fm_section = jQuery(section);
|
19 |
+
fm_section.find('.wdform_row_handle').remove();
|
20 |
+
var row_handle = jQuery('<div class="wdform_row_handle">' +
|
21 |
+
'<span class="fm-ico-draggable"></span>' +
|
22 |
+
'<span title="Remove the column" class="page_toolbar fm-ico-delete" onclick="fm_remove_row_popup(this);"></span>' +
|
23 |
+
'<span class="add-new-field" onclick="jQuery(\'.wdform_section\').removeAttr(\'cur_column\');jQuery(this).parent().parent().attr(\'id\', \'cur_column\').val(1);popup_ready(); Enable(); return false;">' + form_maker_manage.add_new_field + '</span>' +
|
24 |
+
'<div class="fm-divider"></div>' +
|
25 |
+
'</div>');
|
26 |
+
fm_section.prepend(row_handle);
|
27 |
+
row_handle.after('<div class="fm-section-overlay"></div>');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
function sortable_columns() {
|
31 |
jQuery( "#take" ).sortable({
|
32 |
cursor: 'move',
|
|
|
33 |
placeholder: "highlight",
|
34 |
tolerance: "pointer",
|
35 |
+
handle: ".form_id_tempform_view_img .fm-ico-draggable",
|
36 |
items: "> .wdform-page-and-images",
|
37 |
axis: "y",
|
38 |
update: function(event, ui) {
|
39 |
refresh_page_numbers();
|
40 |
},
|
41 |
});
|
42 |
+
jQuery( ".wdform_page" ).sortable({
|
43 |
+
connectWith: ".wdform_page",
|
44 |
cursor: 'move',
|
45 |
+
placeholder: "highlight",
|
|
|
46 |
tolerance: "pointer",
|
47 |
+
handle: ".wdform_row_handle",
|
48 |
+
cancel: ".add-new-field, .page_toolbar",
|
49 |
+
items: "> .wdform_section",
|
50 |
create: function( event, ui ) {
|
51 |
+
jQuery(event.target).find('.wdform_section').each(function() {
|
52 |
+
fm_row_handle(this);
|
53 |
});
|
54 |
},
|
55 |
+
start: function( event, ui ) {
|
56 |
+
jQuery('.wdform_row_empty').hide();
|
57 |
+
},
|
58 |
+
stop: function( event, ui ) {
|
59 |
+
fm_rows_refresh();
|
60 |
+
jQuery('.wdform_row_empty').show();
|
61 |
+
},
|
62 |
});
|
63 |
jQuery( ".wdform_column" ).sortable({
|
64 |
connectWith: ".wdform_column",
|
65 |
cursor: 'move',
|
66 |
placeholder: "highlight",
|
67 |
+
tolerance: "pointer",
|
68 |
cancel: ".wdform_section_handle",
|
69 |
items: "> .wdform_row, #add_field",
|
70 |
start: function(e, ui) {
|
71 |
jQuery(".add-new-button").off("click");
|
72 |
+
jQuery(".wdform_column").removeClass("fm-hidden");
|
73 |
+
},
|
|
|
|
|
74 |
stop: function(event, ui) {
|
75 |
+
// Prevent dropping on "New Field" conatiner.
|
76 |
+
if (ui.item.parent().attr("id") == "add_field_cont") {
|
77 |
+
return false;
|
78 |
+
}
|
79 |
if (ui.item.attr("id") == "add_field" && ui.item.parent().attr("id") != "add_field_cont") {
|
80 |
nextID = jQuery("#add_field").next(".wdform_row").attr("wdid"); //find next row id for position
|
81 |
jQuery("#add_field").parent().attr("id", "cur_column"); // add id cur_column to this column
|
85 |
jQuery(".add-new-button").removeAttr("onclick");
|
86 |
return false;
|
87 |
}
|
88 |
+
jQuery(".wdform_column:not(#add_field_cont):empty").addClass("fm-hidden");
|
89 |
+
fm_columns_refresh();
|
90 |
}
|
91 |
});
|
92 |
}
|
93 |
|
94 |
function all_sortable_events() {
|
95 |
+
fm_rows_refresh();
|
96 |
+
fm_columns_refresh();
|
97 |
+
jQuery(".wdform_row, .wdform_tr_section_break").off("hover, touchstart").on("hover, touchstart", function (event) {
|
98 |
if (!jQuery(this).find('.wdform_arrows').is(':visible')) {
|
99 |
jQuery('.wdform_arrows').hide();
|
100 |
jQuery(this).find('.wdform_arrows').show();
|
101 |
event.preventDefault();
|
102 |
return false;
|
103 |
}
|
104 |
+
}).off("mouseleave").on("mouseleave", function () {
|
|
|
105 |
jQuery(this).find('.wdform_arrows').hide();
|
106 |
});
|
107 |
+
jQuery(".wdform_section_handle, .wdform_row_handle").off("hover, touchstart").on("hover, touchstart", function (event) {
|
108 |
+
jQuery(this).parent().addClass('fm-hover');
|
109 |
+
}).off("mouseleave").on("mouseleave", function () {
|
110 |
+
jQuery(this).parent().removeClass('fm-hover');
|
111 |
+
});
|
112 |
}
|
113 |
|
114 |
jQuery(document).on( "dblclick", ".wdform_row, .wdform_tr_section_break", function() {
|
js/form_maker_manage_edit.js
CHANGED
@@ -12,14 +12,39 @@ jQuery(window).on("load", function () {
|
|
12 |
formOnload(gen);
|
13 |
});
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
-
|
|
|
|
|
|
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
if( is_sortable == 1) {
|
24 |
jQuery( ".wdform_arrows_advanced" ).hide();
|
25 |
}
|
@@ -27,10 +52,46 @@ jQuery( document ).ready(function() {
|
|
27 |
jQuery('.wdform_column').sortable( "disable" );
|
28 |
jQuery( ".wdform_arrows_advanced" ).show();
|
29 |
}
|
30 |
-
all_sortable_events();
|
31 |
enable_drag();
|
|
|
|
|
|
|
|
|
|
|
32 |
});
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
// Close popup on escape.
|
35 |
jQuery(document).on('keydown', function (e) {
|
36 |
if (e.keyCode === 27) { /* Esc.*/
|
@@ -40,6 +101,10 @@ jQuery(document).on('keydown', function (e) {
|
|
40 |
if (jQuery("#fm_delete_page_popup_container").is(":visible")) {
|
41 |
fm_popup_toggle('fm_delete_page_popup_container');
|
42 |
}
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
});
|
45 |
|
@@ -68,7 +133,12 @@ function FormManageSubmitButton(check_for_changes) {
|
|
68 |
}
|
69 |
jQuery(this).find('.wdform_section_handle').remove();
|
70 |
});
|
|
|
|
|
71 |
});
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
remove_whitespace(document.getElementById('take'));
|
@@ -85,123 +155,125 @@ function FormManageSubmitButton(check_for_changes) {
|
|
85 |
if (document.getElementById('form_id_tempform_view' + t)) {
|
86 |
wdform_page = document.getElementById('form_id_tempform_view' + t);
|
87 |
remove_whitespace(wdform_page);
|
88 |
-
n = wdform_page.childNodes.length -
|
89 |
for (q = 0; q <= n; q++) {
|
90 |
if (!wdform_page.childNodes[q].getAttribute("wdid")) {
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
if (
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
}
|
116 |
-
|
117 |
-
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
}
|
120 |
}
|
121 |
-
|
|
|
|
|
122 |
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
}
|
129 |
-
|
130 |
-
|
131 |
-
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
|
132 |
}
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
}
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
}
|
145 |
-
|
146 |
-
|
147 |
-
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
|
148 |
}
|
149 |
-
|
150 |
-
|
151 |
-
tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
|
152 |
-
}
|
153 |
-
|
154 |
-
id = wdid;
|
155 |
-
form_fields += wdid + "*:*id*:*";
|
156 |
-
form_fields += wdtype + "*:*type*:*";
|
157 |
-
w_choices = new Array();
|
158 |
-
w_choices_value = new Array();
|
159 |
-
w_choices_checked = new Array();
|
160 |
-
w_choices_disabled = new Array();
|
161 |
-
w_choices_params = new Array();
|
162 |
-
w_allow_other_num = 0;
|
163 |
-
w_property = new Array();
|
164 |
-
w_property_type = new Array();
|
165 |
-
w_property_values = new Array();
|
166 |
-
w_choices_price = new Array();
|
167 |
-
if (document.getElementById(id + '_element_labelform_id_temp').innerHTML) {
|
168 |
-
w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm, " ");
|
169 |
-
}
|
170 |
-
else {
|
171 |
-
w_field_label = " ";
|
172 |
-
}
|
173 |
-
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
174 |
-
if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
|
175 |
-
w_field_label_pos = "top";
|
176 |
}
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
179 |
}
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
w_size = s.substring(0, s.length - 2);
|
184 |
-
}
|
185 |
-
if (document.getElementById(id + "_label_sectionform_id_temp")) {
|
186 |
-
s = document.getElementById(id + "_label_sectionform_id_temp").style.width;
|
187 |
-
w_field_label_size = s.substring(0, s.length - 2);
|
188 |
-
}
|
189 |
-
if (document.getElementById(id + "_requiredform_id_temp")) {
|
190 |
-
w_required = document.getElementById(id + "_requiredform_id_temp").value;
|
191 |
-
}
|
192 |
-
if (document.getElementById(id + "_uniqueform_id_temp")) {
|
193 |
-
w_unique = document.getElementById(id + "_uniqueform_id_temp").value;
|
194 |
-
}
|
195 |
-
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
196 |
-
w_class = document.getElementById(id + '_label_sectionform_id_temp').getAttribute("class");
|
197 |
-
if (!w_class) {
|
198 |
-
w_class = "";
|
199 |
}
|
200 |
}
|
201 |
-
gen_form_fields();
|
202 |
-
if (!check_for_changes) {
|
203 |
-
wdform_row.innerHTML = "%" + id + " - " + l_label + "%";
|
204 |
-
}
|
205 |
}
|
206 |
}
|
207 |
}
|
@@ -743,12 +815,13 @@ function formOnload(rows) {
|
|
743 |
page_toolbar_wrap.setAttribute('class', 'form_id_tempform_view_img');
|
744 |
|
745 |
page_title = document.createElement('div');
|
746 |
-
|
|
|
747 |
page_toolbar_wrap.appendChild(page_title);
|
748 |
|
749 |
page_toolbar = document.createElement('div');
|
750 |
|
751 |
-
var icon = document.getElementById('form_id_tempform_view' + i).style.display == 'none' ? '
|
752 |
|
753 |
var icon_show_hide = document.createElement('span');
|
754 |
icon_show_hide.setAttribute('title', 'Show or hide the page');
|
@@ -758,12 +831,12 @@ function formOnload(rows) {
|
|
758 |
|
759 |
var icon_remove = document.createElement("span");
|
760 |
icon_remove.setAttribute('title', 'Delete the page');
|
761 |
-
icon_remove.setAttribute("class", "page_toolbar
|
762 |
icon_remove.setAttribute("onclick", 'remove_page("' + i + '")');
|
763 |
|
764 |
var icon_edit = document.createElement("span");
|
765 |
icon_edit.setAttribute('title', 'Edit the page');
|
766 |
-
icon_edit.setAttribute("class", "page_toolbar
|
767 |
icon_edit.setAttribute("onclick", 'edit_page_break("' + i + '")');
|
768 |
|
769 |
page_toolbar.appendChild(icon_remove);
|
@@ -775,20 +848,24 @@ function formOnload(rows) {
|
|
775 |
});
|
776 |
|
777 |
if (form_view_count > 1) {
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
|
|
|
|
|
|
|
|
792 |
|
793 |
if (form_view_count == 1) {
|
794 |
jQuery(".form_id_tempform_view_img").addClass("form_view_hide");
|
@@ -796,7 +873,7 @@ function formOnload(rows) {
|
|
796 |
}
|
797 |
|
798 |
function change_show_hide_icon(obj){
|
799 |
-
jQuery(obj).toggleClass('
|
800 |
}
|
801 |
|
802 |
function edit_page_break(id) {
|
12 |
formOnload(gen);
|
13 |
});
|
14 |
|
15 |
+
function fm_columns_refresh() {
|
16 |
+
jQuery( ".wdform_column:not(#add_field_cont):empty" ).remove();
|
17 |
+
|
18 |
+
jQuery( ".fm-form-builder .wdform_column:not(#add_field_cont)" ).before(jQuery('<div class="wdform_column fm-hidden"></div>'));
|
19 |
+
jQuery( ".fm-form-builder .wdform_column:not(#add_field_cont):last-child" ).after(jQuery('<div class="wdform_column fm-hidden"></div>'));
|
20 |
+
jQuery( ".fm-form-builder .wdform_section" ).each(function() {
|
21 |
+
var section = jQuery(this);
|
22 |
+
if (section.find('.wdform_column').length == 0) {
|
23 |
+
section.append('<div class="wdform_column"></div>');
|
24 |
}
|
25 |
+
});
|
26 |
+
|
27 |
+
sortable_columns();
|
28 |
+
}
|
29 |
|
30 |
+
function fm_rows_refresh() {
|
31 |
+
jQuery('.wdform_page').each(function() {
|
32 |
+
jQuery(this).children('.wdform_row_empty').remove();
|
33 |
+
if (jQuery(this).find('.wdform_row_empty').length === 0) {
|
34 |
+
jQuery(this).find('.wdform_footer').before(jQuery('<div class="wdform_row_empty"><div><span class="add_row_icon fm-ico-plus-circle"></span><span class="add_row_button">' + form_maker_manage.add_column + '</span></div></div>'));
|
35 |
+
}
|
36 |
+
});
|
37 |
+
jQuery('.wdform_row_empty > div').off('click').on('click', function () {
|
38 |
+
var new_row = jQuery('<div><div class="wdform_column"></div></div>').addClass("wdform_section");
|
39 |
+
jQuery(this).closest('.wdform_row_empty').before(new_row);
|
40 |
+
fm_row_handle(new_row);
|
41 |
+
all_sortable_events();
|
42 |
+
});
|
43 |
+
sortable_columns();
|
44 |
+
}
|
45 |
+
|
46 |
+
jQuery( document ).ready(function() {
|
47 |
+
all_sortable_events();
|
48 |
if( is_sortable == 1) {
|
49 |
jQuery( ".wdform_arrows_advanced" ).hide();
|
50 |
}
|
52 |
jQuery('.wdform_column').sortable( "disable" );
|
53 |
jQuery( ".wdform_arrows_advanced" ).show();
|
54 |
}
|
|
|
55 |
enable_drag();
|
56 |
+
|
57 |
+
// Disable form editing if it has old structure.
|
58 |
+
if (!jQuery('.wdform-page-and-images').hasClass('fm-form-builder')) {
|
59 |
+
jQuery('.fm-edit-content').append(jQuery('<div id="fm-edit-disable-overlay" class="wdform_arrows"><div class="fm-edit-disable-overlay-text"><span>This form is currently disabled for editing.<br />Please click <b>Convert</b> to adapt the form structure and enable editing.</span><div class="fm-edit-disable-overlay-button"><button class="button button-primary button-large" onclick="fm_convert_form_structure(); return false;">Convert</button></div></div></div>'));
|
60 |
+
}
|
61 |
});
|
62 |
|
63 |
+
// Convert form for new drag/drop functionality.
|
64 |
+
// wdform_column is row in new structure
|
65 |
+
// wdform_section is column in new structure
|
66 |
+
function fm_convert_form_structure() {
|
67 |
+
jQuery('.wdform-page-and-images').each(function() {
|
68 |
+
var page = jQuery(this);
|
69 |
+
page.addClass('fm-form-builder');
|
70 |
+
var section_count = page.find('.wdform_section').length;
|
71 |
+
page.find('.wdform_section').each(function() {
|
72 |
+
var row = jQuery(this);
|
73 |
+
var column_count = row.find('.wdform_column').length;
|
74 |
+
row.find('.wdform_column').each(function() {
|
75 |
+
var column = jQuery(this);
|
76 |
+
var fmclass = 'fm-col-' + column_count;
|
77 |
+
var column_new = jQuery('<div class="wdform_section ' + fmclass + '"></div>');
|
78 |
+
column.find('.wdform_row').each(function() {
|
79 |
+
var field = jQuery(this);
|
80 |
+
var row = jQuery('<div class="wdform_column"></div>').append(field);
|
81 |
+
column_new.append(row);
|
82 |
+
});
|
83 |
+
row.before(column_new);
|
84 |
+
fm_row_handle(column_new);
|
85 |
+
});
|
86 |
+
row.remove();
|
87 |
+
});
|
88 |
+
});
|
89 |
+
// remove section breacks
|
90 |
+
jQuery('.wdform_tr_section_break').remove();
|
91 |
+
all_sortable_events();
|
92 |
+
jQuery('#fm-edit-disable-overlay').remove();
|
93 |
+
}
|
94 |
+
|
95 |
// Close popup on escape.
|
96 |
jQuery(document).on('keydown', function (e) {
|
97 |
if (e.keyCode === 27) { /* Esc.*/
|
101 |
if (jQuery("#fm_delete_page_popup_container").is(":visible")) {
|
102 |
fm_popup_toggle('fm_delete_page_popup_container');
|
103 |
}
|
104 |
+
|
105 |
+
if (jQuery("#fm_revision_popup_container").is(":visible")) {
|
106 |
+
fm_popup_toggle('fm_revision_popup_container');
|
107 |
+
}
|
108 |
}
|
109 |
});
|
110 |
|
133 |
}
|
134 |
jQuery(this).find('.wdform_section_handle').remove();
|
135 |
});
|
136 |
+
jQuery(this).find('.wdform_row_handle').remove();
|
137 |
+
jQuery(this).find('.wdform_column_empty').remove();
|
138 |
});
|
139 |
+
jQuery('.wdform_row_empty').remove();
|
140 |
+
jQuery('.wdform_column:empty').remove();
|
141 |
+
jQuery('.fm-section-overlay').remove();
|
142 |
}
|
143 |
|
144 |
remove_whitespace(document.getElementById('take'));
|
155 |
if (document.getElementById('form_id_tempform_view' + t)) {
|
156 |
wdform_page = document.getElementById('form_id_tempform_view' + t);
|
157 |
remove_whitespace(wdform_page);
|
158 |
+
n = wdform_page.childNodes.length - 1;
|
159 |
for (q = 0; q <= n; q++) {
|
160 |
if (!wdform_page.childNodes[q].getAttribute("wdid")) {
|
161 |
+
if (wdform_page.className.indexOf('fm-form-builder') == -1 || wdform_page.childNodes[q].className.indexOf('wdform_section') != -1) {
|
162 |
+
wdform_section = wdform_page.childNodes[q];
|
163 |
+
for (x = 0; x < wdform_section.childNodes.length; x++) {
|
164 |
+
wdform_column = wdform_section.childNodes[x];
|
165 |
+
if (wdform_column.firstChild) {
|
166 |
+
for (y = 0; y < wdform_column.childNodes.length; y++) {
|
167 |
+
is_in_old = false;
|
168 |
+
wdform_row = wdform_column.childNodes[y];
|
169 |
+
if (wdform_row.nodeType == 3) {
|
170 |
+
continue;
|
171 |
+
}
|
172 |
+
wdid = wdform_row.getAttribute("wdid");
|
173 |
+
if (!wdid) {
|
174 |
+
continue;
|
175 |
+
}
|
176 |
+
l_id = wdid;
|
177 |
+
l_label = document.getElementById(wdid + '_element_labelform_id_temp').innerHTML;
|
178 |
+
l_label = l_label.replace(/(\r\n|\n|\r)/gm, " ");
|
179 |
+
wdtype = wdform_row.firstChild.getAttribute('type');
|
180 |
+
|
181 |
+
for (var z = 0; z < l_id_array.length; z++) {
|
182 |
+
if (l_type_array[z] == "type_address") {
|
183 |
+
if (document.getElementById(l_id + "_mini_label_street1") || document.getElementById(l_id + "_mini_label_street2") || document.getElementById(l_id + "_mini_label_city") || document.getElementById(l_id + "_mini_label_state") || document.getElementById(l_id + "_mini_label_postal") || document.getElementById(l_id + "_mini_label_country")) {
|
184 |
+
l_id_removed[l_id_array[z]] = false;
|
185 |
+
}
|
186 |
+
}
|
187 |
+
else {
|
188 |
+
if (l_id_array[z] == wdid) {
|
189 |
+
l_id_removed[l_id] = false;
|
190 |
+
}
|
191 |
}
|
192 |
}
|
193 |
+
|
194 |
+
if (wdtype == "type_address") {
|
195 |
+
addr_id = parseInt(wdid);
|
196 |
+
id_for_country = addr_id;
|
197 |
+
if (document.getElementById(id_for_country + "_mini_label_street1")) {
|
198 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
|
199 |
+
}
|
200 |
+
addr_id++;
|
201 |
+
if (document.getElementById(id_for_country + "_mini_label_street2")) {
|
202 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
|
203 |
+
}
|
204 |
+
addr_id++;
|
205 |
+
if (document.getElementById(id_for_country + "_mini_label_city")) {
|
206 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_city").innerHTML + '#**label**#type_address#****#';
|
207 |
+
}
|
208 |
+
addr_id++;
|
209 |
+
if (document.getElementById(id_for_country + "_mini_label_state")) {
|
210 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_state").innerHTML + '#**label**#type_address#****#';
|
211 |
+
}
|
212 |
+
addr_id++;
|
213 |
+
if (document.getElementById(id_for_country + "_mini_label_postal")) {
|
214 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_postal").innerHTML + '#**label**#type_address#****#';
|
215 |
+
}
|
216 |
+
addr_id++;
|
217 |
+
if (document.getElementById(id_for_country + "_mini_label_country")) {
|
218 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
|
219 |
}
|
220 |
}
|
221 |
+
else {
|
222 |
+
tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
|
223 |
+
}
|
224 |
|
225 |
+
id = wdid;
|
226 |
+
form_fields += wdid + "*:*id*:*";
|
227 |
+
form_fields += wdtype + "*:*type*:*";
|
228 |
+
w_choices = new Array();
|
229 |
+
w_choices_value = new Array();
|
230 |
+
w_choices_checked = new Array();
|
231 |
+
w_choices_disabled = new Array();
|
232 |
+
w_choices_params = new Array();
|
233 |
+
w_allow_other_num = 0;
|
234 |
+
w_property = new Array();
|
235 |
+
w_property_type = new Array();
|
236 |
+
w_property_values = new Array();
|
237 |
+
w_choices_price = new Array();
|
238 |
+
if (document.getElementById(id + '_element_labelform_id_temp').innerHTML) {
|
239 |
+
w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm, " ");
|
240 |
}
|
241 |
+
else {
|
242 |
+
w_field_label = " ";
|
|
|
243 |
}
|
244 |
+
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
245 |
+
if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
|
246 |
+
w_field_label_pos = "top";
|
247 |
+
}
|
248 |
+
else {
|
249 |
+
w_field_label_pos = "left";
|
250 |
+
}
|
251 |
}
|
252 |
+
if (document.getElementById(id + "_elementform_id_temp")) {
|
253 |
+
s = document.getElementById(id + "_elementform_id_temp").style.width;
|
254 |
+
w_size = s.substring(0, s.length - 2);
|
255 |
}
|
256 |
+
if (document.getElementById(id + "_label_sectionform_id_temp")) {
|
257 |
+
s = document.getElementById(id + "_label_sectionform_id_temp").style.width;
|
258 |
+
w_field_label_size = s.substring(0, s.length - 2);
|
259 |
}
|
260 |
+
if (document.getElementById(id + "_requiredform_id_temp")) {
|
261 |
+
w_required = document.getElementById(id + "_requiredform_id_temp").value;
|
|
|
262 |
}
|
263 |
+
if (document.getElementById(id + "_uniqueform_id_temp")) {
|
264 |
+
w_unique = document.getElementById(id + "_uniqueform_id_temp").value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
}
|
266 |
+
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
267 |
+
w_class = document.getElementById(id + '_label_sectionform_id_temp').getAttribute("class");
|
268 |
+
if (!w_class) {
|
269 |
+
w_class = "";
|
270 |
+
}
|
271 |
}
|
272 |
+
gen_form_fields();
|
273 |
+
if (!check_for_changes) {
|
274 |
+
wdform_row.innerHTML = "%" + id + " - " + l_label + "%";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
}
|
276 |
}
|
|
|
|
|
|
|
|
|
277 |
}
|
278 |
}
|
279 |
}
|
815 |
page_toolbar_wrap.setAttribute('class', 'form_id_tempform_view_img');
|
816 |
|
817 |
page_title = document.createElement('div');
|
818 |
+
page_title.setAttribute('class', 'wdform_page_title');
|
819 |
+
page_title.innerHTML = '<span class="fm-ico-draggable"></span>' + document.getElementById('form_id_tempform_view' + i).getAttribute('page_title');
|
820 |
page_toolbar_wrap.appendChild(page_title);
|
821 |
|
822 |
page_toolbar = document.createElement('div');
|
823 |
|
824 |
+
var icon = document.getElementById('form_id_tempform_view' + i).style.display == 'none' ? 'fm-ico-expand' : 'fm-ico-collapse';
|
825 |
|
826 |
var icon_show_hide = document.createElement('span');
|
827 |
icon_show_hide.setAttribute('title', 'Show or hide the page');
|
831 |
|
832 |
var icon_remove = document.createElement("span");
|
833 |
icon_remove.setAttribute('title', 'Delete the page');
|
834 |
+
icon_remove.setAttribute("class", "page_toolbar fm-ico-delete");
|
835 |
icon_remove.setAttribute("onclick", 'remove_page("' + i + '")');
|
836 |
|
837 |
var icon_edit = document.createElement("span");
|
838 |
icon_edit.setAttribute('title', 'Edit the page');
|
839 |
+
icon_edit.setAttribute("class", "page_toolbar fm-ico-edit");
|
840 |
icon_edit.setAttribute("onclick", 'edit_page_break("' + i + '")');
|
841 |
|
842 |
page_toolbar.appendChild(icon_remove);
|
848 |
});
|
849 |
|
850 |
if (form_view_count > 1) {
|
851 |
+
firstid = jQuery('.wdform_page').first().attr('id');
|
852 |
+
firstid = firstid.split("form_id_tempform_view");
|
853 |
+
first_form_view = firstid[1]
|
854 |
+
|
855 |
+
form_view = form_view_max;
|
856 |
+
need_enable = false;
|
857 |
+
generate_page_nav(first_form_view);
|
858 |
+
var icon_edit = document.createElement("span");
|
859 |
+
icon_edit.setAttribute("class", "fm-ico-edit");
|
860 |
+
icon_edit.setAttribute("onclick", 'el_page_navigation()');
|
861 |
+
var edit_page_navigation = document.getElementById("edit_page_navigation");
|
862 |
+
edit_page_navigation.appendChild(icon_edit);
|
863 |
+
document.getElementById('page_navigation').appendChild(edit_page_navigation);
|
864 |
+
jQuery('#page_bar').removeClass('form_view_hide');
|
865 |
+
}
|
866 |
+
else {
|
867 |
+
jQuery('#page_bar').addClass('form_view_hide');
|
868 |
+
}
|
869 |
|
870 |
if (form_view_count == 1) {
|
871 |
jQuery(".form_id_tempform_view_img").addClass("form_view_hide");
|
873 |
}
|
874 |
|
875 |
function change_show_hide_icon(obj){
|
876 |
+
jQuery(obj).toggleClass('fm-ico-collapse').toggleClass('fm-ico-expand');
|
877 |
}
|
878 |
|
879 |
function edit_page_break(id) {
|
js/formmaker_div.js
CHANGED
@@ -342,7 +342,6 @@ function right_row(id) {
|
|
342 |
|
343 |
|
344 |
sortable_columns();
|
345 |
-
remove_empty_columns();
|
346 |
}
|
347 |
|
348 |
function left_row(id) {
|
@@ -364,7 +363,6 @@ function left_row(id) {
|
|
364 |
// wdform_section.removeChild(wdform_column);
|
365 |
|
366 |
sortable_columns();
|
367 |
-
remove_empty_columns();
|
368 |
}
|
369 |
|
370 |
function page_up(id) {
|
@@ -2818,31 +2816,44 @@ function go_to_type_date(new_id)
|
|
2818 |
/////////// el_page_break //////////////////
|
2819 |
///////////////////////////////////////////////
|
2820 |
|
2821 |
-
function remove_section_break(id)
|
2822 |
-
|
2823 |
-
|
2824 |
-
|
2825 |
|
2826 |
-
move
|
2827 |
-
|
2828 |
-
|
2829 |
-
|
2830 |
-
l=move.childNodes.length;
|
2831 |
-
for(k=0;k<l;k++)
|
2832 |
-
{
|
2833 |
-
if(to.childNodes[k])
|
2834 |
-
{
|
2835 |
-
while(move.childNodes[k].firstChild)
|
2836 |
-
to.childNodes[k].appendChild(move.childNodes[k].firstChild);
|
2837 |
}
|
2838 |
-
else
|
2839 |
-
|
2840 |
-
|
2841 |
-
|
2842 |
-
|
2843 |
-
|
2844 |
-
|
2845 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2846 |
}
|
2847 |
|
2848 |
function remove_row(id)
|
@@ -2870,11 +2881,11 @@ function show_or_hide(id) {
|
|
2870 |
}
|
2871 |
|
2872 |
function show_form_view(id) {
|
2873 |
-
jQuery("#form_id_tempform_view"+id).show(
|
2874 |
}
|
2875 |
|
2876 |
function hide_form_view(id) {
|
2877 |
-
jQuery("#form_id_tempform_view"+id).hide(
|
2878 |
}
|
2879 |
|
2880 |
function generate_buttons(id) {
|
@@ -2989,6 +3000,31 @@ function remove_page(id) {
|
|
2989 |
fm_popup_toggle('fm_delete_page_popup_container');
|
2990 |
}
|
2991 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2992 |
function remove_page_only() {
|
2993 |
id = jQuery('#fm_delete_page_id').val();
|
2994 |
refresh_pages_without_deleting(id);
|
@@ -3054,164 +3090,46 @@ function refresh_pages(id) {
|
|
3054 |
form_view_count = 0;
|
3055 |
destroyChildren(document.getElementById("pages"));
|
3056 |
var form_view_count = jQuery(".wdform-page-and-images").length;
|
|
|
3057 |
if (form_view_count > 1) {
|
3058 |
-
|
3059 |
-
var index = jQuery(this).find('.form_id_tempform_view_img').attr('id').split("form_id_tempform_view_img");
|
3060 |
-
i = index[1];
|
3061 |
-
page_number = document.createElement('span');
|
3062 |
-
page_number.setAttribute('id', 'page_' + i);
|
3063 |
-
page_number.setAttribute('class', 'page_deactive');
|
3064 |
-
page_number.innerHTML = (temp);
|
3065 |
-
temp++;
|
3066 |
-
document.getElementById("pages").appendChild(page_number);
|
3067 |
-
});
|
3068 |
}
|
3069 |
else {
|
3070 |
-
|
3071 |
-
|
3072 |
-
|
3073 |
-
var index = jQuery(this).find('.form_id_tempform_view_img').attr('id').split("form_id_tempform_view_img");
|
3074 |
-
i = index[1];
|
3075 |
-
document.getElementById('form_id_tempform_view' + i).parentNode.style.borderWidth = "0px";
|
3076 |
-
document.getElementById("form_id_temppage_nav" + i).innerHTML = "";
|
3077 |
-
form_view = i;
|
3078 |
-
return;
|
3079 |
-
});
|
3080 |
}
|
3081 |
}
|
3082 |
|
3083 |
function refresh_pages_without_deleting(id) {
|
3084 |
-
|
3085 |
-
|
3086 |
-
wdform_row = form_view_elemet.getElementsByClassName('wdform_row');
|
3087 |
var form_view_count = jQuery(".wdform-page-and-images").length;
|
3088 |
if (form_view_count == 2) {
|
3089 |
jQuery(".form_id_tempform_view_img").removeClass('form_view_show').addClass('form_view_hide');
|
3090 |
jQuery('*[id*=form_id_temppage_nav]').empty();
|
3091 |
}
|
3092 |
|
3093 |
-
|
3094 |
-
|
3095 |
-
|
3096 |
-
|
3097 |
-
|
3098 |
-
|
3099 |
-
tr.style.display = "table-row";
|
3100 |
-
|
3101 |
-
tr_page_nav = document.createElement('div');
|
3102 |
-
tr_page_nav.setAttribute('valign', 'top');
|
3103 |
-
tr_page_nav.setAttribute('class', 'wdform_footer');
|
3104 |
-
tr_page_nav.style.width = "100%";
|
3105 |
-
|
3106 |
-
td_page_nav = document.createElement('div');
|
3107 |
-
td_page_nav.style.width = "100%";
|
3108 |
-
|
3109 |
-
table_min_page_nav = document.createElement('div');
|
3110 |
-
table_min_page_nav.style.width = "100%";
|
3111 |
-
table_min_page_nav.style.display = "table";
|
3112 |
-
|
3113 |
-
tbody_min_page_nav = document.createElement('div');
|
3114 |
-
tbody_min_page_nav.style.display = "table-row-group";
|
3115 |
-
tr_min_page_nav = document.createElement('div');
|
3116 |
-
tr_min_page_nav.setAttribute('id', 'form_id_temppage_nav' + form_view);
|
3117 |
-
tr_min_page_nav.style.display = "table-row";
|
3118 |
-
|
3119 |
-
table_min = document.createElement('div');
|
3120 |
-
table_min.setAttribute('class', 'wdform_column');
|
3121 |
-
|
3122 |
-
tr.appendChild(table_min);
|
3123 |
-
|
3124 |
-
tbody_min_page_nav.appendChild(tr_min_page_nav);
|
3125 |
-
table_min_page_nav.appendChild(tbody_min_page_nav);
|
3126 |
-
td_page_nav.appendChild(table_min_page_nav);
|
3127 |
-
tr_page_nav.appendChild(td_page_nav);
|
3128 |
-
tbody.appendChild(tr);
|
3129 |
-
tbody.appendChild(tr_page_nav);
|
3130 |
-
|
3131 |
return;
|
3132 |
}
|
3133 |
-
|
3134 |
-
|
3135 |
-
|
3136 |
-
|
3137 |
-
if (table.tagName == "DIV") {
|
3138 |
-
break;
|
3139 |
}
|
3140 |
else {
|
3141 |
-
|
3142 |
-
|
3143 |
-
|
3144 |
-
|
3145 |
-
if (!table) {
|
3146 |
-
table = form_view_elemet.parentNode.nextSibling;
|
3147 |
-
while (table) {
|
3148 |
-
if (table.tagName == "DIV") {
|
3149 |
-
break;
|
3150 |
-
}
|
3151 |
-
else {
|
3152 |
-
table = table.nextSibling;
|
3153 |
-
}
|
3154 |
-
}
|
3155 |
-
}
|
3156 |
-
|
3157 |
-
if (wdform_row.length > 0) {
|
3158 |
-
table_form_view = table.getElementsByClassName("wdform_page")[0];
|
3159 |
-
i = gen;
|
3160 |
-
gen++;
|
3161 |
-
|
3162 |
-
var wdform_row = document.createElement('div');
|
3163 |
-
wdform_row.setAttribute("wdid", i);
|
3164 |
-
wdform_row.setAttribute("type", "type_section_break");
|
3165 |
-
wdform_row.setAttribute("class", "wdform_tr_section_break");
|
3166 |
-
|
3167 |
-
var wdform_field = document.createElement('div');
|
3168 |
-
wdform_field.setAttribute("id", "wdform_field" + i);
|
3169 |
-
wdform_field.setAttribute("type", "type_section_break");
|
3170 |
-
wdform_field.setAttribute("class", "wdform_field_section_break");
|
3171 |
-
|
3172 |
-
var wdform_arrows = document.createElement('div');
|
3173 |
-
wdform_arrows.setAttribute("id", "wdform_arrows" + i);
|
3174 |
-
wdform_arrows.setAttribute("class", "wdform_arrows");
|
3175 |
-
wdform_arrows.style.display = 'none';
|
3176 |
-
wdform_field.appendChild(wdform_arrows);
|
3177 |
-
wdform_row.appendChild(wdform_field);
|
3178 |
-
var option = document.createElement('div');
|
3179 |
-
option.setAttribute("id", i + "_element_labelform_id_temp");
|
3180 |
-
option.style.color = 'red';
|
3181 |
-
option.innerHTML = "Section Break";
|
3182 |
-
wdform_row.appendChild(option);
|
3183 |
-
wdform_page = document.getElementById('form_id_tempform_view' + form_view);
|
3184 |
-
|
3185 |
-
var arrows_body = '<span class="wdform_arrows_basic wdform_arrows_container">' +
|
3186 |
-
'<span id="edit_' + i + '" valign="middle" class="element_toolbar">' +
|
3187 |
-
'<span title="Edit the field" class="page_toolbar dashicons dashicons-edit" onclick="edit("' + i + '")"></span>' +
|
3188 |
-
'</span>' +
|
3189 |
-
'<span id="duplicate_' + i + '" valign="middle" class="element_toolbar">' +
|
3190 |
-
'<span title="Duplicate the field" class="page_toolbar dashicons dashicons-admin-page" onclick="duplicate("' + i + '")"></span>' +
|
3191 |
-
'</span>' +
|
3192 |
-
'<span id="X_' + i + '" valign="middle" align="right" class="element_toolbar">' +
|
3193 |
-
'<span title="Remove the field" class="page_toolbar dashicons dashicons-no-alt" onclick="remove_section_break("' + i + '")"></span>' +
|
3194 |
-
'</span>' +
|
3195 |
-
'</span>';
|
3196 |
-
wdform_arrows.innerHTML = arrows_body;
|
3197 |
-
var in_editor = document.createElement("div");
|
3198 |
-
in_editor.setAttribute("id", i + "_element_sectionform_id_temp");
|
3199 |
-
in_editor.setAttribute("align", 'left');
|
3200 |
-
in_editor.setAttribute("class", 'wdform_section_break');
|
3201 |
-
|
3202 |
-
in_editor.innerHTML = "<div class='wdform-section-break-div' style='min-width: 300px; border-top:1px solid'></div>";
|
3203 |
-
wdform_field.appendChild(in_editor);
|
3204 |
-
|
3205 |
-
beforeTr = table_form_view.lastChild;
|
3206 |
-
table_form_view.insertBefore(wdform_row, beforeTr);
|
3207 |
-
|
3208 |
-
while (form_view_elemet.childNodes[1]) {
|
3209 |
-
beforeTr = table_form_view.lastChild;
|
3210 |
-
table_form_view.insertBefore(form_view_elemet.firstChild, beforeTr);
|
3211 |
}
|
3212 |
-
}
|
3213 |
-
|
3214 |
-
document.getElementById("take").removeChild(form_view_table);
|
3215 |
|
3216 |
refresh_pages(id);
|
3217 |
all_sortable_events();
|
@@ -3307,7 +3225,6 @@ function make_page_percentage_front() {
|
|
3307 |
function make_page_none_front() {
|
3308 |
var no_pagbar = document.createElement('div');
|
3309 |
no_pagbar.innerHTML = "NO PAGE BAR";
|
3310 |
-
no_pagbar.style.cssText = 'width:100px; padding:10px; border:1px solid #ccc;';
|
3311 |
|
3312 |
jQuery('#pages').empty();
|
3313 |
jQuery('#pages').append(no_pagbar);
|
@@ -3343,7 +3260,8 @@ function remove_add_(id)
|
|
3343 |
}
|
3344 |
}
|
3345 |
|
3346 |
-
function duplicate(id) {
|
|
|
3347 |
//document.getElementById('pos_end').checked = true;
|
3348 |
type=document.getElementById("wdform_field"+id).getAttribute('type');
|
3349 |
//////////////////////////////parameter take
|
@@ -4622,7 +4540,9 @@ function duplicate(id) {
|
|
4622 |
|
4623 |
need_enable=false;
|
4624 |
add(0, false);
|
4625 |
-
need_enable=true;
|
4626 |
-
|
4627 |
-
|
|
|
|
|
4628 |
}
|
342 |
|
343 |
|
344 |
sortable_columns();
|
|
|
345 |
}
|
346 |
|
347 |
function left_row(id) {
|
363 |
// wdform_section.removeChild(wdform_column);
|
364 |
|
365 |
sortable_columns();
|
|
|
366 |
}
|
367 |
|
368 |
function page_up(id) {
|
2816 |
/////////// el_page_break //////////////////
|
2817 |
///////////////////////////////////////////////
|
2818 |
|
2819 |
+
function remove_section_break(id) {
|
2820 |
+
var wdform_section_break = jQuery("#wdform_field" + id).parent();
|
2821 |
+
var move = wdform_section_break.next();
|
2822 |
+
var to = wdform_section_break.prev();
|
2823 |
|
2824 |
+
move.find('.wdform_column').each(function(col_index, column) {
|
2825 |
+
var to_col = to.children().eq(col_index);
|
2826 |
+
if (!to_col || to_col.hasClass('wdform_column_empty')) {
|
2827 |
+
to.find('.wdform_column_empty').before(column);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2828 |
}
|
2829 |
+
else {
|
2830 |
+
jQuery(column).find('.wdform_row').each(function(row_index, row) {
|
2831 |
+
to_col.append(row);
|
2832 |
+
});
|
2833 |
+
}
|
2834 |
+
});
|
2835 |
+
wdform_section_break.remove();
|
2836 |
+
move.remove();
|
2837 |
+
}
|
2838 |
+
|
2839 |
+
function fm_remove_section(remove_childs) {
|
2840 |
+
var section = jQuery('.fm-row-deleting').first().closest('.wdform_section');
|
2841 |
+
var wdform_section_break = section.prev('.wdform_tr_section_break');
|
2842 |
+
|
2843 |
+
if (!remove_childs) {
|
2844 |
+
var to = section.prevAll('.wdform_section:first');
|
2845 |
+
if (!to.length) {
|
2846 |
+
to = section.nextAll('.wdform_section:first');
|
2847 |
+
}
|
2848 |
+
if (!to.length) {
|
2849 |
+
return;
|
2850 |
+
}
|
2851 |
+
section.find('.wdform_column').each(function(col_index, column) {
|
2852 |
+
to.append(column);
|
2853 |
+
});
|
2854 |
+
}
|
2855 |
+
wdform_section_break.remove();
|
2856 |
+
section.remove();
|
2857 |
}
|
2858 |
|
2859 |
function remove_row(id)
|
2881 |
}
|
2882 |
|
2883 |
function show_form_view(id) {
|
2884 |
+
jQuery("#form_id_tempform_view"+id).show();
|
2885 |
}
|
2886 |
|
2887 |
function hide_form_view(id) {
|
2888 |
+
jQuery("#form_id_tempform_view"+id).hide();
|
2889 |
}
|
2890 |
|
2891 |
function generate_buttons(id) {
|
3000 |
fm_popup_toggle('fm_delete_page_popup_container');
|
3001 |
}
|
3002 |
|
3003 |
+
function remove_field(id, e) {
|
3004 |
+
jQuery('#fm_delete_field_id').val(id);
|
3005 |
+
fm_popup_toggle('fm_delete_field_popup_container');
|
3006 |
+
if ( typeof e != "undefined" ) {
|
3007 |
+
e.stopPropagation();
|
3008 |
+
e.preventDefault();
|
3009 |
+
}
|
3010 |
+
}
|
3011 |
+
|
3012 |
+
function fm_remove_column_popup(that) {
|
3013 |
+
jQuery('.wdform_column').removeClass('fm-column-deleting');
|
3014 |
+
jQuery(that).closest('.wdform_column').addClass('fm-column-deleting');
|
3015 |
+
fm_popup_toggle('fm_delete_column_popup_container');
|
3016 |
+
}
|
3017 |
+
|
3018 |
+
function fm_remove_row_popup(that) {
|
3019 |
+
jQuery('.wdform_section').removeClass('fm-row-deleting');
|
3020 |
+
jQuery(that).closest('.wdform_section').addClass('fm-row-deleting');
|
3021 |
+
fm_popup_toggle('fm_delete_row_popup_container');
|
3022 |
+
}
|
3023 |
+
|
3024 |
+
function fm_remove_column() {
|
3025 |
+
jQuery('.fm-column-deleting').remove();
|
3026 |
+
}
|
3027 |
+
|
3028 |
function remove_page_only() {
|
3029 |
id = jQuery('#fm_delete_page_id').val();
|
3030 |
refresh_pages_without_deleting(id);
|
3090 |
form_view_count = 0;
|
3091 |
destroyChildren(document.getElementById("pages"));
|
3092 |
var form_view_count = jQuery(".wdform-page-and-images").length;
|
3093 |
+
generate_page_bar();
|
3094 |
if (form_view_count > 1) {
|
3095 |
+
jQuery('#page_bar').removeClass('form_view_hide');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3096 |
}
|
3097 |
else {
|
3098 |
+
destroyChildren(document.getElementById("edit_page_navigation"));
|
3099 |
+
jQuery('#page_bar').addClass('form_view_hide');
|
3100 |
+
jQuery(".wdform_page").removeAttr('style');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3101 |
}
|
3102 |
}
|
3103 |
|
3104 |
function refresh_pages_without_deleting(id) {
|
3105 |
+
var form_view_elemet = jQuery("#form_id_tempform_view" + id);
|
3106 |
+
var wdform_row = form_view_elemet.find('.wdform_row');
|
|
|
3107 |
var form_view_count = jQuery(".wdform-page-and-images").length;
|
3108 |
if (form_view_count == 2) {
|
3109 |
jQuery(".form_id_tempform_view_img").removeClass('form_view_show').addClass('form_view_hide');
|
3110 |
jQuery('*[id*=form_id_temppage_nav]').empty();
|
3111 |
}
|
3112 |
|
3113 |
+
var table = form_view_elemet.parent();
|
3114 |
+
var to = table.prevAll('.wdform-page-and-images:first');
|
3115 |
+
if (!to.length) {
|
3116 |
+
to = table.nextAll('.wdform-page-and-images:first');
|
3117 |
+
}
|
3118 |
+
if (!to.length) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3119 |
return;
|
3120 |
}
|
3121 |
+
table.find('.wdform_section').each(function (col_index, column) {
|
3122 |
+
var to_col = to.find('.wdform_section').eq(col_index);
|
3123 |
+
if (!to_col.length) {
|
3124 |
+
to.find('.wdform_row_empty').before(column);
|
|
|
|
|
3125 |
}
|
3126 |
else {
|
3127 |
+
jQuery(column).find('.wdform_column:not(:empty)').each(function (row_index, row) {
|
3128 |
+
to_col.append(row);
|
3129 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3130 |
}
|
3131 |
+
});
|
3132 |
+
table.remove();
|
|
|
3133 |
|
3134 |
refresh_pages(id);
|
3135 |
all_sortable_events();
|
3225 |
function make_page_none_front() {
|
3226 |
var no_pagbar = document.createElement('div');
|
3227 |
no_pagbar.innerHTML = "NO PAGE BAR";
|
|
|
3228 |
|
3229 |
jQuery('#pages').empty();
|
3230 |
jQuery('#pages').append(no_pagbar);
|
3260 |
}
|
3261 |
}
|
3262 |
|
3263 |
+
function duplicate(id, e) {
|
3264 |
+
jQuery("#wdform_field"+id).closest(".wdform_column").after("<div id='cur_column' class='wdform_column'></div>");
|
3265 |
//document.getElementById('pos_end').checked = true;
|
3266 |
type=document.getElementById("wdform_field"+id).getAttribute('type');
|
3267 |
//////////////////////////////parameter take
|
4540 |
|
4541 |
need_enable=false;
|
4542 |
add(0, false);
|
4543 |
+
need_enable=true;
|
4544 |
+
if ( typeof e != "undefined" ) {
|
4545 |
+
e.stopPropagation();
|
4546 |
+
e.preventDefault();
|
4547 |
+
}
|
4548 |
}
|
js/jquery.ui.touch-punch.min.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery UI Touch Punch 0.2.3
|
3 |
+
*
|
4 |
+
* Copyright 2011–2014, Dave Furfero
|
5 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
+
*
|
7 |
+
* Depends:
|
8 |
+
* jquery.ui.widget.js
|
9 |
+
* jquery.ui.mouse.js
|
10 |
+
*/
|
11 |
+
!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery);
|
js/main_div_front_end.js
CHANGED
@@ -435,7 +435,7 @@ function generate_page_nav(id, form_id, form_view_count) {
|
|
435 |
td.style.display = "table-cell";
|
436 |
td.style.width = "40%";
|
437 |
page_nav.appendChild(td);
|
438 |
-
if (form_view_elemet.parentNode.previousSibling && 'wdform-page-and-images'
|
439 |
if (form_view_elemet.parentNode.previousSibling.tagName == "DIV") {
|
440 |
table = form_view_elemet.parentNode.previousSibling;
|
441 |
}
|
@@ -482,7 +482,7 @@ function generate_page_nav(id, form_id, form_view_count) {
|
|
482 |
page_nav.appendChild(td);
|
483 |
not_next = false;
|
484 |
if (form_view_elemet.parentNode.nextSibling) {
|
485 |
-
if (form_view_elemet.parentNode.nextSibling.tagName == "DIV" && form_view_elemet.parentNode.nextSibling.className
|
486 |
table = form_view_elemet.parentNode.nextSibling;
|
487 |
}
|
488 |
else {
|
@@ -1174,8 +1174,10 @@ function wd_is_filled(form_id, field_id, all_pages) {
|
|
1174 |
case 'type_phone_new':
|
1175 |
case 'type_submitter_mail': {
|
1176 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
|
|
|
|
1177 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1178 |
-
if(
|
1179 |
not_filled[wdid] = element;
|
1180 |
}
|
1181 |
}
|
@@ -1234,9 +1236,13 @@ function wd_is_filled(form_id, field_id, all_pages) {
|
|
1234 |
var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id];
|
1235 |
jQuery.each(element, function(i, elem){
|
1236 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
|
|
|
|
|
|
|
|
1240 |
}
|
1241 |
if(!field_id && !window['check_submit'+form_id]){
|
1242 |
jQuery(elem).focus(function() {
|
@@ -1253,7 +1259,9 @@ function wd_is_filled(form_id, field_id, all_pages) {
|
|
1253 |
var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
|
1254 |
jQuery.each(element, function(i, elem){
|
1255 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1256 |
-
|
|
|
|
|
1257 |
not_filled[wdid] = elem;
|
1258 |
}
|
1259 |
}
|
@@ -1487,24 +1495,36 @@ function wd_is_filled(form_id, field_id, all_pages) {
|
|
1487 |
break;
|
1488 |
}
|
1489 |
case 'type_matrix': {
|
1490 |
-
if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') ==
|
|
|
1491 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1492 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
1493 |
not_filled[wdid] = true;
|
1494 |
}
|
1495 |
}
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1508 |
}
|
1509 |
}
|
1510 |
else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text") {
|
435 |
td.style.display = "table-cell";
|
436 |
td.style.width = "40%";
|
437 |
page_nav.appendChild(td);
|
438 |
+
if (form_view_elemet.parentNode.previousSibling && form_view_elemet.parentNode.previousSibling.className.indexOf('wdform-page-and-images') != -1 && form_view_elemet.parentNode.previousSibling.previousSibling) {
|
439 |
if (form_view_elemet.parentNode.previousSibling.tagName == "DIV") {
|
440 |
table = form_view_elemet.parentNode.previousSibling;
|
441 |
}
|
482 |
page_nav.appendChild(td);
|
483 |
not_next = false;
|
484 |
if (form_view_elemet.parentNode.nextSibling) {
|
485 |
+
if (form_view_elemet.parentNode.nextSibling.tagName == "DIV" && form_view_elemet.parentNode.nextSibling.className.indexOf('wdform-page-and-images') != -1) {
|
486 |
table = form_view_elemet.parentNode.nextSibling;
|
487 |
}
|
488 |
else {
|
1174 |
case 'type_phone_new':
|
1175 |
case 'type_submitter_mail': {
|
1176 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
1177 |
+
var element_value = jQuery(element).val();
|
1178 |
+
element_value = jQuery.trim(element_value);
|
1179 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1180 |
+
if ( element_value == "" || element_value == jQuery(element).attr('title') ) {
|
1181 |
not_filled[wdid] = element;
|
1182 |
}
|
1183 |
}
|
1236 |
var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id];
|
1237 |
jQuery.each(element, function(i, elem){
|
1238 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1239 |
+
if ( jQuery(elem).length) {
|
1240 |
+
var element_value = jQuery(elem).val();
|
1241 |
+
element_value = jQuery.trim(element_value);
|
1242 |
+
if( ( element_value == "" || element_value == jQuery(elem).attr('title') ) && typeof element_value != "undefined") {
|
1243 |
+
not_filled[wdid] = elem;
|
1244 |
+
}
|
1245 |
+
}
|
1246 |
}
|
1247 |
if(!field_id && !window['check_submit'+form_id]){
|
1248 |
jQuery(elem).focus(function() {
|
1259 |
var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
|
1260 |
jQuery.each(element, function(i, elem){
|
1261 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1262 |
+
var element_value = jQuery(elem).val();
|
1263 |
+
element_value = jQuery.trim(element_value);
|
1264 |
+
if ( element_value == "" && typeof element_value != "undefined" ) {
|
1265 |
not_filled[wdid] = elem;
|
1266 |
}
|
1267 |
}
|
1495 |
break;
|
1496 |
}
|
1497 |
case 'type_matrix': {
|
1498 |
+
if ( jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') == 'radio'
|
1499 |
+
|| jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') == 'checkbox' ) {
|
1500 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1501 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
1502 |
not_filled[wdid] = true;
|
1503 |
}
|
1504 |
}
|
1505 |
+
|
1506 |
+
if ( jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') == 'radio' ) {
|
1507 |
+
jQuery.each(jQuery("#form" + form_id + " div[class^='wdform-matrix-row']"), function( i, rows ) {
|
1508 |
+
if ( jQuery(rows).find('input[type="radio"]:checked').length == 0 ) {
|
1509 |
+
not_filled[wdid] = true;
|
1510 |
+
}
|
1511 |
+
});
|
1512 |
+
}
|
1513 |
+
|
1514 |
+
if ( jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') == 'checkbox' ) {
|
1515 |
+
if ( !field_id && !window['check_submit'+form_id] ) {
|
1516 |
+
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
1517 |
+
jQuery(this).change(function() {
|
1518 |
+
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
1519 |
+
wd_is_filled(form_id, wdid);
|
1520 |
+
}
|
1521 |
+
else{
|
1522 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
1523 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
1524 |
+
}
|
1525 |
+
});
|
1526 |
+
});
|
1527 |
+
}
|
1528 |
}
|
1529 |
}
|
1530 |
else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text") {
|
js/themes.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
jQuery(document).ready(function() {
|
2 |
jQuery(".fm-themes-tabs li a").on("click", function(){
|
3 |
-
jQuery(".fm-themes-tabs-container .fm-themes-container").hide
|
4 |
jQuery(".fm-themes-tabs li a").removeClass("fm-theme-active-tab");
|
5 |
-
jQuery("#"+jQuery(this).attr("id")+'-content').
|
6 |
jQuery(this).addClass("fm-theme-active-tab");
|
7 |
jQuery("#active_tab").val(jQuery(this).attr("id"));
|
8 |
return false;
|
@@ -29,7 +29,7 @@ jQuery(document).ready(function() {
|
|
29 |
if (jQuery(window).width() > 768 && jQuery(this).scrollTop() > fm_form_example_pos - 32) {
|
30 |
jQuery('.form-example-preview').css({
|
31 |
'position': 'fixed',
|
32 |
-
'
|
33 |
'z-index': '10000',
|
34 |
'width': jQuery(".form-example-preview").outerWidth() + 'px'
|
35 |
});
|
1 |
jQuery(document).ready(function() {
|
2 |
jQuery(".fm-themes-tabs li a").on("click", function(){
|
3 |
+
jQuery(".fm-themes-tabs-container .fm-themes-container").addClass('fm-hide');
|
4 |
jQuery(".fm-themes-tabs li a").removeClass("fm-theme-active-tab");
|
5 |
+
jQuery("#"+jQuery(this).attr("id")+'-content').removeClass('fm-hide');
|
6 |
jQuery(this).addClass("fm-theme-active-tab");
|
7 |
jQuery("#active_tab").val(jQuery(this).attr("id"));
|
8 |
return false;
|
29 |
if (jQuery(window).width() > 768 && jQuery(this).scrollTop() > fm_form_example_pos - 32) {
|
30 |
jQuery('.form-example-preview').css({
|
31 |
'position': 'fixed',
|
32 |
+
'bottom': '75px',
|
33 |
'z-index': '10000',
|
34 |
'width': jQuery(".form-example-preview").outerWidth() + 'px'
|
35 |
});
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,10web
|
|
3 |
Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.0
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -79,6 +79,28 @@ After downloading the ZIP file,
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
= 1.12.42 =
|
83 |
* Fixed: Remove the link from "Privacy Policy" text in the form when there is no Privacy Policy page.
|
84 |
|
3 |
Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 1.13.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 1.13.0 =
|
83 |
+
* Added: Enable/Disable option for Form header.
|
84 |
+
* Added: Tax option for Stripe payments.
|
85 |
+
* Added: "Class name" option for "Single Line Text" field to allow add a css class for the field.
|
86 |
+
* Added: "Palestine" to country list field.
|
87 |
+
* Changed: Form editing page layout.
|
88 |
+
* Changed: Form Revisions functionality.
|
89 |
+
* Changed: Settings (Form Options) tab new design.
|
90 |
+
* Changed: Form Publishing tab new design.
|
91 |
+
* Changed: Selecting a Theme moved to Appearance.
|
92 |
+
* Changed: Make email options a separate tab.
|
93 |
+
* Changed: Remove required mark color from "Default" and "Inherit from site" themes.
|
94 |
+
* Changed: Inherit styles (font, color) from Elementor for Form maker widget.
|
95 |
+
* Fixed: Try to reproduce, try/catch curl part of code.
|
96 |
+
* Fixed: Requirement of table field should be affected on all rows of it.
|
97 |
+
* Fixed: The Like/Starting With options in WHERE of Select options from Database.
|
98 |
+
* Fixed: Remove the link of the word "Privacy Policy" when there is no Privacy Policy page.
|
99 |
+
* Fixed: Styles for rtl languages.
|
100 |
+
* Fixed: Addons settings for duplicated forms.
|
101 |
+
* Fixed: Required validation not allow space.
|
102 |
+
* Fixed: Error when clicking allow or skip to collect some usage data more then once.
|
103 |
+
|
104 |
= 1.12.42 =
|
105 |
* Fixed: Remove the link from "Privacy Policy" text in the form when there is no Privacy Policy page.
|
106 |
|
wd/assets/js/subsribe.js
CHANGED
@@ -1,36 +1,17 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
jQuery(
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
jQuery(".allow_and_continue").on("click", function(){
|
20 |
-
jQuery(this).css("opacity", "0.5");
|
21 |
-
jQuery(".wd_loader").css("visibility", "visible");
|
22 |
-
});
|
23 |
-
});
|
24 |
-
|
25 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
-
// Public Methods //
|
27 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
-
// Getters & Setters //
|
30 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
32 |
-
// Private Methods //
|
33 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
// Listeners //
|
36 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
1 |
+
jQuery(document).on("ready", function () {
|
2 |
+
jQuery(".permissions").on("click", function () {
|
3 |
+
jQuery(this).toggleClass("active");
|
4 |
+
jQuery(".list").slideToggle("fast");
|
5 |
+
return false;
|
6 |
+
});
|
7 |
+
jQuery(".allow_and_continue, .skip").on("click", function () {
|
8 |
+
var url = jQuery(this).attr("href");
|
9 |
+
if ( url ) {
|
10 |
+
jQuery(".allow_and_continue, .skip").css("opacity", "0.5");
|
11 |
+
jQuery(".allow_and_continue, .skip").attr("disabled", "disabled");
|
12 |
+
jQuery(".allow_and_continue, .skip").removeAttr("href");
|
13 |
+
jQuery(".wd_loader").css("display", "inline-block");
|
14 |
+
window.location = url;
|
15 |
+
}
|
16 |
+
});
|
17 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wd/includes/subscribe.php
CHANGED
@@ -1,138 +1,127 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
$data["
|
84 |
-
|
85 |
-
$
|
86 |
-
|
87 |
-
$
|
88 |
-
$
|
89 |
-
|
90 |
-
$
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
'
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
}
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
}
|
129 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
130 |
-
// Getters & Setters //
|
131 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
132 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
133 |
-
// Private Methods //
|
134 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
135 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
136 |
-
// Listeners //
|
137 |
-
// //////////////////////////////////////////////////////////////////////////////////////
|
138 |
-
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) { exit; }
|
3 |
+
class DoradoWebSubscribe {
|
4 |
+
|
5 |
+
public $config;
|
6 |
+
|
7 |
+
public function __construct( $config = array() ){
|
8 |
+
$this->config = $config;
|
9 |
+
add_action( 'admin_init', array( $this, 'after_subscribe' ) );
|
10 |
+
}
|
11 |
+
|
12 |
+
public function subscribe_scripts() {
|
13 |
+
$wd_options = $this->config;
|
14 |
+
wp_register_script ( 'subscribe_js', $wd_options->wd_url_js . '/subsribe.js' );
|
15 |
+
wp_enqueue_script ( 'subscribe_js' );
|
16 |
+
}
|
17 |
+
|
18 |
+
public function subscribe_styles() {
|
19 |
+
$wd_options = $this->config;
|
20 |
+
wp_enqueue_style( $wd_options->prefix . 'subscribe', $wd_options->wd_url_css . '/subscribe.css' );
|
21 |
+
}
|
22 |
+
|
23 |
+
public function subscribe_display_page() {
|
24 |
+
$wd_options = $this->config;
|
25 |
+
$list = array(
|
26 |
+
0 => array(
|
27 |
+
"title" => __( "Your name &", $wd_options->prefix ),
|
28 |
+
"small_text" => __( "Email address", $wd_options->prefix ),
|
29 |
+
"img" => $wd_options->wd_url_img . '/sub_1.png',
|
30 |
+
),
|
31 |
+
1 => array(
|
32 |
+
"title" => __( "Site URL", $wd_options->prefix ),
|
33 |
+
"small_text" => __( "Wordpress version", $wd_options->prefix ),
|
34 |
+
"img" => $wd_options->wd_url_img . '/sub_2.png',
|
35 |
+
),
|
36 |
+
2 => array(
|
37 |
+
"title" => __( "List of plugins", $wd_options->prefix ),
|
38 |
+
"small_text" => "",
|
39 |
+
"img" => $wd_options->wd_url_img . '/sub_4.png',
|
40 |
+
)
|
41 |
+
);
|
42 |
+
|
43 |
+
require_once ( $wd_options->wd_dir_templates . "/display_subscribe.php" );
|
44 |
+
}
|
45 |
+
|
46 |
+
public function after_subscribe() {
|
47 |
+
$wd_options = $this->config;
|
48 |
+
if ( isset( $_GET[ $wd_options->prefix . "_sub_action"] ) ) {
|
49 |
+
if ( $_GET[$wd_options->prefix . "_sub_action"] == "allow" ) {
|
50 |
+
try {
|
51 |
+
$api = new DoradoWebApi($wd_options);
|
52 |
+
if ( empty($api) ) {
|
53 |
+
throw new Exception('Error: Not Dorado Web Api');
|
54 |
+
}
|
55 |
+
|
56 |
+
$hash = $api->get_hash();
|
57 |
+
|
58 |
+
if ( empty($hash) ) {
|
59 |
+
throw new Exception('Error: Not get hash method');
|
60 |
+
}
|
61 |
+
|
62 |
+
if ( !empty($hash) ) {
|
63 |
+
$all_plugins = array();
|
64 |
+
$plugins = get_plugins();
|
65 |
+
foreach ( $plugins as $slug => $data ) {
|
66 |
+
$plugin = array(
|
67 |
+
"Name" => $data["Name"],
|
68 |
+
"PluginURI" => $data["PluginURI"],
|
69 |
+
"Author" => $data["Author"],
|
70 |
+
"AuthorURI" => $data["AuthorURI"]
|
71 |
+
);
|
72 |
+
$all_plugins[$slug] = $plugin;
|
73 |
+
}
|
74 |
+
|
75 |
+
$data = array();
|
76 |
+
$data["site_url"] = site_url();
|
77 |
+
|
78 |
+
$admin_data = wp_get_current_user();
|
79 |
+
|
80 |
+
$user_first_name = get_user_meta( $admin_data->ID, "first_name", true );
|
81 |
+
$user_last_name = get_user_meta( $admin_data->ID, "last_name", true );
|
82 |
+
|
83 |
+
$data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
|
84 |
+
$data["email"] = $admin_data->data->user_email;
|
85 |
+
$data["wp_version"] = get_bloginfo( 'version' );
|
86 |
+
$data["plugin_id"] = $wd_options->wd_plugin_id;
|
87 |
+
$data["hash"] = $hash;
|
88 |
+
$data["all_plugins"] = $all_plugins;
|
89 |
+
|
90 |
+
$response = wp_remote_post( "https://api.web-dorado.com/collectuserdata", array(
|
91 |
+
'method' => 'POST',
|
92 |
+
'timeout' => 45,
|
93 |
+
'redirection' => 5,
|
94 |
+
'httpversion' => '1.0',
|
95 |
+
'blocking' => true,
|
96 |
+
'headers' => array(),
|
97 |
+
'body' => json_encode($data),
|
98 |
+
'cookies' => array()
|
99 |
+
)
|
100 |
+
);
|
101 |
+
|
102 |
+
$response_body = (!is_wp_error($response) && isset( $response["body"] )) ? json_decode( $response["body"], true ) : null;
|
103 |
+
|
104 |
+
if ( $response_body == null ) {
|
105 |
+
throw new Exception('Error: Not remote post');
|
106 |
+
}
|
107 |
+
|
108 |
+
if( is_array( $response_body ) && $response_body["body"]["msg"] == "Access" ) {
|
109 |
+
// code
|
110 |
+
}
|
111 |
+
}
|
112 |
+
}
|
113 |
+
catch (Error $e) {
|
114 |
+
update_option( $wd_options->prefix . "_subscribe_done", 1 );
|
115 |
+
wp_safe_redirect($wd_options->after_subscribe);
|
116 |
+
}
|
117 |
+
catch (Exception $e) {
|
118 |
+
update_option( $wd_options->prefix . "_subscribe_done", 1 );
|
119 |
+
wp_safe_redirect($wd_options->after_subscribe);
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
update_option( $wd_options->prefix . "_subscribe_done", 1 );
|
124 |
+
wp_safe_redirect( $wd_options->after_subscribe );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wd/wd.php
CHANGED
@@ -1,156 +1,118 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
public $
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
//
|
35 |
-
public function
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
$
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
if( $wd_options->deactivate === true ){
|
120 |
-
add_filter( 'plugin_action_links_' . plugin_basename( $wd_options->plugin_main_file ), array( $this, 'change_deactivation_link' ) );
|
121 |
-
}
|
122 |
-
|
123 |
-
}
|
124 |
-
|
125 |
-
|
126 |
-
public function change_deactivation_link ( $links ) {
|
127 |
-
$wd_options = $this->config;
|
128 |
-
$deactivate_url =
|
129 |
-
add_query_arg(
|
130 |
-
array(
|
131 |
-
'action' => 'deactivate',
|
132 |
-
'plugin' => plugin_basename( $wd_options->plugin_main_file ),
|
133 |
-
'_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
|
134 |
-
),
|
135 |
-
admin_url( 'plugins.php' )
|
136 |
-
);
|
137 |
-
|
138 |
-
$links["deactivate"] = '<a href="'.$deactivate_url.'" class="' . $wd_options->prefix . '_deactivate_link">Deactivate</a>';
|
139 |
-
return $links;
|
140 |
-
}
|
141 |
-
|
142 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
143 |
-
// Getters & Setters //
|
144 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
145 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
146 |
-
// Private Methods //
|
147 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
148 |
-
|
149 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
150 |
-
// Listeners //
|
151 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
152 |
-
|
153 |
-
}
|
154 |
-
|
155 |
-
|
156 |
-
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) { exit; }
|
3 |
+
|
4 |
+
class DoradoWeb {
|
5 |
+
public static $instance;
|
6 |
+
public $overview_instance;
|
7 |
+
public $subscribe_instance;
|
8 |
+
public $config;
|
9 |
+
private $version = "1.0.15";
|
10 |
+
|
11 |
+
public function __construct() {
|
12 |
+
// Add menu for Overview page
|
13 |
+
add_action( 'admin_menu', array( $this, 'wd_overview_menu_page' ), 10 );
|
14 |
+
}
|
15 |
+
|
16 |
+
// Init plugin data
|
17 |
+
public function wd_init( $options ) {
|
18 |
+
|
19 |
+
if ( !is_array($options) ) {
|
20 |
+
return false;
|
21 |
+
}
|
22 |
+
|
23 |
+
$config = new DoradoWebConfig();
|
24 |
+
$config->set_options( $options );
|
25 |
+
$this->config = $config;
|
26 |
+
if ( !class_exists("DoradoWebApi") ) {
|
27 |
+
$this->wd_includes();
|
28 |
+
}
|
29 |
+
|
30 |
+
$this->init_classes();
|
31 |
+
$this->register_hooks();
|
32 |
+
}
|
33 |
+
|
34 |
+
// Create overview menu page
|
35 |
+
public function wd_overview_menu_page() {
|
36 |
+
$wd_options = $this->config;
|
37 |
+
|
38 |
+
$capability = $wd_options->menu_capability ? $wd_options->menu_capability : "manage_options";
|
39 |
+
if( get_option( $wd_options->prefix . "_subscribe_done" ) == 1 || $wd_options->subscribe === false ){
|
40 |
+
$parent_slug = $wd_options->custom_post;
|
41 |
+
}
|
42 |
+
else{
|
43 |
+
|
44 |
+
$subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, "manage_options", $wd_options->prefix . '_subscribe' , array( $this, 'display_subscribew_page' ), $wd_options->plugin_menu_icon, $wd_options->menu_position );
|
45 |
+
|
46 |
+
$subscribe_instance = new DoradoWebSubscribe($this->config);
|
47 |
+
$this->subscribe_instance = $subscribe_instance;
|
48 |
+
add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
|
49 |
+
add_action( 'admin_print_scripts-' . $subscribe_page, array( $subscribe_instance, 'subscribe_scripts' ) );
|
50 |
+
|
51 |
+
$parent_slug = null;
|
52 |
+
}
|
53 |
+
|
54 |
+
$overview_page = add_submenu_page( $parent_slug, __( 'Overview', $wd_options->prefix ), __( 'Overview', $wd_options->prefix ), $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ));
|
55 |
+
|
56 |
+
$overview_instance = new DoradoWebOverview($this->config);
|
57 |
+
$this->overview_instance = $overview_instance;
|
58 |
+
add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
|
59 |
+
add_action( 'admin_print_scripts-' . $overview_page, array( $overview_instance, 'overview_scripts' ) );
|
60 |
+
}
|
61 |
+
|
62 |
+
public function display_subscribew_page(){
|
63 |
+
$this->subscribe_instance->subscribe_display_page();
|
64 |
+
}
|
65 |
+
|
66 |
+
// Display overview page
|
67 |
+
public function display_overview_page() {
|
68 |
+
$this->overview_instance->display_overview_page();
|
69 |
+
}
|
70 |
+
|
71 |
+
// Includs
|
72 |
+
public function wd_includes(){
|
73 |
+
$wd_options = $this->config;
|
74 |
+
|
75 |
+
require_once $wd_options->wd_dir_includes . '/deactivate.php' ;
|
76 |
+
// notices
|
77 |
+
require_once $wd_options->wd_dir_includes . '/api.php';
|
78 |
+
require_once $wd_options->wd_dir_includes . '/notices.php';
|
79 |
+
require_once $wd_options->wd_dir_includes . "/overview.php";
|
80 |
+
require_once $wd_options->wd_dir_includes . "/subscribe.php";
|
81 |
+
}
|
82 |
+
|
83 |
+
public function init_classes(){
|
84 |
+
$wd_options = $this->config;
|
85 |
+
|
86 |
+
$current_url = $_SERVER['REQUEST_URI'];
|
87 |
+
if( $wd_options->deactivate === true ){
|
88 |
+
if(strpos( $current_url, "plugins.php" ) !== false ){
|
89 |
+
new DoradoWebDeactivate( $this->config );
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
new DoradoWebNotices( $this->config );
|
94 |
+
}
|
95 |
+
|
96 |
+
public function register_hooks() {
|
97 |
+
$wd_options = $this->config;
|
98 |
+
if ( $wd_options->deactivate === true ) {
|
99 |
+
add_filter( 'plugin_action_links_' . plugin_basename( $wd_options->plugin_main_file ), array( $this, 'change_deactivation_link' ) );
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
public function change_deactivation_link ( $links ) {
|
104 |
+
$wd_options = $this->config;
|
105 |
+
$deactivate_url = add_query_arg(
|
106 |
+
array(
|
107 |
+
'action' => 'deactivate',
|
108 |
+
'plugin' => plugin_basename( $wd_options->plugin_main_file ),
|
109 |
+
'_wpnonce' => wp_create_nonce( 'deactivate-plugin_' . plugin_basename( $wd_options->plugin_main_file ) )
|
110 |
+
),
|
111 |
+
admin_url( 'plugins.php' )
|
112 |
+
);
|
113 |
+
|
114 |
+
$links["deactivate"] = '<a href="'.$deactivate_url.'" class="' . $wd_options->prefix . '_deactivate_link">Deactivate</a>';
|
115 |
+
|
116 |
+
return $links;
|
117 |
+
}
|
118 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|