Version Description
- Added: Global option to enable Advanced Layout
- Changed: Themes table field name:
params
tocss
- Fixed: Bug on PHP 5.2
- Fixed: Uninstall bug in free version
- Fixed: bug on generating Theme css
- Fixed: CSS conflict with some ajax themes
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.11.3 |
Comparing to | |
See all releases |
Code changes from version 1.11.2 to 1.11.3
- admin/controllers/FMControllerGoptions_fm.php +12 -42
- admin/controllers/FMControllerManage_fm.php +1 -2
- admin/controllers/FMControllerThemes_fm.php +7 -7
- admin/models/FMModelGoptions_fm.php +0 -26
- admin/models/FMModelManage_fm.php +6 -6
- admin/models/FMModelSubmissions_fm.php +5 -5
- admin/models/FMModelThemes_fm.php +6 -6
- admin/models/FMModelUninstall_fm.php +1 -0
- admin/views/FMViewFormMakerSQLMapping.php +6 -6
- admin/views/FMViewGoptions_fm.php +99 -117
- admin/views/FMViewManage_fm.php +66 -52
- admin/views/FMViewSelect_data_from_db.php +10 -10
- admin/views/FMViewThemes_fm.php +2 -2
- css/form_maker_frontend.css +2 -1
- form-maker.php +53 -52
- form_maker_insert.php +15 -15
- form_maker_update.php +3 -0
- frontend/models/FMModelForm_maker.php +19 -13
- frontend/views/FMViewForm_maker.php +6 -9
- readme.txt +9 -1
admin/controllers/FMControllerGoptions_fm.php
CHANGED
@@ -1,34 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
class FMControllerGoptions_fm {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
-
// Constructor & Destructor //
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
public function __construct() {
|
17 |
-
}
|
18 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
-
// Public Methods //
|
20 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
public function execute() {
|
22 |
$task = WDW_FM_Library::get('task');
|
23 |
$id = (int)WDW_FM_Library::get('current_id', 0);
|
24 |
$message = WDW_FM_Library::get('message');
|
25 |
echo WDW_FM_Library::message_id($message);
|
26 |
if (method_exists($this, $task)) {
|
27 |
-
|
28 |
-
|
29 |
}
|
30 |
else {
|
31 |
-
|
32 |
}
|
33 |
}
|
34 |
|
@@ -46,29 +29,16 @@ class FMControllerGoptions_fm {
|
|
46 |
$page = WDW_FM_Library::get('page');
|
47 |
WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
48 |
}
|
49 |
-
|
50 |
-
public function save_db() {
|
51 |
-
global $wpdb;
|
52 |
-
$public_key = (isset($_POST['public_key']) ? esc_html(stripslashes( $_POST['public_key'])) : '');
|
53 |
-
$private_key = (isset($_POST['private_key']) ? esc_html(stripslashes( $_POST['private_key'])) : '');
|
54 |
-
$csv_delimiter = (isset($_POST['csv_delimiter']) && $_POST['csv_delimiter']!='' ? esc_html(stripslashes( $_POST['csv_delimiter'])) : ',');
|
55 |
-
$fm_shortcode = (isset($_POST['fm_shortcode']) ? "old" : '');
|
56 |
-
|
57 |
-
$map_key = (isset($_POST['map_key']) ? esc_html(stripslashes( $_POST['map_key'])) : '');
|
58 |
-
update_option('fm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'csv_delimiter' => $csv_delimiter, 'map_key' => $map_key, 'fm_shortcode' => $fm_shortcode,));
|
59 |
-
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
66 |
-
// Getters & Setters //
|
67 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
68 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
69 |
-
// Private Methods //
|
70 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
71 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
72 |
-
// Listeners //
|
73 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
74 |
}
|
1 |
<?php
|
2 |
|
3 |
class FMControllerGoptions_fm {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
public function execute() {
|
5 |
$task = WDW_FM_Library::get('task');
|
6 |
$id = (int)WDW_FM_Library::get('current_id', 0);
|
7 |
$message = WDW_FM_Library::get('message');
|
8 |
echo WDW_FM_Library::message_id($message);
|
9 |
if (method_exists($this, $task)) {
|
10 |
+
check_admin_referer('nonce_fm', 'nonce_fm');
|
11 |
+
$this->$task($id);
|
12 |
}
|
13 |
else {
|
14 |
+
$this->display();
|
15 |
}
|
16 |
}
|
17 |
|
29 |
$page = WDW_FM_Library::get('page');
|
30 |
WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
31 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
public function save_db() {
|
34 |
+
$public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
|
35 |
+
$private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
|
36 |
+
$csv_delimiter = (isset($_POST['csv_delimiter']) && $_POST['csv_delimiter'] != '' ? esc_html(stripslashes($_POST['csv_delimiter'])) : ',');
|
37 |
+
$fm_shortcode = (isset($_POST['fm_shortcode']) ? "old" : '');
|
38 |
+
$fm_advanced_layout = (isset($_POST['fm_advanced_layout']) ? '1' : '');
|
39 |
+
|
40 |
+
$map_key = (isset($_POST['map_key']) ? esc_html(stripslashes($_POST['map_key'])) : '');
|
41 |
+
update_option('fm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'csv_delimiter' => $csv_delimiter, 'map_key' => $map_key, 'fm_shortcode' => $fm_shortcode, 'fm_advanced_layout' => $fm_advanced_layout,));
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
}
|
admin/controllers/FMControllerManage_fm.php
CHANGED
@@ -733,8 +733,7 @@ function before_reset() {
|
|
733 |
}
|
734 |
}
|
735 |
|
736 |
-
$wpdb->query("UPDATE ".$wpdb->prefix."formmaker_backup SET cur=0 WHERE id=".$id );
|
737 |
-
|
738 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_backup', array(
|
739 |
'cur' => 1,
|
740 |
'id' => $id,
|
733 |
}
|
734 |
}
|
735 |
|
736 |
+
$wpdb->query("UPDATE ".$wpdb->prefix."formmaker_backup SET cur=0 WHERE id=".$id );
|
|
|
737 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_backup', array(
|
738 |
'cur' => 1,
|
739 |
'id' => $id,
|
admin/controllers/FMControllerThemes_fm.php
CHANGED
@@ -69,12 +69,12 @@ class FMControllerThemes_fm {
|
|
69 |
if (isset($_POST['check_' . $theme_id])) {
|
70 |
$theme = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'formmaker_themes where id=' . $theme_id);
|
71 |
$title = $theme->title;
|
72 |
-
$params = $theme->
|
73 |
$version = $theme->version;
|
74 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_themes',
|
75 |
array(
|
76 |
'title' => $title,
|
77 |
-
'
|
78 |
'version' => $version,
|
79 |
'default' => 0
|
80 |
));
|
@@ -102,13 +102,13 @@ class FMControllerThemes_fm {
|
|
102 |
global $wpdb;
|
103 |
$id = (int) WDW_FM_Library::get('current_id', 0);
|
104 |
$title = (isset($_POST['title']) ? esc_html(stripslashes( $_POST['title'])) : '');
|
105 |
-
$version =
|
106 |
$params = (isset($_POST['params']) ? stripslashes(preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $_POST['params'])) : '');
|
107 |
$default = (isset($_POST['default']) ? esc_html(stripslashes( $_POST['default'])) : 0);
|
108 |
if ($id != 0) {
|
109 |
$save = $wpdb->update($wpdb->prefix . 'formmaker_themes', array(
|
110 |
'title' => $title,
|
111 |
-
'
|
112 |
'default' => $default,
|
113 |
), array('id' => $id));
|
114 |
$version = $wpdb->get_var($wpdb->prepare("SELECT version FROM " . $wpdb->prefix . "formmaker_themes WHERE id=%d", $id));
|
@@ -116,7 +116,7 @@ class FMControllerThemes_fm {
|
|
116 |
else {
|
117 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_themes', array(
|
118 |
'title' => $title,
|
119 |
-
'
|
120 |
'default' => $default,
|
121 |
'version' => $version,
|
122 |
));
|
@@ -126,7 +126,7 @@ class FMControllerThemes_fm {
|
|
126 |
require_once WD_FM_DIR . "/frontend/models/FMModelForm_maker.php";
|
127 |
$model_frontend = new FMModelForm_maker();
|
128 |
$form_theme = json_decode(html_entity_decode($params), true);
|
129 |
-
$model_frontend->create_css($id, $form_theme, $version, true);
|
130 |
return 1;
|
131 |
}
|
132 |
else {
|
@@ -143,7 +143,7 @@ class FMControllerThemes_fm {
|
|
143 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_themes',
|
144 |
array(
|
145 |
'title' => $title,
|
146 |
-
'
|
147 |
'version' => $version,
|
148 |
'default' => 0
|
149 |
));
|
69 |
if (isset($_POST['check_' . $theme_id])) {
|
70 |
$theme = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'formmaker_themes where id=' . $theme_id);
|
71 |
$title = $theme->title;
|
72 |
+
$params = $theme->css;
|
73 |
$version = $theme->version;
|
74 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_themes',
|
75 |
array(
|
76 |
'title' => $title,
|
77 |
+
'css' => $params,
|
78 |
'version' => $version,
|
79 |
'default' => 0
|
80 |
));
|
102 |
global $wpdb;
|
103 |
$id = (int) WDW_FM_Library::get('current_id', 0);
|
104 |
$title = (isset($_POST['title']) ? esc_html(stripslashes( $_POST['title'])) : '');
|
105 |
+
$version = 2;
|
106 |
$params = (isset($_POST['params']) ? stripslashes(preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $_POST['params'])) : '');
|
107 |
$default = (isset($_POST['default']) ? esc_html(stripslashes( $_POST['default'])) : 0);
|
108 |
if ($id != 0) {
|
109 |
$save = $wpdb->update($wpdb->prefix . 'formmaker_themes', array(
|
110 |
'title' => $title,
|
111 |
+
'css' => $params,
|
112 |
'default' => $default,
|
113 |
), array('id' => $id));
|
114 |
$version = $wpdb->get_var($wpdb->prepare("SELECT version FROM " . $wpdb->prefix . "formmaker_themes WHERE id=%d", $id));
|
116 |
else {
|
117 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_themes', array(
|
118 |
'title' => $title,
|
119 |
+
'css' => $params,
|
120 |
'default' => $default,
|
121 |
'version' => $version,
|
122 |
));
|
126 |
require_once WD_FM_DIR . "/frontend/models/FMModelForm_maker.php";
|
127 |
$model_frontend = new FMModelForm_maker();
|
128 |
$form_theme = json_decode(html_entity_decode($params), true);
|
129 |
+
$model_frontend->create_css($id, $form_theme, $version == 1, true);
|
130 |
return 1;
|
131 |
}
|
132 |
else {
|
143 |
$save = $wpdb->insert($wpdb->prefix . 'formmaker_themes',
|
144 |
array(
|
145 |
'title' => $title,
|
146 |
+
'css' => $params,
|
147 |
'version' => $version,
|
148 |
'default' => 0
|
149 |
));
|
admin/models/FMModelGoptions_fm.php
CHANGED
@@ -1,30 +1,4 @@
|
|
1 |
<?php
|
2 |
|
3 |
class FMModelGoptions_fm {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
-
// Constructor & Destructor //
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
public function __construct() {
|
17 |
-
}
|
18 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
-
// Public Methods //
|
20 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
-
// Getters & Setters //
|
23 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
// Private Methods //
|
26 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
27 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
-
// Listeners //
|
29 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
30 |
}
|
1 |
<?php
|
2 |
|
3 |
class FMModelGoptions_fm {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
admin/models/FMModelManage_fm.php
CHANGED
@@ -149,12 +149,12 @@ class FMModelManage_fm {
|
|
149 |
{
|
150 |
case 'type_section_break':
|
151 |
{
|
152 |
-
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" ><div id="X_'.$id.'" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='.
|
153 |
break;
|
154 |
}
|
155 |
case 'type_editor':
|
156 |
{
|
157 |
-
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" type="type_editor" style="margin-top:0px;"><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='.
|
158 |
break;
|
159 |
}
|
160 |
|
@@ -164,13 +164,13 @@ class FMModelManage_fm {
|
|
164 |
case 'type_arithmetic_captcha':
|
165 |
case 'type_recaptcha':
|
166 |
{
|
167 |
-
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows"><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='.
|
168 |
break;
|
169 |
}
|
170 |
|
171 |
default :
|
172 |
{
|
173 |
-
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" ><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='.
|
174 |
break;
|
175 |
}
|
176 |
|
@@ -1262,7 +1262,7 @@ class FMModelManage_fm {
|
|
1262 |
$param['w_disable_past_days'] = isset($param['w_disable_past_days']) ? $param['w_disable_past_days'] : 'no';
|
1263 |
$disable_past_days = $param['w_disable_past_days'] == 'yes' ? 'true' : 'false';
|
1264 |
|
1265 |
-
$rep ='<div id="wdform_field'.$id.'" type="type_date" class="wdform_field" style="display: table-cell;">'.$arrows.'<div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; 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_date" 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_disable_past_days'].'" name="'.$id.'_dis_past_daysform_id_temp" id="'.$id.'_dis_past_daysform_id_temp"><input type="text" value="'.$param['w_date'].'" class="wdform-date" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" maxlength="10" size="10" onchange="change_value("'.$id.'_elementform_id_temp")" '.$param['attributes'].' disabled/><input id="'.$id.'_buttonform_id_temp" class="button" type="reset" value="'.$param['w_but_val'].'" format="'.$param['w_format'].'" src="templates/bluestork/images/system/calendar.png?ver='.
|
1266 |
|
1267 |
break;
|
1268 |
}
|
@@ -2384,7 +2384,7 @@ class FMModelManage_fm {
|
|
2384 |
$images = '';
|
2385 |
for($i=0; $i<$param['w_star_amount']; $i++)
|
2386 |
{
|
2387 |
-
$images .= '<img id="'.$id.'_star_'.$i.'" src="' . WD_FM_URL . '/images/star.png?ver='.
|
2388 |
}
|
2389 |
|
2390 |
$rep ='<div id="wdform_field'.$id.'" type="type_star_rating" 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">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required">'.$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_star_rating" 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_hide_label'].'" name="'.$id.'_hide_labelform_id_temp" id="'.$id.'_hide_labelform_id_temp"/><input type="hidden" value="'.$param['w_star_amount'].'" id="'.$id.'_star_amountform_id_temp" name="'.$id.'_star_amountform_id_temp"><input type="hidden" value="'.$param['w_field_label_col'].'" name="'.$id.'_star_colorform_id_temp" id="'.$id.'_star_colorform_id_temp"><div id="'.$id.'_elementform_id_temp" class="wdform_stars" '.$param['attributes'].'>'.$images.'</div></div></div>';
|
149 |
{
|
150 |
case 'type_section_break':
|
151 |
{
|
152 |
+
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" ><div id="X_'.$id.'" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='. WD_FM_VERSION.'" title="Remove the field" onclick="remove_section_break("'.$id.'")" onmouseover="chnage_icons_src(this,"delete_el")" onmouseout="chnage_icons_src(this,"delete_el")"></div><div id="edit_'.$id.'" class="element_toolbar"><img src="' . WD_FM_URL . '/images/edit.png?ver='. WD_FM_VERSION.'" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span></div><div id="duplicate_'.$id.'" class="element_toolbar"><img src="' . WD_FM_URL . '/images/duplicate.png?ver='. WD_FM_VERSION.'" title="Duplicate the field" onclick="duplicate("'.$id.'")" onmouseover="chnage_icons_src(this,"duplicate")" onmouseout="chnage_icons_src(this,"duplicate")"></div></div>';
|
153 |
break;
|
154 |
}
|
155 |
case 'type_editor':
|
156 |
{
|
157 |
+
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" type="type_editor" style="margin-top:0px;"><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='. WD_FM_VERSION.'" title="Remove the field" onclick="remove_row("'.$id.'")" onmouseover="chnage_icons_src(this,"delete_el")" onmouseout="chnage_icons_src(this,"delete_el")"></div><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/left.png?ver='. WD_FM_VERSION.'" title="Move the field to the left" onclick="left_row("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/up.png?ver='. WD_FM_VERSION.'" title="Move the field up" onclick="up_row("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/down.png?ver='. WD_FM_VERSION.'" title="Move the field down" onclick="down_row("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/right.png?ver='. WD_FM_VERSION.'" title="Move the field to the right" onclick="right_row("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/edit.png?ver='. WD_FM_VERSION.'" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></div><div id="duplicate_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/duplicate.png?ver='. WD_FM_VERSION.'" title="Duplicate the field" onclick="duplicate("'.$id.'")" onmouseover="chnage_icons_src(this,"duplicate")" onmouseout="chnage_icons_src(this,"duplicate")"></div><div id="page_up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/page_up.png?ver='. WD_FM_VERSION.'" title="Move the field to the upper page" onclick="page_up("'.$id.'")" onmouseover="chnage_icons_src(this,"page_up")" onmouseout="chnage_icons_src(this,"page_up")"></div><div id="page_down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/page_down.png?ver='. WD_FM_VERSION.'" title="Move the field to the lower page" onclick="page_down("'.$id.'")" onmouseover="chnage_icons_src(this,"page_down")" onmouseout="chnage_icons_src(this,"page_down")"></div></div>';
|
158 |
break;
|
159 |
}
|
160 |
|
164 |
case 'type_arithmetic_captcha':
|
165 |
case 'type_recaptcha':
|
166 |
{
|
167 |
+
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows"><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='. WD_FM_VERSION.'" title="Remove the field" onclick="remove_row("'.$id.'")" onmouseover="chnage_icons_src(this,"delete_el")" onmouseout="chnage_icons_src(this,"delete_el")"></div><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/left.png?ver='. WD_FM_VERSION.'" title="Move the field to the left" onclick="left_row("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/up.png?ver='. WD_FM_VERSION.'" title="Move the field up" onclick="up_row("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/down.png?ver='. WD_FM_VERSION.'" title="Move the field down" onclick="down_row("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/right.png?ver='. WD_FM_VERSION.'" title="Move the field to the right" onclick="right_row("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/edit.png?ver='. WD_FM_VERSION.'" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></div><div id="duplicate_'.$id.'" valign="middle" class="element_toolbar"></div><div id="page_up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/page_up.png?ver='. WD_FM_VERSION.'" title="Move the field to the upper page" onclick="page_up("'.$id.'")" onmouseover="chnage_icons_src(this,"page_up")" onmouseout="chnage_icons_src(this,"page_up")"></div><div id="page_down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/page_down.png?ver='. WD_FM_VERSION.'" title="Move the field to the lower page" onclick="page_down("'.$id.'")" onmouseover="chnage_icons_src(this,"page_down")" onmouseout="chnage_icons_src(this,"page_down")"></div></div>';
|
168 |
break;
|
169 |
}
|
170 |
|
171 |
default :
|
172 |
{
|
173 |
+
$arrows =$arrows.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" ><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><img src="' . WD_FM_URL . '/images/delete_el.png?ver='. WD_FM_VERSION.'" title="Remove the field" onclick="remove_row("'.$id.'")" onmouseover="chnage_icons_src(this,"delete_el")" onmouseout="chnage_icons_src(this,"delete_el")"></div><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/left.png?ver='. WD_FM_VERSION.'" title="Move the field to the left" onclick="left_row("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/up.png?ver='. WD_FM_VERSION.'" title="Move the field up" onclick="up_row("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/down.png?ver='. WD_FM_VERSION.'" title="Move the field down" onclick="down_row("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/right.png?ver='. WD_FM_VERSION.'" title="Move the field to the right" onclick="right_row("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/edit.png?ver='. WD_FM_VERSION.'" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></div><div id="duplicate_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/duplicate.png?ver='. WD_FM_VERSION.'" title="Duplicate the field" onclick="duplicate("'.$id.'")" onmouseover="chnage_icons_src(this,"duplicate")" onmouseout="chnage_icons_src(this,"duplicate")"></div><div id="page_up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/page_up.png?ver='. WD_FM_VERSION.'" title="Move the field to the upper page" onclick="page_up("'.$id.'")" onmouseover="chnage_icons_src(this,"page_up")" onmouseout="chnage_icons_src(this,"page_up")"></div><div id="page_down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_FM_URL . '/images/page_down.png?ver='. WD_FM_VERSION.'" title="Move the field to the lower page" onclick="page_down("'.$id.'")" onmouseover="chnage_icons_src(this,"page_down")" onmouseout="chnage_icons_src(this,"page_down")"></div></div>';
|
174 |
break;
|
175 |
}
|
176 |
|
1262 |
$param['w_disable_past_days'] = isset($param['w_disable_past_days']) ? $param['w_disable_past_days'] : 'no';
|
1263 |
$disable_past_days = $param['w_disable_past_days'] == 'yes' ? 'true' : 'false';
|
1264 |
|
1265 |
+
$rep ='<div id="wdform_field'.$id.'" type="type_date" class="wdform_field" style="display: table-cell;">'.$arrows.'<div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; 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_date" 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_disable_past_days'].'" name="'.$id.'_dis_past_daysform_id_temp" id="'.$id.'_dis_past_daysform_id_temp"><input type="text" value="'.$param['w_date'].'" class="wdform-date" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" maxlength="10" size="10" onchange="change_value("'.$id.'_elementform_id_temp")" '.$param['attributes'].' disabled/><input id="'.$id.'_buttonform_id_temp" class="button" type="reset" value="'.$param['w_but_val'].'" format="'.$param['w_format'].'" src="templates/bluestork/images/system/calendar.png?ver='. WD_FM_VERSION.'" alt="calendario" '.$param['attributes'].' onclick="return showCalendar("'.$id.'_elementform_id_temp" , "'.$param['w_format'].'", '.$disable_past_days.')"></div></div>';
|
1266 |
|
1267 |
break;
|
1268 |
}
|
2384 |
$images = '';
|
2385 |
for($i=0; $i<$param['w_star_amount']; $i++)
|
2386 |
{
|
2387 |
+
$images .= '<img id="'.$id.'_star_'.$i.'" src="' . WD_FM_URL . '/images/star.png?ver='. WD_FM_VERSION.'" onmouseover="change_src('.$i.','.$id.',"form_id_temp")" onmouseout="reset_src('.$i.','.$id.')" onclick="select_star_rating('.$i.','.$id.', "form_id_temp")">';
|
2388 |
}
|
2389 |
|
2390 |
$rep ='<div id="wdform_field'.$id.'" type="type_star_rating" 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">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required">'.$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_star_rating" 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_hide_label'].'" name="'.$id.'_hide_labelform_id_temp" id="'.$id.'_hide_labelform_id_temp"/><input type="hidden" value="'.$param['w_star_amount'].'" id="'.$id.'_star_amountform_id_temp" name="'.$id.'_star_amountform_id_temp"><input type="hidden" value="'.$param['w_field_label_col'].'" name="'.$id.'_star_colorform_id_temp" id="'.$id.'_star_colorform_id_temp"><div id="'.$id.'_elementform_id_temp" class="wdform_stars" '.$param['attributes'].'>'.$images.'</div></div></div>';
|
admin/models/FMModelSubmissions_fm.php
CHANGED
@@ -459,7 +459,7 @@ class FMModelSubmissions_fm {
|
|
459 |
array_push($label_type, $label_oder_each[1]);
|
460 |
}
|
461 |
/*$theme_id = $wpdb->get_var("SELECT theme FROM " . $wpdb->prefix . "formmaker WHERE id='" . $form->id . "'");*/
|
462 |
-
$css = $wpdb->get_var("SELECT
|
463 |
array_push($params, $rows);
|
464 |
array_push($params, $label_id);
|
465 |
array_push($params, $label_order_original);
|
@@ -498,10 +498,10 @@ class FMModelSubmissions_fm {
|
|
498 |
$stars = "";
|
499 |
$new_filename=explode('***', $new_filename);
|
500 |
for ($j = 0; $j < $new_filename[1]; $j++) {
|
501 |
-
$stars .= '<img id="' . $element_label . '_star_' . $j . '" src="' . WD_FM_URL . '/images/star_' . $new_filename[2] . '.png?ver='.
|
502 |
}
|
503 |
for ($k = $new_filename[1]; $k < $new_filename[0]; $k++) {
|
504 |
-
$stars .= '<img id="' . $element_label . '_star_' . $k . '" src="' . WD_FM_URL . '/images/star.png?ver='.
|
505 |
}
|
506 |
array_push($view_star_rating_array, $stars);
|
507 |
return $view_star_rating_array;
|
@@ -529,10 +529,10 @@ class FMModelSubmissions_fm {
|
|
529 |
$element_value1 = str_replace("***star_rating***", '', $element_value);
|
530 |
$stars_value = explode('***', $element_value1);
|
531 |
for ($j = 0; $j < $stars_value[1]; $j++) {
|
532 |
-
$edit_stars .= '<img id="'.$label_id.'_star_'.$j.'" onclick="edit_star_rating('.$j.','.$label_id.')" src="' . WD_FM_URL . '/images/star_'.$stars_value[2].'.png?ver='.
|
533 |
}
|
534 |
for( $k=$stars_value[1];$k<$stars_value[0];$k++) {
|
535 |
-
$edit_stars .= '<img id="'.$label_id.'_star_'.$k.'" onclick="edit_star_rating('.$k.','.$label_id.')" src="' . WD_FM_URL . '/images/star.png?ver='.
|
536 |
}
|
537 |
array_push($star_rating_array, $edit_stars);
|
538 |
array_push($star_rating_array, $stars_value);
|
459 |
array_push($label_type, $label_oder_each[1]);
|
460 |
}
|
461 |
/*$theme_id = $wpdb->get_var("SELECT theme FROM " . $wpdb->prefix . "formmaker WHERE id='" . $form->id . "'");*/
|
462 |
+
$css = $wpdb->get_var("SELECT css FROM " . $wpdb->prefix . "formmaker_themes");
|
463 |
array_push($params, $rows);
|
464 |
array_push($params, $label_id);
|
465 |
array_push($params, $label_order_original);
|
498 |
$stars = "";
|
499 |
$new_filename=explode('***', $new_filename);
|
500 |
for ($j = 0; $j < $new_filename[1]; $j++) {
|
501 |
+
$stars .= '<img id="' . $element_label . '_star_' . $j . '" src="' . WD_FM_URL . '/images/star_' . $new_filename[2] . '.png?ver='. WD_FM_VERSION.'" /> ';
|
502 |
}
|
503 |
for ($k = $new_filename[1]; $k < $new_filename[0]; $k++) {
|
504 |
+
$stars .= '<img id="' . $element_label . '_star_' . $k . '" src="' . WD_FM_URL . '/images/star.png?ver='. WD_FM_VERSION.'" /> ';
|
505 |
}
|
506 |
array_push($view_star_rating_array, $stars);
|
507 |
return $view_star_rating_array;
|
529 |
$element_value1 = str_replace("***star_rating***", '', $element_value);
|
530 |
$stars_value = explode('***', $element_value1);
|
531 |
for ($j = 0; $j < $stars_value[1]; $j++) {
|
532 |
+
$edit_stars .= '<img id="'.$label_id.'_star_'.$j.'" onclick="edit_star_rating('.$j.','.$label_id.')" src="' . WD_FM_URL . '/images/star_'.$stars_value[2].'.png?ver='. WD_FM_VERSION.'" /> ';
|
533 |
}
|
534 |
for( $k=$stars_value[1];$k<$stars_value[0];$k++) {
|
535 |
+
$edit_stars .= '<img id="'.$label_id.'_star_'.$k.'" onclick="edit_star_rating('.$k.','.$label_id.')" src="' . WD_FM_URL . '/images/star.png?ver='. WD_FM_VERSION.'" /> ';
|
536 |
}
|
537 |
array_push($star_rating_array, $edit_stars);
|
538 |
array_push($star_rating_array, $stars_value);
|
admin/models/FMModelThemes_fm.php
CHANGED
@@ -51,7 +51,7 @@ class FMModelThemes_fm {
|
|
51 |
$row->version = 2;
|
52 |
}
|
53 |
else {
|
54 |
-
$row->
|
55 |
}
|
56 |
}
|
57 |
}
|
@@ -59,16 +59,16 @@ class FMModelThemes_fm {
|
|
59 |
$row = new stdClass();
|
60 |
$row->id = 0;
|
61 |
$row->title = '';
|
62 |
-
$row->
|
63 |
$row->default = 0;
|
64 |
$row->version = 2;
|
65 |
}
|
66 |
-
$params_decoded = json_decode(html_entity_decode($row->
|
67 |
-
if (
|
68 |
-
$row->
|
69 |
}
|
70 |
else {
|
71 |
-
$row->
|
72 |
}
|
73 |
return $row;
|
74 |
}
|
51 |
$row->version = 2;
|
52 |
}
|
53 |
else {
|
54 |
+
$row->css = '';
|
55 |
}
|
56 |
}
|
57 |
}
|
59 |
$row = new stdClass();
|
60 |
$row->id = 0;
|
61 |
$row->title = '';
|
62 |
+
$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":"#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":""}';
|
63 |
$row->default = 0;
|
64 |
$row->version = 2;
|
65 |
}
|
66 |
+
$params_decoded = json_decode(html_entity_decode($row->css), true);
|
67 |
+
if ($params_decoded != null) {
|
68 |
+
$row->css = $params_decoded;
|
69 |
}
|
70 |
else {
|
71 |
+
$row->css = array("CUPCSS" => $row->css);
|
72 |
}
|
73 |
return $row;
|
74 |
}
|
admin/models/FMModelUninstall_fm.php
CHANGED
@@ -20,6 +20,7 @@ class FMModelUninstall_fm {
|
|
20 |
delete_option('fm_emailverification');
|
21 |
delete_option('fm_admin_notice');
|
22 |
delete_option('fm_settings');
|
|
|
23 |
wp_delete_post($email_verification_post_id);
|
24 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker");
|
25 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_submits");
|
20 |
delete_option('fm_emailverification');
|
21 |
delete_option('fm_admin_notice');
|
22 |
delete_option('fm_settings');
|
23 |
+
delete_option('fm_subscribe_done');
|
24 |
wp_delete_post($email_verification_post_id);
|
25 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker");
|
26 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_submits");
|
admin/views/FMViewFormMakerSQLMapping.php
CHANGED
@@ -93,7 +93,7 @@ class FMViewFormMakerSQLMapping {
|
|
93 |
$cond.='<option>'.str_replace("'", "SingleQuot", $col->Field).'</option>';
|
94 |
}
|
95 |
$cond.='</select>';
|
96 |
-
$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><input id="val_condid" style="width:170px" type="text" /><select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WD_FM_URL . '/images/delete.png?ver='.
|
97 |
?>
|
98 |
<script>
|
99 |
function connect() {
|
@@ -672,13 +672,13 @@ class FMViewFormMakerSQLMapping {
|
|
672 |
$title.="<li>Extra - ".$col->Extra."</li>";
|
673 |
$title.="</ul>";
|
674 |
?>
|
675 |
-
<div><label title="<?php echo $title; ?>" class="hasTip"><b><?php echo $col->Field; ?></b><img src="<?php echo WD_FM_URL . '/images/info.png?ver='.
|
676 |
<?php
|
677 |
}
|
678 |
}
|
679 |
|
680 |
if($con_method=='delete' or $con_method=='update') {
|
681 |
-
echo '<div class="select-db-op where"><img src="'.WD_FM_URL . '/images/add_condition.png?ver='.
|
682 |
if($wheres) {
|
683 |
echo '<script>';
|
684 |
|
@@ -1042,7 +1042,7 @@ class FMViewFormMakerSQLMapping {
|
|
1042 |
}
|
1043 |
$cond.='</select>';
|
1044 |
|
1045 |
-
$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><input id="val_condid" style="width:170px" type="text" /><select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WD_FM_URL . '/images/delete.png?ver='.
|
1046 |
?>
|
1047 |
<script>
|
1048 |
var selected_field ='';
|
@@ -1430,12 +1430,12 @@ class FMViewFormMakerSQLMapping {
|
|
1430 |
$title.="<li>Extra - ".$col->Extra."</li>";
|
1431 |
$title.="</ul>";
|
1432 |
?>
|
1433 |
-
<div><label title="<?php echo $title; ?>" class="hasTip"><b><?php echo $col->Field; ?></b><img src="<?php echo WD_FM_URL . '/images/info.png?ver='.
|
1434 |
<?php
|
1435 |
}
|
1436 |
}
|
1437 |
if($con_method=='delete' or $con_method=='update') {
|
1438 |
-
echo '<div class="select-db-op where"><img src="'.WD_FM_URL . '/images/add_condition.png?ver='.
|
1439 |
}
|
1440 |
?>
|
1441 |
</div>
|
93 |
$cond.='<option>'.str_replace("'", "SingleQuot", $col->Field).'</option>';
|
94 |
}
|
95 |
$cond.='</select>';
|
96 |
+
$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><input id="val_condid" style="width:170px" type="text" /><select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WD_FM_URL . '/images/delete.png?ver='. WD_FM_VERSION.'" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
97 |
?>
|
98 |
<script>
|
99 |
function connect() {
|
672 |
$title.="<li>Extra - ".$col->Extra."</li>";
|
673 |
$title.="</ul>";
|
674 |
?>
|
675 |
+
<div><label title="<?php echo $title; ?>" class="hasTip"><b><?php echo $col->Field; ?></b><img src="<?php echo WD_FM_URL . '/images/info.png?ver='. WD_FM_VERSION.''; ?>" style="width:20px; vertical-align:middle;padding-left: 10px;" /></label><input type="text" id="<?php echo str_replace("'", "SingleQuot", $col->Field); ?>" <?php if(!$col_checks[$key]) echo 'disabled="disabled"'?> value="<?php echo $col_vals[$key]; ?>" /><input id="ch_<?php echo str_replace("'", "SingleQuot", $col->Field); ?>" type="checkbox" onClick="dis('<?php echo str_replace("'", "SingleQuot", $col->Field); ?>', this.checked)" <?php if($col_checks[$key]) echo 'checked="checked"'?> /></div>
|
676 |
<?php
|
677 |
}
|
678 |
}
|
679 |
|
680 |
if($con_method=='delete' or $con_method=='update') {
|
681 |
+
echo '<div class="select-db-op where"><img src="'.WD_FM_URL . '/images/add_condition.png?ver='. WD_FM_VERSION.'" title="ADD" class="add_cond"/>WHERE</div>';
|
682 |
if($wheres) {
|
683 |
echo '<script>';
|
684 |
|
1042 |
}
|
1043 |
$cond.='</select>';
|
1044 |
|
1045 |
+
$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><input id="val_condid" style="width:170px" type="text" /><select id="andor_condid" style="visibility: hidden;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WD_FM_URL . '/images/delete.png?ver='. WD_FM_VERSION.'" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
1046 |
?>
|
1047 |
<script>
|
1048 |
var selected_field ='';
|
1430 |
$title.="<li>Extra - ".$col->Extra."</li>";
|
1431 |
$title.="</ul>";
|
1432 |
?>
|
1433 |
+
<div><label title="<?php echo $title; ?>" class="hasTip"><b><?php echo $col->Field; ?></b><img src="<?php echo WD_FM_URL . '/images/info.png?ver='. WD_FM_VERSION.''; ?>" style="width:20px; vertical-align:middle;padding-left: 10px;" /></label><input type="text" id="<?php echo str_replace("'", "SingleQuot", $col->Field); ?>" disabled="disabled"/><input id="ch_<?php echo str_replace("'", "SingleQuot", $col->Field); ?>" type="checkbox" onClick="dis('<?php echo str_replace("'", "SingleQuot", $col->Field); ?>', this.checked)"/></div>
|
1434 |
<?php
|
1435 |
}
|
1436 |
}
|
1437 |
if($con_method=='delete' or $con_method=='update') {
|
1438 |
+
echo '<div class="select-db-op where"><img src="'.WD_FM_URL . '/images/add_condition.png?ver='. WD_FM_VERSION.'" title="ADD" class="add_cond"/>WHERE</div>';
|
1439 |
}
|
1440 |
?>
|
1441 |
</div>
|
admin/views/FMViewGoptions_fm.php
CHANGED
@@ -1,126 +1,108 @@
|
|
1 |
<?php
|
2 |
class FMViewGoptions_fm {
|
3 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
4 |
-
// Events //
|
5 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
// Constants //
|
8 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
// Variables //
|
11 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
12 |
-
private $model;
|
13 |
|
14 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
15 |
-
// Constructor & Destructor //
|
16 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
-
public function __construct($model) {
|
18 |
-
$this->model = $model;
|
19 |
-
}
|
20 |
-
|
21 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
-
// Public Methods //
|
23 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
public function display() {
|
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 |
-
<tr>
|
81 |
-
<td>
|
82 |
-
|
83 |
-
</td>
|
84 |
-
<td>
|
85 |
-
<span style="width:250px; display: inline-block; padding: 0 5px;">(It may take up to 5 minutes for API key change to take effect.)</span>
|
86 |
-
</td>
|
87 |
-
<td>
|
88 |
-
|
89 |
-
</td>
|
90 |
-
</tr>
|
91 |
-
<tr>
|
92 |
-
<td>
|
93 |
-
<label for="csv_delimiter">CSV Delimiter:</label>
|
94 |
-
</td>
|
95 |
-
<td>
|
96 |
-
<input type="text" id="csv_delimiter" name="csv_delimiter" value="<?php echo $csv_delimiter; ?>" style="width:50px;" />
|
97 |
-
</td>
|
98 |
-
</tr>
|
99 |
-
<tr>
|
100 |
-
<td style="vertical-align: top; width: 200px;">
|
101 |
-
<label for="fm_shortcode">Use alternative version of JS code on front-end:</label>
|
102 |
-
</td>
|
103 |
-
<td style="padding: 6px 0 0 3px">
|
104 |
-
<input style="vertical-align:top;" type="checkbox" id="fm_shortcode" name="fm_shortcode" <?php if($fm_shortcode) echo "checked ='checked'" ?>/>
|
105 |
-
<div style="width:250px; display: inline-block; padding: 0 5px; color:red">Check this box only if you are getting JavaScript errors while trying to submit the form.</div>
|
106 |
-
</td>
|
107 |
-
</tr>
|
108 |
-
</tbody>
|
109 |
-
</table>
|
110 |
-
<input type="hidden" id="task" name="task" value=""/>
|
111 |
-
</form>
|
112 |
-
<?php
|
113 |
-
}
|
114 |
|
|
|
|
|
|
|
|
|
|
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
118 |
-
// Getters & Setters //
|
119 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
120 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
121 |
-
// Private Methods //
|
122 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
123 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
124 |
-
// Listeners //
|
125 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
126 |
}
|
1 |
<?php
|
2 |
class FMViewGoptions_fm {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
public function display() {
|
5 |
+
$fm_settings = get_option('fm_settings');
|
6 |
+
$public_key = isset($fm_settings['public_key']) ? $fm_settings['public_key'] : '';
|
7 |
+
$private_key = isset($fm_settings['private_key']) ? $fm_settings['private_key'] : '';
|
8 |
+
$csv_delimiter = isset($fm_settings['csv_delimiter']) ? $fm_settings['csv_delimiter'] : ',';
|
9 |
+
$fm_shortcode = isset($fm_settings['fm_shortcode']) ? $fm_settings['fm_shortcode'] : '';
|
10 |
+
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) ? $fm_settings['fm_advanced_layout'] : '';
|
11 |
+
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
12 |
+
?>
|
13 |
+
<div class="fm-clear"></div>
|
14 |
+
<form class="wrap" method="post" action="admin.php?page=goptions_fm">
|
15 |
+
<?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
|
16 |
+
<div class="fm-page-header">
|
17 |
+
<div class="fm-page-title">
|
18 |
+
Form Settings
|
19 |
+
</div>
|
20 |
+
<div class="fm-page-actions">
|
21 |
+
<button class="fm-button save-button medium" onclick="if (fm_check_required('title', 'Title')) {return false;}; fm_set_input_value('task', 'save');">
|
22 |
+
<span></span>
|
23 |
+
Save
|
24 |
+
</button>
|
25 |
+
</div>
|
26 |
+
</div>
|
27 |
+
|
28 |
+
<table style="clear:both;">
|
29 |
+
<tbody>
|
30 |
|
31 |
+
<tr>
|
32 |
+
<td>
|
33 |
+
<label for="public_key">Recaptcha Public Key:</label>
|
34 |
+
</td>
|
35 |
+
<td>
|
36 |
+
<input type="text" id="public_key" name="public_key" value="<?php echo $public_key; ?>" style="width:250px;"/>
|
37 |
+
</td>
|
38 |
+
<td rowspan="2">
|
39 |
+
<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank">Get Recaptcha</a>
|
40 |
+
</td>
|
41 |
+
</tr>
|
42 |
+
<tr>
|
43 |
+
<td>
|
44 |
+
<label for="private_key">Recaptcha Private Key:</label>
|
45 |
+
</td>
|
46 |
+
<td>
|
47 |
+
<input type="text" id="private_key" name="private_key" value="<?php echo $private_key; ?>" style="width:250px;"/>
|
48 |
+
</td>
|
49 |
+
</tr>
|
50 |
+
<tr>
|
51 |
+
<td>
|
52 |
+
<label for="public_key">Map API Key:</label>
|
53 |
+
</td>
|
54 |
+
<td>
|
55 |
+
<input type="text" id="map_key" name="map_key" value="<?php echo $map_key; ?>" style="width:250px;"/>
|
56 |
+
</td>
|
57 |
+
<td>
|
58 |
+
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">Get
|
59 |
+
map API key</a>
|
60 |
+
</td>
|
61 |
+
</tr>
|
62 |
+
<tr>
|
63 |
+
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
+
</td>
|
66 |
+
<td>
|
67 |
+
<span style="width:250px; display: inline-block; padding: 0 5px;">(It may take up to 5 minutes for API key change to take effect.)</span>
|
68 |
+
</td>
|
69 |
+
<td>
|
70 |
|
71 |
+
</td>
|
72 |
+
</tr>
|
73 |
+
<tr>
|
74 |
+
<td>
|
75 |
+
<label for="csv_delimiter">CSV Delimiter:</label>
|
76 |
+
</td>
|
77 |
+
<td>
|
78 |
+
<input type="text" id="csv_delimiter" name="csv_delimiter" value="<?php echo $csv_delimiter; ?>" style="width:50px;"/>
|
79 |
+
</td>
|
80 |
+
</tr>
|
81 |
+
<tr>
|
82 |
+
<td style="vertical-align: top; width: 200px;">
|
83 |
+
<label for="fm_shortcode">Use alternative version of JS code on front-end:</label>
|
84 |
+
</td>
|
85 |
+
<td style="padding: 6px 0 0 3px">
|
86 |
+
<input style="vertical-align:top;" type="checkbox" id="fm_shortcode" name="fm_shortcode" <?php if ($fm_shortcode) echo "checked ='checked'" ?>/>
|
87 |
+
<div style="width:250px; display: inline-block; padding: 0 5px; color:red">Check this box only if you are
|
88 |
+
getting JavaScript errors while trying to submit the form.
|
89 |
+
</div>
|
90 |
+
</td>
|
91 |
+
</tr>
|
92 |
+
<tr>
|
93 |
+
<td style="vertical-align: top; width: 200px;">
|
94 |
+
<label for="fm_advanced_layout">Enable Advanced Layout:</label>
|
95 |
+
</td>
|
96 |
+
<td style="padding: 6px 0 0 3px">
|
97 |
+
<input style="vertical-align:top;" type="checkbox" id="fm_advanced_layout" name="fm_advanced_layout" <?php if ($fm_advanced_layout) echo "checked ='checked'" ?>/>
|
98 |
+
<div style="width:250px; display: inline-block; padding: 0 5px; color:red">For advanced users only.</div>
|
99 |
+
</td>
|
100 |
+
</tr>
|
101 |
+
</tbody>
|
102 |
+
</table>
|
103 |
+
<input type="hidden" id="task" name="task" value=""/>
|
104 |
+
</form>
|
105 |
+
<?php
|
106 |
+
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
admin/views/FMViewManage_fm.php
CHANGED
@@ -170,7 +170,7 @@ class FMViewManage_fm {
|
|
170 |
<script type="text/javascript">
|
171 |
var plugin_url = "<?php echo WD_FM_URL; ?>";
|
172 |
</script>
|
173 |
-
<script src="<?php echo WD_FM_URL . '/js/formmaker_div.js'; ?>?ver=<?php echo
|
174 |
<script type="text/javascript">
|
175 |
is_addon_calculator_active = <?php echo (defined('WD_FM_CALCULATOR') && is_plugin_active(constant('WD_FM_CALCULATOR'))) ? 1 : 0; ?>;
|
176 |
is_addon_stripe_active = <?php echo $is_addon_stripe_active ? 1 : 0; ?>;
|
@@ -201,7 +201,7 @@ class FMViewManage_fm {
|
|
201 |
l_id_array = [<?php echo $labels['id']?>];
|
202 |
l_label_array = [<?php echo $labels['label']?>];
|
203 |
l_type_array = [<?php echo $labels['type']?>];
|
204 |
-
l_id_removed = [];
|
205 |
for (x = 0; x < l_id_array.length; x++) {
|
206 |
l_id_removed[l_id_array[x]] = true;
|
207 |
}
|
@@ -242,7 +242,7 @@ class FMViewManage_fm {
|
|
242 |
l_id_removed[l_id] = false;
|
243 |
}
|
244 |
}
|
245 |
-
|
246 |
}
|
247 |
|
248 |
if (wdtype == "type_address") {
|
@@ -250,7 +250,7 @@ class FMViewManage_fm {
|
|
250 |
id_for_country = addr_id;
|
251 |
if (document.getElementById(id_for_country + "_mini_label_street1"))
|
252 |
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
|
253 |
-
addr_id++;
|
254 |
if (document.getElementById(id_for_country + "_mini_label_street2"))
|
255 |
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
|
256 |
addr_id++;
|
@@ -266,12 +266,12 @@ class FMViewManage_fm {
|
|
266 |
if (document.getElementById(id_for_country+"_mini_label_country")) {
|
267 |
tox=tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
|
268 |
}
|
269 |
-
|
270 |
}
|
271 |
else {
|
272 |
tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
|
273 |
}
|
274 |
-
|
275 |
id = wdid;
|
276 |
form_fields += wdid + "*:*id*:*";
|
277 |
form_fields += wdtype + "*:*type*:*";
|
@@ -288,7 +288,7 @@ class FMViewManage_fm {
|
|
288 |
if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
|
289 |
w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
|
290 |
}
|
291 |
-
else {
|
292 |
w_field_label = " ";
|
293 |
}
|
294 |
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
@@ -336,7 +336,7 @@ class FMViewManage_fm {
|
|
336 |
wdform_page.childNodes[q].innerHTML = "%" + id + " - " + "custom_" + id + "%";
|
337 |
}
|
338 |
}
|
339 |
-
}
|
340 |
}
|
341 |
document.getElementById('label_order_current').value = tox;
|
342 |
|
@@ -348,7 +348,7 @@ class FMViewManage_fm {
|
|
348 |
|
349 |
document.getElementById('label_order').value = tox;
|
350 |
document.getElementById('form_fields').value = form_fields;
|
351 |
-
refresh_();
|
352 |
document.getElementById('pagination').value=document.getElementById('pages').getAttribute("type");
|
353 |
document.getElementById('show_title').value=document.getElementById('pages').getAttribute("show_title");
|
354 |
document.getElementById('show_numbers').value=document.getElementById('pages').getAttribute("show_numbers");
|
@@ -360,7 +360,7 @@ class FMViewManage_fm {
|
|
360 |
function enable() {
|
361 |
alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
|
362 |
for (x = 0; x < 14; x++) {
|
363 |
-
document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png?ver=<?php echo
|
364 |
}
|
365 |
if (document.getElementById('formMakerDiv').style.display == 'block') {
|
366 |
jQuery('#formMakerDiv').slideToggle(200);
|
@@ -368,7 +368,7 @@ class FMViewManage_fm {
|
|
368 |
else {
|
369 |
jQuery('#formMakerDiv').slideToggle(400);
|
370 |
}
|
371 |
-
|
372 |
if (document.getElementById('formMakerDiv1').style.display == 'block') {
|
373 |
jQuery('#formMakerDiv1').slideToggle(200);
|
374 |
}
|
@@ -381,7 +381,7 @@ class FMViewManage_fm {
|
|
381 |
function enable2() {
|
382 |
alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
|
383 |
for (x = 0; x < 14; x++) {
|
384 |
-
document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png?ver=<?php echo
|
385 |
}
|
386 |
if (document.getElementById('formMakerDiv').style.display == 'block') {
|
387 |
jQuery('#formMakerDiv').slideToggle(200);
|
@@ -389,7 +389,7 @@ class FMViewManage_fm {
|
|
389 |
else {
|
390 |
jQuery('#formMakerDiv').slideToggle(400);
|
391 |
}
|
392 |
-
|
393 |
if (document.getElementById('formMakerDiv1').style.display == 'block') {
|
394 |
jQuery('#formMakerDiv1').slideToggle(200);
|
395 |
}
|
@@ -427,7 +427,7 @@ class FMViewManage_fm {
|
|
427 |
<span></span>
|
428 |
Redo
|
429 |
</button>
|
430 |
-
<?php
|
431 |
}
|
432 |
$query = "SELECT backup_id FROM " . $wpdb->prefix . "formmaker_backup WHERE backup_id < ".$row->backup_id." AND id = ".$row->id." ORDER BY backup_id DESC LIMIT 0 , 1 ";
|
433 |
$backup_id = $wpdb->get_var($query);
|
@@ -441,7 +441,7 @@ class FMViewManage_fm {
|
|
441 |
}
|
442 |
}
|
443 |
?>
|
444 |
-
|
445 |
<?php if ($id) { ?>
|
446 |
<button class="fm-button save-as-copy-button medium" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'save_as_copy');">
|
447 |
<span></span>
|
@@ -463,7 +463,7 @@ class FMViewManage_fm {
|
|
463 |
</div>
|
464 |
<div class="fm-clear"></div>
|
465 |
</div>
|
466 |
-
|
467 |
<div class="fm-theme-banner">
|
468 |
<div class="fm-title">
|
469 |
<span style="">Title: </span>
|
@@ -478,10 +478,24 @@ class FMViewManage_fm {
|
|
478 |
<span></span>
|
479 |
Form Options
|
480 |
</button>
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
485 |
</div>
|
486 |
</div>
|
487 |
<div class="fm-clear"></div>
|
@@ -539,71 +553,71 @@ class FMViewManage_fm {
|
|
539 |
<tbody>
|
540 |
<tr>
|
541 |
<td align="center" onclick="addRow('customHTML')" class="field_buttons" id="table_editor">
|
542 |
-
<img src="<?php echo WD_FM_URL; ?>/images/customHTML.png?ver=<?php echo
|
543 |
<div>Custom HTML</div>
|
544 |
</td>
|
545 |
<td align="center" onclick="addRow('text')" class="field_buttons" id="table_text">
|
546 |
-
<img src="<?php echo WD_FM_URL; ?>/images/text.png?ver=<?php echo
|
547 |
<div>Text input</div>
|
548 |
</td>
|
549 |
</tr>
|
550 |
<tr>
|
551 |
<td align="center" onclick="addRow('checkbox')" class="field_buttons" id="table_checkbox">
|
552 |
-
<img src="<?php echo WD_FM_URL; ?>/images/checkbox.png?ver=<?php echo
|
553 |
<div>Multiple Choice</div>
|
554 |
</td>
|
555 |
<td align="center" onclick="addRow('radio')" class="field_buttons" id="table_radio">
|
556 |
-
<img src="<?php echo WD_FM_URL; ?>/images/radio.png?ver=<?php echo
|
557 |
<div>Single Choice</div>
|
558 |
</td>
|
559 |
</tr>
|
560 |
<tr>
|
561 |
<td align="center" onclick="addRow('survey')" class="field_buttons" id="table_survey">
|
562 |
-
<img src="<?php echo WD_FM_URL; ?>/images/survey.png?ver=<?php echo
|
563 |
<div>Survey Tools</div>
|
564 |
</td>
|
565 |
<td align="center" onclick="addRow('time_and_date')" class="field_buttons" id="table_time_and_date">
|
566 |
-
<img src="<?php echo WD_FM_URL; ?>/images/time_and_date.png?ver=<?php echo
|
567 |
<div>Time and Date</div>
|
568 |
</td>
|
569 |
</tr>
|
570 |
<tr>
|
571 |
<td align="center" onclick="addRow('select')" class="field_buttons" id="table_select">
|
572 |
-
<img src="<?php echo WD_FM_URL; ?>/images/select.png?ver=<?php echo
|
573 |
<div>Select Box</div>
|
574 |
</td>
|
575 |
<td align="center" onclick="alert('This field type is disabled in free version. If you need this functionality, you need to buy the commercial version.')" class="field_buttons field_disabled" id="table_file_upload">
|
576 |
-
<img src="<?php echo WD_FM_URL; ?>/images/file_upload.png?ver=<?php echo
|
577 |
<div>File Upload</div>
|
578 |
</td>
|
579 |
</tr>
|
580 |
<tr>
|
581 |
<td align="center" onclick="addRow('section_break')" class="field_buttons" id="table_section_break">
|
582 |
-
<img src="<?php echo WD_FM_URL; ?>/images/section_break.png?ver=<?php echo
|
583 |
<div>Section Break</div>
|
584 |
</td>
|
585 |
<td align="center" onclick="addRow('page_break')" class="field_buttons" id="table_page_break">
|
586 |
-
<img src="<?php echo WD_FM_URL; ?>/images/page_break.png?ver=<?php echo
|
587 |
<div>Page Break</div>
|
588 |
</td>
|
589 |
</tr>
|
590 |
<tr>
|
591 |
<td align="center" onclick="alert('This field type is disabled in free version. If you need this functionality, you need to buy the commercial version.')" class="field_buttons field_disabled" id="table_map">
|
592 |
-
<img src="<?php echo WD_FM_URL; ?>/images/map.png?ver=<?php echo
|
593 |
<div>Map</div>
|
594 |
</td>
|
595 |
<td align="center" onclick="alert('This field type is disabled in free version. If you need this functionality, you need to buy the commercial version.')" id="table_paypal" class="field_buttons field_disabled">
|
596 |
-
<img src="<?php echo WD_FM_URL; ?>/images/paypal.png?ver=<?php echo
|
597 |
<div>Payment</div>
|
598 |
</td>
|
599 |
</tr>
|
600 |
<tr>
|
601 |
<td align="center" onclick="addRow('captcha')" class="field_buttons" id="table_captcha">
|
602 |
-
<img src="<?php echo WD_FM_URL; ?>/images/captcha.png?ver=<?php echo
|
603 |
<div>Captcha</div>
|
604 |
</td>
|
605 |
<td align="center" onclick="addRow('button')" id="table_button" class="field_buttons">
|
606 |
-
<img src="<?php echo WD_FM_URL; ?>/images/button.png?ver=<?php echo
|
607 |
<div>Button</div>
|
608 |
</td>
|
609 |
</tr>
|
@@ -818,10 +832,10 @@ class FMViewManage_fm {
|
|
818 |
</div>
|
819 |
<div id="form_id_tempform_view_img1" style="float: right;">
|
820 |
<div>
|
821 |
-
<img src="<?php echo WD_FM_URL . '/images/minus.png?ver='.
|
822 |
-
<img src="<?php echo WD_FM_URL . '/images/page_delete.png?ver='.
|
823 |
-
<img src="<?php echo WD_FM_URL . '/images/page_delete_all.png?ver='.
|
824 |
-
<img src="<?php echo WD_FM_URL . '/images/page_edit.png?ver='.
|
825 |
</div>
|
826 |
</div>
|
827 |
</div>
|
@@ -1346,7 +1360,7 @@ class FMViewManage_fm {
|
|
1346 |
tbody_img.style.cssText = "float:right";
|
1347 |
tr_img = document.createElement('div');
|
1348 |
var img = document.createElement('img');
|
1349 |
-
img.setAttribute('src', '<?php echo WD_FM_URL; ?>/images/minus.png?ver=<?php echo
|
1350 |
img.setAttribute('title', 'Show or hide the page');
|
1351 |
img.setAttribute("class", "page_toolbar");
|
1352 |
img.setAttribute('id', 'show_page_img_' + i);
|
@@ -1354,21 +1368,21 @@ class FMViewManage_fm {
|
|
1354 |
img.setAttribute("onmouseover", 'chnage_icons_src(this,"minus")');
|
1355 |
img.setAttribute("onmouseout", 'chnage_icons_src(this,"minus")');
|
1356 |
var img_X = document.createElement("img");
|
1357 |
-
img_X.setAttribute("src", "<?php echo WD_FM_URL; ?>/images/page_delete.png?ver=<?php echo
|
1358 |
img_X.setAttribute('title', 'Delete the page');
|
1359 |
img_X.setAttribute("class", "page_toolbar");
|
1360 |
img_X.setAttribute("onclick", 'remove_page("' + i + '")');
|
1361 |
img_X.setAttribute("onmouseover", 'chnage_icons_src(this,"page_delete")');
|
1362 |
img_X.setAttribute("onmouseout", 'chnage_icons_src(this,"page_delete")');
|
1363 |
var img_X_all = document.createElement("img");
|
1364 |
-
img_X_all.setAttribute("src", "<?php echo WD_FM_URL; ?>/images/page_delete_all.png?ver=<?php echo
|
1365 |
img_X_all.setAttribute('title', 'Delete the page with fields');
|
1366 |
img_X_all.setAttribute("class", "page_toolbar");
|
1367 |
img_X_all.setAttribute("onclick", 'remove_page_all("' + i + '")');
|
1368 |
img_X_all.setAttribute("onmouseover", 'chnage_icons_src(this,"page_delete_all")');
|
1369 |
img_X_all.setAttribute("onmouseout", 'chnage_icons_src(this,"page_delete_all")');
|
1370 |
var img_EDIT = document.createElement("img");
|
1371 |
-
img_EDIT.setAttribute("src", "<?php echo WD_FM_URL; ?>/images/page_edit.png?ver=<?php echo
|
1372 |
img_EDIT.setAttribute('title', 'Edit the page');
|
1373 |
img_EDIT.setAttribute("class", "page_toolbar");
|
1374 |
img_EDIT.setAttribute("onclick", 'edit_page_break("' + i + '")');
|
@@ -1394,7 +1408,7 @@ class FMViewManage_fm {
|
|
1394 |
need_enable = false;
|
1395 |
generate_page_nav(first_form_view);
|
1396 |
var img_EDIT = document.createElement("img");
|
1397 |
-
img_EDIT.setAttribute("src", "<?php echo WD_FM_URL . '/images/edit.png?ver='.
|
1398 |
img_EDIT.style.cssText = "margin-left:40px; cursor:pointer";
|
1399 |
img_EDIT.setAttribute("onclick", 'el_page_navigation()');
|
1400 |
var td_EDIT = document.getElementById("edit_page_navigation");
|
@@ -1910,7 +1924,7 @@ class FMViewManage_fm {
|
|
1910 |
<td class="fm_options_value">
|
1911 |
<input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
|
1912 |
<input type="hidden" id="mail" name="mail" value="<?php echo $row->mail . ($row->mail && (substr($row->mail, -1) != ',') ? ',' : ''); ?>" />
|
1913 |
-
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='.
|
1914 |
<div id="cfm_mail_div">
|
1915 |
<?php
|
1916 |
$mail_array = explode(',', $row->mail);
|
@@ -1919,7 +1933,7 @@ class FMViewManage_fm {
|
|
1919 |
?>
|
1920 |
<div class="fm_mail_input">
|
1921 |
<?php echo $mail; ?>
|
1922 |
-
<img src="<?php echo WD_FM_URL; ?>/images/delete.png?ver=<?php echo
|
1923 |
</div>
|
1924 |
<?php
|
1925 |
}
|
@@ -1966,7 +1980,7 @@ class FMViewManage_fm {
|
|
1966 |
</td>
|
1967 |
<td class="fm_options_value">
|
1968 |
<input type="text" id="from_name" name="from_name" value="<?php echo $row->from_name; ?>" style="width: 250px;" />
|
1969 |
-
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='.
|
1970 |
<?php
|
1971 |
$choise = "document.getElementById('from_name')";
|
1972 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_labels" class="email_labels" style="display:none;">';
|
@@ -2046,7 +2060,7 @@ class FMViewManage_fm {
|
|
2046 |
</td>
|
2047 |
<td class="fm_options_value">
|
2048 |
<input type="text" id="mail_subject" name="mail_subject" value="<?php echo $row->mail_subject ?>" style="width:250px;" />
|
2049 |
-
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='.
|
2050 |
<?php
|
2051 |
$choise = "document.getElementById('mail_subject')";
|
2052 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_labels" class="email_labels" style="display:none;">';
|
@@ -2202,7 +2216,7 @@ class FMViewManage_fm {
|
|
2202 |
</td>
|
2203 |
<td class="fm_options_value">
|
2204 |
<input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
|
2205 |
-
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='.
|
2206 |
<?php
|
2207 |
$choise = "document.getElementById('mail_from_name_user')";
|
2208 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_name_user_labels" class="email_labels" style="display:none;">';
|
@@ -2256,7 +2270,7 @@ class FMViewManage_fm {
|
|
2256 |
</td>
|
2257 |
<td class="fm_options_value">
|
2258 |
<input type="text" id="mail_subject_user" name="mail_subject_user" value="<?php echo $row->mail_subject_user ?>" style="width:250px;" />
|
2259 |
-
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='.
|
2260 |
<?php
|
2261 |
$choise = "document.getElementById('mail_subject_user')";
|
2262 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_user_labels" class="email_labels" style="display:none;">';
|
@@ -2654,8 +2668,8 @@ class FMViewManage_fm {
|
|
2654 |
<option value="or" <?php if($all_any[$k]=="or") echo 'selected="selected"'; ?>>any</option>
|
2655 |
</select>
|
2656 |
<span>of the following match:</span>
|
2657 |
-
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='.
|
2658 |
-
<img src="<?php echo WD_FM_URL . '/images/page_delete.png?ver='.
|
2659 |
</div>
|
2660 |
<?php
|
2661 |
if($condition_params[$k]) {
|
@@ -2800,7 +2814,7 @@ class FMViewManage_fm {
|
|
2800 |
?>
|
2801 |
<input id="field_value<?php echo $k; ?>_<?php echo $key; ?>" type="text" value="<?php echo $param_values[2];?>" <?php echo $onkeypress_function; ?> style=" width: 200px;"><?php endif; ?>
|
2802 |
|
2803 |
-
<img src="<?php echo WD_FM_URL . '/images/delete.png?ver='.
|
2804 |
</div>
|
2805 |
<?php endif;
|
2806 |
}
|
170 |
<script type="text/javascript">
|
171 |
var plugin_url = "<?php echo WD_FM_URL; ?>";
|
172 |
</script>
|
173 |
+
<script src="<?php echo WD_FM_URL . '/js/formmaker_div.js'; ?>?ver=<?php echo WD_FM_VERSION; ?>" type="text/javascript"></script>
|
174 |
<script type="text/javascript">
|
175 |
is_addon_calculator_active = <?php echo (defined('WD_FM_CALCULATOR') && is_plugin_active(constant('WD_FM_CALCULATOR'))) ? 1 : 0; ?>;
|
176 |
is_addon_stripe_active = <?php echo $is_addon_stripe_active ? 1 : 0; ?>;
|
201 |
l_id_array = [<?php echo $labels['id']?>];
|
202 |
l_label_array = [<?php echo $labels['label']?>];
|
203 |
l_type_array = [<?php echo $labels['type']?>];
|
204 |
+
l_id_removed = [];
|
205 |
for (x = 0; x < l_id_array.length; x++) {
|
206 |
l_id_removed[l_id_array[x]] = true;
|
207 |
}
|
242 |
l_id_removed[l_id] = false;
|
243 |
}
|
244 |
}
|
245 |
+
|
246 |
}
|
247 |
|
248 |
if (wdtype == "type_address") {
|
250 |
id_for_country = addr_id;
|
251 |
if (document.getElementById(id_for_country + "_mini_label_street1"))
|
252 |
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
|
253 |
+
addr_id++;
|
254 |
if (document.getElementById(id_for_country + "_mini_label_street2"))
|
255 |
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
|
256 |
addr_id++;
|
266 |
if (document.getElementById(id_for_country+"_mini_label_country")) {
|
267 |
tox=tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
|
268 |
}
|
269 |
+
|
270 |
}
|
271 |
else {
|
272 |
tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
|
273 |
}
|
274 |
+
|
275 |
id = wdid;
|
276 |
form_fields += wdid + "*:*id*:*";
|
277 |
form_fields += wdtype + "*:*type*:*";
|
288 |
if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
|
289 |
w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
|
290 |
}
|
291 |
+
else {
|
292 |
w_field_label = " ";
|
293 |
}
|
294 |
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
336 |
wdform_page.childNodes[q].innerHTML = "%" + id + " - " + "custom_" + id + "%";
|
337 |
}
|
338 |
}
|
339 |
+
}
|
340 |
}
|
341 |
document.getElementById('label_order_current').value = tox;
|
342 |
|
348 |
|
349 |
document.getElementById('label_order').value = tox;
|
350 |
document.getElementById('form_fields').value = form_fields;
|
351 |
+
refresh_();
|
352 |
document.getElementById('pagination').value=document.getElementById('pages').getAttribute("type");
|
353 |
document.getElementById('show_title').value=document.getElementById('pages').getAttribute("show_title");
|
354 |
document.getElementById('show_numbers').value=document.getElementById('pages').getAttribute("show_numbers");
|
360 |
function enable() {
|
361 |
alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
|
362 |
for (x = 0; x < 14; x++) {
|
363 |
+
document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png?ver=<?php echo WD_FM_VERSION; ?>";
|
364 |
}
|
365 |
if (document.getElementById('formMakerDiv').style.display == 'block') {
|
366 |
jQuery('#formMakerDiv').slideToggle(200);
|
368 |
else {
|
369 |
jQuery('#formMakerDiv').slideToggle(400);
|
370 |
}
|
371 |
+
|
372 |
if (document.getElementById('formMakerDiv1').style.display == 'block') {
|
373 |
jQuery('#formMakerDiv1').slideToggle(200);
|
374 |
}
|
381 |
function enable2() {
|
382 |
alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
|
383 |
for (x = 0; x < 14; x++) {
|
384 |
+
document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png?ver=<?php echo WD_FM_VERSION; ?>";
|
385 |
}
|
386 |
if (document.getElementById('formMakerDiv').style.display == 'block') {
|
387 |
jQuery('#formMakerDiv').slideToggle(200);
|
389 |
else {
|
390 |
jQuery('#formMakerDiv').slideToggle(400);
|
391 |
}
|
392 |
+
|
393 |
if (document.getElementById('formMakerDiv1').style.display == 'block') {
|
394 |
jQuery('#formMakerDiv1').slideToggle(200);
|
395 |
}
|
427 |
<span></span>
|
428 |
Redo
|
429 |
</button>
|
430 |
+
<?php
|
431 |
}
|
432 |
$query = "SELECT backup_id FROM " . $wpdb->prefix . "formmaker_backup WHERE backup_id < ".$row->backup_id." AND id = ".$row->id." ORDER BY backup_id DESC LIMIT 0 , 1 ";
|
433 |
$backup_id = $wpdb->get_var($query);
|
441 |
}
|
442 |
}
|
443 |
?>
|
444 |
+
|
445 |
<?php if ($id) { ?>
|
446 |
<button class="fm-button save-as-copy-button medium" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'save_as_copy');">
|
447 |
<span></span>
|
463 |
</div>
|
464 |
<div class="fm-clear"></div>
|
465 |
</div>
|
466 |
+
|
467 |
<div class="fm-theme-banner">
|
468 |
<div class="fm-title">
|
469 |
<span style="">Title: </span>
|
478 |
<span></span>
|
479 |
Form Options
|
480 |
</button>
|
481 |
+
<?php
|
482 |
+
$fm_settings = get_option('fm_settings');
|
483 |
+
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) ? $fm_settings['fm_advanced_layout'] : '';
|
484 |
+
if ($row->id) {
|
485 |
+
$autogen_layout = $wpdb->get_var($wpdb->prepare('SELECT autogen_layout FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $row->id));
|
486 |
+
}
|
487 |
+
else {
|
488 |
+
$autogen_layout = 1;
|
489 |
+
}
|
490 |
+
if ($fm_advanced_layout || $autogen_layout == 0) {
|
491 |
+
?>
|
492 |
+
<button class="fm-button form-layout-button large" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'form_layout');">
|
493 |
+
<span></span>
|
494 |
+
Advanced Layout
|
495 |
+
</button>
|
496 |
+
<?php
|
497 |
+
}
|
498 |
+
?>
|
499 |
</div>
|
500 |
</div>
|
501 |
<div class="fm-clear"></div>
|
553 |
<tbody>
|
554 |
<tr>
|
555 |
<td align="center" onclick="addRow('customHTML')" class="field_buttons" id="table_editor">
|
556 |
+
<img src="<?php echo WD_FM_URL; ?>/images/customHTML.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_customHTML">
|
557 |
<div>Custom HTML</div>
|
558 |
</td>
|
559 |
<td align="center" onclick="addRow('text')" class="field_buttons" id="table_text">
|
560 |
+
<img src="<?php echo WD_FM_URL; ?>/images/text.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_text">
|
561 |
<div>Text input</div>
|
562 |
</td>
|
563 |
</tr>
|
564 |
<tr>
|
565 |
<td align="center" onclick="addRow('checkbox')" class="field_buttons" id="table_checkbox">
|
566 |
+
<img src="<?php echo WD_FM_URL; ?>/images/checkbox.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_checkbox">
|
567 |
<div>Multiple Choice</div>
|
568 |
</td>
|
569 |
<td align="center" onclick="addRow('radio')" class="field_buttons" id="table_radio">
|
570 |
+
<img src="<?php echo WD_FM_URL; ?>/images/radio.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_radio">
|
571 |
<div>Single Choice</div>
|
572 |
</td>
|
573 |
</tr>
|
574 |
<tr>
|
575 |
<td align="center" onclick="addRow('survey')" class="field_buttons" id="table_survey">
|
576 |
+
<img src="<?php echo WD_FM_URL; ?>/images/survey.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_survey">
|
577 |
<div>Survey Tools</div>
|
578 |
</td>
|
579 |
<td align="center" onclick="addRow('time_and_date')" class="field_buttons" id="table_time_and_date">
|
580 |
+
<img src="<?php echo WD_FM_URL; ?>/images/time_and_date.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_time_and_date">
|
581 |
<div>Time and Date</div>
|
582 |
</td>
|
583 |
</tr>
|
584 |
<tr>
|
585 |
<td align="center" onclick="addRow('select')" class="field_buttons" id="table_select">
|
586 |
+
<img src="<?php echo WD_FM_URL; ?>/images/select.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_select">
|
587 |
<div>Select Box</div>
|
588 |
</td>
|
589 |
<td align="center" onclick="alert('This field type is disabled in free version. If you need this functionality, you need to buy the commercial version.')" class="field_buttons field_disabled" id="table_file_upload">
|
590 |
+
<img src="<?php echo WD_FM_URL; ?>/images/file_upload.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_file_upload">
|
591 |
<div>File Upload</div>
|
592 |
</td>
|
593 |
</tr>
|
594 |
<tr>
|
595 |
<td align="center" onclick="addRow('section_break')" class="field_buttons" id="table_section_break">
|
596 |
+
<img src="<?php echo WD_FM_URL; ?>/images/section_break.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_section_break">
|
597 |
<div>Section Break</div>
|
598 |
</td>
|
599 |
<td align="center" onclick="addRow('page_break')" class="field_buttons" id="table_page_break">
|
600 |
+
<img src="<?php echo WD_FM_URL; ?>/images/page_break.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_page_break">
|
601 |
<div>Page Break</div>
|
602 |
</td>
|
603 |
</tr>
|
604 |
<tr>
|
605 |
<td align="center" onclick="alert('This field type is disabled in free version. If you need this functionality, you need to buy the commercial version.')" class="field_buttons field_disabled" id="table_map">
|
606 |
+
<img src="<?php echo WD_FM_URL; ?>/images/map.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_map">
|
607 |
<div>Map</div>
|
608 |
</td>
|
609 |
<td align="center" onclick="alert('This field type is disabled in free version. If you need this functionality, you need to buy the commercial version.')" id="table_paypal" class="field_buttons field_disabled">
|
610 |
+
<img src="<?php echo WD_FM_URL; ?>/images/paypal.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_paypal">
|
611 |
<div>Payment</div>
|
612 |
</td>
|
613 |
</tr>
|
614 |
<tr>
|
615 |
<td align="center" onclick="addRow('captcha')" class="field_buttons" id="table_captcha">
|
616 |
+
<img src="<?php echo WD_FM_URL; ?>/images/captcha.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_captcha">
|
617 |
<div>Captcha</div>
|
618 |
</td>
|
619 |
<td align="center" onclick="addRow('button')" id="table_button" class="field_buttons">
|
620 |
+
<img src="<?php echo WD_FM_URL; ?>/images/button.png?ver=<?php echo WD_FM_VERSION; ?>" style="margin:5px" id="img_button">
|
621 |
<div>Button</div>
|
622 |
</td>
|
623 |
</tr>
|
832 |
</div>
|
833 |
<div id="form_id_tempform_view_img1" style="float: right;">
|
834 |
<div>
|
835 |
+
<img src="<?php echo WD_FM_URL . '/images/minus.png?ver='. WD_FM_VERSION; ?>" title="Show or hide the page" class="page_toolbar" onClick="show_or_hide('1')" onMouseOver="chnage_icons_src(this,'minus')" onmouseout="chnage_icons_src(this,'minus')" id="show_page_img_1"/>
|
836 |
+
<img src="<?php echo WD_FM_URL . '/images/page_delete.png?ver='. WD_FM_VERSION; ?>" title="Delete the page" class="page_toolbar" onClick="remove_page('1')" onMouseOver="chnage_icons_src(this,'page_delete')" onmouseout="chnage_icons_src(this,'page_delete')"/>
|
837 |
+
<img src="<?php echo WD_FM_URL . '/images/page_delete_all.png?ver='. WD_FM_VERSION; ?>" title="Delete the page with fields" class="page_toolbar" onClick="remove_page_all('1')" onMouseOver="chnage_icons_src(this,'page_delete_all')" onmouseout="chnage_icons_src(this,'page_delete_all')"/>
|
838 |
+
<img src="<?php echo WD_FM_URL . '/images/page_edit.png?ver='. WD_FM_VERSION; ?>" title="Edit the page" class="page_toolbar" onClick="edit_page_break('1')" onMouseOver="chnage_icons_src(this,'page_edit')" onmouseout="chnage_icons_src(this,'page_edit')"/>
|
839 |
</div>
|
840 |
</div>
|
841 |
</div>
|
1360 |
tbody_img.style.cssText = "float:right";
|
1361 |
tr_img = document.createElement('div');
|
1362 |
var img = document.createElement('img');
|
1363 |
+
img.setAttribute('src', '<?php echo WD_FM_URL; ?>/images/minus.png?ver=<?php echo WD_FM_VERSION; ?>');
|
1364 |
img.setAttribute('title', 'Show or hide the page');
|
1365 |
img.setAttribute("class", "page_toolbar");
|
1366 |
img.setAttribute('id', 'show_page_img_' + i);
|
1368 |
img.setAttribute("onmouseover", 'chnage_icons_src(this,"minus")');
|
1369 |
img.setAttribute("onmouseout", 'chnage_icons_src(this,"minus")');
|
1370 |
var img_X = document.createElement("img");
|
1371 |
+
img_X.setAttribute("src", "<?php echo WD_FM_URL; ?>/images/page_delete.png?ver=<?php echo WD_FM_VERSION; ?>");
|
1372 |
img_X.setAttribute('title', 'Delete the page');
|
1373 |
img_X.setAttribute("class", "page_toolbar");
|
1374 |
img_X.setAttribute("onclick", 'remove_page("' + i + '")');
|
1375 |
img_X.setAttribute("onmouseover", 'chnage_icons_src(this,"page_delete")');
|
1376 |
img_X.setAttribute("onmouseout", 'chnage_icons_src(this,"page_delete")');
|
1377 |
var img_X_all = document.createElement("img");
|
1378 |
+
img_X_all.setAttribute("src", "<?php echo WD_FM_URL; ?>/images/page_delete_all.png?ver=<?php echo WD_FM_VERSION; ?>");
|
1379 |
img_X_all.setAttribute('title', 'Delete the page with fields');
|
1380 |
img_X_all.setAttribute("class", "page_toolbar");
|
1381 |
img_X_all.setAttribute("onclick", 'remove_page_all("' + i + '")');
|
1382 |
img_X_all.setAttribute("onmouseover", 'chnage_icons_src(this,"page_delete_all")');
|
1383 |
img_X_all.setAttribute("onmouseout", 'chnage_icons_src(this,"page_delete_all")');
|
1384 |
var img_EDIT = document.createElement("img");
|
1385 |
+
img_EDIT.setAttribute("src", "<?php echo WD_FM_URL; ?>/images/page_edit.png?ver=<?php echo WD_FM_VERSION; ?>");
|
1386 |
img_EDIT.setAttribute('title', 'Edit the page');
|
1387 |
img_EDIT.setAttribute("class", "page_toolbar");
|
1388 |
img_EDIT.setAttribute("onclick", 'edit_page_break("' + i + '")');
|
1408 |
need_enable = false;
|
1409 |
generate_page_nav(first_form_view);
|
1410 |
var img_EDIT = document.createElement("img");
|
1411 |
+
img_EDIT.setAttribute("src", "<?php echo WD_FM_URL . '/images/edit.png?ver='.WD_FM_VERSION; ?>");
|
1412 |
img_EDIT.style.cssText = "margin-left:40px; cursor:pointer";
|
1413 |
img_EDIT.setAttribute("onclick", 'el_page_navigation()');
|
1414 |
var td_EDIT = document.getElementById("edit_page_navigation");
|
1924 |
<td class="fm_options_value">
|
1925 |
<input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
|
1926 |
<input type="hidden" id="mail" name="mail" value="<?php echo $row->mail . ($row->mail && (substr($row->mail, -1) != ',') ? ',' : ''); ?>" />
|
1927 |
+
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='. WD_FM_VERSION; ?>" style="vertical-align: middle; cursor: pointer;" title="Add more emails" onclick="if (fm_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_FM_URL; ?>')" />
|
1928 |
<div id="cfm_mail_div">
|
1929 |
<?php
|
1930 |
$mail_array = explode(',', $row->mail);
|
1933 |
?>
|
1934 |
<div class="fm_mail_input">
|
1935 |
<?php echo $mail; ?>
|
1936 |
+
<img src="<?php echo WD_FM_URL; ?>/images/delete.png?ver=<?php echo WD_FM_VERSION; ?>" class="fm_delete_img" onclick="fm_delete_mail(this, '<?php echo $mail; ?>')" title="Delete Email" />
|
1937 |
</div>
|
1938 |
<?php
|
1939 |
}
|
1980 |
</td>
|
1981 |
<td class="fm_options_value">
|
1982 |
<input type="text" id="from_name" name="from_name" value="<?php echo $row->from_name; ?>" style="width: 250px;" />
|
1983 |
+
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='. WD_FM_VERSION.''; ?>" onclick="document.getElementById('mail_from_labels').style.display='block';" style="vertical-align: middle; cursor: pointer;display:inline-block; margin:0px; float:none;">
|
1984 |
<?php
|
1985 |
$choise = "document.getElementById('from_name')";
|
1986 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_labels" class="email_labels" style="display:none;">';
|
2060 |
</td>
|
2061 |
<td class="fm_options_value">
|
2062 |
<input type="text" id="mail_subject" name="mail_subject" value="<?php echo $row->mail_subject ?>" style="width:250px;" />
|
2063 |
+
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='. WD_FM_VERSION.''; ?>" onclick="document.getElementById('mail_subject_labels').style.display='block';" style="vertical-align: middle;cursor: pointer; display:inline-block; margin:0px; float:none;">
|
2064 |
<?php
|
2065 |
$choise = "document.getElementById('mail_subject')";
|
2066 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_labels" class="email_labels" style="display:none;">';
|
2216 |
</td>
|
2217 |
<td class="fm_options_value">
|
2218 |
<input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
|
2219 |
+
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='. WD_FM_VERSION.''; ?>" onclick="document.getElementById('mail_from_name_user_labels').style.display='block';" style="vertical-align: middle;cursor: pointer; display:inline-block; margin:0px; float:none;">
|
2220 |
<?php
|
2221 |
$choise = "document.getElementById('mail_from_name_user')";
|
2222 |
echo '<div style="position:relative; top:-3px;"><div id="mail_from_name_user_labels" class="email_labels" style="display:none;">';
|
2270 |
</td>
|
2271 |
<td class="fm_options_value">
|
2272 |
<input type="text" id="mail_subject_user" name="mail_subject_user" value="<?php echo $row->mail_subject_user ?>" style="width:250px;" />
|
2273 |
+
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='. WD_FM_VERSION.''; ?>" onclick="document.getElementById('mail_subject_user_labels').style.display='block';" style="vertical-align: middle; cursor: pointer; display:inline-block; margin:0px; float:none;">
|
2274 |
<?php
|
2275 |
$choise = "document.getElementById('mail_subject_user')";
|
2276 |
echo '<div style="position:relative; top:-3px;"><div id="mail_subject_user_labels" class="email_labels" style="display:none;">';
|
2668 |
<option value="or" <?php if($all_any[$k]=="or") echo 'selected="selected"'; ?>>any</option>
|
2669 |
</select>
|
2670 |
<span>of the following match:</span>
|
2671 |
+
<img src="<?php echo WD_FM_URL . '/images/add.png?ver='. WD_FM_VERSION.''; ?>" title="add" 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)); ?>')" style="cursor: pointer; vertical-align: middle;">
|
2672 |
+
<img src="<?php echo WD_FM_URL . '/images/page_delete.png?ver='. WD_FM_VERSION.''; ?>" onclick="delete_condition('<?php echo $k; ?>')" style="cursor: pointer; vertical-align: middle;">
|
2673 |
</div>
|
2674 |
<?php
|
2675 |
if($condition_params[$k]) {
|
2814 |
?>
|
2815 |
<input id="field_value<?php echo $k; ?>_<?php echo $key; ?>" type="text" value="<?php echo $param_values[2];?>" <?php echo $onkeypress_function; ?> style=" width: 200px;"><?php endif; ?>
|
2816 |
|
2817 |
+
<img src="<?php echo WD_FM_URL . '/images/delete.png?ver='. WD_FM_VERSION.''; ?>" id="delete_condition<?php echo $k; ?>_<?php echo $key; ?>" onclick="delete_field_condition('<?php echo $k; ?>_<?php echo $key; ?>')" style="vertical-align: middle;">
|
2818 |
</div>
|
2819 |
<?php endif;
|
2820 |
}
|
admin/views/FMViewSelect_data_from_db.php
CHANGED
@@ -237,7 +237,7 @@ class FMViewSelect_data_from_db {
|
|
237 |
}
|
238 |
|
239 |
$cond.='</select>';
|
240 |
-
$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><input id="val_condid" type="text" /><select id="andor_condid" style="visibility: hidden; width:70px;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WD_FM_URL . '/images/delete.png?ver='.
|
241 |
|
242 |
?>
|
243 |
|
@@ -360,13 +360,13 @@ function save_query()
|
|
360 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
361 |
var el_choices_remove = document.createElement('img');
|
362 |
el_choices_remove.setAttribute("id", "el_choices"+max_value+"_remove");
|
363 |
-
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo
|
364 |
el_choices_remove.style.cssText = 'cursor:pointer;vertical-align:middle; margin:3px;';
|
365 |
el_choices_remove.setAttribute("align", 'top');
|
366 |
el_choices_remove.setAttribute("onClick", "remove_choise('"+max_value+"','"+num+"','"+field_type+"')");
|
367 |
var el_choices_handle = document.createElement('img');
|
368 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
369 |
-
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo
|
370 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin:3px;';
|
371 |
el_choices_handle.setAttribute("align", 'top');
|
372 |
|
@@ -427,7 +427,7 @@ function save_query()
|
|
427 |
el_choices.setAttribute("disabled", 'disabled');
|
428 |
var el_choices_remove = document.createElement('img');
|
429 |
el_choices_remove.setAttribute("id", "el_option"+max_value+"_remove");
|
430 |
-
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo
|
431 |
el_choices_remove.style.cssText = 'cursor:pointer; vertical-align:middle; margin:3px';
|
432 |
el_choices_remove.setAttribute("align", 'top');
|
433 |
el_choices_remove.setAttribute("onClick", "remove_option('"+max_value+"','"+num+"')");
|
@@ -456,7 +456,7 @@ function save_query()
|
|
456 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
457 |
var el_choices_handle = document.createElement('img');
|
458 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
459 |
-
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo
|
460 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin:3px;';
|
461 |
el_choices_handle.setAttribute("align", 'top');
|
462 |
|
@@ -505,7 +505,7 @@ function save_query()
|
|
505 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
506 |
var el_choices_remove = document.createElement('img');
|
507 |
el_choices_remove.setAttribute("id", "el_option"+max_value+"_remove");
|
508 |
-
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo
|
509 |
el_choices_remove.style.cssText = 'cursor:pointer; vertical-align:middle; margin:3px;';
|
510 |
el_choices_remove.setAttribute("align", 'top');
|
511 |
el_choices_remove.setAttribute("onClick", "remove_option_price('"+max_value+"','"+num+"')");
|
@@ -516,7 +516,7 @@ function save_query()
|
|
516 |
el_choices_dis.style.cssText ="vertical-align: middle; margin-right:24px; margin-left:24px;";
|
517 |
var el_choices_handle = document.createElement('img');
|
518 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
519 |
-
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo
|
520 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin:3px;';
|
521 |
el_choices_handle.setAttribute("align", 'top');
|
522 |
|
@@ -586,7 +586,7 @@ function save_query()
|
|
586 |
el_choices.setAttribute("disabled", 'disabled');
|
587 |
var el_choices_remove = document.createElement('img');
|
588 |
el_choices_remove.setAttribute("id", "el_choices"+max_value+"_remove");
|
589 |
-
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo
|
590 |
el_choices_remove.style.cssText = 'cursor:pointer;vertical-align:middle; margin: 3px;';
|
591 |
el_choices_remove.setAttribute("align", 'top');
|
592 |
el_choices_remove.setAttribute("onClick", "remove_choise_price('"+max_value+"','"+num+"')");
|
@@ -605,7 +605,7 @@ function save_query()
|
|
605 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
606 |
var el_choices_handle = document.createElement('img');
|
607 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
608 |
-
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo
|
609 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin: 3px;';
|
610 |
el_choices_handle.setAttribute("align", 'top');
|
611 |
|
@@ -703,7 +703,7 @@ function gen_query(){
|
|
703 |
?>
|
704 |
</select>
|
705 |
</div>
|
706 |
-
<div class="select-db-op where"><img src="<?php echo WD_FM_URL . '/images/add_condition.png?ver='.
|
707 |
|
708 |
</div>
|
709 |
<div class="select-db-op orderby">ORDER BY</div>
|
237 |
}
|
238 |
|
239 |
$cond.='</select>';
|
240 |
+
$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><input id="val_condid" type="text" /><select id="andor_condid" style="visibility: hidden; width:70px;"><option value="AND">AND</option><option value="OR">OR</option></select><img src="' . WD_FM_URL . '/images/delete.png?ver='. WD_FM_VERSION.'" onclick="delete_cond("condid")" style="vertical-align: middle;"></div>';
|
241 |
|
242 |
?>
|
243 |
|
360 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
361 |
var el_choices_remove = document.createElement('img');
|
362 |
el_choices_remove.setAttribute("id", "el_choices"+max_value+"_remove");
|
363 |
+
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo WD_FM_VERSION; ?>');
|
364 |
el_choices_remove.style.cssText = 'cursor:pointer;vertical-align:middle; margin:3px;';
|
365 |
el_choices_remove.setAttribute("align", 'top');
|
366 |
el_choices_remove.setAttribute("onClick", "remove_choise('"+max_value+"','"+num+"','"+field_type+"')");
|
367 |
var el_choices_handle = document.createElement('img');
|
368 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
369 |
+
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo WD_FM_VERSION; ?>');
|
370 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin:3px;';
|
371 |
el_choices_handle.setAttribute("align", 'top');
|
372 |
|
427 |
el_choices.setAttribute("disabled", 'disabled');
|
428 |
var el_choices_remove = document.createElement('img');
|
429 |
el_choices_remove.setAttribute("id", "el_option"+max_value+"_remove");
|
430 |
+
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo WD_FM_VERSION; ?>');
|
431 |
el_choices_remove.style.cssText = 'cursor:pointer; vertical-align:middle; margin:3px';
|
432 |
el_choices_remove.setAttribute("align", 'top');
|
433 |
el_choices_remove.setAttribute("onClick", "remove_option('"+max_value+"','"+num+"')");
|
456 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
457 |
var el_choices_handle = document.createElement('img');
|
458 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
459 |
+
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo WD_FM_VERSION; ?>');
|
460 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin:3px;';
|
461 |
el_choices_handle.setAttribute("align", 'top');
|
462 |
|
505 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
506 |
var el_choices_remove = document.createElement('img');
|
507 |
el_choices_remove.setAttribute("id", "el_option"+max_value+"_remove");
|
508 |
+
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo WD_FM_VERSION; ?>');
|
509 |
el_choices_remove.style.cssText = 'cursor:pointer; vertical-align:middle; margin:3px;';
|
510 |
el_choices_remove.setAttribute("align", 'top');
|
511 |
el_choices_remove.setAttribute("onClick", "remove_option_price('"+max_value+"','"+num+"')");
|
516 |
el_choices_dis.style.cssText ="vertical-align: middle; margin-right:24px; margin-left:24px;";
|
517 |
var el_choices_handle = document.createElement('img');
|
518 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
519 |
+
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo WD_FM_VERSION; ?>');
|
520 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin:3px;';
|
521 |
el_choices_handle.setAttribute("align", 'top');
|
522 |
|
586 |
el_choices.setAttribute("disabled", 'disabled');
|
587 |
var el_choices_remove = document.createElement('img');
|
588 |
el_choices_remove.setAttribute("id", "el_choices"+max_value+"_remove");
|
589 |
+
el_choices_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=<?php echo WD_FM_VERSION; ?>');
|
590 |
el_choices_remove.style.cssText = 'cursor:pointer;vertical-align:middle; margin: 3px;';
|
591 |
el_choices_remove.setAttribute("align", 'top');
|
592 |
el_choices_remove.setAttribute("onClick", "remove_choise_price('"+max_value+"','"+num+"')");
|
605 |
el_choices_params.setAttribute("value", where+'[where_order_by]'+order + '[db_info]'+'['+str+']');
|
606 |
var el_choices_handle = document.createElement('img');
|
607 |
el_choices_handle.setAttribute("class", "el_choices_sortable");
|
608 |
+
el_choices_handle.setAttribute("src", plugin_url + '/images/move_cursor.png?ver=<?php echo WD_FM_VERSION; ?>');
|
609 |
el_choices_handle.style.cssText = 'cursor:move; vertical-align:middle; margin: 3px;';
|
610 |
el_choices_handle.setAttribute("align", 'top');
|
611 |
|
703 |
?>
|
704 |
</select>
|
705 |
</div>
|
706 |
+
<div class="select-db-op where"><img src="<?php echo WD_FM_URL . '/images/add_condition.png?ver='. WD_FM_VERSION.''; ?>" title="ADD" class="add_cond"/>WHERE</div>
|
707 |
|
708 |
</div>
|
709 |
<div class="select-db-op orderby">ORDER BY</div>
|
admin/views/FMViewThemes_fm.php
CHANGED
@@ -98,7 +98,7 @@ class FMViewThemes_fm {
|
|
98 |
<?php if ($default != '') { ?>
|
99 |
<a onclick="fm_set_input_value('task', '<?php echo $default; ?>'); fm_set_input_value('current_id', '<?php echo $row_data->id; ?>'); fm_form_submit(event, 'themes_form')" href="">
|
100 |
<?php } ?>
|
101 |
-
<img src="<?php echo WD_FM_URL . '/images/' . $default_image . '.png?ver='.
|
102 |
<?php if ($default != '') { ?>
|
103 |
</a>
|
104 |
<?php } ?>
|
@@ -133,7 +133,7 @@ class FMViewThemes_fm {
|
|
133 |
public function edit($id, $reset) {
|
134 |
$row = $this->model->get_row_data($id, $reset);
|
135 |
$page_title = 'Theme: ' . $row->title;
|
136 |
-
$param_values = $row->
|
137 |
$border_types = array( 'solid' => 'Solid', 'dotted' => 'Dotted', 'dashed' => 'Dashed', 'double' => 'Double', 'groove' => 'Groove', 'ridge' => 'Ridge', 'inset' => 'Inset', 'outset' => 'Outset', 'initial' => 'Initial', 'inherit' => 'Inherit', 'hidden' => 'Hidden', 'none' => 'None' );
|
138 |
$borders = array('top' => 'Top', 'right' => 'Right', 'bottom' => 'Bottom', 'left' => 'Left' );
|
139 |
$border_values = array('top' => 'BorderTop', 'right' => 'BorderRight', 'bottom' => 'BorderBottom', 'left' => 'BorderLeft' );
|
98 |
<?php if ($default != '') { ?>
|
99 |
<a onclick="fm_set_input_value('task', '<?php echo $default; ?>'); fm_set_input_value('current_id', '<?php echo $row_data->id; ?>'); fm_form_submit(event, 'themes_form')" href="">
|
100 |
<?php } ?>
|
101 |
+
<img src="<?php echo WD_FM_URL . '/images/' . $default_image . '.png?ver='. WD_FM_VERSION.''; ?>" />
|
102 |
<?php if ($default != '') { ?>
|
103 |
</a>
|
104 |
<?php } ?>
|
133 |
public function edit($id, $reset) {
|
134 |
$row = $this->model->get_row_data($id, $reset);
|
135 |
$page_title = 'Theme: ' . $row->title;
|
136 |
+
$param_values = $row->css;
|
137 |
$border_types = array( 'solid' => 'Solid', 'dotted' => 'Dotted', 'dashed' => 'Dashed', 'double' => 'Double', 'groove' => 'Groove', 'ridge' => 'Ridge', 'inset' => 'Inset', 'outset' => 'Outset', 'initial' => 'Initial', 'inherit' => 'Inherit', 'hidden' => 'Hidden', 'none' => 'None' );
|
138 |
$borders = array('top' => 'Top', 'right' => 'Right', 'bottom' => 'Bottom', 'left' => 'Left' );
|
139 |
$border_values = array('top' => 'BorderTop', 'right' => 'BorderRight', 'bottom' => 'BorderBottom', 'left' => 'BorderLeft' );
|
css/form_maker_frontend.css
CHANGED
@@ -322,7 +322,8 @@ div[type="type_file_upload"] .wdform-element-section {
|
|
322 |
float: right;
|
323 |
}
|
324 |
|
325 |
-
.fm-form .
|
|
|
326 |
margin-right: 2px !important;
|
327 |
}
|
328 |
|
322 |
float: right;
|
323 |
}
|
324 |
|
325 |
+
.fm-form .radio-div,
|
326 |
+
.fm-form .checkbox-div {
|
327 |
margin-right: 2px !important;
|
328 |
}
|
329 |
|
form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
-
* Version: 1.11.
|
7 |
* Author: WebDorado Form Builder Team
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -11,7 +11,7 @@
|
|
11 |
define('WD_FM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
12 |
define('WD_FM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
13 |
define('WD_MAIN_FILE', plugin_basename(__FILE__));
|
14 |
-
define('WD_FM_VERSION', '1.11.
|
15 |
// Plugin menu.
|
16 |
function form_maker_options_panel() {
|
17 |
$parent_slug = null;
|
@@ -170,21 +170,21 @@ add_action('init', 'fm_output_buffer');
|
|
170 |
add_shortcode('Form', 'fm_shortcode');
|
171 |
|
172 |
function fm_shortcode($attrs) {
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
}
|
189 |
if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
|
190 |
add_action('wp_footer', 'FM_front_end_main');
|
@@ -266,44 +266,45 @@ function register_fmemailverification_cpt(){
|
|
266 |
// Activate plugin.
|
267 |
function form_maker_activate() {
|
268 |
$version = get_option("wd_form_maker_version");
|
269 |
-
$new_version = WD_FM_VERSION;
|
270 |
|
271 |
global $wpdb;
|
272 |
if (!$version) {
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
elseif (version_compare($version, $new_version, '<')) {
|
|
|
307 |
require_once WD_FM_DIR . "/form_maker_update.php";
|
308 |
$mail_verification_post_ids = $wpdb->get_results($wpdb->prepare('SELECT mail_verification_post_id FROM ' . $wpdb->prefix . 'formmaker WHERE mail_verification_post_id!="%d"',0));
|
309 |
if($mail_verification_post_ids)
|
@@ -328,7 +329,7 @@ function form_maker_activate() {
|
|
328 |
}
|
329 |
register_activation_hook(__FILE__, 'form_maker_activate');
|
330 |
|
331 |
-
if (!isset($_GET['action']) || $_GET['action'] != 'deactivate') {
|
332 |
add_action('admin_init', 'form_maker_activate');
|
333 |
}
|
334 |
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
+
* Version: 1.11.3
|
7 |
* Author: WebDorado Form Builder Team
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
define('WD_FM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
12 |
define('WD_FM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
13 |
define('WD_MAIN_FILE', plugin_basename(__FILE__));
|
14 |
+
define('WD_FM_VERSION', '1.11.3');
|
15 |
// Plugin menu.
|
16 |
function form_maker_options_panel() {
|
17 |
$parent_slug = null;
|
170 |
add_shortcode('Form', 'fm_shortcode');
|
171 |
|
172 |
function fm_shortcode($attrs) {
|
173 |
+
$fm_settings = get_option('fm_settings');
|
174 |
+
$fm_shortcode = isset($fm_settings['fm_shortcode']) ? $fm_settings['fm_shortcode'] : '';
|
175 |
+
if ($fm_shortcode) {
|
176 |
+
$new_shortcode = '[Form';
|
177 |
+
foreach ($attrs as $key => $value) {
|
178 |
+
$new_shortcode .= ' ' . $key . '="' . $value . '"';
|
179 |
+
}
|
180 |
+
$new_shortcode .= ']';
|
181 |
+
return $new_shortcode;
|
182 |
+
}
|
183 |
+
else {
|
184 |
+
ob_start();
|
185 |
+
FM_front_end_main($attrs, 'embedded');
|
186 |
+
return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
|
187 |
+
}
|
188 |
}
|
189 |
if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
|
190 |
add_action('wp_footer', 'FM_front_end_main');
|
266 |
// Activate plugin.
|
267 |
function form_maker_activate() {
|
268 |
$version = get_option("wd_form_maker_version");
|
269 |
+
$new_version = substr_replace(WD_FM_VERSION, '1.', 0, 2);
|
270 |
|
271 |
global $wpdb;
|
272 |
if (!$version) {
|
273 |
+
add_option("wd_form_maker_version", $new_version, '', 'no');
|
274 |
+
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker'") == $wpdb->prefix . "formmaker") {
|
275 |
+
require_once WD_FM_DIR . "/form_maker_update.php";
|
276 |
+
$recaptcha_keys = $wpdb->get_row('SELECT `public_key`, `private_key` FROM ' . $wpdb->prefix . 'formmaker WHERE public_key!="" and private_key!=""', ARRAY_A);
|
277 |
+
$public_key = isset($recaptcha_keys['public_key']) ? $recaptcha_keys['public_key'] : '';
|
278 |
+
$private_key = isset($recaptcha_keys['private_key']) ? $recaptcha_keys['private_key'] : '';
|
279 |
+
if (FALSE === $fm_settings = get_option('fm_settings')) {
|
280 |
+
add_option('fm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'csv_delimiter' => ',', 'map_key' => ''));
|
281 |
+
}
|
282 |
+
form_maker_update_until_mvc();
|
283 |
+
form_maker_update_contact();
|
284 |
+
form_maker_update('');
|
285 |
+
}
|
286 |
+
else {
|
287 |
+
require_once WD_FM_DIR . "/form_maker_insert.php";
|
288 |
+
from_maker_insert();
|
289 |
+
$email_verification_post = array(
|
290 |
+
'post_title' => 'Email Verification',
|
291 |
+
'post_content' => '[email_verification]',
|
292 |
+
'post_status' => 'publish',
|
293 |
+
'post_author' => 1,
|
294 |
+
'post_type' => 'fmemailverification',
|
295 |
+
);
|
296 |
+
$mail_verification_post_id = wp_insert_post($email_verification_post);
|
297 |
+
|
298 |
+
add_option('fm_settings', array('public_key' => '', 'private_key' => '', 'csv_delimiter' => ',', 'map_key' => ''));
|
299 |
+
$wpdb->update($wpdb->prefix . "formmaker", array(
|
300 |
+
'mail_verification_post_id' => $mail_verification_post_id,
|
301 |
+
), array('id' => 1), array(
|
302 |
+
'%d',
|
303 |
+
), array('%d'));
|
304 |
+
}
|
305 |
+
}
|
306 |
elseif (version_compare($version, $new_version, '<')) {
|
307 |
+
$version = substr_replace($version, '1.', 0, 2);
|
308 |
require_once WD_FM_DIR . "/form_maker_update.php";
|
309 |
$mail_verification_post_ids = $wpdb->get_results($wpdb->prepare('SELECT mail_verification_post_id FROM ' . $wpdb->prefix . 'formmaker WHERE mail_verification_post_id!="%d"',0));
|
310 |
if($mail_verification_post_ids)
|
329 |
}
|
330 |
register_activation_hook(__FILE__, 'form_maker_activate');
|
331 |
|
332 |
+
if ((!isset($_GET['action']) || $_GET['action'] != 'deactivate') && (!isset($_GET['page']) || $_GET['page'] != 'uninstall_fm')) {
|
333 |
add_action('admin_init', 'form_maker_activate');
|
334 |
}
|
335 |
|
form_maker_insert.php
CHANGED
@@ -119,7 +119,7 @@ function from_maker_insert() {
|
|
119 |
$formmaker_themes = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_themes` (
|
120 |
`id` int(11) NOT NULL AUTO_INCREMENT,
|
121 |
`title` varchar(200) NOT NULL,
|
122 |
-
`
|
123 |
`default` tinyint(4) NOT NULL,
|
124 |
`version` tinyint(4) NOT NULL,
|
125 |
PRIMARY KEY (`id`)
|
@@ -135,20 +135,20 @@ function from_maker_insert() {
|
|
135 |
|
136 |
$form_maker_theme_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "formmaker_themes");
|
137 |
if (!$form_maker_theme_row) {
|
138 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
139 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
140 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
141 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
142 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
143 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
144 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
145 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
146 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
147 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
148 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
149 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
150 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
151 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `
|
152 |
}
|
153 |
|
154 |
$formmaker_views = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_views` (
|
119 |
$formmaker_themes = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_themes` (
|
120 |
`id` int(11) NOT NULL AUTO_INCREMENT,
|
121 |
`title` varchar(200) NOT NULL,
|
122 |
+
`css` text NOT NULL,
|
123 |
`default` tinyint(4) NOT NULL,
|
124 |
`version` tinyint(4) NOT NULL,
|
125 |
PRIMARY KEY (`id`)
|
135 |
|
136 |
$form_maker_theme_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "formmaker_themes");
|
137 |
if (!$form_maker_theme_row) {
|
138 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 1", \'{"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":"","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":"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":"#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":""}\', 1, 2);');
|
139 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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":"#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);');
|
140 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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":"#bfbbbb","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":"#bfbbbb","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":"#bfbbbb","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":"#bfbbbb","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":"#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":"10px","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);');
|
141 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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":"-10px","CBPRight":"5px","CBPBottom":"","CBPLeft":"","CBPBGColor":"#ffffff","CBPFontSize":"12","CBPFontWeight":"normal","CBPColor":"#930912","CBPPadding":"5px 7px","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);');
|
142 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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":"10px","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":"6px","CBPRight":"6px","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);');
|
143 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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);');
|
144 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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);');
|
145 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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":"left","HIPWidth":"66","HIPHeight":"","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":"right","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);');
|
146 |
+
$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":"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);');
|
147 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 10", \'{"GPFontFamily":"arial","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"3","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#139e92","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"3","HTPFontSize":"25","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#137065","HIPAlign":"top","HIPWidth":"200","HIPHeight":"","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"100","GPAlign":"center","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":"#f8f8f8","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":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"3","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":"#139e92","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"","SPBorderColor":"#b0b5b8","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"3","SPBoxShadow":"2px 2px 2px #b0b5b8","SHPBGColor":"#5bbcb0","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#dfc97a","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#272727","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"3","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":""}\', 0, 2);');
|
148 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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":"6px","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);');
|
149 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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":"6px","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);');
|
150 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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);');
|
151 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `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);');
|
152 |
}
|
153 |
|
154 |
$formmaker_views = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_views` (
|
form_maker_update.php
CHANGED
@@ -253,6 +253,9 @@ function form_maker_update($version) {
|
|
253 |
)DEFAULT CHARSET=utf8;";
|
254 |
$wpdb->query($formmaker_display_options);
|
255 |
}
|
|
|
|
|
|
|
256 |
return;
|
257 |
}
|
258 |
|
253 |
)DEFAULT CHARSET=utf8;";
|
254 |
$wpdb->query($formmaker_display_options);
|
255 |
}
|
256 |
+
if (version_compare($version, '1.11.3') == -1) {
|
257 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_themes` CHANGE `params` `css` text NOT NULL");
|
258 |
+
}
|
259 |
return;
|
260 |
}
|
261 |
|
frontend/models/FMModelForm_maker.php
CHANGED
@@ -24,20 +24,23 @@ class FMModelForm_maker {
|
|
24 |
}
|
25 |
}
|
26 |
|
27 |
-
$params_decoded = json_decode(html_entity_decode($form_theme->
|
28 |
-
if (
|
29 |
$old = $form_theme->version == 1;
|
30 |
$form_theme = $params_decoded;
|
31 |
}
|
32 |
else {
|
33 |
$old = true;
|
34 |
-
$form_theme = array("CUPCSS" => $form_theme->
|
35 |
}
|
36 |
|
37 |
$cssver = isset($form_theme['nonce_fm']) ? $form_theme['nonce_fm'] : rand();
|
38 |
$create_css_data = $this->create_css($theme_id, $form_theme, $old);
|
39 |
wp_register_style('fm-style-' . $theme_id, WD_FM_URL . '/css/frontend/fm-style-' . $theme_id . '.css', array(), $cssver);
|
40 |
-
|
|
|
|
|
|
|
41 |
wp_print_styles('fm-style-' . $theme_id);
|
42 |
}
|
43 |
else {
|
@@ -62,6 +65,12 @@ class FMModelForm_maker {
|
|
62 |
);
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
public function create_css($theme_id, $form_theme, $old = true, $force_rewrite = false) {
|
66 |
$frontend_css = WD_FM_DIR . '/css/frontend/fm-style-' . $theme_id . '.css';
|
67 |
if (!$force_rewrite && file_exists($frontend_css)) {
|
@@ -79,13 +88,9 @@ class FMModelForm_maker {
|
|
79 |
}
|
80 |
}
|
81 |
clearstatcache();
|
82 |
-
$cssfile = fopen($frontend_css, "w");
|
83 |
|
84 |
-
array_walk($form_theme,
|
85 |
-
if(strpos($key, 'Color') > -1 && $value == '') {
|
86 |
-
$value = 'transparent';
|
87 |
-
}
|
88 |
-
});
|
89 |
|
90 |
$css_content = '';
|
91 |
if (!$old) {
|
@@ -326,7 +331,8 @@ if($borders['MBHP']) {
|
|
326 |
}";
|
327 |
|
328 |
$css_content .="
|
329 |
-
.fm-form-container.fm-theme" . $theme_id . " .fm-form .
|
|
|
330 |
font-size:".$form_theme['GPMLFontSize']."px !important;
|
331 |
}\r\n";
|
332 |
|
@@ -1085,8 +1091,8 @@ $defaultStyles .="
|
|
1085 |
}
|
1086 |
else {
|
1087 |
$css_content .="
|
1088 |
-
.fm-form-container.fm-theme" . $theme_id . " .fm-form .
|
1089 |
-
.fm-form-container.fm-theme" . $theme_id . " .fm-form .
|
1090 |
float: right;
|
1091 |
margin: 5px;
|
1092 |
}";
|
24 |
}
|
25 |
}
|
26 |
|
27 |
+
$params_decoded = json_decode(html_entity_decode($form_theme->css), true);
|
28 |
+
if ($params_decoded != null) {
|
29 |
$old = $form_theme->version == 1;
|
30 |
$form_theme = $params_decoded;
|
31 |
}
|
32 |
else {
|
33 |
$old = true;
|
34 |
+
$form_theme = array("CUPCSS" => $form_theme->css);
|
35 |
}
|
36 |
|
37 |
$cssver = isset($form_theme['nonce_fm']) ? $form_theme['nonce_fm'] : rand();
|
38 |
$create_css_data = $this->create_css($theme_id, $form_theme, $old);
|
39 |
wp_register_style('fm-style-' . $theme_id, WD_FM_URL . '/css/frontend/fm-style-' . $theme_id . '.css', array(), $cssver);
|
40 |
+
|
41 |
+
$fm_settings = get_option('fm_settings');
|
42 |
+
$fm_shortcode = isset($fm_settings['fm_shortcode']) ? $fm_settings['fm_shortcode'] : '';
|
43 |
+
if ($form_preview || $fm_shortcode) {
|
44 |
wp_print_styles('fm-style-' . $theme_id);
|
45 |
}
|
46 |
else {
|
65 |
);
|
66 |
}
|
67 |
|
68 |
+
public static function set_empty_values_transparent(&$value, $key) {
|
69 |
+
if(strpos($key, 'Color') > -1 && $value == '') {
|
70 |
+
$value = 'transparent';
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
public function create_css($theme_id, $form_theme, $old = true, $force_rewrite = false) {
|
75 |
$frontend_css = WD_FM_DIR . '/css/frontend/fm-style-' . $theme_id . '.css';
|
76 |
if (!$force_rewrite && file_exists($frontend_css)) {
|
88 |
}
|
89 |
}
|
90 |
clearstatcache();
|
91 |
+
$cssfile = fopen($frontend_css, "w");
|
92 |
|
93 |
+
array_walk($form_theme, 'self::set_empty_values_transparent');
|
|
|
|
|
|
|
|
|
94 |
|
95 |
$css_content = '';
|
96 |
if (!$old) {
|
331 |
}";
|
332 |
|
333 |
$css_content .="
|
334 |
+
.fm-form-container.fm-theme" . $theme_id . " .fm-form .radio-div label,
|
335 |
+
.fm-form-container.fm-theme" . $theme_id . " .fm-form .checkbox-div label{
|
336 |
font-size:".$form_theme['GPMLFontSize']."px !important;
|
337 |
}\r\n";
|
338 |
|
1091 |
}
|
1092 |
else {
|
1093 |
$css_content .="
|
1094 |
+
.fm-form-container.fm-theme" . $theme_id . " .fm-form .checkbox-div.fm-right input[type='checkbox'],
|
1095 |
+
.fm-form-container.fm-theme" . $theme_id . " .fm-form .radio-div.fm-right input[type='radio'] {
|
1096 |
float: right;
|
1097 |
margin: 5px;
|
1098 |
}";
|
frontend/views/FMViewForm_maker.php
CHANGED
@@ -8,6 +8,7 @@ class FMViewForm_maker {
|
|
8 |
|
9 |
public function display($id, $formType = 'embedded', $onload_js = '') {
|
10 |
global $wpdb;
|
|
|
11 |
$fm_settings = get_option('fm_settings');
|
12 |
$current_user = wp_get_current_user();
|
13 |
if ($current_user->ID != 0) {
|
@@ -105,7 +106,6 @@ class FMViewForm_maker {
|
|
105 |
if ($form_get_type == 3) {
|
106 |
$_SESSION['massage_after_submit' . $id] = "";
|
107 |
$after_submission_text = $this->model->get_after_submission_text($form_get_id);
|
108 |
-
require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
|
109 |
$form_maker_front_end .= WDW_FM_Library::message(wpautop(html_entity_decode($after_submission_text)), 'warning', $id);
|
110 |
$fm_hide_form_after_submit = 1;
|
111 |
}
|
@@ -113,7 +113,6 @@ class FMViewForm_maker {
|
|
113 |
if (isset($_SESSION['redirect_paypal' . $id]) && ($_SESSION['redirect_paypal' . $id] == 1)) {
|
114 |
$_SESSION['redirect_paypal' . $id] = 0;
|
115 |
if (isset($_GET['succes'])) {
|
116 |
-
require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
|
117 |
if ($_GET['succes'] == 0) {
|
118 |
$form_maker_front_end .= WDW_FM_Library::message(__('Error, email was not sent.', 'form_maker'), 'error', $id);
|
119 |
}
|
@@ -131,7 +130,6 @@ class FMViewForm_maker {
|
|
131 |
else {
|
132 |
$error = 'warning';
|
133 |
}
|
134 |
-
require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
|
135 |
$form_maker_front_end .= WDW_FM_Library::message($message, $error, $id);
|
136 |
}
|
137 |
if (isset($_SESSION['massage_after_save' . $id]) && $_SESSION['massage_after_save' . $id] != "") {
|
@@ -142,7 +140,6 @@ class FMViewForm_maker {
|
|
142 |
}
|
143 |
else {
|
144 |
$save_error = $_SESSION['save_error' . $id] ? 'error' : 'warning';
|
145 |
-
require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
|
146 |
$form_maker_front_end .= WDW_FM_Library::message($save_message, $save_error, $id);
|
147 |
}
|
148 |
}
|
@@ -905,13 +902,13 @@ class FMViewForm_maker {
|
|
905 |
}
|
906 |
}
|
907 |
}
|
908 |
-
|
909 |
-
|
|
|
910 |
}
|
911 |
else {
|
912 |
$form = $row->form_front;
|
913 |
-
}
|
914 |
-
$form = $row->form_front;
|
915 |
|
916 |
$req_fields = array();
|
917 |
$check_regExp_all = array();
|
@@ -2165,7 +2162,7 @@ class FMViewForm_maker {
|
|
2165 |
if ($required) {
|
2166 |
$rep .= '<span class="wdform-required">' . $required_sym . '</span>';
|
2167 |
}
|
2168 |
-
$rep .= '</div><div class="wdform-element-section ' . $param['w_class'] . '" style="width:' . $div_size . 'px; ' . $param['w_field_label_pos2'] . ' "><input type="text" id="wdform_' . $id1 . '_element' . $form_id . '" class="input_active" style="width:' . $input_size . '" name="wdform_' . $id1 . '_element' . $form_id . '" ' . $param['attributes'] . '><span id="fm-calendar-'.$id1.'" class="wdform-calendar-button" style="'.$show_image.' "></span><input type="hidden" format="' . $param['w_format'] . '" id="wdform_' . $id1 . '_button' . $form_id . '" value="' . $default_date . '"/></div></div>';
|
2169 |
if ($required) {
|
2170 |
array_push($req_fields, $id1);
|
2171 |
}
|
8 |
|
9 |
public function display($id, $formType = 'embedded', $onload_js = '') {
|
10 |
global $wpdb;
|
11 |
+
require_once(WD_FM_DIR . '/framework/WDW_FM_Library.php');
|
12 |
$fm_settings = get_option('fm_settings');
|
13 |
$current_user = wp_get_current_user();
|
14 |
if ($current_user->ID != 0) {
|
106 |
if ($form_get_type == 3) {
|
107 |
$_SESSION['massage_after_submit' . $id] = "";
|
108 |
$after_submission_text = $this->model->get_after_submission_text($form_get_id);
|
|
|
109 |
$form_maker_front_end .= WDW_FM_Library::message(wpautop(html_entity_decode($after_submission_text)), 'warning', $id);
|
110 |
$fm_hide_form_after_submit = 1;
|
111 |
}
|
113 |
if (isset($_SESSION['redirect_paypal' . $id]) && ($_SESSION['redirect_paypal' . $id] == 1)) {
|
114 |
$_SESSION['redirect_paypal' . $id] = 0;
|
115 |
if (isset($_GET['succes'])) {
|
|
|
116 |
if ($_GET['succes'] == 0) {
|
117 |
$form_maker_front_end .= WDW_FM_Library::message(__('Error, email was not sent.', 'form_maker'), 'error', $id);
|
118 |
}
|
130 |
else {
|
131 |
$error = 'warning';
|
132 |
}
|
|
|
133 |
$form_maker_front_end .= WDW_FM_Library::message($message, $error, $id);
|
134 |
}
|
135 |
if (isset($_SESSION['massage_after_save' . $id]) && $_SESSION['massage_after_save' . $id] != "") {
|
140 |
}
|
141 |
else {
|
142 |
$save_error = $_SESSION['save_error' . $id] ? 'error' : 'warning';
|
|
|
143 |
$form_maker_front_end .= WDW_FM_Library::message($save_message, $save_error, $id);
|
144 |
}
|
145 |
}
|
902 |
}
|
903 |
}
|
904 |
}
|
905 |
+
|
906 |
+
if ($row->autogen_layout == 0) {
|
907 |
+
$form = $row->custom_front;
|
908 |
}
|
909 |
else {
|
910 |
$form = $row->form_front;
|
911 |
+
}
|
|
|
912 |
|
913 |
$req_fields = array();
|
914 |
$check_regExp_all = array();
|
2162 |
if ($required) {
|
2163 |
$rep .= '<span class="wdform-required">' . $required_sym . '</span>';
|
2164 |
}
|
2165 |
+
$rep .= '</div><div class="wdform-element-section ' . $param['w_class'] . '" style="width:' . $div_size . 'px; ' . $param['w_field_label_pos2'] . ' "><input type="text" id="wdform_' . $id1 . '_element' . $form_id . '" class="input_active" style="width:' . $input_size . '" name="wdform_' . $id1 . '_element' . $form_id . '" ' . $param['attributes'] . '><span id="fm-calendar-'.$id1.'" class="wdform-calendar-button" style="display:'.$show_image.' "></span><input type="hidden" format="' . $param['w_format'] . '" id="wdform_' . $id1 . '_button' . $form_id . '" value="' . $default_date . '"/></div></div>';
|
2166 |
if ($required) {
|
2167 |
array_push($req_fields, $id1);
|
2168 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
|
|
4 |
Tags: form, form builder, contact form, custom form, feedback, contact, contact forms, captcha, email, form manager, forms, survey
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.11.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -290,6 +290,14 @@ MailChimp form add-on of Form Maker lets you build up a customer database on you
|
|
290 |
|
291 |
== Changelog ==
|
292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
= 1.11.2 =
|
294 |
* Added: Overview page
|
295 |
* Removed: Featured Plugins, Featured Themes pages
|
4 |
Tags: form, form builder, contact form, custom form, feedback, contact, contact forms, captcha, email, form manager, forms, survey
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.11.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
290 |
|
291 |
== Changelog ==
|
292 |
|
293 |
+
= 1.11.3 =
|
294 |
+
* Added: Global option to enable Advanced Layout
|
295 |
+
* Changed: Themes table field name: `params` to `css`
|
296 |
+
* Fixed: Bug on PHP 5.2
|
297 |
+
* Fixed: Uninstall bug in free version
|
298 |
+
* Fixed: bug on generating Theme css
|
299 |
+
* Fixed: CSS conflict with some ajax themes
|
300 |
+
|
301 |
= 1.11.2 =
|
302 |
* Added: Overview page
|
303 |
* Removed: Featured Plugins, Featured Themes pages
|