Version Description
- Changed: Improved captcha security
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form Builder – a plugin for creating contact and feedback forms |
Version | 1.0.57 |
Comparing to | |
See all releases |
Code changes from version 1.0.56 to 1.0.57
- admin/controllers/CFMControllerBlocked_ips_cfm.php +143 -143
- admin/controllers/CFMControllerCFMShortcode.php +42 -42
- admin/controllers/CFMControllerContactFormMakerPreview.php +42 -42
- admin/controllers/CFMControllerContactFormmakerwdcaptcha.php +42 -42
- admin/controllers/CFMControllerGoptions_cfm.php +67 -67
- admin/controllers/CFMControllerUninstall_cfm.php +57 -57
- admin/controllers/CFMControllerWidget.php +60 -60
- admin/models/CFMModelBlocked_ips_cfm.php +73 -73
- admin/models/CFMModelCFMShortcode.php +35 -35
- admin/models/CFMModelContactFormMakerPreview.php +30 -30
- admin/models/CFMModelContactFormmakerwdcaptcha.php +30 -30
- admin/models/CFMModelGoptions_cfm.php +29 -29
- admin/models/CFMModelUninstall_cfm.php +40 -40
- admin/models/CFMModelWidget.php +36 -36
- admin/views/CFMViewCFMShortcode.php +111 -111
- admin/views/CFMViewContactFormMakerPreview.php +56 -56
- admin/views/CFMViewContactFormmakerwdcaptcha.php +92 -92
- admin/views/CFMViewGoptions_cfm.php +111 -111
- admin/views/CFMViewUninstall_cfm.php +124 -124
- admin/views/CFMViewWidget.php +83 -83
- contact-form-builder-notices.php +207 -207
- contact-form-builder-update.php +25 -25
- contact-form-builder.php +2 -2
- css/calendar-jos.css +208 -208
- css/codemirror.css +168 -168
- css/contact_form_maker_first.css +173 -173
- css/contact_form_maker_frontend.css +39 -39
- css/contact_form_maker_layout.css +36 -36
- css/jquery-ui-1.10.3.custom.css +1177 -1177
- css/notices.css +53 -53
- framework/WDW_CFM_Library.php +431 -431
- frontend/controllers/CFMControllerForm_maker.php +45 -45
- frontend/models/CFMModelForm_maker.php +9 -2
- frontend/views/CFMViewForm_maker.php +6 -0
- images/01/01/index.html +1 -1
- images/01/02/index.html +1 -1
- images/01/03/index.html +1 -1
- images/01/index.html +1 -1
- images/02/01/index.html +1 -1
- images/02/02/index.html +1 -1
- images/02/03/index.html +1 -1
- images/02/index.html +1 -1
- images/03/01/index.html +1 -1
- images/03/02/index.html +1 -1
- images/03/03/index.html +1 -1
- images/03/index.html +1 -1
- images/04/01/index.html +1 -1
- images/04/02/index.html +1 -1
- images/04/03/index.html +1 -1
- images/04/index.html +1 -1
- images/05/01/index.html +1 -1
- images/05/02/index.html +1 -1
- images/05/03/index.html +1 -1
- images/05/index.html +1 -1
- images/06/01/index.html +1 -1
- images/06/index.html +1 -1
- images/07/index.html +1 -1
- images/08/index.html +1 -1
- images/09/01/index.html +1 -1
- images/09/02/index.html +1 -1
- images/09/03/index.html +1 -1
- images/09/index.html +1 -1
- images/10/01/index.html +1 -1
- images/10/02/index.html +1 -1
- images/10/index.html +1 -1
- images/flags/index.html +1 -1
- js/contact_form_maker_editor_button.js +21 -21
- js/if_gmap_front_end.js +177 -177
- js/layout/clike.js +271 -271
- js/layout/codemirror.js +3181 -3181
- js/layout/css.js +124 -124
- js/layout/formatting.js +297 -297
- js/layout/htmlmixed.js +85 -85
- js/layout/javascript.js +361 -361
- js/layout/php.js +150 -150
- js/layout/xml.js +325 -325
- languages/contact_form_maker-af.po +2167 -2167
- languages/contact_form_maker-ar.po +178 -178
- languages/contact_form_maker-be_BY.po +176 -176
- languages/contact_form_maker-bg_BG.po +177 -177
- languages/contact_form_maker-ca.po +180 -180
- languages/contact_form_maker-cs_CZ.po +177 -177
- languages/contact_form_maker-da_DK.po +177 -177
- languages/contact_form_maker-en_US.po +176 -176
- languages/contact_form_maker-eo_EO.po +177 -177
- languages/contact_form_maker-et.po +65 -176
admin/controllers/CFMControllerBlocked_ips_cfm.php
CHANGED
@@ -1,144 +1,144 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerBlocked_ips_cfm {
|
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_CFM_Library::get('task');
|
23 |
-
$id = WDW_CFM_Library::get('current_id', 0);
|
24 |
-
$message = WDW_CFM_Library::get('message');
|
25 |
-
echo WDW_CFM_Library::message_id($message);
|
26 |
-
if (method_exists($this, $task)) {
|
27 |
-
check_admin_referer('nonce_cfm', 'nonce_cfm');
|
28 |
-
$this->$task($id);
|
29 |
-
}
|
30 |
-
else {
|
31 |
-
$this->display();
|
32 |
-
}
|
33 |
-
}
|
34 |
-
|
35 |
-
public function display() {
|
36 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelBlocked_ips_cfm.php";
|
37 |
-
$model = new CFMModelBlocked_ips_cfm();
|
38 |
-
|
39 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewBlocked_ips_cfm.php";
|
40 |
-
$view = new CFMViewBlocked_ips_cfm($model);
|
41 |
-
$view->display();
|
42 |
-
}
|
43 |
-
|
44 |
-
public function save() {
|
45 |
-
$message = $this->save_db();
|
46 |
-
$page = WDW_CFM_Library::get('page');
|
47 |
-
WDW_CFM_Library::spider_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 |
-
$id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
|
53 |
-
$ip = (isset($_POST['ip']) ? esc_html(stripslashes($_POST['ip'])) : '');
|
54 |
-
if ($id != 0) {
|
55 |
-
$save = $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
|
56 |
-
'ip' => $ip,
|
57 |
-
), array('id' => $id));
|
58 |
-
}
|
59 |
-
else {
|
60 |
-
$save = $wpdb->insert($wpdb->prefix . 'contactformmaker_blocked', array(
|
61 |
-
'ip' => $ip,
|
62 |
-
), array(
|
63 |
-
'%s',
|
64 |
-
));
|
65 |
-
}
|
66 |
-
if ($save !== FALSE) {
|
67 |
-
$message = 1;
|
68 |
-
}
|
69 |
-
else {
|
70 |
-
$message = 2;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
|
74 |
-
public function save_all() {
|
75 |
-
global $wpdb;
|
76 |
-
$flag = FALSE;
|
77 |
-
$ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
|
78 |
-
foreach ($ips_id_col as $ip_id) {
|
79 |
-
if (isset($_POST['ip' . $ip_id])) {
|
80 |
-
$ip = esc_html(stripslashes($_POST['ip' . $ip_id]));
|
81 |
-
if ($ip == '') {
|
82 |
-
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
|
83 |
-
}
|
84 |
-
else {
|
85 |
-
$flag = TRUE;
|
86 |
-
$wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
|
87 |
-
'ip' => $ip,
|
88 |
-
), array('id' => $ip_id));
|
89 |
-
}
|
90 |
-
}
|
91 |
-
}
|
92 |
-
if ($flag) {
|
93 |
-
$message = 1;
|
94 |
-
}
|
95 |
-
else {
|
96 |
-
$message = 0;
|
97 |
-
}
|
98 |
-
$page = WDW_CFM_Library::get('page');
|
99 |
-
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
100 |
-
}
|
101 |
-
|
102 |
-
public function delete($id) {
|
103 |
-
global $wpdb;
|
104 |
-
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id);
|
105 |
-
if ($wpdb->query($query)) {
|
106 |
-
$message = 3;
|
107 |
-
}
|
108 |
-
else {
|
109 |
-
$message = 2;
|
110 |
-
}
|
111 |
-
$page = WDW_CFM_Library::get('page');
|
112 |
-
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
113 |
-
}
|
114 |
-
|
115 |
-
public function delete_all() {
|
116 |
-
global $wpdb;
|
117 |
-
$flag = FALSE;
|
118 |
-
$ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
|
119 |
-
foreach ($ips_id_col as $ip_id) {
|
120 |
-
if (isset($_POST['check_' . $ip_id])) {
|
121 |
-
$flag = TRUE;
|
122 |
-
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
|
123 |
-
}
|
124 |
-
}
|
125 |
-
if ($flag) {
|
126 |
-
$message = 5;
|
127 |
-
}
|
128 |
-
else {
|
129 |
-
$message = 2;
|
130 |
-
}
|
131 |
-
$page = WDW_CFM_Library::get('page');
|
132 |
-
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
133 |
-
}
|
134 |
-
|
135 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
136 |
-
// Getters & Setters //
|
137 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
138 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
139 |
-
// Private Methods //
|
140 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
141 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
142 |
-
// Listeners //
|
143 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
144 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerBlocked_ips_cfm {
|
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_CFM_Library::get('task');
|
23 |
+
$id = WDW_CFM_Library::get('current_id', 0);
|
24 |
+
$message = WDW_CFM_Library::get('message');
|
25 |
+
echo WDW_CFM_Library::message_id($message);
|
26 |
+
if (method_exists($this, $task)) {
|
27 |
+
check_admin_referer('nonce_cfm', 'nonce_cfm');
|
28 |
+
$this->$task($id);
|
29 |
+
}
|
30 |
+
else {
|
31 |
+
$this->display();
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
public function display() {
|
36 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelBlocked_ips_cfm.php";
|
37 |
+
$model = new CFMModelBlocked_ips_cfm();
|
38 |
+
|
39 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewBlocked_ips_cfm.php";
|
40 |
+
$view = new CFMViewBlocked_ips_cfm($model);
|
41 |
+
$view->display();
|
42 |
+
}
|
43 |
+
|
44 |
+
public function save() {
|
45 |
+
$message = $this->save_db();
|
46 |
+
$page = WDW_CFM_Library::get('page');
|
47 |
+
WDW_CFM_Library::spider_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 |
+
$id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
|
53 |
+
$ip = (isset($_POST['ip']) ? esc_html(stripslashes($_POST['ip'])) : '');
|
54 |
+
if ($id != 0) {
|
55 |
+
$save = $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
|
56 |
+
'ip' => $ip,
|
57 |
+
), array('id' => $id));
|
58 |
+
}
|
59 |
+
else {
|
60 |
+
$save = $wpdb->insert($wpdb->prefix . 'contactformmaker_blocked', array(
|
61 |
+
'ip' => $ip,
|
62 |
+
), array(
|
63 |
+
'%s',
|
64 |
+
));
|
65 |
+
}
|
66 |
+
if ($save !== FALSE) {
|
67 |
+
$message = 1;
|
68 |
+
}
|
69 |
+
else {
|
70 |
+
$message = 2;
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
public function save_all() {
|
75 |
+
global $wpdb;
|
76 |
+
$flag = FALSE;
|
77 |
+
$ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
|
78 |
+
foreach ($ips_id_col as $ip_id) {
|
79 |
+
if (isset($_POST['ip' . $ip_id])) {
|
80 |
+
$ip = esc_html(stripslashes($_POST['ip' . $ip_id]));
|
81 |
+
if ($ip == '') {
|
82 |
+
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
|
83 |
+
}
|
84 |
+
else {
|
85 |
+
$flag = TRUE;
|
86 |
+
$wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
|
87 |
+
'ip' => $ip,
|
88 |
+
), array('id' => $ip_id));
|
89 |
+
}
|
90 |
+
}
|
91 |
+
}
|
92 |
+
if ($flag) {
|
93 |
+
$message = 1;
|
94 |
+
}
|
95 |
+
else {
|
96 |
+
$message = 0;
|
97 |
+
}
|
98 |
+
$page = WDW_CFM_Library::get('page');
|
99 |
+
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
100 |
+
}
|
101 |
+
|
102 |
+
public function delete($id) {
|
103 |
+
global $wpdb;
|
104 |
+
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id);
|
105 |
+
if ($wpdb->query($query)) {
|
106 |
+
$message = 3;
|
107 |
+
}
|
108 |
+
else {
|
109 |
+
$message = 2;
|
110 |
+
}
|
111 |
+
$page = WDW_CFM_Library::get('page');
|
112 |
+
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
113 |
+
}
|
114 |
+
|
115 |
+
public function delete_all() {
|
116 |
+
global $wpdb;
|
117 |
+
$flag = FALSE;
|
118 |
+
$ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
|
119 |
+
foreach ($ips_id_col as $ip_id) {
|
120 |
+
if (isset($_POST['check_' . $ip_id])) {
|
121 |
+
$flag = TRUE;
|
122 |
+
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
|
123 |
+
}
|
124 |
+
}
|
125 |
+
if ($flag) {
|
126 |
+
$message = 5;
|
127 |
+
}
|
128 |
+
else {
|
129 |
+
$message = 2;
|
130 |
+
}
|
131 |
+
$page = WDW_CFM_Library::get('page');
|
132 |
+
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
133 |
+
}
|
134 |
+
|
135 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
136 |
+
// Getters & Setters //
|
137 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
138 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
139 |
+
// Private Methods //
|
140 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
141 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
142 |
+
// Listeners //
|
143 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
144 |
}
|
admin/controllers/CFMControllerCFMShortcode.php
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerCFMShortcode {
|
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 |
-
$this->display();
|
23 |
-
}
|
24 |
-
|
25 |
-
public function display() {
|
26 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelCFMShortcode.php";
|
27 |
-
$model = new CFMModelCFMShortcode();
|
28 |
-
|
29 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewCFMShortcode.php";
|
30 |
-
$view = new CFMViewCFMShortcode($model);
|
31 |
-
$view->display();
|
32 |
-
}
|
33 |
-
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
// Getters & Setters //
|
36 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
-
// Private Methods //
|
39 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
-
// Listeners //
|
42 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerCFMShortcode {
|
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 |
+
$this->display();
|
23 |
+
}
|
24 |
+
|
25 |
+
public function display() {
|
26 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelCFMShortcode.php";
|
27 |
+
$model = new CFMModelCFMShortcode();
|
28 |
+
|
29 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewCFMShortcode.php";
|
30 |
+
$view = new CFMViewCFMShortcode($model);
|
31 |
+
$view->display();
|
32 |
+
}
|
33 |
+
|
34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
+
// Getters & Setters //
|
36 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
+
// Private Methods //
|
39 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
+
// Listeners //
|
42 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
}
|
admin/controllers/CFMControllerContactFormMakerPreview.php
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerContactFormMakerPreview {
|
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 |
-
$this->display();
|
23 |
-
}
|
24 |
-
|
25 |
-
public function display() {
|
26 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormMakerPreview.php";
|
27 |
-
$model = new CFMModelContactFormMakerPreview();
|
28 |
-
|
29 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormMakerPreview.php";
|
30 |
-
$view = new CFMViewContactFormMakerPreview($model);
|
31 |
-
$view->display();
|
32 |
-
}
|
33 |
-
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
// Getters & Setters //
|
36 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
-
// Private Methods //
|
39 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
-
// Listeners //
|
42 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerContactFormMakerPreview {
|
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 |
+
$this->display();
|
23 |
+
}
|
24 |
+
|
25 |
+
public function display() {
|
26 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormMakerPreview.php";
|
27 |
+
$model = new CFMModelContactFormMakerPreview();
|
28 |
+
|
29 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormMakerPreview.php";
|
30 |
+
$view = new CFMViewContactFormMakerPreview($model);
|
31 |
+
$view->display();
|
32 |
+
}
|
33 |
+
|
34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
+
// Getters & Setters //
|
36 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
+
// Private Methods //
|
39 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
+
// Listeners //
|
42 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
}
|
admin/controllers/CFMControllerContactFormmakerwdcaptcha.php
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerContactFormmakerwdcaptcha {
|
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 |
-
$this->display();
|
23 |
-
}
|
24 |
-
|
25 |
-
public function display() {
|
26 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormmakerwdcaptcha.php";
|
27 |
-
$model = new CFMModelContactFormmakerwdcaptcha();
|
28 |
-
|
29 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormmakerwdcaptcha.php";
|
30 |
-
$view = new CFMViewContactFormmakerwdcaptcha($model);
|
31 |
-
$view->display();
|
32 |
-
}
|
33 |
-
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
// Getters & Setters //
|
36 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
-
// Private Methods //
|
39 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
-
// Listeners //
|
42 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerContactFormmakerwdcaptcha {
|
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 |
+
$this->display();
|
23 |
+
}
|
24 |
+
|
25 |
+
public function display() {
|
26 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormmakerwdcaptcha.php";
|
27 |
+
$model = new CFMModelContactFormmakerwdcaptcha();
|
28 |
+
|
29 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormmakerwdcaptcha.php";
|
30 |
+
$view = new CFMViewContactFormmakerwdcaptcha($model);
|
31 |
+
$view->display();
|
32 |
+
}
|
33 |
+
|
34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
+
// Getters & Setters //
|
36 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
+
// Private Methods //
|
39 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
+
// Listeners //
|
42 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
}
|
admin/controllers/CFMControllerGoptions_cfm.php
CHANGED
@@ -1,68 +1,68 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerGoptions_cfm {
|
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_CFM_Library::get('task');
|
23 |
-
$id = (int)WDW_CFM_Library::get('current_id', 0);
|
24 |
-
$message = WDW_CFM_Library::get('message');
|
25 |
-
echo WDW_CFM_Library::message_id($message);
|
26 |
-
if (method_exists($this, $task)) {
|
27 |
-
check_admin_referer('nonce_cfm', 'nonce_cfm');
|
28 |
-
$this->$task($id);
|
29 |
-
}
|
30 |
-
else {
|
31 |
-
$this->display();
|
32 |
-
}
|
33 |
-
}
|
34 |
-
|
35 |
-
public function display() {
|
36 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelGoptions_cfm.php";
|
37 |
-
$model = new CFMModelGoptions_cfm();
|
38 |
-
|
39 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewGoptions_cfm.php";
|
40 |
-
$view = new CFMViewGoptions_cfm($model);
|
41 |
-
$view->display();
|
42 |
-
}
|
43 |
-
|
44 |
-
public function save() {
|
45 |
-
$message = $this->save_db();
|
46 |
-
$page = WDW_CFM_Library::get('page');
|
47 |
-
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
48 |
-
}
|
49 |
-
|
50 |
-
public function save_db() {
|
51 |
-
$public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
|
52 |
-
$private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
|
53 |
-
$map_key = (isset($_POST['map_key']) ? esc_html(stripslashes($_POST['map_key'])) : '');
|
54 |
-
update_option('cfm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'map_key' => $map_key));
|
55 |
-
}
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
60 |
-
// Getters & Setters //
|
61 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
62 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
63 |
-
// Private Methods //
|
64 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
65 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
66 |
-
// Listeners //
|
67 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
68 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerGoptions_cfm {
|
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_CFM_Library::get('task');
|
23 |
+
$id = (int)WDW_CFM_Library::get('current_id', 0);
|
24 |
+
$message = WDW_CFM_Library::get('message');
|
25 |
+
echo WDW_CFM_Library::message_id($message);
|
26 |
+
if (method_exists($this, $task)) {
|
27 |
+
check_admin_referer('nonce_cfm', 'nonce_cfm');
|
28 |
+
$this->$task($id);
|
29 |
+
}
|
30 |
+
else {
|
31 |
+
$this->display();
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
public function display() {
|
36 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelGoptions_cfm.php";
|
37 |
+
$model = new CFMModelGoptions_cfm();
|
38 |
+
|
39 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewGoptions_cfm.php";
|
40 |
+
$view = new CFMViewGoptions_cfm($model);
|
41 |
+
$view->display();
|
42 |
+
}
|
43 |
+
|
44 |
+
public function save() {
|
45 |
+
$message = $this->save_db();
|
46 |
+
$page = WDW_CFM_Library::get('page');
|
47 |
+
WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
48 |
+
}
|
49 |
+
|
50 |
+
public function save_db() {
|
51 |
+
$public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
|
52 |
+
$private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
|
53 |
+
$map_key = (isset($_POST['map_key']) ? esc_html(stripslashes($_POST['map_key'])) : '');
|
54 |
+
update_option('cfm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'map_key' => $map_key));
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
60 |
+
// Getters & Setters //
|
61 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
62 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
63 |
+
// Private Methods //
|
64 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
65 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
66 |
+
// Listeners //
|
67 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
68 |
}
|
admin/controllers/CFMControllerUninstall_cfm.php
CHANGED
@@ -1,58 +1,58 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerUninstall_cfm {
|
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 = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
|
23 |
-
if (method_exists($this, $task)) {
|
24 |
-
check_admin_referer('nonce_cfm', 'nonce_cfm');
|
25 |
-
$this->$task();
|
26 |
-
}
|
27 |
-
else {
|
28 |
-
$this->display();
|
29 |
-
}
|
30 |
-
}
|
31 |
-
|
32 |
-
public function display() {
|
33 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
|
34 |
-
$model = new CFMModelUninstall_cfm();
|
35 |
-
|
36 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
|
37 |
-
$view = new CFMViewUninstall_cfm($model);
|
38 |
-
$view->display();
|
39 |
-
}
|
40 |
-
|
41 |
-
public function uninstall() {
|
42 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
|
43 |
-
$model = new CFMModelUninstall_cfm();
|
44 |
-
|
45 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
|
46 |
-
$view = new CFMViewUninstall_cfm($model);
|
47 |
-
$view->uninstall();
|
48 |
-
}
|
49 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
50 |
-
// Getters & Setters //
|
51 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
52 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
53 |
-
// Private Methods //
|
54 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
55 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
56 |
-
// Listeners //
|
57 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
58 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerUninstall_cfm {
|
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 = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
|
23 |
+
if (method_exists($this, $task)) {
|
24 |
+
check_admin_referer('nonce_cfm', 'nonce_cfm');
|
25 |
+
$this->$task();
|
26 |
+
}
|
27 |
+
else {
|
28 |
+
$this->display();
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
public function display() {
|
33 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
|
34 |
+
$model = new CFMModelUninstall_cfm();
|
35 |
+
|
36 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
|
37 |
+
$view = new CFMViewUninstall_cfm($model);
|
38 |
+
$view->display();
|
39 |
+
}
|
40 |
+
|
41 |
+
public function uninstall() {
|
42 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
|
43 |
+
$model = new CFMModelUninstall_cfm();
|
44 |
+
|
45 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
|
46 |
+
$view = new CFMViewUninstall_cfm($model);
|
47 |
+
$view->uninstall();
|
48 |
+
}
|
49 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
50 |
+
// Getters & Setters //
|
51 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
52 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
53 |
+
// Private Methods //
|
54 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
55 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
56 |
+
// Listeners //
|
57 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
58 |
}
|
admin/controllers/CFMControllerWidget.php
CHANGED
@@ -1,61 +1,61 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerWidget extends WP_Widget {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
private $view;
|
14 |
-
private $model;
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
// Constructor & Destructor //
|
17 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
-
public function __construct() {
|
19 |
-
$widget_ops = array(
|
20 |
-
'classname' => 'contact_form_maker_widget',
|
21 |
-
'description' => __('Add Conatct Form Builder widget.', 'contact_form_maker')
|
22 |
-
);
|
23 |
-
// Widget Control Settings.
|
24 |
-
$control_ops = array('id_base' => 'contact_form_maker_widget');
|
25 |
-
// Create the widget.
|
26 |
-
parent::__construct('contact_form_maker_widget', 'Contact Form Builder', $widget_ops, $control_ops);
|
27 |
-
require_once WD_CFM_DIR . "/admin/models/CFMModelWidget.php";
|
28 |
-
$this->model = new CFMModelWidget();
|
29 |
-
|
30 |
-
require_once WD_CFM_DIR . "/admin/views/CFMViewWidget.php";
|
31 |
-
$this->view = new CFMViewWidget($this->model);
|
32 |
-
}
|
33 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
-
// Public Methods //
|
35 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
36 |
-
|
37 |
-
public function widget($args, $instance) {
|
38 |
-
$this->view->widget($args, $instance);
|
39 |
-
}
|
40 |
-
|
41 |
-
public function form($instance) {
|
42 |
-
$this->view->form($instance, parent::get_field_id('title'), parent::get_field_name('title'), parent::get_field_id('form_id'), parent::get_field_name('form_id'));
|
43 |
-
}
|
44 |
-
|
45 |
-
// Update Settings.
|
46 |
-
public function update($new_instance, $old_instance) {
|
47 |
-
$instance['title'] = $new_instance['title'];
|
48 |
-
$instance['form_id'] = $new_instance['form_id'];
|
49 |
-
return $instance;
|
50 |
-
}
|
51 |
-
|
52 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
53 |
-
// Getters & Setters //
|
54 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
55 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
56 |
-
// Private Methods //
|
57 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
58 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
59 |
-
// Listeners //
|
60 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
61 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerWidget extends WP_Widget {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
private $view;
|
14 |
+
private $model;
|
15 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
+
// Constructor & Destructor //
|
17 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
+
public function __construct() {
|
19 |
+
$widget_ops = array(
|
20 |
+
'classname' => 'contact_form_maker_widget',
|
21 |
+
'description' => __('Add Conatct Form Builder widget.', 'contact_form_maker')
|
22 |
+
);
|
23 |
+
// Widget Control Settings.
|
24 |
+
$control_ops = array('id_base' => 'contact_form_maker_widget');
|
25 |
+
// Create the widget.
|
26 |
+
parent::__construct('contact_form_maker_widget', 'Contact Form Builder', $widget_ops, $control_ops);
|
27 |
+
require_once WD_CFM_DIR . "/admin/models/CFMModelWidget.php";
|
28 |
+
$this->model = new CFMModelWidget();
|
29 |
+
|
30 |
+
require_once WD_CFM_DIR . "/admin/views/CFMViewWidget.php";
|
31 |
+
$this->view = new CFMViewWidget($this->model);
|
32 |
+
}
|
33 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
+
// Public Methods //
|
35 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
36 |
+
|
37 |
+
public function widget($args, $instance) {
|
38 |
+
$this->view->widget($args, $instance);
|
39 |
+
}
|
40 |
+
|
41 |
+
public function form($instance) {
|
42 |
+
$this->view->form($instance, parent::get_field_id('title'), parent::get_field_name('title'), parent::get_field_id('form_id'), parent::get_field_name('form_id'));
|
43 |
+
}
|
44 |
+
|
45 |
+
// Update Settings.
|
46 |
+
public function update($new_instance, $old_instance) {
|
47 |
+
$instance['title'] = $new_instance['title'];
|
48 |
+
$instance['form_id'] = $new_instance['form_id'];
|
49 |
+
return $instance;
|
50 |
+
}
|
51 |
+
|
52 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
53 |
+
// Getters & Setters //
|
54 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
55 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
56 |
+
// Private Methods //
|
57 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
58 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
59 |
+
// Listeners //
|
60 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
61 |
}
|
admin/models/CFMModelBlocked_ips_cfm.php
CHANGED
@@ -1,74 +1,74 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMModelBlocked_ips_cfm {
|
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 get_rows_data() {
|
22 |
-
global $wpdb;
|
23 |
-
$where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
|
24 |
-
$asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'asc') ? 'asc' : 'desc');
|
25 |
-
$order_by = ((isset($_POST['order_by']) && esc_html($_POST['order_by']) == 'ip') ? 'ip' : 'id');
|
26 |
-
$order_by = ' ORDER BY ' . $order_by . ' ' . $asc_or_desc;
|
27 |
-
if (isset($_POST['page_number']) && $_POST['page_number']) {
|
28 |
-
$limit = ((int) $_POST['page_number'] - 1) * 20;
|
29 |
-
}
|
30 |
-
else {
|
31 |
-
$limit = 0;
|
32 |
-
}
|
33 |
-
$query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where . $order_by . " LIMIT " . $limit . ",20";
|
34 |
-
$rows = $wpdb->get_results($query);
|
35 |
-
return $rows;
|
36 |
-
}
|
37 |
-
|
38 |
-
public function get_row_data($id) {
|
39 |
-
global $wpdb;
|
40 |
-
if ($id != 0) {
|
41 |
-
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id));
|
42 |
-
}
|
43 |
-
else {
|
44 |
-
$row->id = 0;
|
45 |
-
$row->ip = '';
|
46 |
-
}
|
47 |
-
return $row;
|
48 |
-
}
|
49 |
-
|
50 |
-
public function page_nav() {
|
51 |
-
global $wpdb;
|
52 |
-
$where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
|
53 |
-
$query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where;
|
54 |
-
$total = $wpdb->get_var($query);
|
55 |
-
$page_nav['total'] = $total;
|
56 |
-
if (isset($_POST['page_number']) && $_POST['page_number']) {
|
57 |
-
$limit = ((int) $_POST['page_number'] - 1) * 20;
|
58 |
-
}
|
59 |
-
else {
|
60 |
-
$limit = 0;
|
61 |
-
}
|
62 |
-
$page_nav['limit'] = (int) ($limit / 20 + 1);
|
63 |
-
return $page_nav;
|
64 |
-
}
|
65 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
66 |
-
// Getters & Setters //
|
67 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
68 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
69 |
-
// Private Methods //
|
70 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
71 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
72 |
-
// Listeners //
|
73 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
74 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMModelBlocked_ips_cfm {
|
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 get_rows_data() {
|
22 |
+
global $wpdb;
|
23 |
+
$where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
|
24 |
+
$asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'asc') ? 'asc' : 'desc');
|
25 |
+
$order_by = ((isset($_POST['order_by']) && esc_html($_POST['order_by']) == 'ip') ? 'ip' : 'id');
|
26 |
+
$order_by = ' ORDER BY ' . $order_by . ' ' . $asc_or_desc;
|
27 |
+
if (isset($_POST['page_number']) && $_POST['page_number']) {
|
28 |
+
$limit = ((int) $_POST['page_number'] - 1) * 20;
|
29 |
+
}
|
30 |
+
else {
|
31 |
+
$limit = 0;
|
32 |
+
}
|
33 |
+
$query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where . $order_by . " LIMIT " . $limit . ",20";
|
34 |
+
$rows = $wpdb->get_results($query);
|
35 |
+
return $rows;
|
36 |
+
}
|
37 |
+
|
38 |
+
public function get_row_data($id) {
|
39 |
+
global $wpdb;
|
40 |
+
if ($id != 0) {
|
41 |
+
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id));
|
42 |
+
}
|
43 |
+
else {
|
44 |
+
$row->id = 0;
|
45 |
+
$row->ip = '';
|
46 |
+
}
|
47 |
+
return $row;
|
48 |
+
}
|
49 |
+
|
50 |
+
public function page_nav() {
|
51 |
+
global $wpdb;
|
52 |
+
$where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
|
53 |
+
$query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where;
|
54 |
+
$total = $wpdb->get_var($query);
|
55 |
+
$page_nav['total'] = $total;
|
56 |
+
if (isset($_POST['page_number']) && $_POST['page_number']) {
|
57 |
+
$limit = ((int) $_POST['page_number'] - 1) * 20;
|
58 |
+
}
|
59 |
+
else {
|
60 |
+
$limit = 0;
|
61 |
+
}
|
62 |
+
$page_nav['limit'] = (int) ($limit / 20 + 1);
|
63 |
+
return $page_nav;
|
64 |
+
}
|
65 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
66 |
+
// Getters & Setters //
|
67 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
68 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
69 |
+
// Private Methods //
|
70 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
71 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
72 |
+
// Listeners //
|
73 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
74 |
}
|
admin/models/CFMModelCFMShortcode.php
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMModelCFMShortcode {
|
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 |
-
public function get_form_data() {
|
23 |
-
global $wpdb;
|
24 |
-
$row = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title` ASC");
|
25 |
-
return $row;
|
26 |
-
}
|
27 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
-
// Getters & Setters //
|
29 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
30 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
-
// Private Methods //
|
32 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
33 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
-
// Listeners //
|
35 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
36 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMModelCFMShortcode {
|
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 |
+
public function get_form_data() {
|
23 |
+
global $wpdb;
|
24 |
+
$row = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title` ASC");
|
25 |
+
return $row;
|
26 |
+
}
|
27 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
+
// Getters & Setters //
|
29 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
30 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
+
// Private Methods //
|
32 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
33 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
+
// Listeners //
|
35 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
36 |
}
|
admin/models/CFMModelContactFormMakerPreview.php
CHANGED
@@ -1,31 +1,31 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMModelContactFormMakerPreview {
|
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 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
-
// Getters & Setters //
|
24 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
-
// Private Methods //
|
27 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
-
// Listeners //
|
30 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMModelContactFormMakerPreview {
|
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 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
+
// Getters & Setters //
|
24 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
+
// Private Methods //
|
27 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
+
// Listeners //
|
30 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
}
|
admin/models/CFMModelContactFormmakerwdcaptcha.php
CHANGED
@@ -1,31 +1,31 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMModelContactFormmakerwdcaptcha {
|
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 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
-
// Getters & Setters //
|
24 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
-
// Private Methods //
|
27 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
-
// Listeners //
|
30 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMModelContactFormmakerwdcaptcha {
|
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 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
+
// Getters & Setters //
|
24 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
+
// Private Methods //
|
27 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
28 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
+
// Listeners //
|
30 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
}
|
admin/models/CFMModelGoptions_cfm.php
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMModelGoptions_cfm {
|
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 CFMModelGoptions_cfm {
|
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 |
}
|
admin/models/CFMModelUninstall_cfm.php
CHANGED
@@ -1,41 +1,41 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMModelUninstall_cfm {
|
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 delete_db_tables() {
|
22 |
-
global $wpdb;
|
23 |
-
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker");
|
24 |
-
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_submits");
|
25 |
-
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_themes");
|
26 |
-
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_views");
|
27 |
-
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_blocked");
|
28 |
-
delete_option("wd_contact_form_maker_version");
|
29 |
-
delete_option("cfm_export_delimiter");
|
30 |
-
delete_option("cfm_settings");
|
31 |
-
}
|
32 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
33 |
-
// Getters & Setters //
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
36 |
-
// Private Methods //
|
37 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
39 |
-
// Listeners //
|
40 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMModelUninstall_cfm {
|
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 delete_db_tables() {
|
22 |
+
global $wpdb;
|
23 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker");
|
24 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_submits");
|
25 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_themes");
|
26 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_views");
|
27 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_blocked");
|
28 |
+
delete_option("wd_contact_form_maker_version");
|
29 |
+
delete_option("cfm_export_delimiter");
|
30 |
+
delete_option("cfm_settings");
|
31 |
+
}
|
32 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
33 |
+
// Getters & Setters //
|
34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
36 |
+
// Private Methods //
|
37 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
39 |
+
// Listeners //
|
40 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
}
|
admin/models/CFMModelWidget.php
CHANGED
@@ -1,37 +1,37 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMModelWidget {
|
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 |
-
public function get_gallery_rows_data() {
|
23 |
-
global $wpdb;
|
24 |
-
$rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title`");
|
25 |
-
return $rows;
|
26 |
-
}
|
27 |
-
|
28 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
-
// Getters & Setters //
|
30 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
32 |
-
// Private Methods //
|
33 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
// Listeners //
|
36 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMModelWidget {
|
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 |
+
public function get_gallery_rows_data() {
|
23 |
+
global $wpdb;
|
24 |
+
$rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title`");
|
25 |
+
return $rows;
|
26 |
+
}
|
27 |
+
|
28 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
+
// Getters & Setters //
|
30 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
32 |
+
// Private Methods //
|
33 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
+
// Listeners //
|
36 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
}
|
admin/views/CFMViewCFMShortcode.php
CHANGED
@@ -1,112 +1,112 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMViewCFMShortcode {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
private $model;
|
14 |
-
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
// Constructor & Destructor //
|
17 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
-
public function __construct($model) {
|
19 |
-
$this->model = $model;
|
20 |
-
}
|
21 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
-
// Public Methods //
|
23 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
-
public function display() {
|
25 |
-
$rows = $this->model->get_form_data();
|
26 |
-
?>
|
27 |
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
28 |
-
<head>
|
29 |
-
<title>Contact Form Builder</title>
|
30 |
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
31 |
-
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
32 |
-
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
|
33 |
-
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
34 |
-
|
35 |
-
<?php
|
36 |
-
wp_print_scripts('jquery');
|
37 |
-
?>
|
38 |
-
<base target="_self">
|
39 |
-
</head>
|
40 |
-
<body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" dir="ltr" class="forceColors">
|
41 |
-
<div class="tabs" role="tablist" tabindex="-1">
|
42 |
-
<ul>
|
43 |
-
<li id="display_tab" class="current" role="tab" tabindex="0">
|
44 |
-
<span>
|
45 |
-
<a href="javascript:mcTabs.displayTab('display_tab','display_panel');" onMouseDown="return false;" tabindex="-1">Contact Form Builder</a>
|
46 |
-
</span>
|
47 |
-
</li>
|
48 |
-
</ul>
|
49 |
-
</div>
|
50 |
-
<style>
|
51 |
-
.panel_wrapper {
|
52 |
-
height: 170px !important;
|
53 |
-
}
|
54 |
-
</style>
|
55 |
-
<div class="panel_wrapper">
|
56 |
-
<div id="display_panel" class="panel current">
|
57 |
-
<table>
|
58 |
-
<tr>
|
59 |
-
<td style="vertical-align: middle; text-align: left;"><?php echo __("Select a Form", "contact_form_maker"); ?></td>
|
60 |
-
<td style="vertical-align: middle; text-align: left;">
|
61 |
-
<select name="form_maker_id" id="form_maker_id" style="width: 230px; text-align: left;">
|
62 |
-
<option value="- Select Form -" selected="selected">-<?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
|
63 |
-
<?php
|
64 |
-
foreach ($rows as $row) {
|
65 |
-
?>
|
66 |
-
<option value="<?php echo $row->id; ?>"><?php echo $row->title; ?></option>
|
67 |
-
<?php
|
68 |
-
}
|
69 |
-
?>
|
70 |
-
</select>
|
71 |
-
</td>
|
72 |
-
</tr>
|
73 |
-
</table>
|
74 |
-
</div>
|
75 |
-
</div>
|
76 |
-
<div class="mceActionPanel">
|
77 |
-
<div style="float: left;">
|
78 |
-
<input type="button" id="cancel" name="cancel" value="<?php echo __('Cancel', 'contact_form_maker'); ?>" onClick="tinyMCEPopup.close();"/>
|
79 |
-
</div>
|
80 |
-
<div style="float: right;">
|
81 |
-
<input type="submit" id="insert" name="insert" value="<?php echo __('Insert', 'contact_form_maker'); ?>" onClick="form_maker_insert_shortcode();"/>
|
82 |
-
</div>
|
83 |
-
</div>
|
84 |
-
<script type="text/javascript">
|
85 |
-
function form_maker_insert_shortcode() {
|
86 |
-
if (document.getElementById('form_maker_id').value == '- Select Form -') {
|
87 |
-
tinyMCEPopup.close();
|
88 |
-
}
|
89 |
-
else {
|
90 |
-
var tagtext;
|
91 |
-
tagtext = '[Contact_Form_Builder id="' + document.getElementById('form_maker_id').value + '"]';
|
92 |
-
window.tinyMCE.execCommand('mceInsertContent', false, tagtext);
|
93 |
-
tinyMCEPopup.close();
|
94 |
-
}
|
95 |
-
}
|
96 |
-
</script>
|
97 |
-
</body>
|
98 |
-
</html>
|
99 |
-
<?php
|
100 |
-
die();
|
101 |
-
}
|
102 |
-
|
103 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
104 |
-
// Getters & Setters //
|
105 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
106 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
107 |
-
// Private Methods //
|
108 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
109 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
110 |
-
// Listeners //
|
111 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
112 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMViewCFMShortcode {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
private $model;
|
14 |
+
|
15 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
+
// Constructor & Destructor //
|
17 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
+
public function __construct($model) {
|
19 |
+
$this->model = $model;
|
20 |
+
}
|
21 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
+
// Public Methods //
|
23 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
+
public function display() {
|
25 |
+
$rows = $this->model->get_form_data();
|
26 |
+
?>
|
27 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
28 |
+
<head>
|
29 |
+
<title>Contact Form Builder</title>
|
30 |
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
31 |
+
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
32 |
+
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
|
33 |
+
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
34 |
+
|
35 |
+
<?php
|
36 |
+
wp_print_scripts('jquery');
|
37 |
+
?>
|
38 |
+
<base target="_self">
|
39 |
+
</head>
|
40 |
+
<body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" dir="ltr" class="forceColors">
|
41 |
+
<div class="tabs" role="tablist" tabindex="-1">
|
42 |
+
<ul>
|
43 |
+
<li id="display_tab" class="current" role="tab" tabindex="0">
|
44 |
+
<span>
|
45 |
+
<a href="javascript:mcTabs.displayTab('display_tab','display_panel');" onMouseDown="return false;" tabindex="-1">Contact Form Builder</a>
|
46 |
+
</span>
|
47 |
+
</li>
|
48 |
+
</ul>
|
49 |
+
</div>
|
50 |
+
<style>
|
51 |
+
.panel_wrapper {
|
52 |
+
height: 170px !important;
|
53 |
+
}
|
54 |
+
</style>
|
55 |
+
<div class="panel_wrapper">
|
56 |
+
<div id="display_panel" class="panel current">
|
57 |
+
<table>
|
58 |
+
<tr>
|
59 |
+
<td style="vertical-align: middle; text-align: left;"><?php echo __("Select a Form", "contact_form_maker"); ?></td>
|
60 |
+
<td style="vertical-align: middle; text-align: left;">
|
61 |
+
<select name="form_maker_id" id="form_maker_id" style="width: 230px; text-align: left;">
|
62 |
+
<option value="- Select Form -" selected="selected">-<?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
|
63 |
+
<?php
|
64 |
+
foreach ($rows as $row) {
|
65 |
+
?>
|
66 |
+
<option value="<?php echo $row->id; ?>"><?php echo $row->title; ?></option>
|
67 |
+
<?php
|
68 |
+
}
|
69 |
+
?>
|
70 |
+
</select>
|
71 |
+
</td>
|
72 |
+
</tr>
|
73 |
+
</table>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
<div class="mceActionPanel">
|
77 |
+
<div style="float: left;">
|
78 |
+
<input type="button" id="cancel" name="cancel" value="<?php echo __('Cancel', 'contact_form_maker'); ?>" onClick="tinyMCEPopup.close();"/>
|
79 |
+
</div>
|
80 |
+
<div style="float: right;">
|
81 |
+
<input type="submit" id="insert" name="insert" value="<?php echo __('Insert', 'contact_form_maker'); ?>" onClick="form_maker_insert_shortcode();"/>
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
<script type="text/javascript">
|
85 |
+
function form_maker_insert_shortcode() {
|
86 |
+
if (document.getElementById('form_maker_id').value == '- Select Form -') {
|
87 |
+
tinyMCEPopup.close();
|
88 |
+
}
|
89 |
+
else {
|
90 |
+
var tagtext;
|
91 |
+
tagtext = '[Contact_Form_Builder id="' + document.getElementById('form_maker_id').value + '"]';
|
92 |
+
window.tinyMCE.execCommand('mceInsertContent', false, tagtext);
|
93 |
+
tinyMCEPopup.close();
|
94 |
+
}
|
95 |
+
}
|
96 |
+
</script>
|
97 |
+
</body>
|
98 |
+
</html>
|
99 |
+
<?php
|
100 |
+
die();
|
101 |
+
}
|
102 |
+
|
103 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
104 |
+
// Getters & Setters //
|
105 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
106 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
107 |
+
// Private Methods //
|
108 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
109 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
110 |
+
// Listeners //
|
111 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
112 |
}
|
admin/views/CFMViewContactFormMakerPreview.php
CHANGED
@@ -1,57 +1,57 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMViewContactFormMakerPreview {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
private $model;
|
14 |
-
|
15 |
-
|
16 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
-
// Constructor & Destructor //
|
18 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
-
public function __construct($model) {
|
20 |
-
$this->model = $model;
|
21 |
-
}
|
22 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
-
// Public Methods //
|
24 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
public function display() {
|
26 |
-
if (isset($_GET['form_id']) && isset($_GET['test_theme'])) {
|
27 |
-
wp_print_scripts('jquery');
|
28 |
-
wp_print_scripts('jquery-ui-widget');
|
29 |
-
wp_print_scripts('jquery-effects-shake');
|
30 |
-
$cfm_settings = get_option('cfm_settings');
|
31 |
-
$map_key = isset($cfm_settings['map_key']) ? $cfm_settings['map_key'] : '';
|
32 |
-
?>
|
33 |
-
<script src="https://maps.google.com/maps/api/js?v=3.exp&key=<?php echo $map_key ?>" type="text/javascript"></script>
|
34 |
-
<script src="<?php echo WD_CFM_URL . '/js/if_gmap_front_end.js'; ?>" type="text/javascript"></script>
|
35 |
-
<script src="<?php echo WD_CFM_URL . '/js/cfm_main_front_end.js'; ?>" type="text/javascript"></script>
|
36 |
-
<link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>" rel="stylesheet">
|
37 |
-
<link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/contact_form_maker_frontend.css'; ?>" rel="stylesheet">
|
38 |
-
<?php
|
39 |
-
$form_id = esc_html(stripslashes($_GET['form_id']));
|
40 |
-
$theme_id = esc_html(stripslashes($_GET['test_theme']));
|
41 |
-
require_once (WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
|
42 |
-
$controller = new CFMControllerForm_maker();
|
43 |
-
echo $controller->execute($form_id, $theme_id);
|
44 |
-
}
|
45 |
-
die();
|
46 |
-
}
|
47 |
-
|
48 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
49 |
-
// Getters & Setters //
|
50 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
51 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
52 |
-
// Private Methods //
|
53 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
54 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
55 |
-
// Listeners //
|
56 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
57 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMViewContactFormMakerPreview {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
private $model;
|
14 |
+
|
15 |
+
|
16 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
+
// Constructor & Destructor //
|
18 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
+
public function __construct($model) {
|
20 |
+
$this->model = $model;
|
21 |
+
}
|
22 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
+
// Public Methods //
|
24 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
+
public function display() {
|
26 |
+
if (isset($_GET['form_id']) && isset($_GET['test_theme'])) {
|
27 |
+
wp_print_scripts('jquery');
|
28 |
+
wp_print_scripts('jquery-ui-widget');
|
29 |
+
wp_print_scripts('jquery-effects-shake');
|
30 |
+
$cfm_settings = get_option('cfm_settings');
|
31 |
+
$map_key = isset($cfm_settings['map_key']) ? $cfm_settings['map_key'] : '';
|
32 |
+
?>
|
33 |
+
<script src="https://maps.google.com/maps/api/js?v=3.exp&key=<?php echo $map_key ?>" type="text/javascript"></script>
|
34 |
+
<script src="<?php echo WD_CFM_URL . '/js/if_gmap_front_end.js'; ?>" type="text/javascript"></script>
|
35 |
+
<script src="<?php echo WD_CFM_URL . '/js/cfm_main_front_end.js'; ?>" type="text/javascript"></script>
|
36 |
+
<link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>" rel="stylesheet">
|
37 |
+
<link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/contact_form_maker_frontend.css'; ?>" rel="stylesheet">
|
38 |
+
<?php
|
39 |
+
$form_id = esc_html(stripslashes($_GET['form_id']));
|
40 |
+
$theme_id = esc_html(stripslashes($_GET['test_theme']));
|
41 |
+
require_once (WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
|
42 |
+
$controller = new CFMControllerForm_maker();
|
43 |
+
echo $controller->execute($form_id, $theme_id);
|
44 |
+
}
|
45 |
+
die();
|
46 |
+
}
|
47 |
+
|
48 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
49 |
+
// Getters & Setters //
|
50 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
51 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
52 |
+
// Private Methods //
|
53 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
54 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
55 |
+
// Listeners //
|
56 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
57 |
}
|
admin/views/CFMViewContactFormmakerwdcaptcha.php
CHANGED
@@ -1,93 +1,93 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMViewContactFormmakerwdcaptcha {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
private $model;
|
14 |
-
|
15 |
-
|
16 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
-
// Constructor & Destructor //
|
18 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
-
public function __construct($model) {
|
20 |
-
$this->model = $model;
|
21 |
-
}
|
22 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
-
// Public Methods //
|
24 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
public function display() {
|
26 |
-
if (isset($_GET['action']) && esc_html($_GET['action']) == 'ContactFormmakerwdcaptcha') {
|
27 |
-
$i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
|
28 |
-
$r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
|
29 |
-
$rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
|
30 |
-
$randNum = 0 + $r2 + $rrr;
|
31 |
-
$digit = (isset($_GET["digit"]) ? (int) $_GET["digit"] : 6);
|
32 |
-
$cap_width = $digit * 10 + 15;
|
33 |
-
$cap_height = 26;
|
34 |
-
$cap_quality = 100;
|
35 |
-
$cap_length_min = $digit;
|
36 |
-
$cap_length_max = $digit;
|
37 |
-
$cap_digital = 1;
|
38 |
-
$cap_latin_char = 1;
|
39 |
-
function code_generic($_length, $_digital = 1, $_latin_char = 1) {
|
40 |
-
$dig = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
|
41 |
-
$lat = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
|
42 |
-
$main = array();
|
43 |
-
if ($_digital) {
|
44 |
-
$main = array_merge($main, $dig);
|
45 |
-
}
|
46 |
-
if ($_latin_char) {
|
47 |
-
$main = array_merge($main, $lat);
|
48 |
-
}
|
49 |
-
shuffle($main);
|
50 |
-
$pass = substr(implode('', $main), 0, $_length);
|
51 |
-
return $pass;
|
52 |
-
}
|
53 |
-
$l = rand($cap_length_min, $cap_length_max);
|
54 |
-
$code = code_generic($l, $cap_digital, $cap_latin_char);
|
55 |
-
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
56 |
-
@session_start();
|
57 |
-
}
|
58 |
-
$_SESSION[$i . '_wd_captcha_code'] = $code;
|
59 |
-
$canvas = imagecreatetruecolor($cap_width, $cap_height);
|
60 |
-
$c = imagecolorallocate($canvas, rand(150, 255), rand(150, 255), rand(150, 255));
|
61 |
-
imagefilledrectangle($canvas, 0, 0, $cap_width, $cap_height, $c);
|
62 |
-
$count = strlen($code);
|
63 |
-
$color_text = imagecolorallocate($canvas, 0, 0, 0);
|
64 |
-
for ($it = 0; $it < $count; $it++) {
|
65 |
-
$letter = $code[$it];
|
66 |
-
imagestring($canvas, 6, (10 * $it + 10), $cap_height / 4, $letter, $color_text);
|
67 |
-
}
|
68 |
-
for ($c = 0; $c < 150; $c++) {
|
69 |
-
$x = rand(0, $cap_width - 1);
|
70 |
-
$y = rand(0, 29);
|
71 |
-
$col = '0x' . rand(0, 9) . '0' . rand(0, 9) . '0' . rand(0, 9) . '0';
|
72 |
-
imagesetpixel($canvas, $x, $y, $col);
|
73 |
-
}
|
74 |
-
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
75 |
-
header('Cache-Control: no-store, no-cache, must-revalidate');
|
76 |
-
header('Cache-Control: post-check=0, pre-check=0', FALSE);
|
77 |
-
header('Pragma: no-cache');
|
78 |
-
header('Content-Type: image/jpeg');
|
79 |
-
imagejpeg($canvas, NULL, $cap_quality);
|
80 |
-
}
|
81 |
-
die('');
|
82 |
-
}
|
83 |
-
|
84 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
85 |
-
// Getters & Setters //
|
86 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
87 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
88 |
-
// Private Methods //
|
89 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
90 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
91 |
-
// Listeners //
|
92 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
93 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMViewContactFormmakerwdcaptcha {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
private $model;
|
14 |
+
|
15 |
+
|
16 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
+
// Constructor & Destructor //
|
18 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
+
public function __construct($model) {
|
20 |
+
$this->model = $model;
|
21 |
+
}
|
22 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
+
// Public Methods //
|
24 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
+
public function display() {
|
26 |
+
if (isset($_GET['action']) && esc_html($_GET['action']) == 'ContactFormmakerwdcaptcha') {
|
27 |
+
$i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
|
28 |
+
$r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
|
29 |
+
$rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
|
30 |
+
$randNum = 0 + $r2 + $rrr;
|
31 |
+
$digit = (isset($_GET["digit"]) ? (int) $_GET["digit"] : 6);
|
32 |
+
$cap_width = $digit * 10 + 15;
|
33 |
+
$cap_height = 26;
|
34 |
+
$cap_quality = 100;
|
35 |
+
$cap_length_min = $digit;
|
36 |
+
$cap_length_max = $digit;
|
37 |
+
$cap_digital = 1;
|
38 |
+
$cap_latin_char = 1;
|
39 |
+
function code_generic($_length, $_digital = 1, $_latin_char = 1) {
|
40 |
+
$dig = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
|
41 |
+
$lat = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
|
42 |
+
$main = array();
|
43 |
+
if ($_digital) {
|
44 |
+
$main = array_merge($main, $dig);
|
45 |
+
}
|
46 |
+
if ($_latin_char) {
|
47 |
+
$main = array_merge($main, $lat);
|
48 |
+
}
|
49 |
+
shuffle($main);
|
50 |
+
$pass = substr(implode('', $main), 0, $_length);
|
51 |
+
return $pass;
|
52 |
+
}
|
53 |
+
$l = rand($cap_length_min, $cap_length_max);
|
54 |
+
$code = code_generic($l, $cap_digital, $cap_latin_char);
|
55 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
56 |
+
@session_start();
|
57 |
+
}
|
58 |
+
$_SESSION[$i . '_wd_captcha_code'] = $code;
|
59 |
+
$canvas = imagecreatetruecolor($cap_width, $cap_height);
|
60 |
+
$c = imagecolorallocate($canvas, rand(150, 255), rand(150, 255), rand(150, 255));
|
61 |
+
imagefilledrectangle($canvas, 0, 0, $cap_width, $cap_height, $c);
|
62 |
+
$count = strlen($code);
|
63 |
+
$color_text = imagecolorallocate($canvas, 0, 0, 0);
|
64 |
+
for ($it = 0; $it < $count; $it++) {
|
65 |
+
$letter = $code[$it];
|
66 |
+
imagestring($canvas, 6, (10 * $it + 10), $cap_height / 4, $letter, $color_text);
|
67 |
+
}
|
68 |
+
for ($c = 0; $c < 150; $c++) {
|
69 |
+
$x = rand(0, $cap_width - 1);
|
70 |
+
$y = rand(0, 29);
|
71 |
+
$col = '0x' . rand(0, 9) . '0' . rand(0, 9) . '0' . rand(0, 9) . '0';
|
72 |
+
imagesetpixel($canvas, $x, $y, $col);
|
73 |
+
}
|
74 |
+
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
75 |
+
header('Cache-Control: no-store, no-cache, must-revalidate');
|
76 |
+
header('Cache-Control: post-check=0, pre-check=0', FALSE);
|
77 |
+
header('Pragma: no-cache');
|
78 |
+
header('Content-Type: image/jpeg');
|
79 |
+
imagejpeg($canvas, NULL, $cap_quality);
|
80 |
+
}
|
81 |
+
die('');
|
82 |
+
}
|
83 |
+
|
84 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
85 |
+
// Getters & Setters //
|
86 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
87 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
88 |
+
// Private Methods //
|
89 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
90 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
91 |
+
// Listeners //
|
92 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
93 |
}
|
admin/views/CFMViewGoptions_cfm.php
CHANGED
@@ -1,112 +1,112 @@
|
|
1 |
-
<?php
|
2 |
-
class CFMViewGoptions_cfm {
|
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 |
-
$cfm_settings = get_option('cfm_settings');
|
26 |
-
$public_key = isset($cfm_settings['public_key']) ? $cfm_settings['public_key'] : '';
|
27 |
-
$private_key = isset($cfm_settings['private_key']) ? $cfm_settings['private_key'] : '';
|
28 |
-
$map_key = isset($cfm_settings['map_key']) ? $cfm_settings['map_key'] : '';
|
29 |
-
?>
|
30 |
-
<div class="fm-user-manual">
|
31 |
-
<?php echo __("This section allows you to edit forms", "contact_form_maker"); ?>.
|
32 |
-
<a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a>
|
33 |
-
<p><?php echo __("There is no possibility of adding new form fields, whereas you can edit, enable/disable the current fields included in each form","contact_form_maker"); ?>.</p>
|
34 |
-
</div>
|
35 |
-
<div class="fm-clear"></div>
|
36 |
-
<form class="wrap" method="post" action="admin.php?page=goptions_cfm" style="width:99%;">
|
37 |
-
<?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
|
38 |
-
<div class="fm-options-page-banner">
|
39 |
-
<div class="fm-options-logo"></div>
|
40 |
-
<div class="fm-options-logo-title">
|
41 |
-
<?php echo __("Global Options", "contact_form_maker"); ?>
|
42 |
-
</div>
|
43 |
-
<div class="fm-page-actions">
|
44 |
-
<button class="fm-button save-button small" onclick="spider_set_input_value('task', 'save');">
|
45 |
-
<span></span>
|
46 |
-
<?php echo __("Save", "contact_form_maker"); ?>
|
47 |
-
</button>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
|
51 |
-
<table style="clear:both;">
|
52 |
-
<tbody>
|
53 |
-
<tr>
|
54 |
-
<td>
|
55 |
-
<label for="public_key"><?php echo __("Recaptcha Site Key:", "contact_form_maker"); ?></label>
|
56 |
-
</td>
|
57 |
-
<td>
|
58 |
-
<input type="text" id="public_key" name="public_key" value="<?php echo $public_key; ?>" style="width:250px;" />
|
59 |
-
</td>
|
60 |
-
<td rowspan="2">
|
61 |
-
<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank"><?php echo __("Get Recaptcha", "contact_form_maker"); ?></a>
|
62 |
-
</td>
|
63 |
-
</tr>
|
64 |
-
<tr>
|
65 |
-
<td>
|
66 |
-
<label for="private_key"><?php echo __("Recaptcha Secret Key:", "contact_form_maker"); ?></label>
|
67 |
-
</td>
|
68 |
-
<td>
|
69 |
-
<input type="text" id="private_key" name="private_key" value="<?php echo $private_key; ?>" style="width:250px;" />
|
70 |
-
</td>
|
71 |
-
</tr>
|
72 |
-
<tr>
|
73 |
-
<td>
|
74 |
-
<label for="public_key"><?php echo __("Maps API Key:", "contact_form_maker"); ?></label>
|
75 |
-
</td>
|
76 |
-
<td>
|
77 |
-
<input type="text" id="map_key" name="map_key" value="<?php echo $map_key; ?>" style="width:250px;" />
|
78 |
-
</td>
|
79 |
-
<td>
|
80 |
-
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank"><?php echo __("Get maps API key", "contact_form_maker"); ?></a>
|
81 |
-
</td>
|
82 |
-
</tr>
|
83 |
-
<tr>
|
84 |
-
<td>
|
85 |
-
|
86 |
-
</td>
|
87 |
-
<td>
|
88 |
-
<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>
|
89 |
-
</td>
|
90 |
-
<td>
|
91 |
-
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
<input type="hidden" id="task" name="task" value=""/>
|
97 |
-
</form>
|
98 |
-
<?php
|
99 |
-
}
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
104 |
-
// Getters & Setters //
|
105 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
106 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
107 |
-
// Private Methods //
|
108 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
109 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
110 |
-
// Listeners //
|
111 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
112 |
}
|
1 |
+
<?php
|
2 |
+
class CFMViewGoptions_cfm {
|
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 |
+
$cfm_settings = get_option('cfm_settings');
|
26 |
+
$public_key = isset($cfm_settings['public_key']) ? $cfm_settings['public_key'] : '';
|
27 |
+
$private_key = isset($cfm_settings['private_key']) ? $cfm_settings['private_key'] : '';
|
28 |
+
$map_key = isset($cfm_settings['map_key']) ? $cfm_settings['map_key'] : '';
|
29 |
+
?>
|
30 |
+
<div class="fm-user-manual">
|
31 |
+
<?php echo __("This section allows you to edit forms", "contact_form_maker"); ?>.
|
32 |
+
<a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a>
|
33 |
+
<p><?php echo __("There is no possibility of adding new form fields, whereas you can edit, enable/disable the current fields included in each form","contact_form_maker"); ?>.</p>
|
34 |
+
</div>
|
35 |
+
<div class="fm-clear"></div>
|
36 |
+
<form class="wrap" method="post" action="admin.php?page=goptions_cfm" style="width:99%;">
|
37 |
+
<?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
|
38 |
+
<div class="fm-options-page-banner">
|
39 |
+
<div class="fm-options-logo"></div>
|
40 |
+
<div class="fm-options-logo-title">
|
41 |
+
<?php echo __("Global Options", "contact_form_maker"); ?>
|
42 |
+
</div>
|
43 |
+
<div class="fm-page-actions">
|
44 |
+
<button class="fm-button save-button small" onclick="spider_set_input_value('task', 'save');">
|
45 |
+
<span></span>
|
46 |
+
<?php echo __("Save", "contact_form_maker"); ?>
|
47 |
+
</button>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<table style="clear:both;">
|
52 |
+
<tbody>
|
53 |
+
<tr>
|
54 |
+
<td>
|
55 |
+
<label for="public_key"><?php echo __("Recaptcha Site Key:", "contact_form_maker"); ?></label>
|
56 |
+
</td>
|
57 |
+
<td>
|
58 |
+
<input type="text" id="public_key" name="public_key" value="<?php echo $public_key; ?>" style="width:250px;" />
|
59 |
+
</td>
|
60 |
+
<td rowspan="2">
|
61 |
+
<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank"><?php echo __("Get Recaptcha", "contact_form_maker"); ?></a>
|
62 |
+
</td>
|
63 |
+
</tr>
|
64 |
+
<tr>
|
65 |
+
<td>
|
66 |
+
<label for="private_key"><?php echo __("Recaptcha Secret Key:", "contact_form_maker"); ?></label>
|
67 |
+
</td>
|
68 |
+
<td>
|
69 |
+
<input type="text" id="private_key" name="private_key" value="<?php echo $private_key; ?>" style="width:250px;" />
|
70 |
+
</td>
|
71 |
+
</tr>
|
72 |
+
<tr>
|
73 |
+
<td>
|
74 |
+
<label for="public_key"><?php echo __("Maps API Key:", "contact_form_maker"); ?></label>
|
75 |
+
</td>
|
76 |
+
<td>
|
77 |
+
<input type="text" id="map_key" name="map_key" value="<?php echo $map_key; ?>" style="width:250px;" />
|
78 |
+
</td>
|
79 |
+
<td>
|
80 |
+
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank"><?php echo __("Get maps API key", "contact_form_maker"); ?></a>
|
81 |
+
</td>
|
82 |
+
</tr>
|
83 |
+
<tr>
|
84 |
+
<td>
|
85 |
+
|
86 |
+
</td>
|
87 |
+
<td>
|
88 |
+
<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>
|
89 |
+
</td>
|
90 |
+
<td>
|
91 |
+
|
92 |
+
</td>
|
93 |
+
</tr>
|
94 |
+
</tbody>
|
95 |
+
</table>
|
96 |
+
<input type="hidden" id="task" name="task" value=""/>
|
97 |
+
</form>
|
98 |
+
<?php
|
99 |
+
}
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
104 |
+
// Getters & Setters //
|
105 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
106 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
107 |
+
// Private Methods //
|
108 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
109 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
110 |
+
// Listeners //
|
111 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
112 |
}
|
admin/views/CFMViewUninstall_cfm.php
CHANGED
@@ -1,125 +1,125 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMViewUninstall_cfm {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
private $model;
|
14 |
-
|
15 |
-
|
16 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
-
// Constructor & Destructor //
|
18 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
-
public function __construct($model) {
|
20 |
-
$this->model = $model;
|
21 |
-
}
|
22 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
-
// Public Methods //
|
24 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
public function display() {
|
26 |
-
global $wpdb;
|
27 |
-
$prefix = $wpdb->prefix;
|
28 |
-
?>
|
29 |
-
<form method="post" action="admin.php?page=uninstall_cfm" class="cfm_form">
|
30 |
-
<?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
|
31 |
-
<div class="wrap">
|
32 |
-
<span class="uninstall_icon"></span>
|
33 |
-
<h2><?php echo __("Uninstall Contact Form Builder", "contact_form_maker"); ?></h2>
|
34 |
-
<div class="goodbye-text">
|
35 |
-
<?php
|
36 |
-
$support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('support team', 'contact_form_maker') . '</a>';
|
37 |
-
$contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('Contact us', 'contact_form_maker') . '</a>';
|
38 |
-
echo sprintf(__("Before uninstalling the plugin, please Contact our %s. We'll do our best to help you out with your issue. We value each and every user and value what's right for our users in everything we do.<br />
|
39 |
-
However, if anyway you have made a decision to uninstall the plugin, please take a minute to %s and tell what you didn't like for our plugins further improvement and development. Thank you !!!", "contact_form_maker"), $support_team, $contact_us); ?>
|
40 |
-
</div>
|
41 |
-
<p>
|
42 |
-
<?php echo __("Deactivating Contact Form Builder plugin does not remove any data that may have been created, such as the Forms and the Submissions. To completely remove this plugin, you can uninstall it here", "contact_form_maker"); ?>.
|
43 |
-
</p>
|
44 |
-
<p style="color: red;">
|
45 |
-
<strong><?php echo __("WARNING", "contact_form_maker"); ?>:</strong>
|
46 |
-
<?php echo __("Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first", "contact_form_maker"); ?>.
|
47 |
-
</p>
|
48 |
-
<p style="color: red">
|
49 |
-
<strong><?php echo __("The following WordPress Options/Tables will be DELETED", "contact_form_maker"); ?>:</strong>
|
50 |
-
</p>
|
51 |
-
<table class="widefat">
|
52 |
-
<thead>
|
53 |
-
<tr>
|
54 |
-
<th><?php echo __("Database Tables", "contact_form_maker"); ?></th>
|
55 |
-
</tr>
|
56 |
-
</thead>
|
57 |
-
<tr>
|
58 |
-
<td valign="top">
|
59 |
-
<ol>
|
60 |
-
<li><?php echo $prefix; ?>contactformmaker</li>
|
61 |
-
<li><?php echo $prefix; ?>contactformmaker_submits</li>
|
62 |
-
<li><?php echo $prefix; ?>contactformmaker_themes</li>
|
63 |
-
<li><?php echo $prefix; ?>contactformmaker_views</li>
|
64 |
-
<li><?php echo $prefix; ?>contactformmaker_blocked</li>
|
65 |
-
</ol>
|
66 |
-
</td>
|
67 |
-
</tr>
|
68 |
-
</table>
|
69 |
-
<p style="text-align: center;">
|
70 |
-
<?php echo __("Do you really want to uninstall Conatct Form Builder", "contact_form_maker"); ?>?
|
71 |
-
</p>
|
72 |
-
<p style="text-align: center;">
|
73 |
-
<input type="checkbox" name="Contact Form Builder" id="check_yes" value="yes" /> <label for="check_yes"><?php echo __("Yes", "contact_form_maker"); ?></label>
|
74 |
-
</p>
|
75 |
-
<p style="text-align: center;">
|
76 |
-
<input type="submit" value="<?php echo __("UNINSTALL", "contact_form_maker"); ?>" class="button-primary" onclick="if (check_yes.checked) {
|
77 |
-
if (confirm('<?php echo addslashes(__('You are About to Uninstall Contact Form Builder from WordPress.\nThis Action Is Not Reversible.', 'contact_form_maker')); ?>')) {
|
78 |
-
spider_set_input_value('task', 'uninstall');
|
79 |
-
} else {
|
80 |
-
return false;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
else {
|
84 |
-
return false;
|
85 |
-
}" />
|
86 |
-
</p>
|
87 |
-
</div>
|
88 |
-
<input id="task" name="task" type="hidden" value="" />
|
89 |
-
</form>
|
90 |
-
<?php
|
91 |
-
}
|
92 |
-
|
93 |
-
public function uninstall() {
|
94 |
-
$this->model->delete_db_tables();
|
95 |
-
global $wpdb;
|
96 |
-
$prefix = $wpdb->prefix;
|
97 |
-
$deactivate_url = add_query_arg(array('action' => 'deactivate', 'plugin' => 'contact-form-builder/contact-form-builder.php'), admin_url('plugins.php'));
|
98 |
-
$deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_contact-form-builder/contact-form-builder.php');
|
99 |
-
?>
|
100 |
-
<div id="message" class="updated fade">
|
101 |
-
<p><?php echo __("The following Database Tables succesfully deleted", "contact_form_maker"); ?>:</p>
|
102 |
-
<p><?php echo $prefix; ?>contactformmaker,</p>
|
103 |
-
<p><?php echo $prefix; ?>contactformmaker_submits,</p>
|
104 |
-
<p><?php echo $prefix; ?>contactformmaker_themes,</p>
|
105 |
-
<p><?php echo $prefix; ?>contactformmaker_views,</p>
|
106 |
-
<p><?php echo $prefix; ?>contactformmaker_blocked.</p>
|
107 |
-
</div>
|
108 |
-
<div class="wrap">
|
109 |
-
<h2><?php echo __("Uninstall Conact Form Builder", "contact_form_maker"); ?></h2>
|
110 |
-
<p><strong><a href="<?php echo $deactivate_url; ?>"><?php echo __("Click Here", "contact_form_maker"); ?></a> <?php echo __("To Finish the Uninstallation and Contact Form Builder will be Deactivated Automatically", "contact_form_maker"); ?>.</strong></p>
|
111 |
-
<input id="task" name="task" type="hidden" value="" />
|
112 |
-
</div>
|
113 |
-
<?php
|
114 |
-
}
|
115 |
-
|
116 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
117 |
-
// Getters & Setters //
|
118 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
119 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
120 |
-
// Private Methods //
|
121 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
122 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
123 |
-
// Listeners //
|
124 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
125 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMViewUninstall_cfm {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
private $model;
|
14 |
+
|
15 |
+
|
16 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
+
// Constructor & Destructor //
|
18 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
+
public function __construct($model) {
|
20 |
+
$this->model = $model;
|
21 |
+
}
|
22 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
+
// Public Methods //
|
24 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
+
public function display() {
|
26 |
+
global $wpdb;
|
27 |
+
$prefix = $wpdb->prefix;
|
28 |
+
?>
|
29 |
+
<form method="post" action="admin.php?page=uninstall_cfm" class="cfm_form">
|
30 |
+
<?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
|
31 |
+
<div class="wrap">
|
32 |
+
<span class="uninstall_icon"></span>
|
33 |
+
<h2><?php echo __("Uninstall Contact Form Builder", "contact_form_maker"); ?></h2>
|
34 |
+
<div class="goodbye-text">
|
35 |
+
<?php
|
36 |
+
$support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('support team', 'contact_form_maker') . '</a>';
|
37 |
+
$contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('Contact us', 'contact_form_maker') . '</a>';
|
38 |
+
echo sprintf(__("Before uninstalling the plugin, please Contact our %s. We'll do our best to help you out with your issue. We value each and every user and value what's right for our users in everything we do.<br />
|
39 |
+
However, if anyway you have made a decision to uninstall the plugin, please take a minute to %s and tell what you didn't like for our plugins further improvement and development. Thank you !!!", "contact_form_maker"), $support_team, $contact_us); ?>
|
40 |
+
</div>
|
41 |
+
<p>
|
42 |
+
<?php echo __("Deactivating Contact Form Builder plugin does not remove any data that may have been created, such as the Forms and the Submissions. To completely remove this plugin, you can uninstall it here", "contact_form_maker"); ?>.
|
43 |
+
</p>
|
44 |
+
<p style="color: red;">
|
45 |
+
<strong><?php echo __("WARNING", "contact_form_maker"); ?>:</strong>
|
46 |
+
<?php echo __("Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first", "contact_form_maker"); ?>.
|
47 |
+
</p>
|
48 |
+
<p style="color: red">
|
49 |
+
<strong><?php echo __("The following WordPress Options/Tables will be DELETED", "contact_form_maker"); ?>:</strong>
|
50 |
+
</p>
|
51 |
+
<table class="widefat">
|
52 |
+
<thead>
|
53 |
+
<tr>
|
54 |
+
<th><?php echo __("Database Tables", "contact_form_maker"); ?></th>
|
55 |
+
</tr>
|
56 |
+
</thead>
|
57 |
+
<tr>
|
58 |
+
<td valign="top">
|
59 |
+
<ol>
|
60 |
+
<li><?php echo $prefix; ?>contactformmaker</li>
|
61 |
+
<li><?php echo $prefix; ?>contactformmaker_submits</li>
|
62 |
+
<li><?php echo $prefix; ?>contactformmaker_themes</li>
|
63 |
+
<li><?php echo $prefix; ?>contactformmaker_views</li>
|
64 |
+
<li><?php echo $prefix; ?>contactformmaker_blocked</li>
|
65 |
+
</ol>
|
66 |
+
</td>
|
67 |
+
</tr>
|
68 |
+
</table>
|
69 |
+
<p style="text-align: center;">
|
70 |
+
<?php echo __("Do you really want to uninstall Conatct Form Builder", "contact_form_maker"); ?>?
|
71 |
+
</p>
|
72 |
+
<p style="text-align: center;">
|
73 |
+
<input type="checkbox" name="Contact Form Builder" id="check_yes" value="yes" /> <label for="check_yes"><?php echo __("Yes", "contact_form_maker"); ?></label>
|
74 |
+
</p>
|
75 |
+
<p style="text-align: center;">
|
76 |
+
<input type="submit" value="<?php echo __("UNINSTALL", "contact_form_maker"); ?>" class="button-primary" onclick="if (check_yes.checked) {
|
77 |
+
if (confirm('<?php echo addslashes(__('You are About to Uninstall Contact Form Builder from WordPress.\nThis Action Is Not Reversible.', 'contact_form_maker')); ?>')) {
|
78 |
+
spider_set_input_value('task', 'uninstall');
|
79 |
+
} else {
|
80 |
+
return false;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
else {
|
84 |
+
return false;
|
85 |
+
}" />
|
86 |
+
</p>
|
87 |
+
</div>
|
88 |
+
<input id="task" name="task" type="hidden" value="" />
|
89 |
+
</form>
|
90 |
+
<?php
|
91 |
+
}
|
92 |
+
|
93 |
+
public function uninstall() {
|
94 |
+
$this->model->delete_db_tables();
|
95 |
+
global $wpdb;
|
96 |
+
$prefix = $wpdb->prefix;
|
97 |
+
$deactivate_url = add_query_arg(array('action' => 'deactivate', 'plugin' => 'contact-form-builder/contact-form-builder.php'), admin_url('plugins.php'));
|
98 |
+
$deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_contact-form-builder/contact-form-builder.php');
|
99 |
+
?>
|
100 |
+
<div id="message" class="updated fade">
|
101 |
+
<p><?php echo __("The following Database Tables succesfully deleted", "contact_form_maker"); ?>:</p>
|
102 |
+
<p><?php echo $prefix; ?>contactformmaker,</p>
|
103 |
+
<p><?php echo $prefix; ?>contactformmaker_submits,</p>
|
104 |
+
<p><?php echo $prefix; ?>contactformmaker_themes,</p>
|
105 |
+
<p><?php echo $prefix; ?>contactformmaker_views,</p>
|
106 |
+
<p><?php echo $prefix; ?>contactformmaker_blocked.</p>
|
107 |
+
</div>
|
108 |
+
<div class="wrap">
|
109 |
+
<h2><?php echo __("Uninstall Conact Form Builder", "contact_form_maker"); ?></h2>
|
110 |
+
<p><strong><a href="<?php echo $deactivate_url; ?>"><?php echo __("Click Here", "contact_form_maker"); ?></a> <?php echo __("To Finish the Uninstallation and Contact Form Builder will be Deactivated Automatically", "contact_form_maker"); ?>.</strong></p>
|
111 |
+
<input id="task" name="task" type="hidden" value="" />
|
112 |
+
</div>
|
113 |
+
<?php
|
114 |
+
}
|
115 |
+
|
116 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
117 |
+
// Getters & Setters //
|
118 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
119 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
120 |
+
// Private Methods //
|
121 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
122 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
123 |
+
// Listeners //
|
124 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
125 |
}
|
admin/views/CFMViewWidget.php
CHANGED
@@ -1,84 +1,84 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMViewWidget {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
private $model;
|
14 |
-
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
// Constructor & Destructor //
|
17 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
-
public function __construct($model) {
|
19 |
-
$this->model = $model;
|
20 |
-
}
|
21 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
-
// Public Methods //
|
23 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
-
|
25 |
-
public function display() {
|
26 |
-
}
|
27 |
-
|
28 |
-
function widget($args, $instance) {
|
29 |
-
extract($args);
|
30 |
-
$title = $instance['title'];
|
31 |
-
$form_id = (isset($instance['form_id']) ? $instance['form_id'] : 0);
|
32 |
-
// Before widget.
|
33 |
-
echo $before_widget;
|
34 |
-
// Title of widget.
|
35 |
-
if ($title) {
|
36 |
-
echo $before_title . $title . $after_title;
|
37 |
-
}
|
38 |
-
// Widget output.
|
39 |
-
require_once(WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
|
40 |
-
$controller_class = 'CFMControllerForm_maker';
|
41 |
-
$controller = new $controller_class();
|
42 |
-
echo $controller->execute($instance['form_id']);
|
43 |
-
// After widget.
|
44 |
-
echo $after_widget;
|
45 |
-
}
|
46 |
-
|
47 |
-
// Widget Control Panel.
|
48 |
-
function form($instance, $id_title, $name_title, $id_form_id, $name_form_id) {
|
49 |
-
$defaults = array(
|
50 |
-
'title' => '',
|
51 |
-
'form_id' => 0
|
52 |
-
);
|
53 |
-
$instance = wp_parse_args((array)$instance, $defaults);
|
54 |
-
global $wpdb;
|
55 |
-
$ids_Form_Maker = $this->model->get_gallery_rows_data();
|
56 |
-
?>
|
57 |
-
<p>
|
58 |
-
<label for="<?php echo $id_title; ?>"><?php echo __("Title", "contact_form_maker"); ?>:</label>
|
59 |
-
<input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
60 |
-
<label for="<?php echo $id_form_id; ?>"><?php echo __("Select a form", "contact_form_maker"); ?>:</label>
|
61 |
-
<select name="<?php echo $name_form_id; ?>" id="<?php echo $id_form_id; ?>" style="width: 225px; text-align: left;">
|
62 |
-
<option value="0">- <?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
|
63 |
-
<?php
|
64 |
-
foreach ($ids_Form_Maker as $arr_Form_Maker) {
|
65 |
-
?>
|
66 |
-
<option value="<?php echo $arr_Form_Maker->id; ?>" <?php echo ($arr_Form_Maker->id == $instance['form_id']) ? 'SELECTED' : ''; ?>><?php echo $arr_Form_Maker->title; ?></option>
|
67 |
-
<?php
|
68 |
-
}
|
69 |
-
?>
|
70 |
-
</select>
|
71 |
-
</p>
|
72 |
-
<?php
|
73 |
-
}
|
74 |
-
|
75 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
76 |
-
// Getters & Setters //
|
77 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
78 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
79 |
-
// Private Methods //
|
80 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
81 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
82 |
-
// Listeners //
|
83 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
84 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMViewWidget {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
private $model;
|
14 |
+
|
15 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
+
// Constructor & Destructor //
|
17 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
+
public function __construct($model) {
|
19 |
+
$this->model = $model;
|
20 |
+
}
|
21 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
+
// Public Methods //
|
23 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
+
|
25 |
+
public function display() {
|
26 |
+
}
|
27 |
+
|
28 |
+
function widget($args, $instance) {
|
29 |
+
extract($args);
|
30 |
+
$title = $instance['title'];
|
31 |
+
$form_id = (isset($instance['form_id']) ? $instance['form_id'] : 0);
|
32 |
+
// Before widget.
|
33 |
+
echo $before_widget;
|
34 |
+
// Title of widget.
|
35 |
+
if ($title) {
|
36 |
+
echo $before_title . $title . $after_title;
|
37 |
+
}
|
38 |
+
// Widget output.
|
39 |
+
require_once(WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
|
40 |
+
$controller_class = 'CFMControllerForm_maker';
|
41 |
+
$controller = new $controller_class();
|
42 |
+
echo $controller->execute($instance['form_id']);
|
43 |
+
// After widget.
|
44 |
+
echo $after_widget;
|
45 |
+
}
|
46 |
+
|
47 |
+
// Widget Control Panel.
|
48 |
+
function form($instance, $id_title, $name_title, $id_form_id, $name_form_id) {
|
49 |
+
$defaults = array(
|
50 |
+
'title' => '',
|
51 |
+
'form_id' => 0
|
52 |
+
);
|
53 |
+
$instance = wp_parse_args((array)$instance, $defaults);
|
54 |
+
global $wpdb;
|
55 |
+
$ids_Form_Maker = $this->model->get_gallery_rows_data();
|
56 |
+
?>
|
57 |
+
<p>
|
58 |
+
<label for="<?php echo $id_title; ?>"><?php echo __("Title", "contact_form_maker"); ?>:</label>
|
59 |
+
<input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
60 |
+
<label for="<?php echo $id_form_id; ?>"><?php echo __("Select a form", "contact_form_maker"); ?>:</label>
|
61 |
+
<select name="<?php echo $name_form_id; ?>" id="<?php echo $id_form_id; ?>" style="width: 225px; text-align: left;">
|
62 |
+
<option value="0">- <?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
|
63 |
+
<?php
|
64 |
+
foreach ($ids_Form_Maker as $arr_Form_Maker) {
|
65 |
+
?>
|
66 |
+
<option value="<?php echo $arr_Form_Maker->id; ?>" <?php echo ($arr_Form_Maker->id == $instance['form_id']) ? 'SELECTED' : ''; ?>><?php echo $arr_Form_Maker->title; ?></option>
|
67 |
+
<?php
|
68 |
+
}
|
69 |
+
?>
|
70 |
+
</select>
|
71 |
+
</p>
|
72 |
+
<?php
|
73 |
+
}
|
74 |
+
|
75 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
76 |
+
// Getters & Setters //
|
77 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
78 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
79 |
+
// Private Methods //
|
80 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
81 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
82 |
+
// Listeners //
|
83 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
84 |
}
|
contact-form-builder-notices.php
CHANGED
@@ -1,208 +1,208 @@
|
|
1 |
-
<?php
|
2 |
-
if (!defined('ABSPATH')) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
class CFM_Notices {
|
7 |
-
protected $prefix = 'contact_form_maker';
|
8 |
-
protected $plugin_url = WD_CFM_URL;
|
9 |
-
protected $plugin_version = "wd_contact_form_maker_version";
|
10 |
-
protected $plugin_name = 'Contact Form Builder';
|
11 |
-
|
12 |
-
public $notice_spam = 0;
|
13 |
-
public $notice_spam_max = 1;
|
14 |
-
|
15 |
-
// Basic actions to run
|
16 |
-
public function __construct() {
|
17 |
-
// Runs the admin notice ignore function incase a dismiss button has been clicked
|
18 |
-
add_action('admin_init', array($this, 'admin_notice_ignore'));
|
19 |
-
// Runs the admin notice temp ignore function incase a temp dismiss link has been clicked
|
20 |
-
add_action('admin_init', array($this, 'admin_notice_temp_ignore'));
|
21 |
-
add_action('admin_notices', array($this, 'wd_admin_notices'));
|
22 |
-
}
|
23 |
-
|
24 |
-
// Checks to ensure notices aren't disabled and the user has the correct permissions.
|
25 |
-
public function wd_admin_notice() {
|
26 |
-
$settings = get_option($this->prefix . '_admin_notice');
|
27 |
-
if (!isset($settings['disable_admin_notices']) || (isset($settings['disable_admin_notices']) && $settings['disable_admin_notices'] == 0)) {
|
28 |
-
if (current_user_can('manage_options')) {
|
29 |
-
return true;
|
30 |
-
}
|
31 |
-
}
|
32 |
-
return false;
|
33 |
-
}
|
34 |
-
|
35 |
-
// Primary notice function that can be called from an outside function sending necessary variables
|
36 |
-
public function admin_notice($admin_notices) {
|
37 |
-
// Check options
|
38 |
-
if (!$this->wd_admin_notice()) {
|
39 |
-
return false;
|
40 |
-
}
|
41 |
-
foreach ($admin_notices as $slug => $admin_notice) {
|
42 |
-
// Call for spam protection
|
43 |
-
if ($this->anti_notice_spam()) {
|
44 |
-
return false;
|
45 |
-
}
|
46 |
-
|
47 |
-
// Check for proper page to display on
|
48 |
-
if (isset( $admin_notices[$slug]['pages']) && is_array( $admin_notices[$slug]['pages'])) {
|
49 |
-
if (!$this->admin_notice_pages($admin_notices[$slug]['pages'])) {
|
50 |
-
return false;
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
// Check for required fields
|
55 |
-
if (!$this->required_fields($admin_notices[$slug])) {
|
56 |
-
// Get the current date then set start date to either passed value or current date value and add interval
|
57 |
-
$current_date = current_time("n/j/Y");
|
58 |
-
$start = (isset($admin_notices[$slug]['start']) ? $admin_notices[$slug]['start'] : $current_date);
|
59 |
-
$start = date("n/j/Y", strtotime($start));
|
60 |
-
$date_array = explode('/', $start);
|
61 |
-
$interval = (isset($admin_notices[$slug]['int']) ? $admin_notices[$slug]['int'] : 0);
|
62 |
-
$date_array[1] += $interval;
|
63 |
-
$start = date("n/j/Y", mktime(0, 0, 0, $date_array[0], $date_array[1], $date_array[2]));
|
64 |
-
|
65 |
-
// This is the main notices storage option
|
66 |
-
$admin_notices_option = get_option($this->prefix . '_admin_notice', array());
|
67 |
-
// Check if the message is already stored and if so just grab the key otherwise store the message and its associated date information
|
68 |
-
if (!array_key_exists( $slug, $admin_notices_option)) {
|
69 |
-
$admin_notices_option[$slug]['start'] = $start;
|
70 |
-
$admin_notices_option[$slug]['int'] = $interval;
|
71 |
-
update_option($this->prefix . '_admin_notice', $admin_notices_option);
|
72 |
-
}
|
73 |
-
|
74 |
-
// Sanity check to ensure we have accurate information
|
75 |
-
// New date information will not overwrite old date information
|
76 |
-
$admin_display_check = (isset($admin_notices_option[$slug]['dismissed']) ? $admin_notices_option[$slug]['dismissed'] : 0);
|
77 |
-
$admin_display_start = (isset($admin_notices_option[$slug]['start']) ? $admin_notices_option[$slug]['start'] : $start);
|
78 |
-
$admin_display_interval = (isset($admin_notices_option[$slug]['int']) ? $admin_notices_option[$slug]['int'] : $interval);
|
79 |
-
$admin_display_msg = (isset($admin_notices[$slug]['msg']) ? $admin_notices[$slug]['msg'] : '');
|
80 |
-
$admin_display_title = (isset($admin_notices[$slug]['title']) ? $admin_notices[$slug]['title'] : '');
|
81 |
-
$admin_display_link = (isset($admin_notices[$slug]['link']) ? $admin_notices[$slug]['link'] : '');
|
82 |
-
$output_css = false;
|
83 |
-
// Ensure the notice hasn't been hidden and that the current date is after the start date
|
84 |
-
if ($admin_display_check == 0 && strtotime($admin_display_start) <= strtotime($current_date)) {
|
85 |
-
// Get remaining query string
|
86 |
-
$query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg($this->prefix . '_admin_notice_ignore', $slug)));
|
87 |
-
// Admin notice display output
|
88 |
-
echo '<div class="update-nag wd-admin-notice">
|
89 |
-
<div class="' . $this->prefix . '-notice-logo"></div>
|
90 |
-
<p class="wd-notice-title">' . $admin_display_title . '</p>
|
91 |
-
<p class="wd-notice-body">' . $admin_display_msg . '</p>
|
92 |
-
<ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
|
93 |
-
<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
|
94 |
-
</div>';
|
95 |
-
$this->notice_spam += 1;
|
96 |
-
$output_css = true;
|
97 |
-
}
|
98 |
-
if ($output_css) {
|
99 |
-
wp_enqueue_style($this->prefix . '-admin-notices', $this->plugin_url . '/css/notices.css', array(), get_option($this->plugin_version));
|
100 |
-
}
|
101 |
-
}
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
// Spam protection check
|
106 |
-
public function anti_notice_spam() {
|
107 |
-
if ($this->notice_spam >= $this->notice_spam_max) {
|
108 |
-
return true;
|
109 |
-
}
|
110 |
-
return false;
|
111 |
-
}
|
112 |
-
|
113 |
-
// Ignore function that gets ran at admin init to ensure any messages that were dismissed get marked
|
114 |
-
public function admin_notice_ignore() {
|
115 |
-
// If user clicks to ignore the notice, update the option to not show it again
|
116 |
-
if (isset($_GET[$this->prefix . '_admin_notice_ignore'])) {
|
117 |
-
$admin_notices_option = get_option($this->prefix . '_admin_notice', array());
|
118 |
-
$admin_notices_option[$_GET[$this->prefix . '_admin_notice_ignore']]['dismissed'] = 1;
|
119 |
-
update_option($this->prefix . '_admin_notice', $admin_notices_option);
|
120 |
-
$query_str = remove_query_arg($this->prefix . '_admin_notice_ignore');
|
121 |
-
wp_redirect($query_str);
|
122 |
-
exit;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
// Temp Ignore function that gets ran at admin init to ensure any messages that were temp dismissed get their start date changed
|
127 |
-
public function admin_notice_temp_ignore() {
|
128 |
-
// If user clicks to temp ignore the notice, update the option to change the start date - default interval of 14 days
|
129 |
-
if (isset($_GET[$this->prefix . '_admin_notice_temp_ignore'])) {
|
130 |
-
$admin_notices_option = get_option($this->prefix . '_admin_notice', array());
|
131 |
-
$current_date = current_time("n/j/Y");
|
132 |
-
$date_array = explode('/', $current_date);
|
133 |
-
$interval = (isset($_GET['wd_int']) ? $_GET['wd_int'] : 14);
|
134 |
-
$date_array[1] += $interval;
|
135 |
-
$new_start = date("n/j/Y", mktime(0, 0, 0, $date_array[0], $date_array[1], $date_array[2]));
|
136 |
-
|
137 |
-
$admin_notices_option[$_GET[$this->prefix . '_admin_notice_temp_ignore']]['start'] = $new_start;
|
138 |
-
$admin_notices_option[$_GET[$this->prefix . '_admin_notice_temp_ignore']]['dismissed'] = 0;
|
139 |
-
update_option($this->prefix . '_admin_notice', $admin_notices_option);
|
140 |
-
$query_str = remove_query_arg(array($this->prefix . '_admin_notice_temp_ignore', 'wd_int'));
|
141 |
-
wp_redirect( $query_str );
|
142 |
-
exit;
|
143 |
-
}
|
144 |
-
}
|
145 |
-
|
146 |
-
public function admin_notice_pages($pages) {
|
147 |
-
foreach ($pages as $key => $page) {
|
148 |
-
if (is_array($page)) {
|
149 |
-
if (isset($_GET['page']) && $_GET['page'] == $page[0] && isset($_GET['tab']) && $_GET['tab'] == $page[1]) {
|
150 |
-
return true;
|
151 |
-
}
|
152 |
-
}
|
153 |
-
else {
|
154 |
-
if ($page == 'all') {
|
155 |
-
return true;
|
156 |
-
}
|
157 |
-
if (get_current_screen()->id === $page) {
|
158 |
-
return true;
|
159 |
-
}
|
160 |
-
if (isset($_GET['page']) && $_GET['page'] == $page) {
|
161 |
-
return true;
|
162 |
-
}
|
163 |
-
}
|
164 |
-
return false;
|
165 |
-
}
|
166 |
-
}
|
167 |
-
|
168 |
-
// Required fields check
|
169 |
-
public function required_fields( $fields ) {
|
170 |
-
if (!isset( $fields['msg']) || (isset($fields['msg']) && empty($fields['msg']))) {
|
171 |
-
return true;
|
172 |
-
}
|
173 |
-
if (!isset( $fields['title']) || (isset($fields['title']) && empty($fields['title']))) {
|
174 |
-
return true;
|
175 |
-
}
|
176 |
-
return false;
|
177 |
-
}
|
178 |
-
|
179 |
-
// Special parameters function that is to be used in any extension of this class
|
180 |
-
public function special_parameters($admin_notices) {
|
181 |
-
// Intentionally left blank
|
182 |
-
}
|
183 |
-
|
184 |
-
public function wd_admin_notices() {
|
185 |
-
$two_week_review_ignore = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'two_week_review'));
|
186 |
-
$two_week_review_temp = add_query_arg(array($this->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14));
|
187 |
-
$notices['two_week_review'] = array(
|
188 |
-
'title' => __('Leave A Review?', $this->prefix),
|
189 |
-
'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $this->prefix), $this->plugin_name),
|
190 |
-
'link' => '<li><span class="dashicons dashicons-external"></span><a href="https://wordpress.org/support/view/plugin-reviews/contact-form-builder?filter=5" target="_blank">' . __('Sure! I\'d love to!', $this->prefix) . '</a></li>
|
191 |
-
<li><span class="dashicons dashicons-smiley"></span><a href="' . $two_week_review_ignore . '"> ' . __('I\'ve already left a review', $this->prefix) . '</a></li>
|
192 |
-
<li><span class="dashicons dashicons-calendar-alt"></span><a href="' . $two_week_review_temp . '">' . __('Maybe Later', $this->prefix) . '</a></li>
|
193 |
-
<li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __('Never show again', $this->prefix) . '</a></li>',
|
194 |
-
'later_link' => $two_week_review_temp,
|
195 |
-
'int' => 14
|
196 |
-
);
|
197 |
-
$one_week_support = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'one_week_support'));
|
198 |
-
$notices['one_week_support'] = array(
|
199 |
-
'title' => __('Hey! How\'s It Going?', $this->prefix),
|
200 |
-
'msg' => sprintf(__('Thank you for using WordPress %s! We hope that you\'ve found everything you need, but if you have any questions:', $this->prefix), $this->plugin_name),
|
201 |
-
'link' => '<li><span class="dashicons dashicons-media-text"></span><a target="_blank" href="https://web-dorado.com/forum/contact-form-builder.html">' . __('Check out User Guide', $this->prefix) . '</a></li>
|
202 |
-
<li><span class="dashicons dashicons-sos"></span><a target="_blank" href="https://web-dorado.com/wordpress-contact-form-builder/installing.html">' . __('Get Some Help', $this->prefix) . '</a></li>
|
203 |
-
<li><span class="dashicons dashicons-dismiss"></span><a href="' . $one_week_support . '">' . __('Never show again', $this->prefix) . '</a></li>',
|
204 |
-
'int' => 7
|
205 |
-
);
|
206 |
-
$this->admin_notice($notices);
|
207 |
-
}
|
208 |
}
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
class CFM_Notices {
|
7 |
+
protected $prefix = 'contact_form_maker';
|
8 |
+
protected $plugin_url = WD_CFM_URL;
|
9 |
+
protected $plugin_version = "wd_contact_form_maker_version";
|
10 |
+
protected $plugin_name = 'Contact Form Builder';
|
11 |
+
|
12 |
+
public $notice_spam = 0;
|
13 |
+
public $notice_spam_max = 1;
|
14 |
+
|
15 |
+
// Basic actions to run
|
16 |
+
public function __construct() {
|
17 |
+
// Runs the admin notice ignore function incase a dismiss button has been clicked
|
18 |
+
add_action('admin_init', array($this, 'admin_notice_ignore'));
|
19 |
+
// Runs the admin notice temp ignore function incase a temp dismiss link has been clicked
|
20 |
+
add_action('admin_init', array($this, 'admin_notice_temp_ignore'));
|
21 |
+
add_action('admin_notices', array($this, 'wd_admin_notices'));
|
22 |
+
}
|
23 |
+
|
24 |
+
// Checks to ensure notices aren't disabled and the user has the correct permissions.
|
25 |
+
public function wd_admin_notice() {
|
26 |
+
$settings = get_option($this->prefix . '_admin_notice');
|
27 |
+
if (!isset($settings['disable_admin_notices']) || (isset($settings['disable_admin_notices']) && $settings['disable_admin_notices'] == 0)) {
|
28 |
+
if (current_user_can('manage_options')) {
|
29 |
+
return true;
|
30 |
+
}
|
31 |
+
}
|
32 |
+
return false;
|
33 |
+
}
|
34 |
+
|
35 |
+
// Primary notice function that can be called from an outside function sending necessary variables
|
36 |
+
public function admin_notice($admin_notices) {
|
37 |
+
// Check options
|
38 |
+
if (!$this->wd_admin_notice()) {
|
39 |
+
return false;
|
40 |
+
}
|
41 |
+
foreach ($admin_notices as $slug => $admin_notice) {
|
42 |
+
// Call for spam protection
|
43 |
+
if ($this->anti_notice_spam()) {
|
44 |
+
return false;
|
45 |
+
}
|
46 |
+
|
47 |
+
// Check for proper page to display on
|
48 |
+
if (isset( $admin_notices[$slug]['pages']) && is_array( $admin_notices[$slug]['pages'])) {
|
49 |
+
if (!$this->admin_notice_pages($admin_notices[$slug]['pages'])) {
|
50 |
+
return false;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
// Check for required fields
|
55 |
+
if (!$this->required_fields($admin_notices[$slug])) {
|
56 |
+
// Get the current date then set start date to either passed value or current date value and add interval
|
57 |
+
$current_date = current_time("n/j/Y");
|
58 |
+
$start = (isset($admin_notices[$slug]['start']) ? $admin_notices[$slug]['start'] : $current_date);
|
59 |
+
$start = date("n/j/Y", strtotime($start));
|
60 |
+
$date_array = explode('/', $start);
|
61 |
+
$interval = (isset($admin_notices[$slug]['int']) ? $admin_notices[$slug]['int'] : 0);
|
62 |
+
$date_array[1] += $interval;
|
63 |
+
$start = date("n/j/Y", mktime(0, 0, 0, $date_array[0], $date_array[1], $date_array[2]));
|
64 |
+
|
65 |
+
// This is the main notices storage option
|
66 |
+
$admin_notices_option = get_option($this->prefix . '_admin_notice', array());
|
67 |
+
// Check if the message is already stored and if so just grab the key otherwise store the message and its associated date information
|
68 |
+
if (!array_key_exists( $slug, $admin_notices_option)) {
|
69 |
+
$admin_notices_option[$slug]['start'] = $start;
|
70 |
+
$admin_notices_option[$slug]['int'] = $interval;
|
71 |
+
update_option($this->prefix . '_admin_notice', $admin_notices_option);
|
72 |
+
}
|
73 |
+
|
74 |
+
// Sanity check to ensure we have accurate information
|
75 |
+
// New date information will not overwrite old date information
|
76 |
+
$admin_display_check = (isset($admin_notices_option[$slug]['dismissed']) ? $admin_notices_option[$slug]['dismissed'] : 0);
|
77 |
+
$admin_display_start = (isset($admin_notices_option[$slug]['start']) ? $admin_notices_option[$slug]['start'] : $start);
|
78 |
+
$admin_display_interval = (isset($admin_notices_option[$slug]['int']) ? $admin_notices_option[$slug]['int'] : $interval);
|
79 |
+
$admin_display_msg = (isset($admin_notices[$slug]['msg']) ? $admin_notices[$slug]['msg'] : '');
|
80 |
+
$admin_display_title = (isset($admin_notices[$slug]['title']) ? $admin_notices[$slug]['title'] : '');
|
81 |
+
$admin_display_link = (isset($admin_notices[$slug]['link']) ? $admin_notices[$slug]['link'] : '');
|
82 |
+
$output_css = false;
|
83 |
+
// Ensure the notice hasn't been hidden and that the current date is after the start date
|
84 |
+
if ($admin_display_check == 0 && strtotime($admin_display_start) <= strtotime($current_date)) {
|
85 |
+
// Get remaining query string
|
86 |
+
$query_str = (isset($admin_notices[$slug]['later_link']) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg($this->prefix . '_admin_notice_ignore', $slug)));
|
87 |
+
// Admin notice display output
|
88 |
+
echo '<div class="update-nag wd-admin-notice">
|
89 |
+
<div class="' . $this->prefix . '-notice-logo"></div>
|
90 |
+
<p class="wd-notice-title">' . $admin_display_title . '</p>
|
91 |
+
<p class="wd-notice-body">' . $admin_display_msg . '</p>
|
92 |
+
<ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
|
93 |
+
<a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
|
94 |
+
</div>';
|
95 |
+
$this->notice_spam += 1;
|
96 |
+
$output_css = true;
|
97 |
+
}
|
98 |
+
if ($output_css) {
|
99 |
+
wp_enqueue_style($this->prefix . '-admin-notices', $this->plugin_url . '/css/notices.css', array(), get_option($this->plugin_version));
|
100 |
+
}
|
101 |
+
}
|
102 |
+
}
|
103 |
+
}
|
104 |
+
|
105 |
+
// Spam protection check
|
106 |
+
public function anti_notice_spam() {
|
107 |
+
if ($this->notice_spam >= $this->notice_spam_max) {
|
108 |
+
return true;
|
109 |
+
}
|
110 |
+
return false;
|
111 |
+
}
|
112 |
+
|
113 |
+
// Ignore function that gets ran at admin init to ensure any messages that were dismissed get marked
|
114 |
+
public function admin_notice_ignore() {
|
115 |
+
// If user clicks to ignore the notice, update the option to not show it again
|
116 |
+
if (isset($_GET[$this->prefix . '_admin_notice_ignore'])) {
|
117 |
+
$admin_notices_option = get_option($this->prefix . '_admin_notice', array());
|
118 |
+
$admin_notices_option[$_GET[$this->prefix . '_admin_notice_ignore']]['dismissed'] = 1;
|
119 |
+
update_option($this->prefix . '_admin_notice', $admin_notices_option);
|
120 |
+
$query_str = remove_query_arg($this->prefix . '_admin_notice_ignore');
|
121 |
+
wp_redirect($query_str);
|
122 |
+
exit;
|
123 |
+
}
|
124 |
+
}
|
125 |
+
|
126 |
+
// Temp Ignore function that gets ran at admin init to ensure any messages that were temp dismissed get their start date changed
|
127 |
+
public function admin_notice_temp_ignore() {
|
128 |
+
// If user clicks to temp ignore the notice, update the option to change the start date - default interval of 14 days
|
129 |
+
if (isset($_GET[$this->prefix . '_admin_notice_temp_ignore'])) {
|
130 |
+
$admin_notices_option = get_option($this->prefix . '_admin_notice', array());
|
131 |
+
$current_date = current_time("n/j/Y");
|
132 |
+
$date_array = explode('/', $current_date);
|
133 |
+
$interval = (isset($_GET['wd_int']) ? $_GET['wd_int'] : 14);
|
134 |
+
$date_array[1] += $interval;
|
135 |
+
$new_start = date("n/j/Y", mktime(0, 0, 0, $date_array[0], $date_array[1], $date_array[2]));
|
136 |
+
|
137 |
+
$admin_notices_option[$_GET[$this->prefix . '_admin_notice_temp_ignore']]['start'] = $new_start;
|
138 |
+
$admin_notices_option[$_GET[$this->prefix . '_admin_notice_temp_ignore']]['dismissed'] = 0;
|
139 |
+
update_option($this->prefix . '_admin_notice', $admin_notices_option);
|
140 |
+
$query_str = remove_query_arg(array($this->prefix . '_admin_notice_temp_ignore', 'wd_int'));
|
141 |
+
wp_redirect( $query_str );
|
142 |
+
exit;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
public function admin_notice_pages($pages) {
|
147 |
+
foreach ($pages as $key => $page) {
|
148 |
+
if (is_array($page)) {
|
149 |
+
if (isset($_GET['page']) && $_GET['page'] == $page[0] && isset($_GET['tab']) && $_GET['tab'] == $page[1]) {
|
150 |
+
return true;
|
151 |
+
}
|
152 |
+
}
|
153 |
+
else {
|
154 |
+
if ($page == 'all') {
|
155 |
+
return true;
|
156 |
+
}
|
157 |
+
if (get_current_screen()->id === $page) {
|
158 |
+
return true;
|
159 |
+
}
|
160 |
+
if (isset($_GET['page']) && $_GET['page'] == $page) {
|
161 |
+
return true;
|
162 |
+
}
|
163 |
+
}
|
164 |
+
return false;
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
+
// Required fields check
|
169 |
+
public function required_fields( $fields ) {
|
170 |
+
if (!isset( $fields['msg']) || (isset($fields['msg']) && empty($fields['msg']))) {
|
171 |
+
return true;
|
172 |
+
}
|
173 |
+
if (!isset( $fields['title']) || (isset($fields['title']) && empty($fields['title']))) {
|
174 |
+
return true;
|
175 |
+
}
|
176 |
+
return false;
|
177 |
+
}
|
178 |
+
|
179 |
+
// Special parameters function that is to be used in any extension of this class
|
180 |
+
public function special_parameters($admin_notices) {
|
181 |
+
// Intentionally left blank
|
182 |
+
}
|
183 |
+
|
184 |
+
public function wd_admin_notices() {
|
185 |
+
$two_week_review_ignore = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'two_week_review'));
|
186 |
+
$two_week_review_temp = add_query_arg(array($this->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14));
|
187 |
+
$notices['two_week_review'] = array(
|
188 |
+
'title' => __('Leave A Review?', $this->prefix),
|
189 |
+
'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $this->prefix), $this->plugin_name),
|
190 |
+
'link' => '<li><span class="dashicons dashicons-external"></span><a href="https://wordpress.org/support/view/plugin-reviews/contact-form-builder?filter=5" target="_blank">' . __('Sure! I\'d love to!', $this->prefix) . '</a></li>
|
191 |
+
<li><span class="dashicons dashicons-smiley"></span><a href="' . $two_week_review_ignore . '"> ' . __('I\'ve already left a review', $this->prefix) . '</a></li>
|
192 |
+
<li><span class="dashicons dashicons-calendar-alt"></span><a href="' . $two_week_review_temp . '">' . __('Maybe Later', $this->prefix) . '</a></li>
|
193 |
+
<li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __('Never show again', $this->prefix) . '</a></li>',
|
194 |
+
'later_link' => $two_week_review_temp,
|
195 |
+
'int' => 14
|
196 |
+
);
|
197 |
+
$one_week_support = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'one_week_support'));
|
198 |
+
$notices['one_week_support'] = array(
|
199 |
+
'title' => __('Hey! How\'s It Going?', $this->prefix),
|
200 |
+
'msg' => sprintf(__('Thank you for using WordPress %s! We hope that you\'ve found everything you need, but if you have any questions:', $this->prefix), $this->plugin_name),
|
201 |
+
'link' => '<li><span class="dashicons dashicons-media-text"></span><a target="_blank" href="https://web-dorado.com/forum/contact-form-builder.html">' . __('Check out User Guide', $this->prefix) . '</a></li>
|
202 |
+
<li><span class="dashicons dashicons-sos"></span><a target="_blank" href="https://web-dorado.com/wordpress-contact-form-builder/installing.html">' . __('Get Some Help', $this->prefix) . '</a></li>
|
203 |
+
<li><span class="dashicons dashicons-dismiss"></span><a href="' . $one_week_support . '">' . __('Never show again', $this->prefix) . '</a></li>',
|
204 |
+
'int' => 7
|
205 |
+
);
|
206 |
+
$this->admin_notice($notices);
|
207 |
+
}
|
208 |
}
|
contact-form-builder-update.php
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function contact_form_maker_update($version) {
|
4 |
-
global $wpdb;
|
5 |
-
if (version_compare($version, '1.0.18') == -1) {
|
6 |
-
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "contactformmaker` ADD `wpmail` tinyint(1) NOT NULL DEFAULT '1'");
|
7 |
-
}
|
8 |
-
if (version_compare($version, '1.0.22') == -1) {
|
9 |
-
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "contactformmaker` ADD `sortable` tinyint(1) NOT NULL DEFAULT '1'");
|
10 |
-
}
|
11 |
-
if (version_compare($version, '1.0.46') == -1) {
|
12 |
-
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "contactformmaker_submits` CHANGE `ip` `ip` varchar(128) NOT NULL");
|
13 |
-
}
|
14 |
-
if (version_compare($version, '1.0.47') == -1) {
|
15 |
-
$recaptcha_keys = $wpdb->get_row('SELECT `public_key`, `private_key` FROM ' . $wpdb->prefix . 'contactformmaker WHERE public_key!="" and private_key!=""', ARRAY_A);
|
16 |
-
$public_key = isset($recaptcha_keys['public_key']) ? $recaptcha_keys['public_key'] : '';
|
17 |
-
$private_key = isset($recaptcha_keys['private_key']) ? $recaptcha_keys['private_key'] : '';
|
18 |
-
|
19 |
-
if (FALSE === $fm_settings = get_option('cfm_settings')) {
|
20 |
-
add_option('cfm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'map_key' => ''));
|
21 |
-
}
|
22 |
-
}
|
23 |
-
return;
|
24 |
-
}
|
25 |
-
|
26 |
?>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function contact_form_maker_update($version) {
|
4 |
+
global $wpdb;
|
5 |
+
if (version_compare($version, '1.0.18') == -1) {
|
6 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "contactformmaker` ADD `wpmail` tinyint(1) NOT NULL DEFAULT '1'");
|
7 |
+
}
|
8 |
+
if (version_compare($version, '1.0.22') == -1) {
|
9 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "contactformmaker` ADD `sortable` tinyint(1) NOT NULL DEFAULT '1'");
|
10 |
+
}
|
11 |
+
if (version_compare($version, '1.0.46') == -1) {
|
12 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "contactformmaker_submits` CHANGE `ip` `ip` varchar(128) NOT NULL");
|
13 |
+
}
|
14 |
+
if (version_compare($version, '1.0.47') == -1) {
|
15 |
+
$recaptcha_keys = $wpdb->get_row('SELECT `public_key`, `private_key` FROM ' . $wpdb->prefix . 'contactformmaker WHERE public_key!="" and private_key!=""', ARRAY_A);
|
16 |
+
$public_key = isset($recaptcha_keys['public_key']) ? $recaptcha_keys['public_key'] : '';
|
17 |
+
$private_key = isset($recaptcha_keys['private_key']) ? $recaptcha_keys['private_key'] : '';
|
18 |
+
|
19 |
+
if (FALSE === $fm_settings = get_option('cfm_settings')) {
|
20 |
+
add_option('cfm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'map_key' => ''));
|
21 |
+
}
|
22 |
+
}
|
23 |
+
return;
|
24 |
+
}
|
25 |
+
|
26 |
?>
|
contact-form-builder.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* Plugin Name: Contact Form Builder
|
4 |
* Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
|
5 |
* Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
11 |
define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
12 |
define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
13 |
-
define('WD_CFM_VERSION', '1.0.
|
14 |
|
15 |
// Plugin menu.
|
16 |
function contact_form_maker_options_panel() {
|
3 |
* Plugin Name: Contact Form Builder
|
4 |
* Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
|
5 |
* Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
|
6 |
+
* Version: 1.0.57
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
11 |
define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
12 |
define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
13 |
+
define('WD_CFM_VERSION', '1.0.57');
|
14 |
|
15 |
// Plugin menu.
|
16 |
function contact_form_maker_options_panel() {
|
css/calendar-jos.css
CHANGED
@@ -1,208 +1,208 @@
|
|
1 |
-
/* The main calendar widget. DIV containing a table. */
|
2 |
-
|
3 |
-
/* Form Wordpress. */
|
4 |
-
.calendar .button {
|
5 |
-
display: table-cell !important;
|
6 |
-
}
|
7 |
-
|
8 |
-
div.calendar {
|
9 |
-
position: relative;
|
10 |
-
z-index: 100;
|
11 |
-
width: 226px;
|
12 |
-
}
|
13 |
-
|
14 |
-
.calendar,
|
15 |
-
.calendar table {
|
16 |
-
border: 1px solid #cccccc;
|
17 |
-
font-size: 11px;
|
18 |
-
color: #000;
|
19 |
-
cursor: default;
|
20 |
-
background: #efefef;
|
21 |
-
font-family: arial,verdana,sans-serif;
|
22 |
-
margin: 0;
|
23 |
-
line-height: 1.7;
|
24 |
-
}
|
25 |
-
|
26 |
-
/* Header part -- contains navigation buttons and day names. */
|
27 |
-
.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
|
28 |
-
text-align: center; /* They are the navigation buttons */
|
29 |
-
padding: 2px; /* Make the buttons seem like they're pressing */
|
30 |
-
border:0px;
|
31 |
-
height:inherit;
|
32 |
-
|
33 |
-
}
|
34 |
-
|
35 |
-
.wdform_table1 .button,
|
36 |
-
#formMakerDiv1 .button,
|
37 |
-
.submitdate_fc .button,
|
38 |
-
.main .button {
|
39 |
-
-webkit-border-radius: 11px !important;;
|
40 |
-
border-radius: 11px !important;;
|
41 |
-
text-shadow: white 0px 1px 0px;
|
42 |
-
background-origin: padding-box;
|
43 |
-
border-bottom-width: 1px;
|
44 |
-
border-left-width: 1px;
|
45 |
-
border-right-width: 1px;
|
46 |
-
border-top-width: 1px;
|
47 |
-
}
|
48 |
-
|
49 |
-
.calendar thead .title { /* This holds the current "month, year" */
|
50 |
-
font-weight: bold; /* Pressing it will take you to the current date */
|
51 |
-
text-align: center;
|
52 |
-
background: #333333;
|
53 |
-
color: #ffffff;
|
54 |
-
padding: 2px;
|
55 |
-
}
|
56 |
-
|
57 |
-
.calendar thead .headrow { /* Row <TR> containing navigation buttons */
|
58 |
-
background: #dedede;
|
59 |
-
color: #000;
|
60 |
-
}
|
61 |
-
|
62 |
-
.calendar thead .name { /* Cells <TD> containing the day names */
|
63 |
-
border-bottom: 1px solid #cccccc;
|
64 |
-
padding: 2px;
|
65 |
-
text-align: center;
|
66 |
-
color: #000;
|
67 |
-
}
|
68 |
-
|
69 |
-
.calendar thead .weekend { /* How a weekend day name shows in header */
|
70 |
-
color:#666666 !important;
|
71 |
-
}
|
72 |
-
|
73 |
-
.calendar thead .hilite { /* How do the buttons in header appear when hover */
|
74 |
-
background: #bbbbbb;
|
75 |
-
color: #000000;
|
76 |
-
border: 1px solid #cccccc;
|
77 |
-
padding: 1px;
|
78 |
-
}
|
79 |
-
|
80 |
-
.calendar thead .active { /* Active (pressed) buttons in header */
|
81 |
-
background: #c77;
|
82 |
-
padding: 2px 0px 0px 2px;
|
83 |
-
}
|
84 |
-
|
85 |
-
.calendar thead .daynames { /* Row <TR> containing the day names */
|
86 |
-
background: #dddddd;
|
87 |
-
}
|
88 |
-
|
89 |
-
/* The body part -- contains all the days in month. */
|
90 |
-
|
91 |
-
.calendar tbody .day { /* Cells <TD> containing month days dates */
|
92 |
-
width: 2em;
|
93 |
-
text-align: right;
|
94 |
-
padding: 2px 4px 2px 2px;
|
95 |
-
}
|
96 |
-
|
97 |
-
.calendar table .wn {
|
98 |
-
padding: 2px 3px 2px 2px;
|
99 |
-
border-right: 1px solid #cccccc;
|
100 |
-
background: #dddddd;
|
101 |
-
}
|
102 |
-
|
103 |
-
.calendar tbody .rowhilite td {
|
104 |
-
background: #666666;
|
105 |
-
color: #ffffff;
|
106 |
-
}
|
107 |
-
|
108 |
-
.calendar tbody .rowhilite td.wn {
|
109 |
-
background: #666666;
|
110 |
-
color: #ffffff;
|
111 |
-
}
|
112 |
-
.calendar table
|
113 |
-
{
|
114 |
-
border-collapse:inherit !important;
|
115 |
-
}
|
116 |
-
|
117 |
-
.calendar tbody td.hilite { /* Hovered cells <TD> */
|
118 |
-
background: #999999;
|
119 |
-
padding: 1px 3px 1px 1px;
|
120 |
-
border: 1px solid #666666;
|
121 |
-
}
|
122 |
-
|
123 |
-
.calendar tbody td.active { /* Active (pressed) cells <TD> */
|
124 |
-
background: #000000;
|
125 |
-
color: #ffffff;
|
126 |
-
padding: 2px 2px 0px 2px;
|
127 |
-
}
|
128 |
-
|
129 |
-
.calendar tbody td.selected { /* Cell showing today date */
|
130 |
-
font-weight: bold;
|
131 |
-
border: 1px solid #000;
|
132 |
-
padding: 1px 3px 1px 1px;
|
133 |
-
background: #000000;
|
134 |
-
color: #ffffff;
|
135 |
-
}
|
136 |
-
|
137 |
-
.calendar tbody td.weekend { /* Cells showing weekend days */
|
138 |
-
color: #cccccc;
|
139 |
-
}
|
140 |
-
|
141 |
-
.calendar tbody td.today { font-weight: bold; }
|
142 |
-
|
143 |
-
.calendar tbody .disabled { color: #999; }
|
144 |
-
|
145 |
-
.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
|
146 |
-
visibility: hidden;
|
147 |
-
padding: 0;
|
148 |
-
}
|
149 |
-
|
150 |
-
.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
|
151 |
-
display: none;
|
152 |
-
}
|
153 |
-
|
154 |
-
/* The footer part -- status bar and "Close" button */
|
155 |
-
|
156 |
-
.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
|
157 |
-
text-align: center;
|
158 |
-
background: #cccccc;
|
159 |
-
color: #000;
|
160 |
-
}
|
161 |
-
|
162 |
-
.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
|
163 |
-
border-top: 1px solid #cccccc;
|
164 |
-
background: #efefef;
|
165 |
-
color: #000000;
|
166 |
-
}
|
167 |
-
|
168 |
-
.calendar tfoot .hilite { /* Hover style for buttons in footer */
|
169 |
-
background: #666666;
|
170 |
-
border: 1px solid #f40;
|
171 |
-
padding: 1px;
|
172 |
-
}
|
173 |
-
|
174 |
-
.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
|
175 |
-
background: #999999;
|
176 |
-
padding: 2px 0px 0px 2px;
|
177 |
-
}
|
178 |
-
|
179 |
-
/* Combo boxes (menus that display months/years for direct selection) */
|
180 |
-
.combo {
|
181 |
-
position: absolute;
|
182 |
-
display: none;
|
183 |
-
top: 0px;
|
184 |
-
left: 0px;
|
185 |
-
width: 4em;
|
186 |
-
cursor: default;
|
187 |
-
border: 1px solid #655;
|
188 |
-
background: #ffffff;
|
189 |
-
color: #000;
|
190 |
-
font-size: smaller;
|
191 |
-
}
|
192 |
-
|
193 |
-
.combo .label {
|
194 |
-
width: 100%;
|
195 |
-
text-align: center;
|
196 |
-
}
|
197 |
-
|
198 |
-
.combo .hilite {
|
199 |
-
background: #fc8;
|
200 |
-
}
|
201 |
-
|
202 |
-
.combo .active {
|
203 |
-
border-top: 1px solid #cccccc;
|
204 |
-
border-bottom: 1px solid #cccccc;
|
205 |
-
background: #efefef;
|
206 |
-
font-weight: bold;
|
207 |
-
|
208 |
-
}
|
1 |
+
/* The main calendar widget. DIV containing a table. */
|
2 |
+
|
3 |
+
/* Form Wordpress. */
|
4 |
+
.calendar .button {
|
5 |
+
display: table-cell !important;
|
6 |
+
}
|
7 |
+
|
8 |
+
div.calendar {
|
9 |
+
position: relative;
|
10 |
+
z-index: 100;
|
11 |
+
width: 226px;
|
12 |
+
}
|
13 |
+
|
14 |
+
.calendar,
|
15 |
+
.calendar table {
|
16 |
+
border: 1px solid #cccccc;
|
17 |
+
font-size: 11px;
|
18 |
+
color: #000;
|
19 |
+
cursor: default;
|
20 |
+
background: #efefef;
|
21 |
+
font-family: arial,verdana,sans-serif;
|
22 |
+
margin: 0;
|
23 |
+
line-height: 1.7;
|
24 |
+
}
|
25 |
+
|
26 |
+
/* Header part -- contains navigation buttons and day names. */
|
27 |
+
.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
|
28 |
+
text-align: center; /* They are the navigation buttons */
|
29 |
+
padding: 2px; /* Make the buttons seem like they're pressing */
|
30 |
+
border:0px;
|
31 |
+
height:inherit;
|
32 |
+
|
33 |
+
}
|
34 |
+
|
35 |
+
.wdform_table1 .button,
|
36 |
+
#formMakerDiv1 .button,
|
37 |
+
.submitdate_fc .button,
|
38 |
+
.main .button {
|
39 |
+
-webkit-border-radius: 11px !important;;
|
40 |
+
border-radius: 11px !important;;
|
41 |
+
text-shadow: white 0px 1px 0px;
|
42 |
+
background-origin: padding-box;
|
43 |
+
border-bottom-width: 1px;
|
44 |
+
border-left-width: 1px;
|
45 |
+
border-right-width: 1px;
|
46 |
+
border-top-width: 1px;
|
47 |
+
}
|
48 |
+
|
49 |
+
.calendar thead .title { /* This holds the current "month, year" */
|
50 |
+
font-weight: bold; /* Pressing it will take you to the current date */
|
51 |
+
text-align: center;
|
52 |
+
background: #333333;
|
53 |
+
color: #ffffff;
|
54 |
+
padding: 2px;
|
55 |
+
}
|
56 |
+
|
57 |
+
.calendar thead .headrow { /* Row <TR> containing navigation buttons */
|
58 |
+
background: #dedede;
|
59 |
+
color: #000;
|
60 |
+
}
|
61 |
+
|
62 |
+
.calendar thead .name { /* Cells <TD> containing the day names */
|
63 |
+
border-bottom: 1px solid #cccccc;
|
64 |
+
padding: 2px;
|
65 |
+
text-align: center;
|
66 |
+
color: #000;
|
67 |
+
}
|
68 |
+
|
69 |
+
.calendar thead .weekend { /* How a weekend day name shows in header */
|
70 |
+
color:#666666 !important;
|
71 |
+
}
|
72 |
+
|
73 |
+
.calendar thead .hilite { /* How do the buttons in header appear when hover */
|
74 |
+
background: #bbbbbb;
|
75 |
+
color: #000000;
|
76 |
+
border: 1px solid #cccccc;
|
77 |
+
padding: 1px;
|
78 |
+
}
|
79 |
+
|
80 |
+
.calendar thead .active { /* Active (pressed) buttons in header */
|
81 |
+
background: #c77;
|
82 |
+
padding: 2px 0px 0px 2px;
|
83 |
+
}
|
84 |
+
|
85 |
+
.calendar thead .daynames { /* Row <TR> containing the day names */
|
86 |
+
background: #dddddd;
|
87 |
+
}
|
88 |
+
|
89 |
+
/* The body part -- contains all the days in month. */
|
90 |
+
|
91 |
+
.calendar tbody .day { /* Cells <TD> containing month days dates */
|
92 |
+
width: 2em;
|
93 |
+
text-align: right;
|
94 |
+
padding: 2px 4px 2px 2px;
|
95 |
+
}
|
96 |
+
|
97 |
+
.calendar table .wn {
|
98 |
+
padding: 2px 3px 2px 2px;
|
99 |
+
border-right: 1px solid #cccccc;
|
100 |
+
background: #dddddd;
|
101 |
+
}
|
102 |
+
|
103 |
+
.calendar tbody .rowhilite td {
|
104 |
+
background: #666666;
|
105 |
+
color: #ffffff;
|
106 |
+
}
|
107 |
+
|
108 |
+
.calendar tbody .rowhilite td.wn {
|
109 |
+
background: #666666;
|
110 |
+
color: #ffffff;
|
111 |
+
}
|
112 |
+
.calendar table
|
113 |
+
{
|
114 |
+
border-collapse:inherit !important;
|
115 |
+
}
|
116 |
+
|
117 |
+
.calendar tbody td.hilite { /* Hovered cells <TD> */
|
118 |
+
background: #999999;
|
119 |
+
padding: 1px 3px 1px 1px;
|
120 |
+
border: 1px solid #666666;
|
121 |
+
}
|
122 |
+
|
123 |
+
.calendar tbody td.active { /* Active (pressed) cells <TD> */
|
124 |
+
background: #000000;
|
125 |
+
color: #ffffff;
|
126 |
+
padding: 2px 2px 0px 2px;
|
127 |
+
}
|
128 |
+
|
129 |
+
.calendar tbody td.selected { /* Cell showing today date */
|
130 |
+
font-weight: bold;
|
131 |
+
border: 1px solid #000;
|
132 |
+
padding: 1px 3px 1px 1px;
|
133 |
+
background: #000000;
|
134 |
+
color: #ffffff;
|
135 |
+
}
|
136 |
+
|
137 |
+
.calendar tbody td.weekend { /* Cells showing weekend days */
|
138 |
+
color: #cccccc;
|
139 |
+
}
|
140 |
+
|
141 |
+
.calendar tbody td.today { font-weight: bold; }
|
142 |
+
|
143 |
+
.calendar tbody .disabled { color: #999; }
|
144 |
+
|
145 |
+
.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
|
146 |
+
visibility: hidden;
|
147 |
+
padding: 0;
|
148 |
+
}
|
149 |
+
|
150 |
+
.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
|
151 |
+
display: none;
|
152 |
+
}
|
153 |
+
|
154 |
+
/* The footer part -- status bar and "Close" button */
|
155 |
+
|
156 |
+
.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
|
157 |
+
text-align: center;
|
158 |
+
background: #cccccc;
|
159 |
+
color: #000;
|
160 |
+
}
|
161 |
+
|
162 |
+
.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
|
163 |
+
border-top: 1px solid #cccccc;
|
164 |
+
background: #efefef;
|
165 |
+
color: #000000;
|
166 |
+
}
|
167 |
+
|
168 |
+
.calendar tfoot .hilite { /* Hover style for buttons in footer */
|
169 |
+
background: #666666;
|
170 |
+
border: 1px solid #f40;
|
171 |
+
padding: 1px;
|
172 |
+
}
|
173 |
+
|
174 |
+
.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
|
175 |
+
background: #999999;
|
176 |
+
padding: 2px 0px 0px 2px;
|
177 |
+
}
|
178 |
+
|
179 |
+
/* Combo boxes (menus that display months/years for direct selection) */
|
180 |
+
.combo {
|
181 |
+
position: absolute;
|
182 |
+
display: none;
|
183 |
+
top: 0px;
|
184 |
+
left: 0px;
|
185 |
+
width: 4em;
|
186 |
+
cursor: default;
|
187 |
+
border: 1px solid #655;
|
188 |
+
background: #ffffff;
|
189 |
+
color: #000;
|
190 |
+
font-size: smaller;
|
191 |
+
}
|
192 |
+
|
193 |
+
.combo .label {
|
194 |
+
width: 100%;
|
195 |
+
text-align: center;
|
196 |
+
}
|
197 |
+
|
198 |
+
.combo .hilite {
|
199 |
+
background: #fc8;
|
200 |
+
}
|
201 |
+
|
202 |
+
.combo .active {
|
203 |
+
border-top: 1px solid #cccccc;
|
204 |
+
border-bottom: 1px solid #cccccc;
|
205 |
+
background: #efefef;
|
206 |
+
font-weight: bold;
|
207 |
+
|
208 |
+
}
|
css/codemirror.css
CHANGED
@@ -1,168 +1,168 @@
|
|
1 |
-
.CodeMirror {
|
2 |
-
line-height: 1em;
|
3 |
-
font-family: monospace;
|
4 |
-
|
5 |
-
/* Necessary so the scrollbar can be absolutely positioned within the wrapper on Lion. */
|
6 |
-
position: relative;
|
7 |
-
/* This prevents unwanted scrollbars from showing up on the body and wrapper in IE. */
|
8 |
-
overflow: hidden;
|
9 |
-
}
|
10 |
-
|
11 |
-
.CodeMirror-scroll {
|
12 |
-
overflow-x: auto;
|
13 |
-
overflow-y: hidden;
|
14 |
-
height: 400px;
|
15 |
-
/* This is needed to prevent an IE[67] bug where the scrolled content
|
16 |
-
is visible outside of the scrolling box. */
|
17 |
-
position: relative;
|
18 |
-
outline: none;
|
19 |
-
}
|
20 |
-
|
21 |
-
/* Vertical scrollbar */
|
22 |
-
.CodeMirror-scrollbar {
|
23 |
-
float: right;
|
24 |
-
overflow-x: hidden;
|
25 |
-
overflow-y: scroll;
|
26 |
-
|
27 |
-
/* This corrects for the 1px gap introduced to the left of the scrollbar
|
28 |
-
by the rule for .CodeMirror-scrollbar-inner. */
|
29 |
-
margin-left: -1px;
|
30 |
-
}
|
31 |
-
.CodeMirror-scrollbar-inner {
|
32 |
-
/* This needs to have a nonzero width in order for the scrollbar to appear
|
33 |
-
in Firefox and IE9. */
|
34 |
-
width: 1px;
|
35 |
-
}
|
36 |
-
.CodeMirror-scrollbar.cm-sb-overlap {
|
37 |
-
/* Ensure that the scrollbar appears in Lion, and that it overlaps the content
|
38 |
-
rather than sitting to the right of it. */
|
39 |
-
position: absolute;
|
40 |
-
z-index: 1;
|
41 |
-
float: none;
|
42 |
-
right: 0;
|
43 |
-
min-width: 12px;
|
44 |
-
}
|
45 |
-
.CodeMirror-scrollbar.cm-sb-nonoverlap {
|
46 |
-
min-width: 12px;
|
47 |
-
}
|
48 |
-
.CodeMirror-scrollbar.cm-sb-ie7 {
|
49 |
-
min-width: 18px;
|
50 |
-
}
|
51 |
-
|
52 |
-
.CodeMirror-gutter {
|
53 |
-
position: absolute; left: 0; top: 0;
|
54 |
-
z-index: 10;
|
55 |
-
background-color: #f7f7f7;
|
56 |
-
border-right: 1px solid #eee;
|
57 |
-
min-width: 2em;
|
58 |
-
height: 100%;
|
59 |
-
}
|
60 |
-
.CodeMirror-gutter-text {
|
61 |
-
color: #aaa;
|
62 |
-
text-align: right;
|
63 |
-
padding: .4em .2em .4em .4em;
|
64 |
-
white-space: pre !important;
|
65 |
-
}
|
66 |
-
.CodeMirror-lines {
|
67 |
-
padding: .4em;
|
68 |
-
white-space: pre;
|
69 |
-
cursor: text;
|
70 |
-
}
|
71 |
-
.CodeMirror-lines * {
|
72 |
-
/* Necessary for throw-scrolling to decelerate properly on Safari. */
|
73 |
-
pointer-events: none;
|
74 |
-
}
|
75 |
-
|
76 |
-
.CodeMirror pre {
|
77 |
-
-moz-border-radius: 0;
|
78 |
-
-webkit-border-radius: 0;
|
79 |
-
-o-border-radius: 0;
|
80 |
-
border-radius: 0;
|
81 |
-
border-width: 0; margin: 0; padding: 0; background: transparent;
|
82 |
-
font-family: inherit;
|
83 |
-
font-size: inherit;
|
84 |
-
padding: 0; margin: 0;
|
85 |
-
white-space: pre;
|
86 |
-
word-wrap: normal;
|
87 |
-
line-height: inherit;
|
88 |
-
color: inherit;
|
89 |
-
}
|
90 |
-
|
91 |
-
.CodeMirror-wrap pre {
|
92 |
-
word-wrap: break-word;
|
93 |
-
white-space: pre-wrap;
|
94 |
-
word-break: normal;
|
95 |
-
}
|
96 |
-
.CodeMirror-wrap .CodeMirror-scroll {
|
97 |
-
overflow-x: hidden;
|
98 |
-
}
|
99 |
-
|
100 |
-
.CodeMirror textarea {
|
101 |
-
outline: none !important;
|
102 |
-
}
|
103 |
-
|
104 |
-
.CodeMirror pre.CodeMirror-cursor {
|
105 |
-
z-index: 10;
|
106 |
-
position: absolute;
|
107 |
-
visibility: hidden;
|
108 |
-
border-left: 1px solid black;
|
109 |
-
border-right: none;
|
110 |
-
width: 0;
|
111 |
-
}
|
112 |
-
.cm-keymap-fat-cursor pre.CodeMirror-cursor {
|
113 |
-
width: auto;
|
114 |
-
border: 0;
|
115 |
-
background: transparent;
|
116 |
-
background: rgba(0, 200, 0, .4);
|
117 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
|
118 |
-
}
|
119 |
-
/* Kludge to turn off filter in ie9+, which also accepts rgba */
|
120 |
-
.cm-keymap-fat-cursor pre.CodeMirror-cursor:not(#nonsense_id) {
|
121 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
122 |
-
}
|
123 |
-
.CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
|
124 |
-
.CodeMirror-focused pre.CodeMirror-cursor {
|
125 |
-
visibility: visible;
|
126 |
-
}
|
127 |
-
|
128 |
-
div.CodeMirror-selected { background: #d9d9d9; }
|
129 |
-
.CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }
|
130 |
-
|
131 |
-
.CodeMirror-searching {
|
132 |
-
background: #ffa;
|
133 |
-
background: rgba(255, 255, 0, .4);
|
134 |
-
}
|
135 |
-
|
136 |
-
/* Default theme */
|
137 |
-
|
138 |
-
span.cm-keyword {color: #708;}
|
139 |
-
span.cm-atom {color: #219;}
|
140 |
-
span.cm-number {color: #164;}
|
141 |
-
span.cm-def {color: #00f;}
|
142 |
-
span.cm-variable {color: black;}
|
143 |
-
span.cm-variable-2 {color: #05a;}
|
144 |
-
span.cm-variable-3 {color: #085;}
|
145 |
-
span.cm-property {color: black;}
|
146 |
-
span.cm-operator {color: black;}
|
147 |
-
span.cm-comment {color: #a50;}
|
148 |
-
span.cm-string {color: #a11;}
|
149 |
-
span.cm-string-2 {color: #f50;}
|
150 |
-
span.cm-meta {color: #555;}
|
151 |
-
span.cm-error {color: #f00;}
|
152 |
-
span.cm-qualifier {color: #555;}
|
153 |
-
span.cm-builtin {color: #30a;}
|
154 |
-
span.cm-bracket {color: #cc7;}
|
155 |
-
span.cm-tag {color: #170;}
|
156 |
-
span.cm-attribute {color: #00c;}
|
157 |
-
span.cm-header {color: blue;}
|
158 |
-
span.cm-quote {color: #090;}
|
159 |
-
span.cm-hr {color: #999;}
|
160 |
-
span.cm-link {color: #00c;}
|
161 |
-
|
162 |
-
span.cm-header, span.cm-strong {font-weight: bold;}
|
163 |
-
span.cm-em {font-style: italic;}
|
164 |
-
span.cm-emstrong {font-style: italic; font-weight: bold;}
|
165 |
-
span.cm-link {text-decoration: underline;}
|
166 |
-
|
167 |
-
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
168 |
-
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
1 |
+
.CodeMirror {
|
2 |
+
line-height: 1em;
|
3 |
+
font-family: monospace;
|
4 |
+
|
5 |
+
/* Necessary so the scrollbar can be absolutely positioned within the wrapper on Lion. */
|
6 |
+
position: relative;
|
7 |
+
/* This prevents unwanted scrollbars from showing up on the body and wrapper in IE. */
|
8 |
+
overflow: hidden;
|
9 |
+
}
|
10 |
+
|
11 |
+
.CodeMirror-scroll {
|
12 |
+
overflow-x: auto;
|
13 |
+
overflow-y: hidden;
|
14 |
+
height: 400px;
|
15 |
+
/* This is needed to prevent an IE[67] bug where the scrolled content
|
16 |
+
is visible outside of the scrolling box. */
|
17 |
+
position: relative;
|
18 |
+
outline: none;
|
19 |
+
}
|
20 |
+
|
21 |
+
/* Vertical scrollbar */
|
22 |
+
.CodeMirror-scrollbar {
|
23 |
+
float: right;
|
24 |
+
overflow-x: hidden;
|
25 |
+
overflow-y: scroll;
|
26 |
+
|
27 |
+
/* This corrects for the 1px gap introduced to the left of the scrollbar
|
28 |
+
by the rule for .CodeMirror-scrollbar-inner. */
|
29 |
+
margin-left: -1px;
|
30 |
+
}
|
31 |
+
.CodeMirror-scrollbar-inner {
|
32 |
+
/* This needs to have a nonzero width in order for the scrollbar to appear
|
33 |
+
in Firefox and IE9. */
|
34 |
+
width: 1px;
|
35 |
+
}
|
36 |
+
.CodeMirror-scrollbar.cm-sb-overlap {
|
37 |
+
/* Ensure that the scrollbar appears in Lion, and that it overlaps the content
|
38 |
+
rather than sitting to the right of it. */
|
39 |
+
position: absolute;
|
40 |
+
z-index: 1;
|
41 |
+
float: none;
|
42 |
+
right: 0;
|
43 |
+
min-width: 12px;
|
44 |
+
}
|
45 |
+
.CodeMirror-scrollbar.cm-sb-nonoverlap {
|
46 |
+
min-width: 12px;
|
47 |
+
}
|
48 |
+
.CodeMirror-scrollbar.cm-sb-ie7 {
|
49 |
+
min-width: 18px;
|
50 |
+
}
|
51 |
+
|
52 |
+
.CodeMirror-gutter {
|
53 |
+
position: absolute; left: 0; top: 0;
|
54 |
+
z-index: 10;
|
55 |
+
background-color: #f7f7f7;
|
56 |
+
border-right: 1px solid #eee;
|
57 |
+
min-width: 2em;
|
58 |
+
height: 100%;
|
59 |
+
}
|
60 |
+
.CodeMirror-gutter-text {
|
61 |
+
color: #aaa;
|
62 |
+
text-align: right;
|
63 |
+
padding: .4em .2em .4em .4em;
|
64 |
+
white-space: pre !important;
|
65 |
+
}
|
66 |
+
.CodeMirror-lines {
|
67 |
+
padding: .4em;
|
68 |
+
white-space: pre;
|
69 |
+
cursor: text;
|
70 |
+
}
|
71 |
+
.CodeMirror-lines * {
|
72 |
+
/* Necessary for throw-scrolling to decelerate properly on Safari. */
|
73 |
+
pointer-events: none;
|
74 |
+
}
|
75 |
+
|
76 |
+
.CodeMirror pre {
|
77 |
+
-moz-border-radius: 0;
|
78 |
+
-webkit-border-radius: 0;
|
79 |
+
-o-border-radius: 0;
|
80 |
+
border-radius: 0;
|
81 |
+
border-width: 0; margin: 0; padding: 0; background: transparent;
|
82 |
+
font-family: inherit;
|
83 |
+
font-size: inherit;
|
84 |
+
padding: 0; margin: 0;
|
85 |
+
white-space: pre;
|
86 |
+
word-wrap: normal;
|
87 |
+
line-height: inherit;
|
88 |
+
color: inherit;
|
89 |
+
}
|
90 |
+
|
91 |
+
.CodeMirror-wrap pre {
|
92 |
+
word-wrap: break-word;
|
93 |
+
white-space: pre-wrap;
|
94 |
+
word-break: normal;
|
95 |
+
}
|
96 |
+
.CodeMirror-wrap .CodeMirror-scroll {
|
97 |
+
overflow-x: hidden;
|
98 |
+
}
|
99 |
+
|
100 |
+
.CodeMirror textarea {
|
101 |
+
outline: none !important;
|
102 |
+
}
|
103 |
+
|
104 |
+
.CodeMirror pre.CodeMirror-cursor {
|
105 |
+
z-index: 10;
|
106 |
+
position: absolute;
|
107 |
+
visibility: hidden;
|
108 |
+
border-left: 1px solid black;
|
109 |
+
border-right: none;
|
110 |
+
width: 0;
|
111 |
+
}
|
112 |
+
.cm-keymap-fat-cursor pre.CodeMirror-cursor {
|
113 |
+
width: auto;
|
114 |
+
border: 0;
|
115 |
+
background: transparent;
|
116 |
+
background: rgba(0, 200, 0, .4);
|
117 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
|
118 |
+
}
|
119 |
+
/* Kludge to turn off filter in ie9+, which also accepts rgba */
|
120 |
+
.cm-keymap-fat-cursor pre.CodeMirror-cursor:not(#nonsense_id) {
|
121 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
122 |
+
}
|
123 |
+
.CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
|
124 |
+
.CodeMirror-focused pre.CodeMirror-cursor {
|
125 |
+
visibility: visible;
|
126 |
+
}
|
127 |
+
|
128 |
+
div.CodeMirror-selected { background: #d9d9d9; }
|
129 |
+
.CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }
|
130 |
+
|
131 |
+
.CodeMirror-searching {
|
132 |
+
background: #ffa;
|
133 |
+
background: rgba(255, 255, 0, .4);
|
134 |
+
}
|
135 |
+
|
136 |
+
/* Default theme */
|
137 |
+
|
138 |
+
span.cm-keyword {color: #708;}
|
139 |
+
span.cm-atom {color: #219;}
|
140 |
+
span.cm-number {color: #164;}
|
141 |
+
span.cm-def {color: #00f;}
|
142 |
+
span.cm-variable {color: black;}
|
143 |
+
span.cm-variable-2 {color: #05a;}
|
144 |
+
span.cm-variable-3 {color: #085;}
|
145 |
+
span.cm-property {color: black;}
|
146 |
+
span.cm-operator {color: black;}
|
147 |
+
span.cm-comment {color: #a50;}
|
148 |
+
span.cm-string {color: #a11;}
|
149 |
+
span.cm-string-2 {color: #f50;}
|
150 |
+
span.cm-meta {color: #555;}
|
151 |
+
span.cm-error {color: #f00;}
|
152 |
+
span.cm-qualifier {color: #555;}
|
153 |
+
span.cm-builtin {color: #30a;}
|
154 |
+
span.cm-bracket {color: #cc7;}
|
155 |
+
span.cm-tag {color: #170;}
|
156 |
+
span.cm-attribute {color: #00c;}
|
157 |
+
span.cm-header {color: blue;}
|
158 |
+
span.cm-quote {color: #090;}
|
159 |
+
span.cm-hr {color: #999;}
|
160 |
+
span.cm-link {color: #00c;}
|
161 |
+
|
162 |
+
span.cm-header, span.cm-strong {font-weight: bold;}
|
163 |
+
span.cm-em {font-style: italic;}
|
164 |
+
span.cm-emstrong {font-style: italic; font-weight: bold;}
|
165 |
+
span.cm-link {text-decoration: underline;}
|
166 |
+
|
167 |
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
168 |
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
css/contact_form_maker_first.css
CHANGED
@@ -1,173 +1,173 @@
|
|
1 |
-
.wdform-page-and-images {
|
2 |
-
color: #000000;
|
3 |
-
font-size: 14px;
|
4 |
-
font-weight: normal;
|
5 |
-
width: 100%;
|
6 |
-
}
|
7 |
-
|
8 |
-
.wdform_table1 {
|
9 |
-
color: #000000;
|
10 |
-
font-size: 14px;
|
11 |
-
font-weight: normal;
|
12 |
-
width: 100%;
|
13 |
-
}
|
14 |
-
|
15 |
-
.wdform_tbody1 {
|
16 |
-
float: left;
|
17 |
-
}
|
18 |
-
|
19 |
-
.wdform_table2 {
|
20 |
-
border-collapse: separate !important;
|
21 |
-
border-spacing: 0px;
|
22 |
-
float: left;
|
23 |
-
padding-right: 50px !important;
|
24 |
-
}
|
25 |
-
|
26 |
-
#edit_main_table label {
|
27 |
-
line-height: 19px;
|
28 |
-
}
|
29 |
-
|
30 |
-
#edit_main_table td {
|
31 |
-
padding-right: 5px;
|
32 |
-
}
|
33 |
-
|
34 |
-
.time_box {
|
35 |
-
border-width: 1px;
|
36 |
-
margin: 0px;
|
37 |
-
padding: 0px;
|
38 |
-
text-align: right;
|
39 |
-
vertical-align: middle
|
40 |
-
width: 30px;
|
41 |
-
}
|
42 |
-
|
43 |
-
.mini_label {
|
44 |
-
font-family: 'Lucida Grande', Tahoma, Arial, Verdana, sans-serif;
|
45 |
-
font-size: 10px;
|
46 |
-
}
|
47 |
-
|
48 |
-
.ch_rad_label {
|
49 |
-
display: inline;
|
50 |
-
float: none;
|
51 |
-
margin-left: 5px;
|
52 |
-
margin-right: 15px;
|
53 |
-
}
|
54 |
-
|
55 |
-
.label {
|
56 |
-
border: none;
|
57 |
-
}
|
58 |
-
|
59 |
-
.td_am_pm_select {
|
60 |
-
padding-left: 5px;
|
61 |
-
}
|
62 |
-
|
63 |
-
.am_pm_select {
|
64 |
-
height: 16px;
|
65 |
-
margin: 0;
|
66 |
-
padding: 0
|
67 |
-
}
|
68 |
-
|
69 |
-
.input_deactive {
|
70 |
-
border-width: 1px;
|
71 |
-
color: #999999;
|
72 |
-
font-style: italic;
|
73 |
-
margin: 0px;
|
74 |
-
padding: 0px
|
75 |
-
}
|
76 |
-
|
77 |
-
.input_active {
|
78 |
-
border-width: 1px;
|
79 |
-
color: #000000;
|
80 |
-
font-style: normal;
|
81 |
-
margin: 0px;
|
82 |
-
padding: 0px
|
83 |
-
}
|
84 |
-
|
85 |
-
.required {
|
86 |
-
border: none;
|
87 |
-
color: red
|
88 |
-
}
|
89 |
-
|
90 |
-
.captcha_img {
|
91 |
-
border-width: 0px;
|
92 |
-
cursor: pointer;
|
93 |
-
margin: 0px;
|
94 |
-
padding: 0px;
|
95 |
-
}
|
96 |
-
|
97 |
-
.captcha_refresh {
|
98 |
-
background-image: url("../images/refresh_black.png");
|
99 |
-
border-width: 0px;
|
100 |
-
cursor: pointer;
|
101 |
-
height: 30px;
|
102 |
-
margin: 0px;
|
103 |
-
padding: 0px;
|
104 |
-
vertical-align: middle;
|
105 |
-
width: 30px;
|
106 |
-
}
|
107 |
-
|
108 |
-
.captcha_input {
|
109 |
-
border-width: 1px;
|
110 |
-
height: 20px;
|
111 |
-
margin: 0px;
|
112 |
-
padding: 0px;
|
113 |
-
vertical-align: middle;
|
114 |
-
}
|
115 |
-
|
116 |
-
.file_upload {
|
117 |
-
border-width: 1px;
|
118 |
-
margin: 0px;
|
119 |
-
padding: 0px
|
120 |
-
}
|
121 |
-
|
122 |
-
.page_deactive {
|
123 |
-
background-color: #DBDBDB;
|
124 |
-
border: 1px solid black;
|
125 |
-
cursor: pointer;
|
126 |
-
margin: 4px;
|
127 |
-
padding: 4px 7px 4px 7px;
|
128 |
-
}
|
129 |
-
|
130 |
-
.page_active {
|
131 |
-
background-color: #878787;
|
132 |
-
border: 1px solid black;
|
133 |
-
cursor: pointer;
|
134 |
-
padding: 4px 7px 4px 7px;
|
135 |
-
margin: 4px;
|
136 |
-
}
|
137 |
-
|
138 |
-
.page_percentage_active {
|
139 |
-
background-color: yellow;
|
140 |
-
border-radius: 30px;
|
141 |
-
border-spacing: 0px;
|
142 |
-
height: 30px;
|
143 |
-
line-height: 30px;
|
144 |
-
float: left;
|
145 |
-
font-size: 15px;
|
146 |
-
margin: 0px;
|
147 |
-
padding: 0px;
|
148 |
-
text-align: right !important;
|
149 |
-
}
|
150 |
-
|
151 |
-
|
152 |
-
.page_percentage_deactive {
|
153 |
-
background-color: white;
|
154 |
-
border: 1px solid black;
|
155 |
-
border-radius: 30px;
|
156 |
-
height: 30px;
|
157 |
-
line-height: 30px;
|
158 |
-
padding: 5px;
|
159 |
-
text-align: left !important;
|
160 |
-
width: 100%;
|
161 |
-
}
|
162 |
-
|
163 |
-
.page_numbers {
|
164 |
-
font-size: 11px;
|
165 |
-
}
|
166 |
-
|
167 |
-
.phone_area_code {
|
168 |
-
width: 50px;
|
169 |
-
}
|
170 |
-
|
171 |
-
.phone_number {
|
172 |
-
width: 100px;
|
173 |
-
}
|
1 |
+
.wdform-page-and-images {
|
2 |
+
color: #000000;
|
3 |
+
font-size: 14px;
|
4 |
+
font-weight: normal;
|
5 |
+
width: 100%;
|
6 |
+
}
|
7 |
+
|
8 |
+
.wdform_table1 {
|
9 |
+
color: #000000;
|
10 |
+
font-size: 14px;
|
11 |
+
font-weight: normal;
|
12 |
+
width: 100%;
|
13 |
+
}
|
14 |
+
|
15 |
+
.wdform_tbody1 {
|
16 |
+
float: left;
|
17 |
+
}
|
18 |
+
|
19 |
+
.wdform_table2 {
|
20 |
+
border-collapse: separate !important;
|
21 |
+
border-spacing: 0px;
|
22 |
+
float: left;
|
23 |
+
padding-right: 50px !important;
|
24 |
+
}
|
25 |
+
|
26 |
+
#edit_main_table label {
|
27 |
+
line-height: 19px;
|
28 |
+
}
|
29 |
+
|
30 |
+
#edit_main_table td {
|
31 |
+
padding-right: 5px;
|
32 |
+
}
|
33 |
+
|
34 |
+
.time_box {
|
35 |
+
border-width: 1px;
|
36 |
+
margin: 0px;
|
37 |
+
padding: 0px;
|
38 |
+
text-align: right;
|
39 |
+
vertical-align: middle
|
40 |
+
width: 30px;
|
41 |
+
}
|
42 |
+
|
43 |
+
.mini_label {
|
44 |
+
font-family: 'Lucida Grande', Tahoma, Arial, Verdana, sans-serif;
|
45 |
+
font-size: 10px;
|
46 |
+
}
|
47 |
+
|
48 |
+
.ch_rad_label {
|
49 |
+
display: inline;
|
50 |
+
float: none;
|
51 |
+
margin-left: 5px;
|
52 |
+
margin-right: 15px;
|
53 |
+
}
|
54 |
+
|
55 |
+
.label {
|
56 |
+
border: none;
|
57 |
+
}
|
58 |
+
|
59 |
+
.td_am_pm_select {
|
60 |
+
padding-left: 5px;
|
61 |
+
}
|
62 |
+
|
63 |
+
.am_pm_select {
|
64 |
+
height: 16px;
|
65 |
+
margin: 0;
|
66 |
+
padding: 0
|
67 |
+
}
|
68 |
+
|
69 |
+
.input_deactive {
|
70 |
+
border-width: 1px;
|
71 |
+
color: #999999;
|
72 |
+
font-style: italic;
|
73 |
+
margin: 0px;
|
74 |
+
padding: 0px
|
75 |
+
}
|
76 |
+
|
77 |
+
.input_active {
|
78 |
+
border-width: 1px;
|
79 |
+
color: #000000;
|
80 |
+
font-style: normal;
|
81 |
+
margin: 0px;
|
82 |
+
padding: 0px
|
83 |
+
}
|
84 |
+
|
85 |
+
.required {
|
86 |
+
border: none;
|
87 |
+
color: red
|
88 |
+
}
|
89 |
+
|
90 |
+
.captcha_img {
|
91 |
+
border-width: 0px;
|
92 |
+
cursor: pointer;
|
93 |
+
margin: 0px;
|
94 |
+
padding: 0px;
|
95 |
+
}
|
96 |
+
|
97 |
+
.captcha_refresh {
|
98 |
+
background-image: url("../images/refresh_black.png");
|
99 |
+
border-width: 0px;
|
100 |
+
cursor: pointer;
|
101 |
+
height: 30px;
|
102 |
+
margin: 0px;
|
103 |
+
padding: 0px;
|
104 |
+
vertical-align: middle;
|
105 |
+
width: 30px;
|
106 |
+
}
|
107 |
+
|
108 |
+
.captcha_input {
|
109 |
+
border-width: 1px;
|
110 |
+
height: 20px;
|
111 |
+
margin: 0px;
|
112 |
+
padding: 0px;
|
113 |
+
vertical-align: middle;
|
114 |
+
}
|
115 |
+
|
116 |
+
.file_upload {
|
117 |
+
border-width: 1px;
|
118 |
+
margin: 0px;
|
119 |
+
padding: 0px
|
120 |
+
}
|
121 |
+
|
122 |
+
.page_deactive {
|
123 |
+
background-color: #DBDBDB;
|
124 |
+
border: 1px solid black;
|
125 |
+
cursor: pointer;
|
126 |
+
margin: 4px;
|
127 |
+
padding: 4px 7px 4px 7px;
|
128 |
+
}
|
129 |
+
|
130 |
+
.page_active {
|
131 |
+
background-color: #878787;
|
132 |
+
border: 1px solid black;
|
133 |
+
cursor: pointer;
|
134 |
+
padding: 4px 7px 4px 7px;
|
135 |
+
margin: 4px;
|
136 |
+
}
|
137 |
+
|
138 |
+
.page_percentage_active {
|
139 |
+
background-color: yellow;
|
140 |
+
border-radius: 30px;
|
141 |
+
border-spacing: 0px;
|
142 |
+
height: 30px;
|
143 |
+
line-height: 30px;
|
144 |
+
float: left;
|
145 |
+
font-size: 15px;
|
146 |
+
margin: 0px;
|
147 |
+
padding: 0px;
|
148 |
+
text-align: right !important;
|
149 |
+
}
|
150 |
+
|
151 |
+
|
152 |
+
.page_percentage_deactive {
|
153 |
+
background-color: white;
|
154 |
+
border: 1px solid black;
|
155 |
+
border-radius: 30px;
|
156 |
+
height: 30px;
|
157 |
+
line-height: 30px;
|
158 |
+
padding: 5px;
|
159 |
+
text-align: left !important;
|
160 |
+
width: 100%;
|
161 |
+
}
|
162 |
+
|
163 |
+
.page_numbers {
|
164 |
+
font-size: 11px;
|
165 |
+
}
|
166 |
+
|
167 |
+
.phone_area_code {
|
168 |
+
width: 50px;
|
169 |
+
}
|
170 |
+
|
171 |
+
.phone_number {
|
172 |
+
width: 100px;
|
173 |
+
}
|
css/contact_form_maker_frontend.css
CHANGED
@@ -1,39 +1,39 @@
|
|
1 |
-
.wdform_map img {
|
2 |
-
max-width: none !important;
|
3 |
-
}
|
4 |
-
|
5 |
-
.wdform-page-and-images {
|
6 |
-
box-sizing: border-box;
|
7 |
-
}
|
8 |
-
|
9 |
-
.wdform_row .wdform-field .wdform_map {
|
10 |
-
width: inherit !important;
|
11 |
-
}
|
12 |
-
|
13 |
-
.radio-div,
|
14 |
-
.radio-div *,
|
15 |
-
.checkbox-div,
|
16 |
-
.checkbox-div *,
|
17 |
-
.wdform-page-button {
|
18 |
-
-moz-box-sizing: content-box !important;
|
19 |
-
-webkit-box-sizing: content-box !important;
|
20 |
-
box-sizing: content-box !important;
|
21 |
-
}
|
22 |
-
|
23 |
-
.page_percentage_deactive,
|
24 |
-
.page_percentage_deactive * {
|
25 |
-
word-wrap: normal;
|
26 |
-
}
|
27 |
-
|
28 |
-
.wdform_percentage_text,
|
29 |
-
.wdform_percentage_arrow {
|
30 |
-
vertical-align: top !important;
|
31 |
-
}
|
32 |
-
|
33 |
-
div[type="type_captcha"] .wdform-element-section * {
|
34 |
-
vertical-align: middle;
|
35 |
-
}
|
36 |
-
|
37 |
-
.recaptcha_input_area input {
|
38 |
-
height: initial !important;
|
39 |
-
}
|
1 |
+
.wdform_map img {
|
2 |
+
max-width: none !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
.wdform-page-and-images {
|
6 |
+
box-sizing: border-box;
|
7 |
+
}
|
8 |
+
|
9 |
+
.wdform_row .wdform-field .wdform_map {
|
10 |
+
width: inherit !important;
|
11 |
+
}
|
12 |
+
|
13 |
+
.radio-div,
|
14 |
+
.radio-div *,
|
15 |
+
.checkbox-div,
|
16 |
+
.checkbox-div *,
|
17 |
+
.wdform-page-button {
|
18 |
+
-moz-box-sizing: content-box !important;
|
19 |
+
-webkit-box-sizing: content-box !important;
|
20 |
+
box-sizing: content-box !important;
|
21 |
+
}
|
22 |
+
|
23 |
+
.page_percentage_deactive,
|
24 |
+
.page_percentage_deactive * {
|
25 |
+
word-wrap: normal;
|
26 |
+
}
|
27 |
+
|
28 |
+
.wdform_percentage_text,
|
29 |
+
.wdform_percentage_arrow {
|
30 |
+
vertical-align: top !important;
|
31 |
+
}
|
32 |
+
|
33 |
+
div[type="type_captcha"] .wdform-element-section * {
|
34 |
+
vertical-align: middle;
|
35 |
+
}
|
36 |
+
|
37 |
+
.recaptcha_input_area input {
|
38 |
+
height: initial !important;
|
39 |
+
}
|
css/contact_form_maker_layout.css
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
.fm_submit_layout {
|
2 |
-
border-radius: 3px !important;
|
3 |
-
width: 100%;
|
4 |
-
}
|
5 |
-
|
6 |
-
.fm_submit_layout em {
|
7 |
-
color: #999;
|
8 |
-
font-size: 11px;
|
9 |
-
font-style: normal;
|
10 |
-
}
|
11 |
-
|
12 |
-
.CodeMirror {
|
13 |
-
background: white;
|
14 |
-
border: 1px solid #ccc;
|
15 |
-
font-size: 12px;
|
16 |
-
margin-bottom: 6px;
|
17 |
-
}
|
18 |
-
|
19 |
-
.fm_label_buttons {
|
20 |
-
border: 1px solid #C0C0C0;
|
21 |
-
cursor: pointer;
|
22 |
-
font-weight: bold;
|
23 |
-
max-width: 200px;
|
24 |
-
overflow: hidden;
|
25 |
-
padding: 4px 15px;
|
26 |
-
text-overflow: ellipsis;
|
27 |
-
white-space: nowrap;
|
28 |
-
word-break: break-all;
|
29 |
-
word-wrap: break-word;
|
30 |
-
}
|
31 |
-
|
32 |
-
.fm_layout p {
|
33 |
-
font-size: 14px;
|
34 |
-
font-family: segoe ui;
|
35 |
-
text-shadow: 0px 0px 1px rgb(202, 202, 202);
|
36 |
-
}
|
1 |
+
.fm_submit_layout {
|
2 |
+
border-radius: 3px !important;
|
3 |
+
width: 100%;
|
4 |
+
}
|
5 |
+
|
6 |
+
.fm_submit_layout em {
|
7 |
+
color: #999;
|
8 |
+
font-size: 11px;
|
9 |
+
font-style: normal;
|
10 |
+
}
|
11 |
+
|
12 |
+
.CodeMirror {
|
13 |
+
background: white;
|
14 |
+
border: 1px solid #ccc;
|
15 |
+
font-size: 12px;
|
16 |
+
margin-bottom: 6px;
|
17 |
+
}
|
18 |
+
|
19 |
+
.fm_label_buttons {
|
20 |
+
border: 1px solid #C0C0C0;
|
21 |
+
cursor: pointer;
|
22 |
+
font-weight: bold;
|
23 |
+
max-width: 200px;
|
24 |
+
overflow: hidden;
|
25 |
+
padding: 4px 15px;
|
26 |
+
text-overflow: ellipsis;
|
27 |
+
white-space: nowrap;
|
28 |
+
word-break: break-all;
|
29 |
+
word-wrap: break-word;
|
30 |
+
}
|
31 |
+
|
32 |
+
.fm_layout p {
|
33 |
+
font-size: 14px;
|
34 |
+
font-family: segoe ui;
|
35 |
+
text-shadow: 0px 0px 1px rgb(202, 202, 202);
|
36 |
+
}
|
css/jquery-ui-1.10.3.custom.css
CHANGED
@@ -1,1177 +1,1177 @@
|
|
1 |
-
/*! jQuery UI - v1.10.3 - 2013-10-19
|
2 |
-
* http://jqueryui.com
|
3 |
-
* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
|
4 |
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
5 |
-
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
6 |
-
|
7 |
-
/* Layout helpers
|
8 |
-
----------------------------------*/
|
9 |
-
.ui-helper-hidden {
|
10 |
-
display: none;
|
11 |
-
}
|
12 |
-
.ui-helper-hidden-accessible {
|
13 |
-
border: 0;
|
14 |
-
clip: rect(0 0 0 0);
|
15 |
-
height: 1px;
|
16 |
-
margin: -1px;
|
17 |
-
overflow: hidden;
|
18 |
-
padding: 0;
|
19 |
-
position: absolute;
|
20 |
-
width: 1px;
|
21 |
-
}
|
22 |
-
.ui-helper-reset {
|
23 |
-
margin: 0;
|
24 |
-
padding: 0;
|
25 |
-
border: 0;
|
26 |
-
outline: 0;
|
27 |
-
line-height: 1.3;
|
28 |
-
text-decoration: none;
|
29 |
-
font-size: 100%;
|
30 |
-
list-style: none;
|
31 |
-
}
|
32 |
-
.ui-helper-clearfix:before,
|
33 |
-
.ui-helper-clearfix:after {
|
34 |
-
content: "";
|
35 |
-
display: table;
|
36 |
-
border-collapse: collapse;
|
37 |
-
}
|
38 |
-
.ui-helper-clearfix:after {
|
39 |
-
clear: both;
|
40 |
-
}
|
41 |
-
.ui-helper-clearfix {
|
42 |
-
min-height: 0; /* support: IE7 */
|
43 |
-
}
|
44 |
-
.ui-helper-zfix {
|
45 |
-
width: 100%;
|
46 |
-
height: 100%;
|
47 |
-
top: 0;
|
48 |
-
left: 0;
|
49 |
-
position: absolute;
|
50 |
-
opacity: 0;
|
51 |
-
filter:Alpha(Opacity=0);
|
52 |
-
}
|
53 |
-
|
54 |
-
.ui-front {
|
55 |
-
z-index: 100;
|
56 |
-
}
|
57 |
-
|
58 |
-
|
59 |
-
/* Interaction Cues
|
60 |
-
----------------------------------*/
|
61 |
-
.ui-state-disabled {
|
62 |
-
cursor: default !important;
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
/* Icons
|
67 |
-
----------------------------------*/
|
68 |
-
|
69 |
-
/* states and images */
|
70 |
-
.ui-icon {
|
71 |
-
display: block;
|
72 |
-
text-indent: -99999px;
|
73 |
-
overflow: hidden;
|
74 |
-
background-repeat: no-repeat;
|
75 |
-
}
|
76 |
-
|
77 |
-
|
78 |
-
/* Misc visuals
|
79 |
-
----------------------------------*/
|
80 |
-
|
81 |
-
/* Overlays */
|
82 |
-
.ui-widget-overlay {
|
83 |
-
position: fixed;
|
84 |
-
top: 0;
|
85 |
-
left: 0;
|
86 |
-
width: 100%;
|
87 |
-
height: 100%;
|
88 |
-
}
|
89 |
-
.ui-resizable {
|
90 |
-
position: relative;
|
91 |
-
}
|
92 |
-
.ui-resizable-handle {
|
93 |
-
position: absolute;
|
94 |
-
font-size: 0.1px;
|
95 |
-
display: block;
|
96 |
-
}
|
97 |
-
.ui-resizable-disabled .ui-resizable-handle,
|
98 |
-
.ui-resizable-autohide .ui-resizable-handle {
|
99 |
-
display: none;
|
100 |
-
}
|
101 |
-
.ui-resizable-n {
|
102 |
-
cursor: n-resize;
|
103 |
-
height: 7px;
|
104 |
-
width: 100%;
|
105 |
-
top: -5px;
|
106 |
-
left: 0;
|
107 |
-
}
|
108 |
-
.ui-resizable-s {
|
109 |
-
cursor: s-resize;
|
110 |
-
height: 7px;
|
111 |
-
width: 100%;
|
112 |
-
bottom: -5px;
|
113 |
-
left: 0;
|
114 |
-
}
|
115 |
-
.ui-resizable-e {
|
116 |
-
cursor: e-resize;
|
117 |
-
width: 7px;
|
118 |
-
right: -5px;
|
119 |
-
top: 0;
|
120 |
-
height: 100%;
|
121 |
-
}
|
122 |
-
.ui-resizable-w {
|
123 |
-
cursor: w-resize;
|
124 |
-
width: 7px;
|
125 |
-
left: -5px;
|
126 |
-
top: 0;
|
127 |
-
height: 100%;
|
128 |
-
}
|
129 |
-
.ui-resizable-se {
|
130 |
-
cursor: se-resize;
|
131 |
-
width: 12px;
|
132 |
-
height: 12px;
|
133 |
-
right: 1px;
|
134 |
-
bottom: 1px;
|
135 |
-
}
|
136 |
-
.ui-resizable-sw {
|
137 |
-
cursor: sw-resize;
|
138 |
-
width: 9px;
|
139 |
-
height: 9px;
|
140 |
-
left: -5px;
|
141 |
-
bottom: -5px;
|
142 |
-
}
|
143 |
-
.ui-resizable-nw {
|
144 |
-
cursor: nw-resize;
|
145 |
-
width: 9px;
|
146 |
-
height: 9px;
|
147 |
-
left: -5px;
|
148 |
-
top: -5px;
|
149 |
-
}
|
150 |
-
.ui-resizable-ne {
|
151 |
-
cursor: ne-resize;
|
152 |
-
width: 9px;
|
153 |
-
height: 9px;
|
154 |
-
right: -5px;
|
155 |
-
top: -5px;
|
156 |
-
}
|
157 |
-
.ui-selectable-helper {
|
158 |
-
position: absolute;
|
159 |
-
z-index: 100;
|
160 |
-
border: 1px dotted black;
|
161 |
-
}
|
162 |
-
.ui-accordion .ui-accordion-header {
|
163 |
-
display: block;
|
164 |
-
cursor: pointer;
|
165 |
-
position: relative;
|
166 |
-
margin-top: 2px;
|
167 |
-
padding: .5em .5em .5em .7em;
|
168 |
-
min-height: 0; /* support: IE7 */
|
169 |
-
}
|
170 |
-
.ui-accordion .ui-accordion-icons {
|
171 |
-
padding-left: 2.2em;
|
172 |
-
}
|
173 |
-
.ui-accordion .ui-accordion-noicons {
|
174 |
-
padding-left: .7em;
|
175 |
-
}
|
176 |
-
.ui-accordion .ui-accordion-icons .ui-accordion-icons {
|
177 |
-
padding-left: 2.2em;
|
178 |
-
}
|
179 |
-
.ui-accordion .ui-accordion-header .ui-accordion-header-icon {
|
180 |
-
position: absolute;
|
181 |
-
left: .5em;
|
182 |
-
top: 50%;
|
183 |
-
margin-top: -8px;
|
184 |
-
}
|
185 |
-
.ui-accordion .ui-accordion-content {
|
186 |
-
padding: 1em 2.2em;
|
187 |
-
border-top: 0;
|
188 |
-
overflow: auto;
|
189 |
-
}
|
190 |
-
.ui-autocomplete {
|
191 |
-
position: absolute;
|
192 |
-
top: 0;
|
193 |
-
left: 0;
|
194 |
-
cursor: default;
|
195 |
-
}
|
196 |
-
.ui-button {
|
197 |
-
display: inline-block;
|
198 |
-
position: relative;
|
199 |
-
padding: 0;
|
200 |
-
line-height: normal;
|
201 |
-
margin-right: .1em;
|
202 |
-
cursor: pointer;
|
203 |
-
vertical-align: middle;
|
204 |
-
text-align: center;
|
205 |
-
overflow: visible; /* removes extra width in IE */
|
206 |
-
}
|
207 |
-
.ui-button,
|
208 |
-
.ui-button:link,
|
209 |
-
.ui-button:visited,
|
210 |
-
.ui-button:hover,
|
211 |
-
.ui-button:active {
|
212 |
-
text-decoration: none;
|
213 |
-
}
|
214 |
-
/* to make room for the icon, a width needs to be set here */
|
215 |
-
.ui-button-icon-only {
|
216 |
-
width: 2.2em;
|
217 |
-
}
|
218 |
-
/* button elements seem to need a little more width */
|
219 |
-
button.ui-button-icon-only {
|
220 |
-
width: 2.4em;
|
221 |
-
}
|
222 |
-
.ui-button-icons-only {
|
223 |
-
width: 3.4em;
|
224 |
-
}
|
225 |
-
button.ui-button-icons-only {
|
226 |
-
width: 3.7em;
|
227 |
-
}
|
228 |
-
|
229 |
-
/* button text element */
|
230 |
-
.ui-button .ui-button-text {
|
231 |
-
display: block;
|
232 |
-
line-height: normal;
|
233 |
-
}
|
234 |
-
.ui-button-text-only .ui-button-text {
|
235 |
-
padding: .4em 1em;
|
236 |
-
}
|
237 |
-
.ui-button-icon-only .ui-button-text,
|
238 |
-
.ui-button-icons-only .ui-button-text {
|
239 |
-
padding: .4em;
|
240 |
-
text-indent: -9999999px;
|
241 |
-
}
|
242 |
-
.ui-button-text-icon-primary .ui-button-text,
|
243 |
-
.ui-button-text-icons .ui-button-text {
|
244 |
-
padding: .4em 1em .4em 2.1em;
|
245 |
-
}
|
246 |
-
.ui-button-text-icon-secondary .ui-button-text,
|
247 |
-
.ui-button-text-icons .ui-button-text {
|
248 |
-
padding: .4em 2.1em .4em 1em;
|
249 |
-
}
|
250 |
-
.ui-button-text-icons .ui-button-text {
|
251 |
-
padding-left: 2.1em;
|
252 |
-
padding-right: 2.1em;
|
253 |
-
}
|
254 |
-
/* no icon support for input elements, provide padding by default */
|
255 |
-
input.ui-button {
|
256 |
-
padding: .4em 1em;
|
257 |
-
}
|
258 |
-
|
259 |
-
/* button icon element(s) */
|
260 |
-
.ui-button-icon-only .ui-icon,
|
261 |
-
.ui-button-text-icon-primary .ui-icon,
|
262 |
-
.ui-button-text-icon-secondary .ui-icon,
|
263 |
-
.ui-button-text-icons .ui-icon,
|
264 |
-
.ui-button-icons-only .ui-icon {
|
265 |
-
position: absolute;
|
266 |
-
top: 50%;
|
267 |
-
margin-top: -8px;
|
268 |
-
}
|
269 |
-
.ui-button-icon-only .ui-icon {
|
270 |
-
left: 50%;
|
271 |
-
margin-left: -8px;
|
272 |
-
}
|
273 |
-
.ui-button-text-icon-primary .ui-button-icon-primary,
|
274 |
-
.ui-button-text-icons .ui-button-icon-primary,
|
275 |
-
.ui-button-icons-only .ui-button-icon-primary {
|
276 |
-
left: .5em;
|
277 |
-
}
|
278 |
-
.ui-button-text-icon-secondary .ui-button-icon-secondary,
|
279 |
-
.ui-button-text-icons .ui-button-icon-secondary,
|
280 |
-
.ui-button-icons-only .ui-button-icon-secondary {
|
281 |
-
right: .5em;
|
282 |
-
}
|
283 |
-
|
284 |
-
/* button sets */
|
285 |
-
.ui-buttonset {
|
286 |
-
margin-right: 7px;
|
287 |
-
}
|
288 |
-
.ui-buttonset .ui-button {
|
289 |
-
margin-left: 0;
|
290 |
-
margin-right: -.3em;
|
291 |
-
}
|
292 |
-
|
293 |
-
/* workarounds */
|
294 |
-
/* reset extra padding in Firefox, see h5bp.com/l */
|
295 |
-
input.ui-button::-moz-focus-inner,
|
296 |
-
button.ui-button::-moz-focus-inner {
|
297 |
-
border: 0;
|
298 |
-
padding: 0;
|
299 |
-
}
|
300 |
-
.ui-datepicker {
|
301 |
-
width: 17em;
|
302 |
-
padding: .2em .2em 0;
|
303 |
-
display: none;
|
304 |
-
}
|
305 |
-
.ui-datepicker .ui-datepicker-header {
|
306 |
-
position: relative;
|
307 |
-
padding: .2em 0;
|
308 |
-
}
|
309 |
-
.ui-datepicker .ui-datepicker-prev,
|
310 |
-
.ui-datepicker .ui-datepicker-next {
|
311 |
-
position: absolute;
|
312 |
-
top: 2px;
|
313 |
-
width: 1.8em;
|
314 |
-
height: 1.8em;
|
315 |
-
}
|
316 |
-
.ui-datepicker .ui-datepicker-prev-hover,
|
317 |
-
.ui-datepicker .ui-datepicker-next-hover {
|
318 |
-
top: 1px;
|
319 |
-
}
|
320 |
-
.ui-datepicker .ui-datepicker-prev {
|
321 |
-
left: 2px;
|
322 |
-
}
|
323 |
-
.ui-datepicker .ui-datepicker-next {
|
324 |
-
right: 2px;
|
325 |
-
}
|
326 |
-
.ui-datepicker .ui-datepicker-prev-hover {
|
327 |
-
left: 1px;
|
328 |
-
}
|
329 |
-
.ui-datepicker .ui-datepicker-next-hover {
|
330 |
-
right: 1px;
|
331 |
-
}
|
332 |
-
.ui-datepicker .ui-datepicker-prev span,
|
333 |
-
.ui-datepicker .ui-datepicker-next span {
|
334 |
-
display: block;
|
335 |
-
position: absolute;
|
336 |
-
left: 50%;
|
337 |
-
margin-left: -8px;
|
338 |
-
top: 50%;
|
339 |
-
margin-top: -8px;
|
340 |
-
}
|
341 |
-
.ui-datepicker .ui-datepicker-title {
|
342 |
-
margin: 0 2.3em;
|
343 |
-
line-height: 1.8em;
|
344 |
-
text-align: center;
|
345 |
-
}
|
346 |
-
.ui-datepicker .ui-datepicker-title select {
|
347 |
-
font-size: 1em;
|
348 |
-
margin: 1px 0;
|
349 |
-
}
|
350 |
-
.ui-datepicker select.ui-datepicker-month-year {
|
351 |
-
width: 100%;
|
352 |
-
}
|
353 |
-
.ui-datepicker select.ui-datepicker-month,
|
354 |
-
.ui-datepicker select.ui-datepicker-year {
|
355 |
-
width: 49%;
|
356 |
-
}
|
357 |
-
.ui-datepicker table {
|
358 |
-
width: 100%;
|
359 |
-
font-size: .9em;
|
360 |
-
border-collapse: collapse;
|
361 |
-
margin: 0 0 .4em;
|
362 |
-
}
|
363 |
-
.ui-datepicker th {
|
364 |
-
padding: .7em .3em;
|
365 |
-
text-align: center;
|
366 |
-
font-weight: bold;
|
367 |
-
border: 0;
|
368 |
-
}
|
369 |
-
.ui-datepicker td {
|
370 |
-
border: 0;
|
371 |
-
padding: 1px;
|
372 |
-
}
|
373 |
-
.ui-datepicker td span,
|
374 |
-
.ui-datepicker td a {
|
375 |
-
display: block;
|
376 |
-
padding: .2em;
|
377 |
-
text-align: right;
|
378 |
-
text-decoration: none;
|
379 |
-
}
|
380 |
-
.ui-datepicker .ui-datepicker-buttonpane {
|
381 |
-
background-image: none;
|
382 |
-
margin: .7em 0 0 0;
|
383 |
-
padding: 0 .2em;
|
384 |
-
border-left: 0;
|
385 |
-
border-right: 0;
|
386 |
-
border-bottom: 0;
|
387 |
-
}
|
388 |
-
.ui-datepicker .ui-datepicker-buttonpane button {
|
389 |
-
float: right;
|
390 |
-
margin: .5em .2em .4em;
|
391 |
-
cursor: pointer;
|
392 |
-
padding: .2em .6em .3em .6em;
|
393 |
-
width: auto;
|
394 |
-
overflow: visible;
|
395 |
-
}
|
396 |
-
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
|
397 |
-
float: left;
|
398 |
-
}
|
399 |
-
|
400 |
-
/* with multiple calendars */
|
401 |
-
.ui-datepicker.ui-datepicker-multi {
|
402 |
-
width: auto;
|
403 |
-
}
|
404 |
-
.ui-datepicker-multi .ui-datepicker-group {
|
405 |
-
float: left;
|
406 |
-
}
|
407 |
-
.ui-datepicker-multi .ui-datepicker-group table {
|
408 |
-
width: 95%;
|
409 |
-
margin: 0 auto .4em;
|
410 |
-
}
|
411 |
-
.ui-datepicker-multi-2 .ui-datepicker-group {
|
412 |
-
width: 50%;
|
413 |
-
}
|
414 |
-
.ui-datepicker-multi-3 .ui-datepicker-group {
|
415 |
-
width: 33.3%;
|
416 |
-
}
|
417 |
-
.ui-datepicker-multi-4 .ui-datepicker-group {
|
418 |
-
width: 25%;
|
419 |
-
}
|
420 |
-
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
|
421 |
-
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
|
422 |
-
border-left-width: 0;
|
423 |
-
}
|
424 |
-
.ui-datepicker-multi .ui-datepicker-buttonpane {
|
425 |
-
clear: left;
|
426 |
-
}
|
427 |
-
.ui-datepicker-row-break {
|
428 |
-
clear: both;
|
429 |
-
width: 100%;
|
430 |
-
font-size: 0;
|
431 |
-
}
|
432 |
-
|
433 |
-
/* RTL support */
|
434 |
-
.ui-datepicker-rtl {
|
435 |
-
direction: rtl;
|
436 |
-
}
|
437 |
-
.ui-datepicker-rtl .ui-datepicker-prev {
|
438 |
-
right: 2px;
|
439 |
-
left: auto;
|
440 |
-
}
|
441 |
-
.ui-datepicker-rtl .ui-datepicker-next {
|
442 |
-
left: 2px;
|
443 |
-
right: auto;
|
444 |
-
}
|
445 |
-
.ui-datepicker-rtl .ui-datepicker-prev:hover {
|
446 |
-
right: 1px;
|
447 |
-
left: auto;
|
448 |
-
}
|
449 |
-
.ui-datepicker-rtl .ui-datepicker-next:hover {
|
450 |
-
left: 1px;
|
451 |
-
right: auto;
|
452 |
-
}
|
453 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane {
|
454 |
-
clear: right;
|
455 |
-
}
|
456 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
|
457 |
-
float: left;
|
458 |
-
}
|
459 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
|
460 |
-
.ui-datepicker-rtl .ui-datepicker-group {
|
461 |
-
float: right;
|
462 |
-
}
|
463 |
-
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
|
464 |
-
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
|
465 |
-
border-right-width: 0;
|
466 |
-
border-left-width: 1px;
|
467 |
-
}
|
468 |
-
.ui-dialog {
|
469 |
-
position: absolute;
|
470 |
-
top: 0;
|
471 |
-
left: 0;
|
472 |
-
padding: .2em;
|
473 |
-
outline: 0;
|
474 |
-
}
|
475 |
-
.ui-dialog .ui-dialog-titlebar {
|
476 |
-
padding: .4em 1em;
|
477 |
-
position: relative;
|
478 |
-
}
|
479 |
-
.ui-dialog .ui-dialog-title {
|
480 |
-
float: left;
|
481 |
-
margin: .1em 0;
|
482 |
-
white-space: nowrap;
|
483 |
-
width: 90%;
|
484 |
-
overflow: hidden;
|
485 |
-
text-overflow: ellipsis;
|
486 |
-
}
|
487 |
-
.ui-dialog .ui-dialog-titlebar-close {
|
488 |
-
position: absolute;
|
489 |
-
right: .3em;
|
490 |
-
top: 50%;
|
491 |
-
width: 21px;
|
492 |
-
margin: -10px 0 0 0;
|
493 |
-
padding: 1px;
|
494 |
-
height: 20px;
|
495 |
-
}
|
496 |
-
.ui-dialog .ui-dialog-content {
|
497 |
-
position: relative;
|
498 |
-
border: 0;
|
499 |
-
padding: .5em 1em;
|
500 |
-
background: none;
|
501 |
-
overflow: auto;
|
502 |
-
}
|
503 |
-
.ui-dialog .ui-dialog-buttonpane {
|
504 |
-
text-align: left;
|
505 |
-
border-width: 1px 0 0 0;
|
506 |
-
background-image: none;
|
507 |
-
margin-top: .5em;
|
508 |
-
padding: .3em 1em .5em .4em;
|
509 |
-
}
|
510 |
-
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
|
511 |
-
float: right;
|
512 |
-
}
|
513 |
-
.ui-dialog .ui-dialog-buttonpane button {
|
514 |
-
margin: .5em .4em .5em 0;
|
515 |
-
cursor: pointer;
|
516 |
-
}
|
517 |
-
.ui-dialog .ui-resizable-se {
|
518 |
-
width: 12px;
|
519 |
-
height: 12px;
|
520 |
-
right: -5px;
|
521 |
-
bottom: -5px;
|
522 |
-
background-position: 16px 16px;
|
523 |
-
}
|
524 |
-
.ui-draggable .ui-dialog-titlebar {
|
525 |
-
cursor: move;
|
526 |
-
}
|
527 |
-
.ui-menu {
|
528 |
-
list-style: none;
|
529 |
-
padding: 2px;
|
530 |
-
margin: 0;
|
531 |
-
display: block;
|
532 |
-
outline: none;
|
533 |
-
}
|
534 |
-
.ui-menu .ui-menu {
|
535 |
-
margin-top: -3px;
|
536 |
-
position: absolute;
|
537 |
-
}
|
538 |
-
.ui-menu .ui-menu-item {
|
539 |
-
margin: 0;
|
540 |
-
padding: 0;
|
541 |
-
width: 100%;
|
542 |
-
/* support: IE10, see #8844 */
|
543 |
-
list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
|
544 |
-
}
|
545 |
-
.ui-menu .ui-menu-divider {
|
546 |
-
margin: 5px -2px 5px -2px;
|
547 |
-
height: 0;
|
548 |
-
font-size: 0;
|
549 |
-
line-height: 0;
|
550 |
-
border-width: 1px 0 0 0;
|
551 |
-
}
|
552 |
-
.ui-menu .ui-menu-item a {
|
553 |
-
text-decoration: none;
|
554 |
-
display: block;
|
555 |
-
padding: 2px .4em;
|
556 |
-
line-height: 1.5;
|
557 |
-
min-height: 0; /* support: IE7 */
|
558 |
-
font-weight: normal;
|
559 |
-
}
|
560 |
-
.ui-menu .ui-menu-item a.ui-state-focus,
|
561 |
-
.ui-menu .ui-menu-item a.ui-state-active {
|
562 |
-
font-weight: normal;
|
563 |
-
margin: -1px;
|
564 |
-
}
|
565 |
-
|
566 |
-
.ui-menu .ui-state-disabled {
|
567 |
-
font-weight: normal;
|
568 |
-
margin: .4em 0 .2em;
|
569 |
-
line-height: 1.5;
|
570 |
-
}
|
571 |
-
.ui-menu .ui-state-disabled a {
|
572 |
-
cursor: default;
|
573 |
-
}
|
574 |
-
|
575 |
-
/* icon support */
|
576 |
-
.ui-menu-icons {
|
577 |
-
position: relative;
|
578 |
-
}
|
579 |
-
.ui-menu-icons .ui-menu-item a {
|
580 |
-
position: relative;
|
581 |
-
padding-left: 2em;
|
582 |
-
}
|
583 |
-
|
584 |
-
/* left-aligned */
|
585 |
-
.ui-menu .ui-icon {
|
586 |
-
position: absolute;
|
587 |
-
top: .2em;
|
588 |
-
left: .2em;
|
589 |
-
}
|
590 |
-
|
591 |
-
/* right-aligned */
|
592 |
-
.ui-menu .ui-menu-icon {
|
593 |
-
position: static;
|
594 |
-
float: right;
|
595 |
-
}
|
596 |
-
.ui-progressbar {
|
597 |
-
height: 2em;
|
598 |
-
text-align: left;
|
599 |
-
overflow: hidden;
|
600 |
-
}
|
601 |
-
.ui-progressbar .ui-progressbar-value {
|
602 |
-
margin: -1px;
|
603 |
-
height: 100%;
|
604 |
-
}
|
605 |
-
.ui-progressbar .ui-progressbar-overlay {
|
606 |
-
background: url("images/animated-overlay.gif");
|
607 |
-
height: 100%;
|
608 |
-
filter: alpha(opacity=25);
|
609 |
-
opacity: 0.25;
|
610 |
-
}
|
611 |
-
.ui-progressbar-indeterminate .ui-progressbar-value {
|
612 |
-
background-image: none;
|
613 |
-
}
|
614 |
-
.ui-slider {
|
615 |
-
position: relative;
|
616 |
-
text-align: left;
|
617 |
-
}
|
618 |
-
.ui-slider .ui-slider-handle {
|
619 |
-
position: absolute;
|
620 |
-
z-index: 2;
|
621 |
-
width: 1.2em;
|
622 |
-
height: 1.2em;
|
623 |
-
cursor: default;
|
624 |
-
}
|
625 |
-
.ui-slider .ui-slider-range {
|
626 |
-
position: absolute;
|
627 |
-
z-index: 1;
|
628 |
-
font-size: .7em;
|
629 |
-
display: block;
|
630 |
-
border: 0;
|
631 |
-
background-position: 0 0;
|
632 |
-
}
|
633 |
-
|
634 |
-
/* For IE8 - See #6727 */
|
635 |
-
.ui-slider.ui-state-disabled .ui-slider-handle,
|
636 |
-
.ui-slider.ui-state-disabled .ui-slider-range {
|
637 |
-
filter: inherit;
|
638 |
-
}
|
639 |
-
|
640 |
-
.ui-slider-horizontal {
|
641 |
-
height: .8em;
|
642 |
-
}
|
643 |
-
.ui-slider-horizontal .ui-slider-handle {
|
644 |
-
top: -.3em;
|
645 |
-
margin-left: -.6em;
|
646 |
-
}
|
647 |
-
.ui-slider-horizontal .ui-slider-range {
|
648 |
-
top: 0;
|
649 |
-
height: 100%;
|
650 |
-
}
|
651 |
-
.ui-slider-horizontal .ui-slider-range-min {
|
652 |
-
left: 0;
|
653 |
-
}
|
654 |
-
.ui-slider-horizontal .ui-slider-range-max {
|
655 |
-
right: 0;
|
656 |
-
}
|
657 |
-
|
658 |
-
.ui-slider-vertical {
|
659 |
-
width: .8em;
|
660 |
-
height: 100px;
|
661 |
-
}
|
662 |
-
.ui-slider-vertical .ui-slider-handle {
|
663 |
-
left: -.3em;
|
664 |
-
margin-left: 0;
|
665 |
-
margin-bottom: -.6em;
|
666 |
-
}
|
667 |
-
.ui-slider-vertical .ui-slider-range {
|
668 |
-
left: 0;
|
669 |
-
width: 100%;
|
670 |
-
}
|
671 |
-
.ui-slider-vertical .ui-slider-range-min {
|
672 |
-
bottom: 0;
|
673 |
-
}
|
674 |
-
.ui-slider-vertical .ui-slider-range-max {
|
675 |
-
top: 0;
|
676 |
-
}
|
677 |
-
.ui-spinner {
|
678 |
-
position: relative;
|
679 |
-
display: inline-block;
|
680 |
-
overflow: hidden;
|
681 |
-
padding: 0;
|
682 |
-
vertical-align: middle;
|
683 |
-
}
|
684 |
-
.ui-spinner-input {
|
685 |
-
border: none;
|
686 |
-
background: none;
|
687 |
-
color: inherit;
|
688 |
-
padding: 0;
|
689 |
-
margin: .2em 0;
|
690 |
-
vertical-align: middle;
|
691 |
-
margin-left: .4em;
|
692 |
-
margin-right: 22px;
|
693 |
-
}
|
694 |
-
.ui-spinner-button {
|
695 |
-
width: 16px;
|
696 |
-
height: 50%;
|
697 |
-
font-size: .5em;
|
698 |
-
padding: 0;
|
699 |
-
margin: 0;
|
700 |
-
text-align: center;
|
701 |
-
position: absolute;
|
702 |
-
cursor: default;
|
703 |
-
display: block;
|
704 |
-
overflow: hidden;
|
705 |
-
right: 0;
|
706 |
-
}
|
707 |
-
/* more specificity required here to overide default borders */
|
708 |
-
.ui-spinner a.ui-spinner-button {
|
709 |
-
border-top: none;
|
710 |
-
border-bottom: none;
|
711 |
-
border-right: none;
|
712 |
-
}
|
713 |
-
/* vertical centre icon */
|
714 |
-
.ui-spinner .ui-icon {
|
715 |
-
position: absolute;
|
716 |
-
margin-top: -8px;
|
717 |
-
top: 50%;
|
718 |
-
left: 0;
|
719 |
-
}
|
720 |
-
.ui-spinner-up {
|
721 |
-
top: 0;
|
722 |
-
}
|
723 |
-
.ui-spinner-down {
|
724 |
-
bottom: 0;
|
725 |
-
}
|
726 |
-
|
727 |
-
/* TR overrides */
|
728 |
-
.ui-spinner .ui-icon-triangle-1-s {
|
729 |
-
/* need to fix icons sprite */
|
730 |
-
background-position: -65px -16px;
|
731 |
-
}
|
732 |
-
.ui-tabs {
|
733 |
-
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
734 |
-
padding: .2em;
|
735 |
-
}
|
736 |
-
.ui-tabs .ui-tabs-nav {
|
737 |
-
margin: 0;
|
738 |
-
padding: .2em .2em 0;
|
739 |
-
}
|
740 |
-
.ui-tabs .ui-tabs-nav li {
|
741 |
-
list-style: none;
|
742 |
-
float: left;
|
743 |
-
position: relative;
|
744 |
-
top: 0;
|
745 |
-
margin: 1px .2em 0 0;
|
746 |
-
border-bottom-width: 0;
|
747 |
-
padding: 0;
|
748 |
-
white-space: nowrap;
|
749 |
-
}
|
750 |
-
.ui-tabs .ui-tabs-nav li a {
|
751 |
-
float: left;
|
752 |
-
padding: .5em 1em;
|
753 |
-
text-decoration: none;
|
754 |
-
}
|
755 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
756 |
-
margin-bottom: -1px;
|
757 |
-
padding-bottom: 1px;
|
758 |
-
}
|
759 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
|
760 |
-
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
761 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
|
762 |
-
cursor: text;
|
763 |
-
}
|
764 |
-
.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
765 |
-
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
|
766 |
-
cursor: pointer;
|
767 |
-
}
|
768 |
-
.ui-tabs .ui-tabs-panel {
|
769 |
-
display: block;
|
770 |
-
border-width: 0;
|
771 |
-
padding: 1em 1.4em;
|
772 |
-
background: none;
|
773 |
-
}
|
774 |
-
.ui-tooltip {
|
775 |
-
padding: 8px;
|
776 |
-
position: absolute;
|
777 |
-
z-index: 9999;
|
778 |
-
max-width: 300px;
|
779 |
-
-webkit-box-shadow: 0 0 5px #aaa;
|
780 |
-
box-shadow: 0 0 5px #aaa;
|
781 |
-
}
|
782 |
-
body .ui-tooltip {
|
783 |
-
border-width: 2px;
|
784 |
-
}
|
785 |
-
|
786 |
-
/* Component containers
|
787 |
-
----------------------------------*/
|
788 |
-
.ui-widget {
|
789 |
-
font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
|
790 |
-
font-size: 1.1em;
|
791 |
-
}
|
792 |
-
.ui-widget .ui-widget {
|
793 |
-
font-size: 1em;
|
794 |
-
}
|
795 |
-
.ui-widget input,
|
796 |
-
.ui-widget select,
|
797 |
-
.ui-widget textarea,
|
798 |
-
.ui-widget button {
|
799 |
-
font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
|
800 |
-
font-size: 1em;
|
801 |
-
}
|
802 |
-
.ui-widget-content {
|
803 |
-
border: 1px solid #dddddd;
|
804 |
-
background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x;
|
805 |
-
color: #333333;
|
806 |
-
}
|
807 |
-
.ui-widget-content a {
|
808 |
-
color: #333333;
|
809 |
-
}
|
810 |
-
.ui-widget-header {
|
811 |
-
border: 1px solid #e78f08;
|
812 |
-
background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x;
|
813 |
-
color: #ffffff;
|
814 |
-
font-weight: bold;
|
815 |
-
}
|
816 |
-
.ui-widget-header a {
|
817 |
-
color: #ffffff;
|
818 |
-
}
|
819 |
-
|
820 |
-
/* Interaction states
|
821 |
-
----------------------------------*/
|
822 |
-
.ui-state-default,
|
823 |
-
.ui-widget-content .ui-state-default,
|
824 |
-
.ui-widget-header .ui-state-default {
|
825 |
-
border: 1px solid #cccccc;
|
826 |
-
background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
|
827 |
-
font-weight: bold;
|
828 |
-
color: #1c94c4;
|
829 |
-
}
|
830 |
-
.ui-state-default a,
|
831 |
-
.ui-state-default a:link,
|
832 |
-
.ui-state-default a:visited {
|
833 |
-
color: #1c94c4;
|
834 |
-
text-decoration: none;
|
835 |
-
}
|
836 |
-
.ui-state-hover,
|
837 |
-
.ui-widget-content .ui-state-hover,
|
838 |
-
.ui-widget-header .ui-state-hover,
|
839 |
-
.ui-state-focus,
|
840 |
-
.ui-widget-content .ui-state-focus,
|
841 |
-
.ui-widget-header .ui-state-focus {
|
842 |
-
border: 1px solid #fbcb09;
|
843 |
-
background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x;
|
844 |
-
font-weight: bold;
|
845 |
-
color: #c77405;
|
846 |
-
}
|
847 |
-
.ui-state-hover a,
|
848 |
-
.ui-state-hover a:hover,
|
849 |
-
.ui-state-hover a:link,
|
850 |
-
.ui-state-hover a:visited {
|
851 |
-
color: #c77405;
|
852 |
-
text-decoration: none;
|
853 |
-
}
|
854 |
-
.ui-state-active,
|
855 |
-
.ui-widget-content .ui-state-active,
|
856 |
-
.ui-widget-header .ui-state-active {
|
857 |
-
border: 1px solid #fbd850;
|
858 |
-
background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
|
859 |
-
font-weight: bold;
|
860 |
-
color: #eb8f00;
|
861 |
-
}
|
862 |
-
.ui-state-active a,
|
863 |
-
.ui-state-active a:link,
|
864 |
-
.ui-state-active a:visited {
|
865 |
-
color: #eb8f00;
|
866 |
-
text-decoration: none;
|
867 |
-
}
|
868 |
-
|
869 |
-
/* Interaction Cues
|
870 |
-
----------------------------------*/
|
871 |
-
.ui-state-highlight,
|
872 |
-
.ui-widget-content .ui-state-highlight,
|
873 |
-
.ui-widget-header .ui-state-highlight {
|
874 |
-
border: 1px solid #fed22f;
|
875 |
-
background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x;
|
876 |
-
color: #363636;
|
877 |
-
}
|
878 |
-
.ui-state-highlight a,
|
879 |
-
.ui-widget-content .ui-state-highlight a,
|
880 |
-
.ui-widget-header .ui-state-highlight a {
|
881 |
-
color: #363636;
|
882 |
-
}
|
883 |
-
.ui-state-error,
|
884 |
-
.ui-widget-content .ui-state-error,
|
885 |
-
.ui-widget-header .ui-state-error {
|
886 |
-
border: 1px solid #cd0a0a;
|
887 |
-
background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat;
|
888 |
-
color: #ffffff;
|
889 |
-
}
|
890 |
-
.ui-state-error a,
|
891 |
-
.ui-widget-content .ui-state-error a,
|
892 |
-
.ui-widget-header .ui-state-error a {
|
893 |
-
color: #ffffff;
|
894 |
-
}
|
895 |
-
.ui-state-error-text,
|
896 |
-
.ui-widget-content .ui-state-error-text,
|
897 |
-
.ui-widget-header .ui-state-error-text {
|
898 |
-
color: #ffffff;
|
899 |
-
}
|
900 |
-
.ui-priority-primary,
|
901 |
-
.ui-widget-content .ui-priority-primary,
|
902 |
-
.ui-widget-header .ui-priority-primary {
|
903 |
-
font-weight: bold;
|
904 |
-
}
|
905 |
-
.ui-priority-secondary,
|
906 |
-
.ui-widget-content .ui-priority-secondary,
|
907 |
-
.ui-widget-header .ui-priority-secondary {
|
908 |
-
opacity: .7;
|
909 |
-
filter:Alpha(Opacity=70);
|
910 |
-
font-weight: normal;
|
911 |
-
}
|
912 |
-
.ui-state-disabled,
|
913 |
-
.ui-widget-content .ui-state-disabled,
|
914 |
-
.ui-widget-header .ui-state-disabled {
|
915 |
-
opacity: .35;
|
916 |
-
filter:Alpha(Opacity=35);
|
917 |
-
background-image: none;
|
918 |
-
}
|
919 |
-
.ui-state-disabled .ui-icon {
|
920 |
-
filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
|
921 |
-
}
|
922 |
-
|
923 |
-
/* Icons
|
924 |
-
----------------------------------*/
|
925 |
-
|
926 |
-
/* states and images */
|
927 |
-
.ui-icon {
|
928 |
-
width: 16px;
|
929 |
-
height: 16px;
|
930 |
-
}
|
931 |
-
.ui-icon,
|
932 |
-
.ui-widget-content .ui-icon {
|
933 |
-
background-image: url(images/ui-icons_222222_256x240.png);
|
934 |
-
}
|
935 |
-
.ui-widget-header .ui-icon {
|
936 |
-
background-image: url(images/ui-icons_ffffff_256x240.png);
|
937 |
-
}
|
938 |
-
.ui-state-default .ui-icon {
|
939 |
-
background-image: url(images/ui-icons_ef8c08_256x240.png);
|
940 |
-
}
|
941 |
-
.ui-state-hover .ui-icon,
|
942 |
-
.ui-state-focus .ui-icon {
|
943 |
-
background-image: url(images/ui-icons_ef8c08_256x240.png);
|
944 |
-
}
|
945 |
-
.ui-state-active .ui-icon {
|
946 |
-
background-image: url(images/ui-icons_ef8c08_256x240.png);
|
947 |
-
}
|
948 |
-
.ui-state-highlight .ui-icon {
|
949 |
-
background-image: url(images/ui-icons_228ef1_256x240.png);
|
950 |
-
}
|
951 |
-
.ui-state-error .ui-icon,
|
952 |
-
.ui-state-error-text .ui-icon {
|
953 |
-
background-image: url(images/ui-icons_ffd27a_256x240.png);
|
954 |
-
}
|
955 |
-
|
956 |
-
/* positioning */
|
957 |
-
.ui-icon-blank { background-position: 16px 16px; }
|
958 |
-
.ui-icon-carat-1-n { background-position: 0 0; }
|
959 |
-
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
960 |
-
.ui-icon-carat-1-e { background-position: -32px 0; }
|
961 |
-
.ui-icon-carat-1-se { background-position: -48px 0; }
|
962 |
-
.ui-icon-carat-1-s { background-position: -64px 0; }
|
963 |
-
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
964 |
-
.ui-icon-carat-1-w { background-position: -96px 0; }
|
965 |
-
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
966 |
-
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
967 |
-
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
968 |
-
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
969 |
-
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
970 |
-
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
971 |
-
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
972 |
-
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
973 |
-
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
974 |
-
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
975 |
-
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
976 |
-
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
977 |
-
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
978 |
-
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
979 |
-
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
980 |
-
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
981 |
-
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
982 |
-
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
983 |
-
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
984 |
-
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
985 |
-
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
986 |
-
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
987 |
-
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
988 |
-
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
989 |
-
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
990 |
-
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
991 |
-
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
992 |
-
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
993 |
-
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
994 |
-
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
995 |
-
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
996 |
-
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
997 |
-
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
998 |
-
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
999 |
-
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
1000 |
-
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
1001 |
-
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
1002 |
-
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
1003 |
-
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
1004 |
-
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
1005 |
-
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
1006 |
-
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
1007 |
-
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
1008 |
-
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
1009 |
-
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
1010 |
-
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
1011 |
-
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
1012 |
-
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
1013 |
-
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
1014 |
-
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
1015 |
-
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
1016 |
-
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
1017 |
-
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
1018 |
-
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
1019 |
-
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
1020 |
-
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
1021 |
-
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
1022 |
-
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
1023 |
-
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
1024 |
-
.ui-icon-extlink { background-position: -32px -80px; }
|
1025 |
-
.ui-icon-newwin { background-position: -48px -80px; }
|
1026 |
-
.ui-icon-refresh { background-position: -64px -80px; }
|
1027 |
-
.ui-icon-shuffle { background-position: -80px -80px; }
|
1028 |
-
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
1029 |
-
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
1030 |
-
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
1031 |
-
.ui-icon-folder-open { background-position: -16px -96px; }
|
1032 |
-
.ui-icon-document { background-position: -32px -96px; }
|
1033 |
-
.ui-icon-document-b { background-position: -48px -96px; }
|
1034 |
-
.ui-icon-note { background-position: -64px -96px; }
|
1035 |
-
.ui-icon-mail-closed { background-position: -80px -96px; }
|
1036 |
-
.ui-icon-mail-open { background-position: -96px -96px; }
|
1037 |
-
.ui-icon-suitcase { background-position: -112px -96px; }
|
1038 |
-
.ui-icon-comment { background-position: -128px -96px; }
|
1039 |
-
.ui-icon-person { background-position: -144px -96px; }
|
1040 |
-
.ui-icon-print { background-position: -160px -96px; }
|
1041 |
-
.ui-icon-trash { background-position: -176px -96px; }
|
1042 |
-
.ui-icon-locked { background-position: -192px -96px; }
|
1043 |
-
.ui-icon-unlocked { background-position: -208px -96px; }
|
1044 |
-
.ui-icon-bookmark { background-position: -224px -96px; }
|
1045 |
-
.ui-icon-tag { background-position: -240px -96px; }
|
1046 |
-
.ui-icon-home { background-position: 0 -112px; }
|
1047 |
-
.ui-icon-flag { background-position: -16px -112px; }
|
1048 |
-
.ui-icon-calendar { background-position: -32px -112px; }
|
1049 |
-
.ui-icon-cart { background-position: -48px -112px; }
|
1050 |
-
.ui-icon-pencil { background-position: -64px -112px; }
|
1051 |
-
.ui-icon-clock { background-position: -80px -112px; }
|
1052 |
-
.ui-icon-disk { background-position: -96px -112px; }
|
1053 |
-
.ui-icon-calculator { background-position: -112px -112px; }
|
1054 |
-
.ui-icon-zoomin { background-position: -128px -112px; }
|
1055 |
-
.ui-icon-zoomout { background-position: -144px -112px; }
|
1056 |
-
.ui-icon-search { background-position: -160px -112px; }
|
1057 |
-
.ui-icon-wrench { background-position: -176px -112px; }
|
1058 |
-
.ui-icon-gear { background-position: -192px -112px; }
|
1059 |
-
.ui-icon-heart { background-position: -208px -112px; }
|
1060 |
-
.ui-icon-star { background-position: -224px -112px; }
|
1061 |
-
.ui-icon-link { background-position: -240px -112px; }
|
1062 |
-
.ui-icon-cancel { background-position: 0 -128px; }
|
1063 |
-
.ui-icon-plus { background-position: -16px -128px; }
|
1064 |
-
.ui-icon-plusthick { background-position: -32px -128px; }
|
1065 |
-
.ui-icon-minus { background-position: -48px -128px; }
|
1066 |
-
.ui-icon-minusthick { background-position: -64px -128px; }
|
1067 |
-
.ui-icon-close { background-position: -80px -128px; }
|
1068 |
-
.ui-icon-closethick { background-position: -96px -128px; }
|
1069 |
-
.ui-icon-key { background-position: -112px -128px; }
|
1070 |
-
.ui-icon-lightbulb { background-position: -128px -128px; }
|
1071 |
-
.ui-icon-scissors { background-position: -144px -128px; }
|
1072 |
-
.ui-icon-clipboard { background-position: -160px -128px; }
|
1073 |
-
.ui-icon-copy { background-position: -176px -128px; }
|
1074 |
-
.ui-icon-contact { background-position: -192px -128px; }
|
1075 |
-
.ui-icon-image { background-position: -208px -128px; }
|
1076 |
-
.ui-icon-video { background-position: -224px -128px; }
|
1077 |
-
.ui-icon-script { background-position: -240px -128px; }
|
1078 |
-
.ui-icon-alert { background-position: 0 -144px; }
|
1079 |
-
.ui-icon-info { background-position: -16px -144px; }
|
1080 |
-
.ui-icon-notice { background-position: -32px -144px; }
|
1081 |
-
.ui-icon-help { background-position: -48px -144px; }
|
1082 |
-
.ui-icon-check { background-position: -64px -144px; }
|
1083 |
-
.ui-icon-bullet { background-position: -80px -144px; }
|
1084 |
-
.ui-icon-radio-on { background-position: -96px -144px; }
|
1085 |
-
.ui-icon-radio-off { background-position: -112px -144px; }
|
1086 |
-
.ui-icon-pin-w { background-position: -128px -144px; }
|
1087 |
-
.ui-icon-pin-s { background-position: -144px -144px; }
|
1088 |
-
.ui-icon-play { background-position: 0 -160px; }
|
1089 |
-
.ui-icon-pause { background-position: -16px -160px; }
|
1090 |
-
.ui-icon-seek-next { background-position: -32px -160px; }
|
1091 |
-
.ui-icon-seek-prev { background-position: -48px -160px; }
|
1092 |
-
.ui-icon-seek-end { background-position: -64px -160px; }
|
1093 |
-
.ui-icon-seek-start { background-position: -80px -160px; }
|
1094 |
-
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
1095 |
-
.ui-icon-seek-first { background-position: -80px -160px; }
|
1096 |
-
.ui-icon-stop { background-position: -96px -160px; }
|
1097 |
-
.ui-icon-eject { background-position: -112px -160px; }
|
1098 |
-
.ui-icon-volume-off { background-position: -128px -160px; }
|
1099 |
-
.ui-icon-volume-on { background-position: -144px -160px; }
|
1100 |
-
.ui-icon-power { background-position: 0 -176px; }
|
1101 |
-
.ui-icon-signal-diag { background-position: -16px -176px; }
|
1102 |
-
.ui-icon-signal { background-position: -32px -176px; }
|
1103 |
-
.ui-icon-battery-0 { background-position: -48px -176px; }
|
1104 |
-
.ui-icon-battery-1 { background-position: -64px -176px; }
|
1105 |
-
.ui-icon-battery-2 { background-position: -80px -176px; }
|
1106 |
-
.ui-icon-battery-3 { background-position: -96px -176px; }
|
1107 |
-
.ui-icon-circle-plus { background-position: 0 -192px; }
|
1108 |
-
.ui-icon-circle-minus { background-position: -16px -192px; }
|
1109 |
-
.ui-icon-circle-close { background-position: -32px -192px; }
|
1110 |
-
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
1111 |
-
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
1112 |
-
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
1113 |
-
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
1114 |
-
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
1115 |
-
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
1116 |
-
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
1117 |
-
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
1118 |
-
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
1119 |
-
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
1120 |
-
.ui-icon-circle-check { background-position: -208px -192px; }
|
1121 |
-
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
1122 |
-
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
1123 |
-
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
1124 |
-
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
1125 |
-
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
1126 |
-
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
1127 |
-
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
1128 |
-
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
1129 |
-
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
1130 |
-
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
1131 |
-
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
1132 |
-
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
1133 |
-
|
1134 |
-
|
1135 |
-
/* Misc visuals
|
1136 |
-
----------------------------------*/
|
1137 |
-
|
1138 |
-
/* Corner radius */
|
1139 |
-
.ui-corner-all,
|
1140 |
-
.ui-corner-top,
|
1141 |
-
.ui-corner-left,
|
1142 |
-
.ui-corner-tl {
|
1143 |
-
border-top-left-radius: 4px;
|
1144 |
-
}
|
1145 |
-
.ui-corner-all,
|
1146 |
-
.ui-corner-top,
|
1147 |
-
.ui-corner-right,
|
1148 |
-
.ui-corner-tr {
|
1149 |
-
border-top-right-radius: 4px;
|
1150 |
-
}
|
1151 |
-
.ui-corner-all,
|
1152 |
-
.ui-corner-bottom,
|
1153 |
-
.ui-corner-left,
|
1154 |
-
.ui-corner-bl {
|
1155 |
-
border-bottom-left-radius: 4px;
|
1156 |
-
}
|
1157 |
-
.ui-corner-all,
|
1158 |
-
.ui-corner-bottom,
|
1159 |
-
.ui-corner-right,
|
1160 |
-
.ui-corner-br {
|
1161 |
-
border-bottom-right-radius: 4px;
|
1162 |
-
}
|
1163 |
-
|
1164 |
-
/* Overlays */
|
1165 |
-
.ui-widget-overlay {
|
1166 |
-
background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat;
|
1167 |
-
opacity: .5;
|
1168 |
-
filter: Alpha(Opacity=50);
|
1169 |
-
}
|
1170 |
-
.ui-widget-shadow {
|
1171 |
-
margin: -5px 0 0 -5px;
|
1172 |
-
padding: 5px;
|
1173 |
-
background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x;
|
1174 |
-
opacity: .2;
|
1175 |
-
filter: Alpha(Opacity=20);
|
1176 |
-
border-radius: 5px;
|
1177 |
-
}
|
1 |
+
/*! jQuery UI - v1.10.3 - 2013-10-19
|
2 |
+
* http://jqueryui.com
|
3 |
+
* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
|
4 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
5 |
+
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
6 |
+
|
7 |
+
/* Layout helpers
|
8 |
+
----------------------------------*/
|
9 |
+
.ui-helper-hidden {
|
10 |
+
display: none;
|
11 |
+
}
|
12 |
+
.ui-helper-hidden-accessible {
|
13 |
+
border: 0;
|
14 |
+
clip: rect(0 0 0 0);
|
15 |
+
height: 1px;
|
16 |
+
margin: -1px;
|
17 |
+
overflow: hidden;
|
18 |
+
padding: 0;
|
19 |
+
position: absolute;
|
20 |
+
width: 1px;
|
21 |
+
}
|
22 |
+
.ui-helper-reset {
|
23 |
+
margin: 0;
|
24 |
+
padding: 0;
|
25 |
+
border: 0;
|
26 |
+
outline: 0;
|
27 |
+
line-height: 1.3;
|
28 |
+
text-decoration: none;
|
29 |
+
font-size: 100%;
|
30 |
+
list-style: none;
|
31 |
+
}
|
32 |
+
.ui-helper-clearfix:before,
|
33 |
+
.ui-helper-clearfix:after {
|
34 |
+
content: "";
|
35 |
+
display: table;
|
36 |
+
border-collapse: collapse;
|
37 |
+
}
|
38 |
+
.ui-helper-clearfix:after {
|
39 |
+
clear: both;
|
40 |
+
}
|
41 |
+
.ui-helper-clearfix {
|
42 |
+
min-height: 0; /* support: IE7 */
|
43 |
+
}
|
44 |
+
.ui-helper-zfix {
|
45 |
+
width: 100%;
|
46 |
+
height: 100%;
|
47 |
+
top: 0;
|
48 |
+
left: 0;
|
49 |
+
position: absolute;
|
50 |
+
opacity: 0;
|
51 |
+
filter:Alpha(Opacity=0);
|
52 |
+
}
|
53 |
+
|
54 |
+
.ui-front {
|
55 |
+
z-index: 100;
|
56 |
+
}
|
57 |
+
|
58 |
+
|
59 |
+
/* Interaction Cues
|
60 |
+
----------------------------------*/
|
61 |
+
.ui-state-disabled {
|
62 |
+
cursor: default !important;
|
63 |
+
}
|
64 |
+
|
65 |
+
|
66 |
+
/* Icons
|
67 |
+
----------------------------------*/
|
68 |
+
|
69 |
+
/* states and images */
|
70 |
+
.ui-icon {
|
71 |
+
display: block;
|
72 |
+
text-indent: -99999px;
|
73 |
+
overflow: hidden;
|
74 |
+
background-repeat: no-repeat;
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
/* Misc visuals
|
79 |
+
----------------------------------*/
|
80 |
+
|
81 |
+
/* Overlays */
|
82 |
+
.ui-widget-overlay {
|
83 |
+
position: fixed;
|
84 |
+
top: 0;
|
85 |
+
left: 0;
|
86 |
+
width: 100%;
|
87 |
+
height: 100%;
|
88 |
+
}
|
89 |
+
.ui-resizable {
|
90 |
+
position: relative;
|
91 |
+
}
|
92 |
+
.ui-resizable-handle {
|
93 |
+
position: absolute;
|
94 |
+
font-size: 0.1px;
|
95 |
+
display: block;
|
96 |
+
}
|
97 |
+
.ui-resizable-disabled .ui-resizable-handle,
|
98 |
+
.ui-resizable-autohide .ui-resizable-handle {
|
99 |
+
display: none;
|
100 |
+
}
|
101 |
+
.ui-resizable-n {
|
102 |
+
cursor: n-resize;
|
103 |
+
height: 7px;
|
104 |
+
width: 100%;
|
105 |
+
top: -5px;
|
106 |
+
left: 0;
|
107 |
+
}
|
108 |
+
.ui-resizable-s {
|
109 |
+
cursor: s-resize;
|
110 |
+
height: 7px;
|
111 |
+
width: 100%;
|
112 |
+
bottom: -5px;
|
113 |
+
left: 0;
|
114 |
+
}
|
115 |
+
.ui-resizable-e {
|
116 |
+
cursor: e-resize;
|
117 |
+
width: 7px;
|
118 |
+
right: -5px;
|
119 |
+
top: 0;
|
120 |
+
height: 100%;
|
121 |
+
}
|
122 |
+
.ui-resizable-w {
|
123 |
+
cursor: w-resize;
|
124 |
+
width: 7px;
|
125 |
+
left: -5px;
|
126 |
+
top: 0;
|
127 |
+
height: 100%;
|
128 |
+
}
|
129 |
+
.ui-resizable-se {
|
130 |
+
cursor: se-resize;
|
131 |
+
width: 12px;
|
132 |
+
height: 12px;
|
133 |
+
right: 1px;
|
134 |
+
bottom: 1px;
|
135 |
+
}
|
136 |
+
.ui-resizable-sw {
|
137 |
+
cursor: sw-resize;
|
138 |
+
width: 9px;
|
139 |
+
height: 9px;
|
140 |
+
left: -5px;
|
141 |
+
bottom: -5px;
|
142 |
+
}
|
143 |
+
.ui-resizable-nw {
|
144 |
+
cursor: nw-resize;
|
145 |
+
width: 9px;
|
146 |
+
height: 9px;
|
147 |
+
left: -5px;
|
148 |
+
top: -5px;
|
149 |
+
}
|
150 |
+
.ui-resizable-ne {
|
151 |
+
cursor: ne-resize;
|
152 |
+
width: 9px;
|
153 |
+
height: 9px;
|
154 |
+
right: -5px;
|
155 |
+
top: -5px;
|
156 |
+
}
|
157 |
+
.ui-selectable-helper {
|
158 |
+
position: absolute;
|
159 |
+
z-index: 100;
|
160 |
+
border: 1px dotted black;
|
161 |
+
}
|
162 |
+
.ui-accordion .ui-accordion-header {
|
163 |
+
display: block;
|
164 |
+
cursor: pointer;
|
165 |
+
position: relative;
|
166 |
+
margin-top: 2px;
|
167 |
+
padding: .5em .5em .5em .7em;
|
168 |
+
min-height: 0; /* support: IE7 */
|
169 |
+
}
|
170 |
+
.ui-accordion .ui-accordion-icons {
|
171 |
+
padding-left: 2.2em;
|
172 |
+
}
|
173 |
+
.ui-accordion .ui-accordion-noicons {
|
174 |
+
padding-left: .7em;
|
175 |
+
}
|
176 |
+
.ui-accordion .ui-accordion-icons .ui-accordion-icons {
|
177 |
+
padding-left: 2.2em;
|
178 |
+
}
|
179 |
+
.ui-accordion .ui-accordion-header .ui-accordion-header-icon {
|
180 |
+
position: absolute;
|
181 |
+
left: .5em;
|
182 |
+
top: 50%;
|
183 |
+
margin-top: -8px;
|
184 |
+
}
|
185 |
+
.ui-accordion .ui-accordion-content {
|
186 |
+
padding: 1em 2.2em;
|
187 |
+
border-top: 0;
|
188 |
+
overflow: auto;
|
189 |
+
}
|
190 |
+
.ui-autocomplete {
|
191 |
+
position: absolute;
|
192 |
+
top: 0;
|
193 |
+
left: 0;
|
194 |
+
cursor: default;
|
195 |
+
}
|
196 |
+
.ui-button {
|
197 |
+
display: inline-block;
|
198 |
+
position: relative;
|
199 |
+
padding: 0;
|
200 |
+
line-height: normal;
|
201 |
+
margin-right: .1em;
|
202 |
+
cursor: pointer;
|
203 |
+
vertical-align: middle;
|
204 |
+
text-align: center;
|
205 |
+
overflow: visible; /* removes extra width in IE */
|
206 |
+
}
|
207 |
+
.ui-button,
|
208 |
+
.ui-button:link,
|
209 |
+
.ui-button:visited,
|
210 |
+
.ui-button:hover,
|
211 |
+
.ui-button:active {
|
212 |
+
text-decoration: none;
|
213 |
+
}
|
214 |
+
/* to make room for the icon, a width needs to be set here */
|
215 |
+
.ui-button-icon-only {
|
216 |
+
width: 2.2em;
|
217 |
+
}
|
218 |
+
/* button elements seem to need a little more width */
|
219 |
+
button.ui-button-icon-only {
|
220 |
+
width: 2.4em;
|
221 |
+
}
|
222 |
+
.ui-button-icons-only {
|
223 |
+
width: 3.4em;
|
224 |
+
}
|
225 |
+
button.ui-button-icons-only {
|
226 |
+
width: 3.7em;
|
227 |
+
}
|
228 |
+
|
229 |
+
/* button text element */
|
230 |
+
.ui-button .ui-button-text {
|
231 |
+
display: block;
|
232 |
+
line-height: normal;
|
233 |
+
}
|
234 |
+
.ui-button-text-only .ui-button-text {
|
235 |
+
padding: .4em 1em;
|
236 |
+
}
|
237 |
+
.ui-button-icon-only .ui-button-text,
|
238 |
+
.ui-button-icons-only .ui-button-text {
|
239 |
+
padding: .4em;
|
240 |
+
text-indent: -9999999px;
|
241 |
+
}
|
242 |
+
.ui-button-text-icon-primary .ui-button-text,
|
243 |
+
.ui-button-text-icons .ui-button-text {
|
244 |
+
padding: .4em 1em .4em 2.1em;
|
245 |
+
}
|
246 |
+
.ui-button-text-icon-secondary .ui-button-text,
|
247 |
+
.ui-button-text-icons .ui-button-text {
|
248 |
+
padding: .4em 2.1em .4em 1em;
|
249 |
+
}
|
250 |
+
.ui-button-text-icons .ui-button-text {
|
251 |
+
padding-left: 2.1em;
|
252 |
+
padding-right: 2.1em;
|
253 |
+
}
|
254 |
+
/* no icon support for input elements, provide padding by default */
|
255 |
+
input.ui-button {
|
256 |
+
padding: .4em 1em;
|
257 |
+
}
|
258 |
+
|
259 |
+
/* button icon element(s) */
|
260 |
+
.ui-button-icon-only .ui-icon,
|
261 |
+
.ui-button-text-icon-primary .ui-icon,
|
262 |
+
.ui-button-text-icon-secondary .ui-icon,
|
263 |
+
.ui-button-text-icons .ui-icon,
|
264 |
+
.ui-button-icons-only .ui-icon {
|
265 |
+
position: absolute;
|
266 |
+
top: 50%;
|
267 |
+
margin-top: -8px;
|
268 |
+
}
|
269 |
+
.ui-button-icon-only .ui-icon {
|
270 |
+
left: 50%;
|
271 |
+
margin-left: -8px;
|
272 |
+
}
|
273 |
+
.ui-button-text-icon-primary .ui-button-icon-primary,
|
274 |
+
.ui-button-text-icons .ui-button-icon-primary,
|
275 |
+
.ui-button-icons-only .ui-button-icon-primary {
|
276 |
+
left: .5em;
|
277 |
+
}
|
278 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary,
|
279 |
+
.ui-button-text-icons .ui-button-icon-secondary,
|
280 |
+
.ui-button-icons-only .ui-button-icon-secondary {
|
281 |
+
right: .5em;
|
282 |
+
}
|
283 |
+
|
284 |
+
/* button sets */
|
285 |
+
.ui-buttonset {
|
286 |
+
margin-right: 7px;
|
287 |
+
}
|
288 |
+
.ui-buttonset .ui-button {
|
289 |
+
margin-left: 0;
|
290 |
+
margin-right: -.3em;
|
291 |
+
}
|
292 |
+
|
293 |
+
/* workarounds */
|
294 |
+
/* reset extra padding in Firefox, see h5bp.com/l */
|
295 |
+
input.ui-button::-moz-focus-inner,
|
296 |
+
button.ui-button::-moz-focus-inner {
|
297 |
+
border: 0;
|
298 |
+
padding: 0;
|
299 |
+
}
|
300 |
+
.ui-datepicker {
|
301 |
+
width: 17em;
|
302 |
+
padding: .2em .2em 0;
|
303 |
+
display: none;
|
304 |
+
}
|
305 |
+
.ui-datepicker .ui-datepicker-header {
|
306 |
+
position: relative;
|
307 |
+
padding: .2em 0;
|
308 |
+
}
|
309 |
+
.ui-datepicker .ui-datepicker-prev,
|
310 |
+
.ui-datepicker .ui-datepicker-next {
|
311 |
+
position: absolute;
|
312 |
+
top: 2px;
|
313 |
+
width: 1.8em;
|
314 |
+
height: 1.8em;
|
315 |
+
}
|
316 |
+
.ui-datepicker .ui-datepicker-prev-hover,
|
317 |
+
.ui-datepicker .ui-datepicker-next-hover {
|
318 |
+
top: 1px;
|
319 |
+
}
|
320 |
+
.ui-datepicker .ui-datepicker-prev {
|
321 |
+
left: 2px;
|
322 |
+
}
|
323 |
+
.ui-datepicker .ui-datepicker-next {
|
324 |
+
right: 2px;
|
325 |
+
}
|
326 |
+
.ui-datepicker .ui-datepicker-prev-hover {
|
327 |
+
left: 1px;
|
328 |
+
}
|
329 |
+
.ui-datepicker .ui-datepicker-next-hover {
|
330 |
+
right: 1px;
|
331 |
+
}
|
332 |
+
.ui-datepicker .ui-datepicker-prev span,
|
333 |
+
.ui-datepicker .ui-datepicker-next span {
|
334 |
+
display: block;
|
335 |
+
position: absolute;
|
336 |
+
left: 50%;
|
337 |
+
margin-left: -8px;
|
338 |
+
top: 50%;
|
339 |
+
margin-top: -8px;
|
340 |
+
}
|
341 |
+
.ui-datepicker .ui-datepicker-title {
|
342 |
+
margin: 0 2.3em;
|
343 |
+
line-height: 1.8em;
|
344 |
+
text-align: center;
|
345 |
+
}
|
346 |
+
.ui-datepicker .ui-datepicker-title select {
|
347 |
+
font-size: 1em;
|
348 |
+
margin: 1px 0;
|
349 |
+
}
|
350 |
+
.ui-datepicker select.ui-datepicker-month-year {
|
351 |
+
width: 100%;
|
352 |
+
}
|
353 |
+
.ui-datepicker select.ui-datepicker-month,
|
354 |
+
.ui-datepicker select.ui-datepicker-year {
|
355 |
+
width: 49%;
|
356 |
+
}
|
357 |
+
.ui-datepicker table {
|
358 |
+
width: 100%;
|
359 |
+
font-size: .9em;
|
360 |
+
border-collapse: collapse;
|
361 |
+
margin: 0 0 .4em;
|
362 |
+
}
|
363 |
+
.ui-datepicker th {
|
364 |
+
padding: .7em .3em;
|
365 |
+
text-align: center;
|
366 |
+
font-weight: bold;
|
367 |
+
border: 0;
|
368 |
+
}
|
369 |
+
.ui-datepicker td {
|
370 |
+
border: 0;
|
371 |
+
padding: 1px;
|
372 |
+
}
|
373 |
+
.ui-datepicker td span,
|
374 |
+
.ui-datepicker td a {
|
375 |
+
display: block;
|
376 |
+
padding: .2em;
|
377 |
+
text-align: right;
|
378 |
+
text-decoration: none;
|
379 |
+
}
|
380 |
+
.ui-datepicker .ui-datepicker-buttonpane {
|
381 |
+
background-image: none;
|
382 |
+
margin: .7em 0 0 0;
|
383 |
+
padding: 0 .2em;
|
384 |
+
border-left: 0;
|
385 |
+
border-right: 0;
|
386 |
+
border-bottom: 0;
|
387 |
+
}
|
388 |
+
.ui-datepicker .ui-datepicker-buttonpane button {
|
389 |
+
float: right;
|
390 |
+
margin: .5em .2em .4em;
|
391 |
+
cursor: pointer;
|
392 |
+
padding: .2em .6em .3em .6em;
|
393 |
+
width: auto;
|
394 |
+
overflow: visible;
|
395 |
+
}
|
396 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
|
397 |
+
float: left;
|
398 |
+
}
|
399 |
+
|
400 |
+
/* with multiple calendars */
|
401 |
+
.ui-datepicker.ui-datepicker-multi {
|
402 |
+
width: auto;
|
403 |
+
}
|
404 |
+
.ui-datepicker-multi .ui-datepicker-group {
|
405 |
+
float: left;
|
406 |
+
}
|
407 |
+
.ui-datepicker-multi .ui-datepicker-group table {
|
408 |
+
width: 95%;
|
409 |
+
margin: 0 auto .4em;
|
410 |
+
}
|
411 |
+
.ui-datepicker-multi-2 .ui-datepicker-group {
|
412 |
+
width: 50%;
|
413 |
+
}
|
414 |
+
.ui-datepicker-multi-3 .ui-datepicker-group {
|
415 |
+
width: 33.3%;
|
416 |
+
}
|
417 |
+
.ui-datepicker-multi-4 .ui-datepicker-group {
|
418 |
+
width: 25%;
|
419 |
+
}
|
420 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
|
421 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
|
422 |
+
border-left-width: 0;
|
423 |
+
}
|
424 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane {
|
425 |
+
clear: left;
|
426 |
+
}
|
427 |
+
.ui-datepicker-row-break {
|
428 |
+
clear: both;
|
429 |
+
width: 100%;
|
430 |
+
font-size: 0;
|
431 |
+
}
|
432 |
+
|
433 |
+
/* RTL support */
|
434 |
+
.ui-datepicker-rtl {
|
435 |
+
direction: rtl;
|
436 |
+
}
|
437 |
+
.ui-datepicker-rtl .ui-datepicker-prev {
|
438 |
+
right: 2px;
|
439 |
+
left: auto;
|
440 |
+
}
|
441 |
+
.ui-datepicker-rtl .ui-datepicker-next {
|
442 |
+
left: 2px;
|
443 |
+
right: auto;
|
444 |
+
}
|
445 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover {
|
446 |
+
right: 1px;
|
447 |
+
left: auto;
|
448 |
+
}
|
449 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover {
|
450 |
+
left: 1px;
|
451 |
+
right: auto;
|
452 |
+
}
|
453 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane {
|
454 |
+
clear: right;
|
455 |
+
}
|
456 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
|
457 |
+
float: left;
|
458 |
+
}
|
459 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
|
460 |
+
.ui-datepicker-rtl .ui-datepicker-group {
|
461 |
+
float: right;
|
462 |
+
}
|
463 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
|
464 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
|
465 |
+
border-right-width: 0;
|
466 |
+
border-left-width: 1px;
|
467 |
+
}
|
468 |
+
.ui-dialog {
|
469 |
+
position: absolute;
|
470 |
+
top: 0;
|
471 |
+
left: 0;
|
472 |
+
padding: .2em;
|
473 |
+
outline: 0;
|
474 |
+
}
|
475 |
+
.ui-dialog .ui-dialog-titlebar {
|
476 |
+
padding: .4em 1em;
|
477 |
+
position: relative;
|
478 |
+
}
|
479 |
+
.ui-dialog .ui-dialog-title {
|
480 |
+
float: left;
|
481 |
+
margin: .1em 0;
|
482 |
+
white-space: nowrap;
|
483 |
+
width: 90%;
|
484 |
+
overflow: hidden;
|
485 |
+
text-overflow: ellipsis;
|
486 |
+
}
|
487 |
+
.ui-dialog .ui-dialog-titlebar-close {
|
488 |
+
position: absolute;
|
489 |
+
right: .3em;
|
490 |
+
top: 50%;
|
491 |
+
width: 21px;
|
492 |
+
margin: -10px 0 0 0;
|
493 |
+
padding: 1px;
|
494 |
+
height: 20px;
|
495 |
+
}
|
496 |
+
.ui-dialog .ui-dialog-content {
|
497 |
+
position: relative;
|
498 |
+
border: 0;
|
499 |
+
padding: .5em 1em;
|
500 |
+
background: none;
|
501 |
+
overflow: auto;
|
502 |
+
}
|
503 |
+
.ui-dialog .ui-dialog-buttonpane {
|
504 |
+
text-align: left;
|
505 |
+
border-width: 1px 0 0 0;
|
506 |
+
background-image: none;
|
507 |
+
margin-top: .5em;
|
508 |
+
padding: .3em 1em .5em .4em;
|
509 |
+
}
|
510 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
|
511 |
+
float: right;
|
512 |
+
}
|
513 |
+
.ui-dialog .ui-dialog-buttonpane button {
|
514 |
+
margin: .5em .4em .5em 0;
|
515 |
+
cursor: pointer;
|
516 |
+
}
|
517 |
+
.ui-dialog .ui-resizable-se {
|
518 |
+
width: 12px;
|
519 |
+
height: 12px;
|
520 |
+
right: -5px;
|
521 |
+
bottom: -5px;
|
522 |
+
background-position: 16px 16px;
|
523 |
+
}
|
524 |
+
.ui-draggable .ui-dialog-titlebar {
|
525 |
+
cursor: move;
|
526 |
+
}
|
527 |
+
.ui-menu {
|
528 |
+
list-style: none;
|
529 |
+
padding: 2px;
|
530 |
+
margin: 0;
|
531 |
+
display: block;
|
532 |
+
outline: none;
|
533 |
+
}
|
534 |
+
.ui-menu .ui-menu {
|
535 |
+
margin-top: -3px;
|
536 |
+
position: absolute;
|
537 |
+
}
|
538 |
+
.ui-menu .ui-menu-item {
|
539 |
+
margin: 0;
|
540 |
+
padding: 0;
|
541 |
+
width: 100%;
|
542 |
+
/* support: IE10, see #8844 */
|
543 |
+
list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
|
544 |
+
}
|
545 |
+
.ui-menu .ui-menu-divider {
|
546 |
+
margin: 5px -2px 5px -2px;
|
547 |
+
height: 0;
|
548 |
+
font-size: 0;
|
549 |
+
line-height: 0;
|
550 |
+
border-width: 1px 0 0 0;
|
551 |
+
}
|
552 |
+
.ui-menu .ui-menu-item a {
|
553 |
+
text-decoration: none;
|
554 |
+
display: block;
|
555 |
+
padding: 2px .4em;
|
556 |
+
line-height: 1.5;
|
557 |
+
min-height: 0; /* support: IE7 */
|
558 |
+
font-weight: normal;
|
559 |
+
}
|
560 |
+
.ui-menu .ui-menu-item a.ui-state-focus,
|
561 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
562 |
+
font-weight: normal;
|
563 |
+
margin: -1px;
|
564 |
+
}
|
565 |
+
|
566 |
+
.ui-menu .ui-state-disabled {
|
567 |
+
font-weight: normal;
|
568 |
+
margin: .4em 0 .2em;
|
569 |
+
line-height: 1.5;
|
570 |
+
}
|
571 |
+
.ui-menu .ui-state-disabled a {
|
572 |
+
cursor: default;
|
573 |
+
}
|
574 |
+
|
575 |
+
/* icon support */
|
576 |
+
.ui-menu-icons {
|
577 |
+
position: relative;
|
578 |
+
}
|
579 |
+
.ui-menu-icons .ui-menu-item a {
|
580 |
+
position: relative;
|
581 |
+
padding-left: 2em;
|
582 |
+
}
|
583 |
+
|
584 |
+
/* left-aligned */
|
585 |
+
.ui-menu .ui-icon {
|
586 |
+
position: absolute;
|
587 |
+
top: .2em;
|
588 |
+
left: .2em;
|
589 |
+
}
|
590 |
+
|
591 |
+
/* right-aligned */
|
592 |
+
.ui-menu .ui-menu-icon {
|
593 |
+
position: static;
|
594 |
+
float: right;
|
595 |
+
}
|
596 |
+
.ui-progressbar {
|
597 |
+
height: 2em;
|
598 |
+
text-align: left;
|
599 |
+
overflow: hidden;
|
600 |
+
}
|
601 |
+
.ui-progressbar .ui-progressbar-value {
|
602 |
+
margin: -1px;
|
603 |
+
height: 100%;
|
604 |
+
}
|
605 |
+
.ui-progressbar .ui-progressbar-overlay {
|
606 |
+
background: url("images/animated-overlay.gif");
|
607 |
+
height: 100%;
|
608 |
+
filter: alpha(opacity=25);
|
609 |
+
opacity: 0.25;
|
610 |
+
}
|
611 |
+
.ui-progressbar-indeterminate .ui-progressbar-value {
|
612 |
+
background-image: none;
|
613 |
+
}
|
614 |
+
.ui-slider {
|
615 |
+
position: relative;
|
616 |
+
text-align: left;
|
617 |
+
}
|
618 |
+
.ui-slider .ui-slider-handle {
|
619 |
+
position: absolute;
|
620 |
+
z-index: 2;
|
621 |
+
width: 1.2em;
|
622 |
+
height: 1.2em;
|
623 |
+
cursor: default;
|
624 |
+
}
|
625 |
+
.ui-slider .ui-slider-range {
|
626 |
+
position: absolute;
|
627 |
+
z-index: 1;
|
628 |
+
font-size: .7em;
|
629 |
+
display: block;
|
630 |
+
border: 0;
|
631 |
+
background-position: 0 0;
|
632 |
+
}
|
633 |
+
|
634 |
+
/* For IE8 - See #6727 */
|
635 |
+
.ui-slider.ui-state-disabled .ui-slider-handle,
|
636 |
+
.ui-slider.ui-state-disabled .ui-slider-range {
|
637 |
+
filter: inherit;
|
638 |
+
}
|
639 |
+
|
640 |
+
.ui-slider-horizontal {
|
641 |
+
height: .8em;
|
642 |
+
}
|
643 |
+
.ui-slider-horizontal .ui-slider-handle {
|
644 |
+
top: -.3em;
|
645 |
+
margin-left: -.6em;
|
646 |
+
}
|
647 |
+
.ui-slider-horizontal .ui-slider-range {
|
648 |
+
top: 0;
|
649 |
+
height: 100%;
|
650 |
+
}
|
651 |
+
.ui-slider-horizontal .ui-slider-range-min {
|
652 |
+
left: 0;
|
653 |
+
}
|
654 |
+
.ui-slider-horizontal .ui-slider-range-max {
|
655 |
+
right: 0;
|
656 |
+
}
|
657 |
+
|
658 |
+
.ui-slider-vertical {
|
659 |
+
width: .8em;
|
660 |
+
height: 100px;
|
661 |
+
}
|
662 |
+
.ui-slider-vertical .ui-slider-handle {
|
663 |
+
left: -.3em;
|
664 |
+
margin-left: 0;
|
665 |
+
margin-bottom: -.6em;
|
666 |
+
}
|
667 |
+
.ui-slider-vertical .ui-slider-range {
|
668 |
+
left: 0;
|
669 |
+
width: 100%;
|
670 |
+
}
|
671 |
+
.ui-slider-vertical .ui-slider-range-min {
|
672 |
+
bottom: 0;
|
673 |
+
}
|
674 |
+
.ui-slider-vertical .ui-slider-range-max {
|
675 |
+
top: 0;
|
676 |
+
}
|
677 |
+
.ui-spinner {
|
678 |
+
position: relative;
|
679 |
+
display: inline-block;
|
680 |
+
overflow: hidden;
|
681 |
+
padding: 0;
|
682 |
+
vertical-align: middle;
|
683 |
+
}
|
684 |
+
.ui-spinner-input {
|
685 |
+
border: none;
|
686 |
+
background: none;
|
687 |
+
color: inherit;
|
688 |
+
padding: 0;
|
689 |
+
margin: .2em 0;
|
690 |
+
vertical-align: middle;
|
691 |
+
margin-left: .4em;
|
692 |
+
margin-right: 22px;
|
693 |
+
}
|
694 |
+
.ui-spinner-button {
|
695 |
+
width: 16px;
|
696 |
+
height: 50%;
|
697 |
+
font-size: .5em;
|
698 |
+
padding: 0;
|
699 |
+
margin: 0;
|
700 |
+
text-align: center;
|
701 |
+
position: absolute;
|
702 |
+
cursor: default;
|
703 |
+
display: block;
|
704 |
+
overflow: hidden;
|
705 |
+
right: 0;
|
706 |
+
}
|
707 |
+
/* more specificity required here to overide default borders */
|
708 |
+
.ui-spinner a.ui-spinner-button {
|
709 |
+
border-top: none;
|
710 |
+
border-bottom: none;
|
711 |
+
border-right: none;
|
712 |
+
}
|
713 |
+
/* vertical centre icon */
|
714 |
+
.ui-spinner .ui-icon {
|
715 |
+
position: absolute;
|
716 |
+
margin-top: -8px;
|
717 |
+
top: 50%;
|
718 |
+
left: 0;
|
719 |
+
}
|
720 |
+
.ui-spinner-up {
|
721 |
+
top: 0;
|
722 |
+
}
|
723 |
+
.ui-spinner-down {
|
724 |
+
bottom: 0;
|
725 |
+
}
|
726 |
+
|
727 |
+
/* TR overrides */
|
728 |
+
.ui-spinner .ui-icon-triangle-1-s {
|
729 |
+
/* need to fix icons sprite */
|
730 |
+
background-position: -65px -16px;
|
731 |
+
}
|
732 |
+
.ui-tabs {
|
733 |
+
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
734 |
+
padding: .2em;
|
735 |
+
}
|
736 |
+
.ui-tabs .ui-tabs-nav {
|
737 |
+
margin: 0;
|
738 |
+
padding: .2em .2em 0;
|
739 |
+
}
|
740 |
+
.ui-tabs .ui-tabs-nav li {
|
741 |
+
list-style: none;
|
742 |
+
float: left;
|
743 |
+
position: relative;
|
744 |
+
top: 0;
|
745 |
+
margin: 1px .2em 0 0;
|
746 |
+
border-bottom-width: 0;
|
747 |
+
padding: 0;
|
748 |
+
white-space: nowrap;
|
749 |
+
}
|
750 |
+
.ui-tabs .ui-tabs-nav li a {
|
751 |
+
float: left;
|
752 |
+
padding: .5em 1em;
|
753 |
+
text-decoration: none;
|
754 |
+
}
|
755 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
756 |
+
margin-bottom: -1px;
|
757 |
+
padding-bottom: 1px;
|
758 |
+
}
|
759 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
|
760 |
+
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
761 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
|
762 |
+
cursor: text;
|
763 |
+
}
|
764 |
+
.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
765 |
+
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
|
766 |
+
cursor: pointer;
|
767 |
+
}
|
768 |
+
.ui-tabs .ui-tabs-panel {
|
769 |
+
display: block;
|
770 |
+
border-width: 0;
|
771 |
+
padding: 1em 1.4em;
|
772 |
+
background: none;
|
773 |
+
}
|
774 |
+
.ui-tooltip {
|
775 |
+
padding: 8px;
|
776 |
+
position: absolute;
|
777 |
+
z-index: 9999;
|
778 |
+
max-width: 300px;
|
779 |
+
-webkit-box-shadow: 0 0 5px #aaa;
|
780 |
+
box-shadow: 0 0 5px #aaa;
|
781 |
+
}
|
782 |
+
body .ui-tooltip {
|
783 |
+
border-width: 2px;
|
784 |
+
}
|
785 |
+
|
786 |
+
/* Component containers
|
787 |
+
----------------------------------*/
|
788 |
+
.ui-widget {
|
789 |
+
font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
|
790 |
+
font-size: 1.1em;
|
791 |
+
}
|
792 |
+
.ui-widget .ui-widget {
|
793 |
+
font-size: 1em;
|
794 |
+
}
|
795 |
+
.ui-widget input,
|
796 |
+
.ui-widget select,
|
797 |
+
.ui-widget textarea,
|
798 |
+
.ui-widget button {
|
799 |
+
font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
|
800 |
+
font-size: 1em;
|
801 |
+
}
|
802 |
+
.ui-widget-content {
|
803 |
+
border: 1px solid #dddddd;
|
804 |
+
background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x;
|
805 |
+
color: #333333;
|
806 |
+
}
|
807 |
+
.ui-widget-content a {
|
808 |
+
color: #333333;
|
809 |
+
}
|
810 |
+
.ui-widget-header {
|
811 |
+
border: 1px solid #e78f08;
|
812 |
+
background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x;
|
813 |
+
color: #ffffff;
|
814 |
+
font-weight: bold;
|
815 |
+
}
|
816 |
+
.ui-widget-header a {
|
817 |
+
color: #ffffff;
|
818 |
+
}
|
819 |
+
|
820 |
+
/* Interaction states
|
821 |
+
----------------------------------*/
|
822 |
+
.ui-state-default,
|
823 |
+
.ui-widget-content .ui-state-default,
|
824 |
+
.ui-widget-header .ui-state-default {
|
825 |
+
border: 1px solid #cccccc;
|
826 |
+
background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
|
827 |
+
font-weight: bold;
|
828 |
+
color: #1c94c4;
|
829 |
+
}
|
830 |
+
.ui-state-default a,
|
831 |
+
.ui-state-default a:link,
|
832 |
+
.ui-state-default a:visited {
|
833 |
+
color: #1c94c4;
|
834 |
+
text-decoration: none;
|
835 |
+
}
|
836 |
+
.ui-state-hover,
|
837 |
+
.ui-widget-content .ui-state-hover,
|
838 |
+
.ui-widget-header .ui-state-hover,
|
839 |
+
.ui-state-focus,
|
840 |
+
.ui-widget-content .ui-state-focus,
|
841 |
+
.ui-widget-header .ui-state-focus {
|
842 |
+
border: 1px solid #fbcb09;
|
843 |
+
background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x;
|
844 |
+
font-weight: bold;
|
845 |
+
color: #c77405;
|
846 |
+
}
|
847 |
+
.ui-state-hover a,
|
848 |
+
.ui-state-hover a:hover,
|
849 |
+
.ui-state-hover a:link,
|
850 |
+
.ui-state-hover a:visited {
|
851 |
+
color: #c77405;
|
852 |
+
text-decoration: none;
|
853 |
+
}
|
854 |
+
.ui-state-active,
|
855 |
+
.ui-widget-content .ui-state-active,
|
856 |
+
.ui-widget-header .ui-state-active {
|
857 |
+
border: 1px solid #fbd850;
|
858 |
+
background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
|
859 |
+
font-weight: bold;
|
860 |
+
color: #eb8f00;
|
861 |
+
}
|
862 |
+
.ui-state-active a,
|
863 |
+
.ui-state-active a:link,
|
864 |
+
.ui-state-active a:visited {
|
865 |
+
color: #eb8f00;
|
866 |
+
text-decoration: none;
|
867 |
+
}
|
868 |
+
|
869 |
+
/* Interaction Cues
|
870 |
+
----------------------------------*/
|
871 |
+
.ui-state-highlight,
|
872 |
+
.ui-widget-content .ui-state-highlight,
|
873 |
+
.ui-widget-header .ui-state-highlight {
|
874 |
+
border: 1px solid #fed22f;
|
875 |
+
background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x;
|
876 |
+
color: #363636;
|
877 |
+
}
|
878 |
+
.ui-state-highlight a,
|
879 |
+
.ui-widget-content .ui-state-highlight a,
|
880 |
+
.ui-widget-header .ui-state-highlight a {
|
881 |
+
color: #363636;
|
882 |
+
}
|
883 |
+
.ui-state-error,
|
884 |
+
.ui-widget-content .ui-state-error,
|
885 |
+
.ui-widget-header .ui-state-error {
|
886 |
+
border: 1px solid #cd0a0a;
|
887 |
+
background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat;
|
888 |
+
color: #ffffff;
|
889 |
+
}
|
890 |
+
.ui-state-error a,
|
891 |
+
.ui-widget-content .ui-state-error a,
|
892 |
+
.ui-widget-header .ui-state-error a {
|
893 |
+
color: #ffffff;
|
894 |
+
}
|
895 |
+
.ui-state-error-text,
|
896 |
+
.ui-widget-content .ui-state-error-text,
|
897 |
+
.ui-widget-header .ui-state-error-text {
|
898 |
+
color: #ffffff;
|
899 |
+
}
|
900 |
+
.ui-priority-primary,
|
901 |
+
.ui-widget-content .ui-priority-primary,
|
902 |
+
.ui-widget-header .ui-priority-primary {
|
903 |
+
font-weight: bold;
|
904 |
+
}
|
905 |
+
.ui-priority-secondary,
|
906 |
+
.ui-widget-content .ui-priority-secondary,
|
907 |
+
.ui-widget-header .ui-priority-secondary {
|
908 |
+
opacity: .7;
|
909 |
+
filter:Alpha(Opacity=70);
|
910 |
+
font-weight: normal;
|
911 |
+
}
|
912 |
+
.ui-state-disabled,
|
913 |
+
.ui-widget-content .ui-state-disabled,
|
914 |
+
.ui-widget-header .ui-state-disabled {
|
915 |
+
opacity: .35;
|
916 |
+
filter:Alpha(Opacity=35);
|
917 |
+
background-image: none;
|
918 |
+
}
|
919 |
+
.ui-state-disabled .ui-icon {
|
920 |
+
filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
|
921 |
+
}
|
922 |
+
|
923 |
+
/* Icons
|
924 |
+
----------------------------------*/
|
925 |
+
|
926 |
+
/* states and images */
|
927 |
+
.ui-icon {
|
928 |
+
width: 16px;
|
929 |
+
height: 16px;
|
930 |
+
}
|
931 |
+
.ui-icon,
|
932 |
+
.ui-widget-content .ui-icon {
|
933 |
+
background-image: url(images/ui-icons_222222_256x240.png);
|
934 |
+
}
|
935 |
+
.ui-widget-header .ui-icon {
|
936 |
+
background-image: url(images/ui-icons_ffffff_256x240.png);
|
937 |
+
}
|
938 |
+
.ui-state-default .ui-icon {
|
939 |
+
background-image: url(images/ui-icons_ef8c08_256x240.png);
|
940 |
+
}
|
941 |
+
.ui-state-hover .ui-icon,
|
942 |
+
.ui-state-focus .ui-icon {
|
943 |
+
background-image: url(images/ui-icons_ef8c08_256x240.png);
|
944 |
+
}
|
945 |
+
.ui-state-active .ui-icon {
|
946 |
+
background-image: url(images/ui-icons_ef8c08_256x240.png);
|
947 |
+
}
|
948 |
+
.ui-state-highlight .ui-icon {
|
949 |
+
background-image: url(images/ui-icons_228ef1_256x240.png);
|
950 |
+
}
|
951 |
+
.ui-state-error .ui-icon,
|
952 |
+
.ui-state-error-text .ui-icon {
|
953 |
+
background-image: url(images/ui-icons_ffd27a_256x240.png);
|
954 |
+
}
|
955 |
+
|
956 |
+
/* positioning */
|
957 |
+
.ui-icon-blank { background-position: 16px 16px; }
|
958 |
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
959 |
+
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
960 |
+
.ui-icon-carat-1-e { background-position: -32px 0; }
|
961 |
+
.ui-icon-carat-1-se { background-position: -48px 0; }
|
962 |
+
.ui-icon-carat-1-s { background-position: -64px 0; }
|
963 |
+
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
964 |
+
.ui-icon-carat-1-w { background-position: -96px 0; }
|
965 |
+
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
966 |
+
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
967 |
+
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
968 |
+
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
969 |
+
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
970 |
+
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
971 |
+
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
972 |
+
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
973 |
+
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
974 |
+
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
975 |
+
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
976 |
+
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
977 |
+
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
978 |
+
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
979 |
+
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
980 |
+
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
981 |
+
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
982 |
+
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
983 |
+
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
984 |
+
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
985 |
+
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
986 |
+
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
987 |
+
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
988 |
+
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
989 |
+
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
990 |
+
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
991 |
+
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
992 |
+
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
993 |
+
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
994 |
+
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
995 |
+
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
996 |
+
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
997 |
+
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
998 |
+
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
999 |
+
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
1000 |
+
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
1001 |
+
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
1002 |
+
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
1003 |
+
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
1004 |
+
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
1005 |
+
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
1006 |
+
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
1007 |
+
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
1008 |
+
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
1009 |
+
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
1010 |
+
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
1011 |
+
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
1012 |
+
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
1013 |
+
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
1014 |
+
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
1015 |
+
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
1016 |
+
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
1017 |
+
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
1018 |
+
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
1019 |
+
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
1020 |
+
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
1021 |
+
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
1022 |
+
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
1023 |
+
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
1024 |
+
.ui-icon-extlink { background-position: -32px -80px; }
|
1025 |
+
.ui-icon-newwin { background-position: -48px -80px; }
|
1026 |
+
.ui-icon-refresh { background-position: -64px -80px; }
|
1027 |
+
.ui-icon-shuffle { background-position: -80px -80px; }
|
1028 |
+
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
1029 |
+
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
1030 |
+
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
1031 |
+
.ui-icon-folder-open { background-position: -16px -96px; }
|
1032 |
+
.ui-icon-document { background-position: -32px -96px; }
|
1033 |
+
.ui-icon-document-b { background-position: -48px -96px; }
|
1034 |
+
.ui-icon-note { background-position: -64px -96px; }
|
1035 |
+
.ui-icon-mail-closed { background-position: -80px -96px; }
|
1036 |
+
.ui-icon-mail-open { background-position: -96px -96px; }
|
1037 |
+
.ui-icon-suitcase { background-position: -112px -96px; }
|
1038 |
+
.ui-icon-comment { background-position: -128px -96px; }
|
1039 |
+
.ui-icon-person { background-position: -144px -96px; }
|
1040 |
+
.ui-icon-print { background-position: -160px -96px; }
|
1041 |
+
.ui-icon-trash { background-position: -176px -96px; }
|
1042 |
+
.ui-icon-locked { background-position: -192px -96px; }
|
1043 |
+
.ui-icon-unlocked { background-position: -208px -96px; }
|
1044 |
+
.ui-icon-bookmark { background-position: -224px -96px; }
|
1045 |
+
.ui-icon-tag { background-position: -240px -96px; }
|
1046 |
+
.ui-icon-home { background-position: 0 -112px; }
|
1047 |
+
.ui-icon-flag { background-position: -16px -112px; }
|
1048 |
+
.ui-icon-calendar { background-position: -32px -112px; }
|
1049 |
+
.ui-icon-cart { background-position: -48px -112px; }
|
1050 |
+
.ui-icon-pencil { background-position: -64px -112px; }
|
1051 |
+
.ui-icon-clock { background-position: -80px -112px; }
|
1052 |
+
.ui-icon-disk { background-position: -96px -112px; }
|
1053 |
+
.ui-icon-calculator { background-position: -112px -112px; }
|
1054 |
+
.ui-icon-zoomin { background-position: -128px -112px; }
|
1055 |
+
.ui-icon-zoomout { background-position: -144px -112px; }
|
1056 |
+
.ui-icon-search { background-position: -160px -112px; }
|
1057 |
+
.ui-icon-wrench { background-position: -176px -112px; }
|
1058 |
+
.ui-icon-gear { background-position: -192px -112px; }
|
1059 |
+
.ui-icon-heart { background-position: -208px -112px; }
|
1060 |
+
.ui-icon-star { background-position: -224px -112px; }
|
1061 |
+
.ui-icon-link { background-position: -240px -112px; }
|
1062 |
+
.ui-icon-cancel { background-position: 0 -128px; }
|
1063 |
+
.ui-icon-plus { background-position: -16px -128px; }
|
1064 |
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
1065 |
+
.ui-icon-minus { background-position: -48px -128px; }
|
1066 |
+
.ui-icon-minusthick { background-position: -64px -128px; }
|
1067 |
+
.ui-icon-close { background-position: -80px -128px; }
|
1068 |
+
.ui-icon-closethick { background-position: -96px -128px; }
|
1069 |
+
.ui-icon-key { background-position: -112px -128px; }
|
1070 |
+
.ui-icon-lightbulb { background-position: -128px -128px; }
|
1071 |
+
.ui-icon-scissors { background-position: -144px -128px; }
|
1072 |
+
.ui-icon-clipboard { background-position: -160px -128px; }
|
1073 |
+
.ui-icon-copy { background-position: -176px -128px; }
|
1074 |
+
.ui-icon-contact { background-position: -192px -128px; }
|
1075 |
+
.ui-icon-image { background-position: -208px -128px; }
|
1076 |
+
.ui-icon-video { background-position: -224px -128px; }
|
1077 |
+
.ui-icon-script { background-position: -240px -128px; }
|
1078 |
+
.ui-icon-alert { background-position: 0 -144px; }
|
1079 |
+
.ui-icon-info { background-position: -16px -144px; }
|
1080 |
+
.ui-icon-notice { background-position: -32px -144px; }
|
1081 |
+
.ui-icon-help { background-position: -48px -144px; }
|
1082 |
+
.ui-icon-check { background-position: -64px -144px; }
|
1083 |
+
.ui-icon-bullet { background-position: -80px -144px; }
|
1084 |
+
.ui-icon-radio-on { background-position: -96px -144px; }
|
1085 |
+
.ui-icon-radio-off { background-position: -112px -144px; }
|
1086 |
+
.ui-icon-pin-w { background-position: -128px -144px; }
|
1087 |
+
.ui-icon-pin-s { background-position: -144px -144px; }
|
1088 |
+
.ui-icon-play { background-position: 0 -160px; }
|
1089 |
+
.ui-icon-pause { background-position: -16px -160px; }
|
1090 |
+
.ui-icon-seek-next { background-position: -32px -160px; }
|
1091 |
+
.ui-icon-seek-prev { background-position: -48px -160px; }
|
1092 |
+
.ui-icon-seek-end { background-position: -64px -160px; }
|
1093 |
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
1094 |
+
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
1095 |
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
1096 |
+
.ui-icon-stop { background-position: -96px -160px; }
|
1097 |
+
.ui-icon-eject { background-position: -112px -160px; }
|
1098 |
+
.ui-icon-volume-off { background-position: -128px -160px; }
|
1099 |
+
.ui-icon-volume-on { background-position: -144px -160px; }
|
1100 |
+
.ui-icon-power { background-position: 0 -176px; }
|
1101 |
+
.ui-icon-signal-diag { background-position: -16px -176px; }
|
1102 |
+
.ui-icon-signal { background-position: -32px -176px; }
|
1103 |
+
.ui-icon-battery-0 { background-position: -48px -176px; }
|
1104 |
+
.ui-icon-battery-1 { background-position: -64px -176px; }
|
1105 |
+
.ui-icon-battery-2 { background-position: -80px -176px; }
|
1106 |
+
.ui-icon-battery-3 { background-position: -96px -176px; }
|
1107 |
+
.ui-icon-circle-plus { background-position: 0 -192px; }
|
1108 |
+
.ui-icon-circle-minus { background-position: -16px -192px; }
|
1109 |
+
.ui-icon-circle-close { background-position: -32px -192px; }
|
1110 |
+
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
1111 |
+
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
1112 |
+
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
1113 |
+
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
1114 |
+
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
1115 |
+
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
1116 |
+
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
1117 |
+
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
1118 |
+
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
1119 |
+
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
1120 |
+
.ui-icon-circle-check { background-position: -208px -192px; }
|
1121 |
+
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
1122 |
+
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
1123 |
+
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
1124 |
+
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
1125 |
+
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
1126 |
+
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
1127 |
+
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
1128 |
+
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
1129 |
+
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
1130 |
+
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
1131 |
+
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
1132 |
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
1133 |
+
|
1134 |
+
|
1135 |
+
/* Misc visuals
|
1136 |
+
----------------------------------*/
|
1137 |
+
|
1138 |
+
/* Corner radius */
|
1139 |
+
.ui-corner-all,
|
1140 |
+
.ui-corner-top,
|
1141 |
+
.ui-corner-left,
|
1142 |
+
.ui-corner-tl {
|
1143 |
+
border-top-left-radius: 4px;
|
1144 |
+
}
|
1145 |
+
.ui-corner-all,
|
1146 |
+
.ui-corner-top,
|
1147 |
+
.ui-corner-right,
|
1148 |
+
.ui-corner-tr {
|
1149 |
+
border-top-right-radius: 4px;
|
1150 |
+
}
|
1151 |
+
.ui-corner-all,
|
1152 |
+
.ui-corner-bottom,
|
1153 |
+
.ui-corner-left,
|
1154 |
+
.ui-corner-bl {
|
1155 |
+
border-bottom-left-radius: 4px;
|
1156 |
+
}
|
1157 |
+
.ui-corner-all,
|
1158 |
+
.ui-corner-bottom,
|
1159 |
+
.ui-corner-right,
|
1160 |
+
.ui-corner-br {
|
1161 |
+
border-bottom-right-radius: 4px;
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
/* Overlays */
|
1165 |
+
.ui-widget-overlay {
|
1166 |
+
background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat;
|
1167 |
+
opacity: .5;
|
1168 |
+
filter: Alpha(Opacity=50);
|
1169 |
+
}
|
1170 |
+
.ui-widget-shadow {
|
1171 |
+
margin: -5px 0 0 -5px;
|
1172 |
+
padding: 5px;
|
1173 |
+
background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x;
|
1174 |
+
opacity: .2;
|
1175 |
+
filter: Alpha(Opacity=20);
|
1176 |
+
border-radius: 5px;
|
1177 |
+
}
|
css/notices.css
CHANGED
@@ -1,54 +1,54 @@
|
|
1 |
-
.wd-admin-notice {
|
2 |
-
background: #fff;
|
3 |
-
border: 4px;
|
4 |
-
display: block;
|
5 |
-
min-height: 68px;
|
6 |
-
padding: 10px 40px 10px 125px;
|
7 |
-
position: relative;
|
8 |
-
}
|
9 |
-
.wd-admin-notice a {
|
10 |
-
color: #10738B;
|
11 |
-
}
|
12 |
-
.contact_form_maker-notice-logo {
|
13 |
-
clear: both;
|
14 |
-
content: "";
|
15 |
-
display: block;
|
16 |
-
background-image: url("../images/notice.png");
|
17 |
-
background-size: 108px auto;
|
18 |
-
background-repeat: no-repeat;
|
19 |
-
background-position: 0 45%;
|
20 |
-
width: 125px;
|
21 |
-
position: absolute;
|
22 |
-
top: 0;
|
23 |
-
bottom: 0;
|
24 |
-
left: 5px;
|
25 |
-
}
|
26 |
-
.wd-admin-notice > .dashicons {
|
27 |
-
color: #424242;
|
28 |
-
position: absolute;
|
29 |
-
right: 20px;
|
30 |
-
top: 40%;
|
31 |
-
}
|
32 |
-
.wd-notice-title {
|
33 |
-
font-size: 24px;
|
34 |
-
margin: 0;
|
35 |
-
}
|
36 |
-
.wd-notice-body {
|
37 |
-
font-weight: normal;
|
38 |
-
margin: 5px 0;
|
39 |
-
}
|
40 |
-
.wd-notice-body:after {
|
41 |
-
clear: both;
|
42 |
-
content: "";
|
43 |
-
display: block;
|
44 |
-
}
|
45 |
-
.wd-notice-body li {
|
46 |
-
float: left;
|
47 |
-
margin-right: 20px;
|
48 |
-
}
|
49 |
-
.wd-notice-body .dashicons {
|
50 |
-
font-size: 17px;
|
51 |
-
}
|
52 |
-
.wd-blue {
|
53 |
-
color: #10738B;
|
54 |
}
|
1 |
+
.wd-admin-notice {
|
2 |
+
background: #fff;
|
3 |
+
border: 4px;
|
4 |
+
display: block;
|
5 |
+
min-height: 68px;
|
6 |
+
padding: 10px 40px 10px 125px;
|
7 |
+
position: relative;
|
8 |
+
}
|
9 |
+
.wd-admin-notice a {
|
10 |
+
color: #10738B;
|
11 |
+
}
|
12 |
+
.contact_form_maker-notice-logo {
|
13 |
+
clear: both;
|
14 |
+
content: "";
|
15 |
+
display: block;
|
16 |
+
background-image: url("../images/notice.png");
|
17 |
+
background-size: 108px auto;
|
18 |
+
background-repeat: no-repeat;
|
19 |
+
background-position: 0 45%;
|
20 |
+
width: 125px;
|
21 |
+
position: absolute;
|
22 |
+
top: 0;
|
23 |
+
bottom: 0;
|
24 |
+
left: 5px;
|
25 |
+
}
|
26 |
+
.wd-admin-notice > .dashicons {
|
27 |
+
color: #424242;
|
28 |
+
position: absolute;
|
29 |
+
right: 20px;
|
30 |
+
top: 40%;
|
31 |
+
}
|
32 |
+
.wd-notice-title {
|
33 |
+
font-size: 24px;
|
34 |
+
margin: 0;
|
35 |
+
}
|
36 |
+
.wd-notice-body {
|
37 |
+
font-weight: normal;
|
38 |
+
margin: 5px 0;
|
39 |
+
}
|
40 |
+
.wd-notice-body:after {
|
41 |
+
clear: both;
|
42 |
+
content: "";
|
43 |
+
display: block;
|
44 |
+
}
|
45 |
+
.wd-notice-body li {
|
46 |
+
float: left;
|
47 |
+
margin-right: 20px;
|
48 |
+
}
|
49 |
+
.wd-notice-body .dashicons {
|
50 |
+
font-size: 17px;
|
51 |
+
}
|
52 |
+
.wd-blue {
|
53 |
+
color: #10738B;
|
54 |
}
|
framework/WDW_CFM_Library.php
CHANGED
@@ -1,432 +1,432 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class WDW_CFM_Library {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
-
// Constructor & Destructor //
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
public function __construct() {
|
17 |
-
}
|
18 |
-
|
19 |
-
|
20 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
-
// Public Methods //
|
22 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
-
// Getters & Setters //
|
25 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
-
public static function get($key, $default_value = '') {
|
27 |
-
if (isset($_GET[$key])) {
|
28 |
-
$value = $_GET[$key];
|
29 |
-
}
|
30 |
-
elseif (isset($_POST[$key])) {
|
31 |
-
$value = $_POST[$key];
|
32 |
-
}
|
33 |
-
else {
|
34 |
-
$value = '';
|
35 |
-
}
|
36 |
-
if (!$value) {
|
37 |
-
$value = $default_value;
|
38 |
-
}
|
39 |
-
return esc_html($value);
|
40 |
-
}
|
41 |
-
|
42 |
-
public static function message_id($message_id) {
|
43 |
-
if ($message_id) {
|
44 |
-
switch($message_id) {
|
45 |
-
case 1: {
|
46 |
-
$message = __("Item Succesfully Saved.", "contact_form_maker");
|
47 |
-
$type = 'updated';
|
48 |
-
break;
|
49 |
-
|
50 |
-
}
|
51 |
-
case 2: {
|
52 |
-
$message = __("Error. Please install plugin again.", "contact_form_maker");
|
53 |
-
$type = 'error';
|
54 |
-
break;
|
55 |
-
|
56 |
-
}
|
57 |
-
case 3: {
|
58 |
-
$message = __("Item Succesfully Deleted.", "contact_form_maker");
|
59 |
-
$type = 'updated';
|
60 |
-
break;
|
61 |
-
|
62 |
-
}
|
63 |
-
case 4: {
|
64 |
-
$message = __("You can't delete default theme", "contact_form_maker");
|
65 |
-
$type = 'error';
|
66 |
-
break;
|
67 |
-
|
68 |
-
}
|
69 |
-
case 5: {
|
70 |
-
$message = __("Items Succesfully Deleted.", "contact_form_maker");
|
71 |
-
$type = 'updated';
|
72 |
-
break;
|
73 |
-
|
74 |
-
}
|
75 |
-
case 6: {
|
76 |
-
$message = __("You must select at least one item.", "contact_form_maker");
|
77 |
-
$type = 'error';
|
78 |
-
break;
|
79 |
-
|
80 |
-
}
|
81 |
-
case 7: {
|
82 |
-
$message = __("The item is successfully set as default.", "contact_form_maker");
|
83 |
-
$type = 'updated';
|
84 |
-
break;
|
85 |
-
|
86 |
-
}
|
87 |
-
case 8: {
|
88 |
-
$message = __("Options Succesfully Saved.", "contact_form_maker");
|
89 |
-
$type = 'updated';
|
90 |
-
break;
|
91 |
-
|
92 |
-
}
|
93 |
-
}
|
94 |
-
return '<div style="width: 99%;"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
|
95 |
-
}
|
96 |
-
}
|
97 |
-
|
98 |
-
public static function message($message, $type, $form_id = 0) {
|
99 |
-
return '<div style="width: 100%;" class="contactform' . $form_id . '"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
|
100 |
-
}
|
101 |
-
|
102 |
-
public static function search($search_by, $search_value, $form_id) {
|
103 |
-
?>
|
104 |
-
<div class="alignleft actions" style="clear:both;">
|
105 |
-
<script>
|
106 |
-
function spider_search() {
|
107 |
-
document.getElementById("page_number").value = "1";
|
108 |
-
document.getElementById("search_or_not").value = "search";
|
109 |
-
document.getElementById("<?php echo $form_id; ?>").submit();
|
110 |
-
}
|
111 |
-
function spider_reset() {
|
112 |
-
if (document.getElementById("search_value")) {
|
113 |
-
document.getElementById("search_value").value = "";
|
114 |
-
}
|
115 |
-
if (document.getElementById("search_select_value")) {
|
116 |
-
document.getElementById("search_select_value").value = 0;
|
117 |
-
}
|
118 |
-
document.getElementById("<?php echo $form_id; ?>").submit();
|
119 |
-
}
|
120 |
-
</script>
|
121 |
-
<div class="fm-search">
|
122 |
-
<label for="search_value"><?php echo $search_by; ?>:</label>
|
123 |
-
<input type="text" id="search_value" name="search_value" value="<?php echo esc_html($search_value); ?>"/>
|
124 |
-
<button class="fm-icon search-icon" onclick="spider_search()">
|
125 |
-
</button>
|
126 |
-
<button class="fm-icon reset-icon" onclick="spider_reset()">
|
127 |
-
</button>
|
128 |
-
</div>
|
129 |
-
</div>
|
130 |
-
<?php
|
131 |
-
}
|
132 |
-
|
133 |
-
public static function search_select($search_by, $search_select_value, $playlists, $form_id) {
|
134 |
-
?>
|
135 |
-
<div class="alignleft actions" style="clear:both;">
|
136 |
-
<script>
|
137 |
-
function spider_search_select() {
|
138 |
-
document.getElementById("page_number").value = "1";
|
139 |
-
document.getElementById("search_or_not").value = "search";
|
140 |
-
document.getElementById("<?php echo $form_id; ?>").submit();
|
141 |
-
}
|
142 |
-
</script>
|
143 |
-
<div class="alignleft actions" >
|
144 |
-
<label for="search_select_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
145 |
-
<select id="search_select_value" name="search_select_value" onchange="spider_search_select();" style="float: none; width: 150px;">
|
146 |
-
<?php
|
147 |
-
foreach ($playlists as $id => $playlist) {
|
148 |
-
?>
|
149 |
-
<option value="<?php echo $id; ?>" <?php echo (($search_select_value == $id) ? 'selected="selected"' : ''); ?>><?php echo $playlist; ?></option>
|
150 |
-
<?php
|
151 |
-
}
|
152 |
-
?>
|
153 |
-
</select>
|
154 |
-
</div>
|
155 |
-
</div>
|
156 |
-
<?php
|
157 |
-
}
|
158 |
-
|
159 |
-
public static function html_page_nav($count_items, $page_number, $form_id, $items_per_page = 20) {
|
160 |
-
$limit = 20;
|
161 |
-
if ($count_items) {
|
162 |
-
if ($count_items % $limit) {
|
163 |
-
$items_county = ($count_items - $count_items % $limit) / $limit + 1;
|
164 |
-
}
|
165 |
-
else {
|
166 |
-
$items_county = ($count_items - $count_items % $limit) / $limit;
|
167 |
-
}
|
168 |
-
}
|
169 |
-
else {
|
170 |
-
$items_county = 1;
|
171 |
-
}
|
172 |
-
?>
|
173 |
-
<script type="text/javascript">
|
174 |
-
var items_county = <?php echo $items_county; ?>;
|
175 |
-
function spider_page(x, y) {
|
176 |
-
switch (y) {
|
177 |
-
case 1:
|
178 |
-
if (x >= items_county) {
|
179 |
-
document.getElementById('page_number').value = items_county;
|
180 |
-
}
|
181 |
-
else {
|
182 |
-
document.getElementById('page_number').value = x + 1;
|
183 |
-
}
|
184 |
-
break;
|
185 |
-
case 2:
|
186 |
-
document.getElementById('page_number').value = items_county;
|
187 |
-
break;
|
188 |
-
case -1:
|
189 |
-
if (x == 1) {
|
190 |
-
document.getElementById('page_number').value = 1;
|
191 |
-
}
|
192 |
-
else {
|
193 |
-
document.getElementById('page_number').value = x - 1;
|
194 |
-
}
|
195 |
-
break;
|
196 |
-
case -2:
|
197 |
-
document.getElementById('page_number').value = 1;
|
198 |
-
break;
|
199 |
-
default:
|
200 |
-
document.getElementById('page_number').value = 1;
|
201 |
-
}
|
202 |
-
document.getElementById('<?php echo $form_id; ?>').submit();
|
203 |
-
}
|
204 |
-
function check_enter_key(e) {
|
205 |
-
var key_code = (e.keyCode ? e.keyCode : e.which);
|
206 |
-
if (key_code == 13) { /*Enter keycode*/
|
207 |
-
if (jQuery('#current_page').val() >= items_county) {
|
208 |
-
document.getElementById('page_number').value = items_county;
|
209 |
-
}
|
210 |
-
else {
|
211 |
-
document.getElementById('page_number').value = jQuery('#current_page').val();
|
212 |
-
}
|
213 |
-
document.getElementById('<?php echo $form_id; ?>').submit();
|
214 |
-
}
|
215 |
-
return true;
|
216 |
-
}
|
217 |
-
</script>
|
218 |
-
<div class="tablenav-pages">
|
219 |
-
<span class="displaying-num">
|
220 |
-
<?php
|
221 |
-
if ($count_items != 0) {
|
222 |
-
echo $count_items; ?> <?php echo (($count_items == 1) ? __("item", "contact_form_maker") : __("items", "contact_form_maker"));
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
</span>
|
226 |
-
<?php
|
227 |
-
if ($count_items > $items_per_page) {
|
228 |
-
$first_page = "first-page";
|
229 |
-
$prev_page = "prev-page";
|
230 |
-
$next_page = "next-page";
|
231 |
-
$last_page = "last-page";
|
232 |
-
if ($page_number == 1) {
|
233 |
-
$first_page = "first-page disabled";
|
234 |
-
$prev_page = "prev-page disabled";
|
235 |
-
$next_page = "next-page";
|
236 |
-
$last_page = "last-page";
|
237 |
-
}
|
238 |
-
if ($page_number >= $items_county) {
|
239 |
-
$first_page = "first-page ";
|
240 |
-
$prev_page = "prev-page";
|
241 |
-
$next_page = "next-page disabled";
|
242 |
-
$last_page = "last-page disabled";
|
243 |
-
}
|
244 |
-
?>
|
245 |
-
<span class="pagination-links">
|
246 |
-
<a class="<?php echo $first_page; ?>" title="<?php echo __("Go to the first page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,-2);">«</a>
|
247 |
-
<a class="<?php echo $prev_page; ?>" title="<?php echo __("Go to the previous page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,-1);">‹</a>
|
248 |
-
<span class="paging-input">
|
249 |
-
<span class="total-pages">
|
250 |
-
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="<?php echo __("Go to the page", "contact_form_maker"); ?>" type="text" size="1" />
|
251 |
-
</span> <?php echo __("of","contact_form_maker"); ?>
|
252 |
-
<span class="total-pages">
|
253 |
-
<?php echo $items_county; ?>
|
254 |
-
</span>
|
255 |
-
</span>
|
256 |
-
<a class="<?php echo $next_page ?>" title="<?php echo __("Go to the next page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,1);">›</a>
|
257 |
-
<a class="<?php echo $last_page ?>" title="<?php echo __("Go to the last page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,2);">»</a>
|
258 |
-
<?php
|
259 |
-
}
|
260 |
-
?>
|
261 |
-
</span>
|
262 |
-
</div>
|
263 |
-
<input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) $_POST['page_number'] : 1); ?>" />
|
264 |
-
<input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_html($_POST['search_or_not']) : ''); ?>"/>
|
265 |
-
<?php
|
266 |
-
}
|
267 |
-
|
268 |
-
public static function ajax_search($search_by, $search_value, $form_id) {
|
269 |
-
?>
|
270 |
-
<div class="alignleft actions" style="clear:both;">
|
271 |
-
<script>
|
272 |
-
function spider_search() {
|
273 |
-
document.getElementById("page_number").value = "1";
|
274 |
-
document.getElementById("search_or_not").value = "search";
|
275 |
-
spider_ajax_save('<?php echo $form_id; ?>');
|
276 |
-
}
|
277 |
-
function spider_reset() {
|
278 |
-
if (document.getElementById("search_value")) {
|
279 |
-
document.getElementById("search_value").value = "";
|
280 |
-
}
|
281 |
-
spider_ajax_save('<?php echo $form_id; ?>');
|
282 |
-
}
|
283 |
-
</script>
|
284 |
-
<div class="alignleft actions" style="">
|
285 |
-
<label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
286 |
-
<input type="text" id="search_value" name="search_value" class="spider_search_value" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
|
287 |
-
</div>
|
288 |
-
<div class="alignleft actions">
|
289 |
-
<input type="button" value="<?php echo __("Search", "contact_form_maker"); ?>" onclick="spider_search()" class="button-secondary action" />
|
290 |
-
<input type="button" value="<?php echo __("Reset", "contact_form_maker"); ?>" onclick="spider_reset()" class="button-secondary action" />
|
291 |
-
</div>
|
292 |
-
</div>
|
293 |
-
<?php
|
294 |
-
}
|
295 |
-
|
296 |
-
public static function ajax_html_page_nav($count_items, $page_number, $form_id) {
|
297 |
-
$limit = 20;
|
298 |
-
if ($count_items) {
|
299 |
-
if ($count_items % $limit) {
|
300 |
-
$items_county = ($count_items - $count_items % $limit) / $limit + 1;
|
301 |
-
}
|
302 |
-
else {
|
303 |
-
$items_county = ($count_items - $count_items % $limit) / $limit;
|
304 |
-
}
|
305 |
-
}
|
306 |
-
else {
|
307 |
-
$items_county = 1;
|
308 |
-
}
|
309 |
-
?>
|
310 |
-
<script type="text/javascript">
|
311 |
-
var items_county = <?php echo $items_county; ?>;
|
312 |
-
function spider_page(x, y) {
|
313 |
-
switch (y) {
|
314 |
-
case 1:
|
315 |
-
if (x >= items_county) {
|
316 |
-
document.getElementById('page_number').value = items_county;
|
317 |
-
}
|
318 |
-
else {
|
319 |
-
document.getElementById('page_number').value = x + 1;
|
320 |
-
}
|
321 |
-
break;
|
322 |
-
case 2:
|
323 |
-
document.getElementById('page_number').value = items_county;
|
324 |
-
break;
|
325 |
-
case -1:
|
326 |
-
if (x == 1) {
|
327 |
-
document.getElementById('page_number').value = 1;
|
328 |
-
}
|
329 |
-
else {
|
330 |
-
document.getElementById('page_number').value = x - 1;
|
331 |
-
}
|
332 |
-
break;
|
333 |
-
case -2:
|
334 |
-
document.getElementById('page_number').value = 1;
|
335 |
-
break;
|
336 |
-
default:
|
337 |
-
document.getElementById('page_number').value = 1;
|
338 |
-
}
|
339 |
-
spider_ajax_save('<?php echo $form_id; ?>');
|
340 |
-
}
|
341 |
-
function check_enter_key(e) {
|
342 |
-
var key_code = (e.keyCode ? e.keyCode : e.which);
|
343 |
-
if (key_code == 13) { /*Enter keycode*/
|
344 |
-
if (jQuery('#current_page').val() >= items_county) {
|
345 |
-
document.getElementById('page_number').value = items_county;
|
346 |
-
}
|
347 |
-
else {
|
348 |
-
document.getElementById('page_number').value = jQuery('#current_page').val();
|
349 |
-
}
|
350 |
-
spider_ajax_save('<?php echo $form_id; ?>');
|
351 |
-
return false;
|
352 |
-
}
|
353 |
-
return true;
|
354 |
-
}
|
355 |
-
</script>
|
356 |
-
<div id="tablenav-pages" class="tablenav-pages">
|
357 |
-
<span class="displaying-num">
|
358 |
-
<?php
|
359 |
-
if ($count_items != 0) {
|
360 |
-
echo $count_items; ?> <?php echo (($count_items == 1) ? __("item", "contact_form_maker") : __("items", "contact_form_maker"));
|
361 |
-
}
|
362 |
-
?>
|
363 |
-
</span>
|
364 |
-
<?php
|
365 |
-
if ($count_items > $limit) {
|
366 |
-
$first_page = "first-page";
|
367 |
-
$prev_page = "prev-page";
|
368 |
-
$next_page = "next-page";
|
369 |
-
$last_page = "last-page";
|
370 |
-
if ($page_number == 1) {
|
371 |
-
$first_page = "first-page disabled";
|
372 |
-
$prev_page = "prev-page disabled";
|
373 |
-
$next_page = "next-page";
|
374 |
-
$last_page = "last-page";
|
375 |
-
}
|
376 |
-
if ($page_number >= $items_county) {
|
377 |
-
$first_page = "first-page ";
|
378 |
-
$prev_page = "prev-page";
|
379 |
-
$next_page = "next-page disabled";
|
380 |
-
$last_page = "last-page disabled";
|
381 |
-
}
|
382 |
-
?>
|
383 |
-
<span class="pagination-links">
|
384 |
-
<a class="<?php echo $first_page; ?>" title="<?php echo __("Go to the first page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,-2)">«</a>
|
385 |
-
<a class="<?php echo $prev_page; ?>" title="<?php echo __("Go to the previous page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,-1)">‹</a>
|
386 |
-
<span class="paging-input">
|
387 |
-
<span class="total-pages">
|
388 |
-
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="<?php echo __("Go to the page", "contact_form_maker"); ?>" type="text" size="1" />
|
389 |
-
</span> <?php echo __("of","contact_form_maker"); ?>
|
390 |
-
<span class="total-pages">
|
391 |
-
<?php echo $items_county; ?>
|
392 |
-
</span>
|
393 |
-
</span>
|
394 |
-
<a class="<?php echo $next_page ?>" title="<?php echo __("Go to the next page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,1)">›</a>
|
395 |
-
<a class="<?php echo $last_page ?>" title="<?php echo __("Go to the last page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,2)">»</a>
|
396 |
-
<?php
|
397 |
-
}
|
398 |
-
?>
|
399 |
-
</span>
|
400 |
-
</div>
|
401 |
-
<input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) $_POST['page_number'] : 1); ?>" />
|
402 |
-
<input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_html($_POST['search_or_not']) : ''); ?>"/>
|
403 |
-
<?php
|
404 |
-
}
|
405 |
-
|
406 |
-
public static function spider_redirect($url) {
|
407 |
-
$url = html_entity_decode(wp_nonce_url($url, 'nonce_cfm', 'nonce_cfm'));
|
408 |
-
?>
|
409 |
-
<script>
|
410 |
-
window.location = "<?php echo $url; ?>";
|
411 |
-
</script>
|
412 |
-
<?php
|
413 |
-
exit();
|
414 |
-
}
|
415 |
-
|
416 |
-
public static function no_items($title) {
|
417 |
-
$title = ($title != '') ? strtolower($title) : 'items';
|
418 |
-
ob_start();
|
419 |
-
?>
|
420 |
-
<tr class="no-items">
|
421 |
-
<td class="colspanchange" colspan="0"><?php echo sprintf(__('No %s found.', 'wds'), $title); ?></td>
|
422 |
-
</tr>
|
423 |
-
<?php
|
424 |
-
return ob_get_clean();
|
425 |
-
}
|
426 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
427 |
-
// Private Methods //
|
428 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
429 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
430 |
-
// Listeners //
|
431 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
432 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WDW_CFM_Library {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
+
// Constructor & Destructor //
|
15 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
+
public function __construct() {
|
17 |
+
}
|
18 |
+
|
19 |
+
|
20 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
+
// Public Methods //
|
22 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
24 |
+
// Getters & Setters //
|
25 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
26 |
+
public static function get($key, $default_value = '') {
|
27 |
+
if (isset($_GET[$key])) {
|
28 |
+
$value = $_GET[$key];
|
29 |
+
}
|
30 |
+
elseif (isset($_POST[$key])) {
|
31 |
+
$value = $_POST[$key];
|
32 |
+
}
|
33 |
+
else {
|
34 |
+
$value = '';
|
35 |
+
}
|
36 |
+
if (!$value) {
|
37 |
+
$value = $default_value;
|
38 |
+
}
|
39 |
+
return esc_html($value);
|
40 |
+
}
|
41 |
+
|
42 |
+
public static function message_id($message_id) {
|
43 |
+
if ($message_id) {
|
44 |
+
switch($message_id) {
|
45 |
+
case 1: {
|
46 |
+
$message = __("Item Succesfully Saved.", "contact_form_maker");
|
47 |
+
$type = 'updated';
|
48 |
+
break;
|
49 |
+
|
50 |
+
}
|
51 |
+
case 2: {
|
52 |
+
$message = __("Error. Please install plugin again.", "contact_form_maker");
|
53 |
+
$type = 'error';
|
54 |
+
break;
|
55 |
+
|
56 |
+
}
|
57 |
+
case 3: {
|
58 |
+
$message = __("Item Succesfully Deleted.", "contact_form_maker");
|
59 |
+
$type = 'updated';
|
60 |
+
break;
|
61 |
+
|
62 |
+
}
|
63 |
+
case 4: {
|
64 |
+
$message = __("You can't delete default theme", "contact_form_maker");
|
65 |
+
$type = 'error';
|
66 |
+
break;
|
67 |
+
|
68 |
+
}
|
69 |
+
case 5: {
|
70 |
+
$message = __("Items Succesfully Deleted.", "contact_form_maker");
|
71 |
+
$type = 'updated';
|
72 |
+
break;
|
73 |
+
|
74 |
+
}
|
75 |
+
case 6: {
|
76 |
+
$message = __("You must select at least one item.", "contact_form_maker");
|
77 |
+
$type = 'error';
|
78 |
+
break;
|
79 |
+
|
80 |
+
}
|
81 |
+
case 7: {
|
82 |
+
$message = __("The item is successfully set as default.", "contact_form_maker");
|
83 |
+
$type = 'updated';
|
84 |
+
break;
|
85 |
+
|
86 |
+
}
|
87 |
+
case 8: {
|
88 |
+
$message = __("Options Succesfully Saved.", "contact_form_maker");
|
89 |
+
$type = 'updated';
|
90 |
+
break;
|
91 |
+
|
92 |
+
}
|
93 |
+
}
|
94 |
+
return '<div style="width: 99%;"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
+
public static function message($message, $type, $form_id = 0) {
|
99 |
+
return '<div style="width: 100%;" class="contactform' . $form_id . '"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
|
100 |
+
}
|
101 |
+
|
102 |
+
public static function search($search_by, $search_value, $form_id) {
|
103 |
+
?>
|
104 |
+
<div class="alignleft actions" style="clear:both;">
|
105 |
+
<script>
|
106 |
+
function spider_search() {
|
107 |
+
document.getElementById("page_number").value = "1";
|
108 |
+
document.getElementById("search_or_not").value = "search";
|
109 |
+
document.getElementById("<?php echo $form_id; ?>").submit();
|
110 |
+
}
|
111 |
+
function spider_reset() {
|
112 |
+
if (document.getElementById("search_value")) {
|
113 |
+
document.getElementById("search_value").value = "";
|
114 |
+
}
|
115 |
+
if (document.getElementById("search_select_value")) {
|
116 |
+
document.getElementById("search_select_value").value = 0;
|
117 |
+
}
|
118 |
+
document.getElementById("<?php echo $form_id; ?>").submit();
|
119 |
+
}
|
120 |
+
</script>
|
121 |
+
<div class="fm-search">
|
122 |
+
<label for="search_value"><?php echo $search_by; ?>:</label>
|
123 |
+
<input type="text" id="search_value" name="search_value" value="<?php echo esc_html($search_value); ?>"/>
|
124 |
+
<button class="fm-icon search-icon" onclick="spider_search()">
|
125 |
+
</button>
|
126 |
+
<button class="fm-icon reset-icon" onclick="spider_reset()">
|
127 |
+
</button>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
public static function search_select($search_by, $search_select_value, $playlists, $form_id) {
|
134 |
+
?>
|
135 |
+
<div class="alignleft actions" style="clear:both;">
|
136 |
+
<script>
|
137 |
+
function spider_search_select() {
|
138 |
+
document.getElementById("page_number").value = "1";
|
139 |
+
document.getElementById("search_or_not").value = "search";
|
140 |
+
document.getElementById("<?php echo $form_id; ?>").submit();
|
141 |
+
}
|
142 |
+
</script>
|
143 |
+
<div class="alignleft actions" >
|
144 |
+
<label for="search_select_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
145 |
+
<select id="search_select_value" name="search_select_value" onchange="spider_search_select();" style="float: none; width: 150px;">
|
146 |
+
<?php
|
147 |
+
foreach ($playlists as $id => $playlist) {
|
148 |
+
?>
|
149 |
+
<option value="<?php echo $id; ?>" <?php echo (($search_select_value == $id) ? 'selected="selected"' : ''); ?>><?php echo $playlist; ?></option>
|
150 |
+
<?php
|
151 |
+
}
|
152 |
+
?>
|
153 |
+
</select>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
<?php
|
157 |
+
}
|
158 |
+
|
159 |
+
public static function html_page_nav($count_items, $page_number, $form_id, $items_per_page = 20) {
|
160 |
+
$limit = 20;
|
161 |
+
if ($count_items) {
|
162 |
+
if ($count_items % $limit) {
|
163 |
+
$items_county = ($count_items - $count_items % $limit) / $limit + 1;
|
164 |
+
}
|
165 |
+
else {
|
166 |
+
$items_county = ($count_items - $count_items % $limit) / $limit;
|
167 |
+
}
|
168 |
+
}
|
169 |
+
else {
|
170 |
+
$items_county = 1;
|
171 |
+
}
|
172 |
+
?>
|
173 |
+
<script type="text/javascript">
|
174 |
+
var items_county = <?php echo $items_county; ?>;
|
175 |
+
function spider_page(x, y) {
|
176 |
+
switch (y) {
|
177 |
+
case 1:
|
178 |
+
if (x >= items_county) {
|
179 |
+
document.getElementById('page_number').value = items_county;
|
180 |
+
}
|
181 |
+
else {
|
182 |
+
document.getElementById('page_number').value = x + 1;
|
183 |
+
}
|
184 |
+
break;
|
185 |
+
case 2:
|
186 |
+
document.getElementById('page_number').value = items_county;
|
187 |
+
break;
|
188 |
+
case -1:
|
189 |
+
if (x == 1) {
|
190 |
+
document.getElementById('page_number').value = 1;
|
191 |
+
}
|
192 |
+
else {
|
193 |
+
document.getElementById('page_number').value = x - 1;
|
194 |
+
}
|
195 |
+
break;
|
196 |
+
case -2:
|
197 |
+
document.getElementById('page_number').value = 1;
|
198 |
+
break;
|
199 |
+
default:
|
200 |
+
document.getElementById('page_number').value = 1;
|
201 |
+
}
|
202 |
+
document.getElementById('<?php echo $form_id; ?>').submit();
|
203 |
+
}
|
204 |
+
function check_enter_key(e) {
|
205 |
+
var key_code = (e.keyCode ? e.keyCode : e.which);
|
206 |
+
if (key_code == 13) { /*Enter keycode*/
|
207 |
+
if (jQuery('#current_page').val() >= items_county) {
|
208 |
+
document.getElementById('page_number').value = items_county;
|
209 |
+
}
|
210 |
+
else {
|
211 |
+
document.getElementById('page_number').value = jQuery('#current_page').val();
|
212 |
+
}
|
213 |
+
document.getElementById('<?php echo $form_id; ?>').submit();
|
214 |
+
}
|
215 |
+
return true;
|
216 |
+
}
|
217 |
+
</script>
|
218 |
+
<div class="tablenav-pages">
|
219 |
+
<span class="displaying-num">
|
220 |
+
<?php
|
221 |
+
if ($count_items != 0) {
|
222 |
+
echo $count_items; ?> <?php echo (($count_items == 1) ? __("item", "contact_form_maker") : __("items", "contact_form_maker"));
|
223 |
+
}
|
224 |
+
?>
|
225 |
+
</span>
|
226 |
+
<?php
|
227 |
+
if ($count_items > $items_per_page) {
|
228 |
+
$first_page = "first-page";
|
229 |
+
$prev_page = "prev-page";
|
230 |
+
$next_page = "next-page";
|
231 |
+
$last_page = "last-page";
|
232 |
+
if ($page_number == 1) {
|
233 |
+
$first_page = "first-page disabled";
|
234 |
+
$prev_page = "prev-page disabled";
|
235 |
+
$next_page = "next-page";
|
236 |
+
$last_page = "last-page";
|
237 |
+
}
|
238 |
+
if ($page_number >= $items_county) {
|
239 |
+
$first_page = "first-page ";
|
240 |
+
$prev_page = "prev-page";
|
241 |
+
$next_page = "next-page disabled";
|
242 |
+
$last_page = "last-page disabled";
|
243 |
+
}
|
244 |
+
?>
|
245 |
+
<span class="pagination-links">
|
246 |
+
<a class="<?php echo $first_page; ?>" title="<?php echo __("Go to the first page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,-2);">«</a>
|
247 |
+
<a class="<?php echo $prev_page; ?>" title="<?php echo __("Go to the previous page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,-1);">‹</a>
|
248 |
+
<span class="paging-input">
|
249 |
+
<span class="total-pages">
|
250 |
+
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="<?php echo __("Go to the page", "contact_form_maker"); ?>" type="text" size="1" />
|
251 |
+
</span> <?php echo __("of","contact_form_maker"); ?>
|
252 |
+
<span class="total-pages">
|
253 |
+
<?php echo $items_county; ?>
|
254 |
+
</span>
|
255 |
+
</span>
|
256 |
+
<a class="<?php echo $next_page ?>" title="<?php echo __("Go to the next page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,1);">›</a>
|
257 |
+
<a class="<?php echo $last_page ?>" title="<?php echo __("Go to the last page", "contact_form_maker"); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,2);">»</a>
|
258 |
+
<?php
|
259 |
+
}
|
260 |
+
?>
|
261 |
+
</span>
|
262 |
+
</div>
|
263 |
+
<input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) $_POST['page_number'] : 1); ?>" />
|
264 |
+
<input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_html($_POST['search_or_not']) : ''); ?>"/>
|
265 |
+
<?php
|
266 |
+
}
|
267 |
+
|
268 |
+
public static function ajax_search($search_by, $search_value, $form_id) {
|
269 |
+
?>
|
270 |
+
<div class="alignleft actions" style="clear:both;">
|
271 |
+
<script>
|
272 |
+
function spider_search() {
|
273 |
+
document.getElementById("page_number").value = "1";
|
274 |
+
document.getElementById("search_or_not").value = "search";
|
275 |
+
spider_ajax_save('<?php echo $form_id; ?>');
|
276 |
+
}
|
277 |
+
function spider_reset() {
|
278 |
+
if (document.getElementById("search_value")) {
|
279 |
+
document.getElementById("search_value").value = "";
|
280 |
+
}
|
281 |
+
spider_ajax_save('<?php echo $form_id; ?>');
|
282 |
+
}
|
283 |
+
</script>
|
284 |
+
<div class="alignleft actions" style="">
|
285 |
+
<label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
|
286 |
+
<input type="text" id="search_value" name="search_value" class="spider_search_value" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
|
287 |
+
</div>
|
288 |
+
<div class="alignleft actions">
|
289 |
+
<input type="button" value="<?php echo __("Search", "contact_form_maker"); ?>" onclick="spider_search()" class="button-secondary action" />
|
290 |
+
<input type="button" value="<?php echo __("Reset", "contact_form_maker"); ?>" onclick="spider_reset()" class="button-secondary action" />
|
291 |
+
</div>
|
292 |
+
</div>
|
293 |
+
<?php
|
294 |
+
}
|
295 |
+
|
296 |
+
public static function ajax_html_page_nav($count_items, $page_number, $form_id) {
|
297 |
+
$limit = 20;
|
298 |
+
if ($count_items) {
|
299 |
+
if ($count_items % $limit) {
|
300 |
+
$items_county = ($count_items - $count_items % $limit) / $limit + 1;
|
301 |
+
}
|
302 |
+
else {
|
303 |
+
$items_county = ($count_items - $count_items % $limit) / $limit;
|
304 |
+
}
|
305 |
+
}
|
306 |
+
else {
|
307 |
+
$items_county = 1;
|
308 |
+
}
|
309 |
+
?>
|
310 |
+
<script type="text/javascript">
|
311 |
+
var items_county = <?php echo $items_county; ?>;
|
312 |
+
function spider_page(x, y) {
|
313 |
+
switch (y) {
|
314 |
+
case 1:
|
315 |
+
if (x >= items_county) {
|
316 |
+
document.getElementById('page_number').value = items_county;
|
317 |
+
}
|
318 |
+
else {
|
319 |
+
document.getElementById('page_number').value = x + 1;
|
320 |
+
}
|
321 |
+
break;
|
322 |
+
case 2:
|
323 |
+
document.getElementById('page_number').value = items_county;
|
324 |
+
break;
|
325 |
+
case -1:
|
326 |
+
if (x == 1) {
|
327 |
+
document.getElementById('page_number').value = 1;
|
328 |
+
}
|
329 |
+
else {
|
330 |
+
document.getElementById('page_number').value = x - 1;
|
331 |
+
}
|
332 |
+
break;
|
333 |
+
case -2:
|
334 |
+
document.getElementById('page_number').value = 1;
|
335 |
+
break;
|
336 |
+
default:
|
337 |
+
document.getElementById('page_number').value = 1;
|
338 |
+
}
|
339 |
+
spider_ajax_save('<?php echo $form_id; ?>');
|
340 |
+
}
|
341 |
+
function check_enter_key(e) {
|
342 |
+
var key_code = (e.keyCode ? e.keyCode : e.which);
|
343 |
+
if (key_code == 13) { /*Enter keycode*/
|
344 |
+
if (jQuery('#current_page').val() >= items_county) {
|
345 |
+
document.getElementById('page_number').value = items_county;
|
346 |
+
}
|
347 |
+
else {
|
348 |
+
document.getElementById('page_number').value = jQuery('#current_page').val();
|
349 |
+
}
|
350 |
+
spider_ajax_save('<?php echo $form_id; ?>');
|
351 |
+
return false;
|
352 |
+
}
|
353 |
+
return true;
|
354 |
+
}
|
355 |
+
</script>
|
356 |
+
<div id="tablenav-pages" class="tablenav-pages">
|
357 |
+
<span class="displaying-num">
|
358 |
+
<?php
|
359 |
+
if ($count_items != 0) {
|
360 |
+
echo $count_items; ?> <?php echo (($count_items == 1) ? __("item", "contact_form_maker") : __("items", "contact_form_maker"));
|
361 |
+
}
|
362 |
+
?>
|
363 |
+
</span>
|
364 |
+
<?php
|
365 |
+
if ($count_items > $limit) {
|
366 |
+
$first_page = "first-page";
|
367 |
+
$prev_page = "prev-page";
|
368 |
+
$next_page = "next-page";
|
369 |
+
$last_page = "last-page";
|
370 |
+
if ($page_number == 1) {
|
371 |
+
$first_page = "first-page disabled";
|
372 |
+
$prev_page = "prev-page disabled";
|
373 |
+
$next_page = "next-page";
|
374 |
+
$last_page = "last-page";
|
375 |
+
}
|
376 |
+
if ($page_number >= $items_county) {
|
377 |
+
$first_page = "first-page ";
|
378 |
+
$prev_page = "prev-page";
|
379 |
+
$next_page = "next-page disabled";
|
380 |
+
$last_page = "last-page disabled";
|
381 |
+
}
|
382 |
+
?>
|
383 |
+
<span class="pagination-links">
|
384 |
+
<a class="<?php echo $first_page; ?>" title="<?php echo __("Go to the first page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,-2)">«</a>
|
385 |
+
<a class="<?php echo $prev_page; ?>" title="<?php echo __("Go to the previous page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,-1)">‹</a>
|
386 |
+
<span class="paging-input">
|
387 |
+
<span class="total-pages">
|
388 |
+
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="<?php echo __("Go to the page", "contact_form_maker"); ?>" type="text" size="1" />
|
389 |
+
</span> <?php echo __("of","contact_form_maker"); ?>
|
390 |
+
<span class="total-pages">
|
391 |
+
<?php echo $items_county; ?>
|
392 |
+
</span>
|
393 |
+
</span>
|
394 |
+
<a class="<?php echo $next_page ?>" title="<?php echo __("Go to the next page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,1)">›</a>
|
395 |
+
<a class="<?php echo $last_page ?>" title="<?php echo __("Go to the last page", "contact_form_maker"); ?>" onclick="spider_page(<?php echo $page_number; ?>,2)">»</a>
|
396 |
+
<?php
|
397 |
+
}
|
398 |
+
?>
|
399 |
+
</span>
|
400 |
+
</div>
|
401 |
+
<input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) $_POST['page_number'] : 1); ?>" />
|
402 |
+
<input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_html($_POST['search_or_not']) : ''); ?>"/>
|
403 |
+
<?php
|
404 |
+
}
|
405 |
+
|
406 |
+
public static function spider_redirect($url) {
|
407 |
+
$url = html_entity_decode(wp_nonce_url($url, 'nonce_cfm', 'nonce_cfm'));
|
408 |
+
?>
|
409 |
+
<script>
|
410 |
+
window.location = "<?php echo $url; ?>";
|
411 |
+
</script>
|
412 |
+
<?php
|
413 |
+
exit();
|
414 |
+
}
|
415 |
+
|
416 |
+
public static function no_items($title) {
|
417 |
+
$title = ($title != '') ? strtolower($title) : 'items';
|
418 |
+
ob_start();
|
419 |
+
?>
|
420 |
+
<tr class="no-items">
|
421 |
+
<td class="colspanchange" colspan="0"><?php echo sprintf(__('No %s found.', 'wds'), $title); ?></td>
|
422 |
+
</tr>
|
423 |
+
<?php
|
424 |
+
return ob_get_clean();
|
425 |
+
}
|
426 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
427 |
+
// Private Methods //
|
428 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
429 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
430 |
+
// Listeners //
|
431 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
432 |
}
|
frontend/controllers/CFMControllerForm_maker.php
CHANGED
@@ -1,46 +1,46 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class CFMControllerForm_maker {
|
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($id) {
|
22 |
-
return $this->display($id);
|
23 |
-
}
|
24 |
-
|
25 |
-
public function display($id) {
|
26 |
-
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
27 |
-
@session_start();
|
28 |
-
}
|
29 |
-
require_once WD_CFM_DIR . "/frontend/models/CFMModelForm_maker.php";
|
30 |
-
$model = new CFMModelForm_maker();
|
31 |
-
|
32 |
-
require_once WD_CFM_DIR . "/frontend/views/CFMViewForm_maker.php";
|
33 |
-
$view = new CFMViewForm_maker($model);
|
34 |
-
|
35 |
-
return $view->display($id);
|
36 |
-
}
|
37 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
-
// Getters & Setters //
|
39 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
-
// Private Methods //
|
42 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
44 |
-
// Listeners //
|
45 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
46 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CFMControllerForm_maker {
|
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($id) {
|
22 |
+
return $this->display($id);
|
23 |
+
}
|
24 |
+
|
25 |
+
public function display($id) {
|
26 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
27 |
+
@session_start();
|
28 |
+
}
|
29 |
+
require_once WD_CFM_DIR . "/frontend/models/CFMModelForm_maker.php";
|
30 |
+
$model = new CFMModelForm_maker();
|
31 |
+
|
32 |
+
require_once WD_CFM_DIR . "/frontend/views/CFMViewForm_maker.php";
|
33 |
+
$view = new CFMViewForm_maker($model);
|
34 |
+
|
35 |
+
return $view->display($id);
|
36 |
+
}
|
37 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
+
// Getters & Setters //
|
39 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
+
// Private Methods //
|
42 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
44 |
+
// Listeners //
|
45 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
46 |
}
|
frontend/models/CFMModelForm_maker.php
CHANGED
@@ -64,6 +64,7 @@ class CFMModelForm_maker {
|
|
64 |
$fm_settings = get_option('cfm_settings');
|
65 |
$all_files = array();
|
66 |
$correct = FALSE;
|
|
|
67 |
$id_for_old = $id;
|
68 |
if (!$form->form_front) {
|
69 |
$id = '';
|
@@ -119,8 +120,14 @@ class CFMModelForm_maker {
|
|
119 |
}
|
120 |
}
|
121 |
else {
|
122 |
-
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
if ($correct) {
|
125 |
$ip = $_SERVER['REMOTE_ADDR'];
|
126 |
global $wpdb;
|
64 |
$fm_settings = get_option('cfm_settings');
|
65 |
$all_files = array();
|
66 |
$correct = FALSE;
|
67 |
+
$captcha_exist = isset($_POST["captcha_improve_".$id]) ? true : false;
|
68 |
$id_for_old = $id;
|
69 |
if (!$form->form_front) {
|
70 |
$id = '';
|
120 |
}
|
121 |
}
|
122 |
else {
|
123 |
+
if($captcha_exist && preg_match('(type_captcha|type_recaptcha)', $form -> label_order_current) === 1){
|
124 |
+
?>
|
125 |
+
<script>alert("<?php echo addslashes(__('Error, incorrect Security code.', 'contact_form_maker')); ?>");</script>
|
126 |
+
<?php
|
127 |
+
}
|
128 |
+
else
|
129 |
+
$correct = true;
|
130 |
+
}
|
131 |
if ($correct) {
|
132 |
$ip = $_SERVER['REMOTE_ADDR'];
|
133 |
global $wpdb;
|
frontend/views/CFMViewForm_maker.php
CHANGED
@@ -1054,6 +1054,9 @@ class CFMViewForm_maker {
|
|
1054 |
}
|
1055 |
}';
|
1056 |
$onload_js .= 'captcha_refresh("wd_captcha", "' . $form_id . '");';
|
|
|
|
|
|
|
1057 |
break;
|
1058 |
}
|
1059 |
case 'type_recaptcha': {
|
@@ -1076,6 +1079,9 @@ class CFMViewForm_maker {
|
|
1076 |
$publickey= isset($fm_settings['public_key']) ? $fm_settings['public_key'] : '0';
|
1077 |
|
1078 |
$rep =' <script src="https://www.google.com/recaptcha/api.js"></script><div type="type_recaptcha" class="wdform-field"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span></div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].';"><div class="g-recaptcha" data-sitekey="'.$publickey.'"></div></div></div>';
|
|
|
|
|
|
|
1079 |
break;
|
1080 |
}
|
1081 |
case 'type_map': {
|
1054 |
}
|
1055 |
}';
|
1056 |
$onload_js .= 'captcha_refresh("wd_captcha", "' . $form_id . '");';
|
1057 |
+
$onsubmit_js .= '
|
1058 |
+
jQuery("<input type=\"hidden\" name=\"captcha_improve_'.$form_id.'\" value = \"1\" />").appendTo("#contactform'.$form_id.'");
|
1059 |
+
';
|
1060 |
break;
|
1061 |
}
|
1062 |
case 'type_recaptcha': {
|
1079 |
$publickey= isset($fm_settings['public_key']) ? $fm_settings['public_key'] : '0';
|
1080 |
|
1081 |
$rep =' <script src="https://www.google.com/recaptcha/api.js"></script><div type="type_recaptcha" class="wdform-field"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span></div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].';"><div class="g-recaptcha" data-sitekey="'.$publickey.'"></div></div></div>';
|
1082 |
+
$onsubmit_js .= '
|
1083 |
+
jQuery("<input type=\"hidden\" name=\"captcha_improve_'.$form_id.'\" value = \"1\" />").appendTo("#contactform'.$form_id.'");
|
1084 |
+
';
|
1085 |
break;
|
1086 |
}
|
1087 |
case 'type_map': {
|
images/01/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/01/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/01/03/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/02/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/02/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/02/03/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/03/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/03/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/03/03/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/03/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/04/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/04/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/04/03/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/04/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/05/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/05/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/05/03/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/05/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/06/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/06/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/07/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/08/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/09/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/09/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/09/03/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/09/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/10/01/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/10/02/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/10/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
images/flags/index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!DOCTYPE html><title></title>
|
1 |
+
<!DOCTYPE html><title></title>
|
js/contact_form_maker_editor_button.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
-
(function() {
|
2 |
-
tinymce.create('tinymce.plugins.contact_form_maker_mce', {
|
3 |
-
init : function(ed, url) {
|
4 |
-
ed.addCommand('mceconact_Form_Maker_mce', function() {
|
5 |
-
ed.windowManager.open({
|
6 |
-
file : contact_form_maker_admin_ajax,
|
7 |
-
width : 400 + ed.getLang('contact_form_maker_mce.delta_width', 0),
|
8 |
-
height : 250 + ed.getLang('contact_form_maker_mce.delta_height', 0),
|
9 |
-
inline : 1
|
10 |
-
}, {
|
11 |
-
plugin_url : url /* Plugin absolute URL.*/
|
12 |
-
});
|
13 |
-
});
|
14 |
-
ed.addButton('contact_form_maker_mce', {
|
15 |
-
title : 'Insert Contact Form',
|
16 |
-
cmd : 'mceconact_Form_Maker_mce',
|
17 |
-
image: url + '/images/contact_form_maker_logo20.png'
|
18 |
-
});
|
19 |
-
}
|
20 |
-
});
|
21 |
-
tinymce.PluginManager.add('contact_form_maker_mce', tinymce.plugins.contact_form_maker_mce);
|
22 |
})();
|
1 |
+
(function() {
|
2 |
+
tinymce.create('tinymce.plugins.contact_form_maker_mce', {
|
3 |
+
init : function(ed, url) {
|
4 |
+
ed.addCommand('mceconact_Form_Maker_mce', function() {
|
5 |
+
ed.windowManager.open({
|
6 |
+
file : contact_form_maker_admin_ajax,
|
7 |
+
width : 400 + ed.getLang('contact_form_maker_mce.delta_width', 0),
|
8 |
+
height : 250 + ed.getLang('contact_form_maker_mce.delta_height', 0),
|
9 |
+
inline : 1
|
10 |
+
}, {
|
11 |
+
plugin_url : url /* Plugin absolute URL.*/
|
12 |
+
});
|
13 |
+
});
|
14 |
+
ed.addButton('contact_form_maker_mce', {
|
15 |
+
title : 'Insert Contact Form',
|
16 |
+
cmd : 'mceconact_Form_Maker_mce',
|
17 |
+
image: url + '/images/contact_form_maker_logo20.png'
|
18 |
+
});
|
19 |
+
}
|
20 |
+
});
|
21 |
+
tinymce.PluginManager.add('contact_form_maker_mce', tinymce.plugins.contact_form_maker_mce);
|
22 |
})();
|
js/if_gmap_front_end.js
CHANGED
@@ -1,177 +1,177 @@
|
|
1 |
-
/* Code based on Google Map APIv3 Tutorials */
|
2 |
-
|
3 |
-
|
4 |
-
var gmapdata= new Array();
|
5 |
-
var gmapmarker = new Array();
|
6 |
-
|
7 |
-
function if_gmap_init(id, form_id)
|
8 |
-
{
|
9 |
-
if(document.getElementById(id+"_element"+form_id)){
|
10 |
-
map=document.getElementById(id+"_element"+form_id);
|
11 |
-
var def_zoomval = parseInt(map.getAttribute("zoom"));
|
12 |
-
var def_longval = map.getAttribute("center_x");
|
13 |
-
var def_latval = map.getAttribute("center_y");
|
14 |
-
|
15 |
-
var curpoint = new google.maps.LatLng(def_latval,def_longval);
|
16 |
-
|
17 |
-
gmapdata[id] = new google.maps.Map(document.getElementById(id+"_element"+form_id), {
|
18 |
-
center: curpoint,
|
19 |
-
zoom: def_zoomval,
|
20 |
-
mapTypeId: 'roadmap'
|
21 |
-
});
|
22 |
-
|
23 |
-
gmapmarker[id] = new Array();
|
24 |
-
|
25 |
-
return false;
|
26 |
-
}
|
27 |
-
else
|
28 |
-
{
|
29 |
-
draggab=false;
|
30 |
-
map=document.getElementById(id);
|
31 |
-
var def_zoomval = parseInt(map.getAttribute("zoom"));
|
32 |
-
var def_longval = map.getAttribute("long");
|
33 |
-
var def_latval = map.getAttribute("lat");
|
34 |
-
|
35 |
-
var curpoint = new google.maps.LatLng(def_latval,def_longval);
|
36 |
-
|
37 |
-
gmapdata = new google.maps.Map(document.getElementById(id), {
|
38 |
-
center: curpoint,
|
39 |
-
zoom: def_zoomval,
|
40 |
-
mapTypeId: 'roadmap'
|
41 |
-
});
|
42 |
-
|
43 |
-
geocoder = new google.maps.Geocoder();
|
44 |
-
|
45 |
-
|
46 |
-
gmapmarker = new google.maps.Marker({
|
47 |
-
map: gmapdata,
|
48 |
-
position: curpoint,
|
49 |
-
draggable: draggab
|
50 |
-
});
|
51 |
-
gmapmarker.setDraggable(draggab);
|
52 |
-
infoW = new google.maps.InfoWindow;
|
53 |
-
|
54 |
-
google.maps.event.addListener(gmapdata, 'mouseover', function(event)
|
55 |
-
{
|
56 |
-
if(!document.getElementById("longval"))
|
57 |
-
gmapmarker.draggable=false;
|
58 |
-
});
|
59 |
-
|
60 |
-
google.maps.event.addListener(gmapdata, 'click', function(event) {
|
61 |
-
if(document.getElementById("longval"))
|
62 |
-
{
|
63 |
-
document.getElementById("longval").value = event.latLng.lng().toFixed(6);
|
64 |
-
document.getElementById("latval").value = event.latLng.lat().toFixed(6);
|
65 |
-
gmapmarker.setPosition(event.latLng);
|
66 |
-
if_gmap_updateMap();
|
67 |
-
|
68 |
-
geocoder.geocode({'latLng': gmapmarker.getPosition()}, function(results, status)
|
69 |
-
{
|
70 |
-
if (status == google.maps.GeocoderStatus.OK)
|
71 |
-
{
|
72 |
-
if (results[0])
|
73 |
-
{
|
74 |
-
|
75 |
-
if(document.getElementById("addrval")) document.getElementById("addrval").value = results[0].formatted_address;
|
76 |
-
}
|
77 |
-
}
|
78 |
-
});
|
79 |
-
}
|
80 |
-
|
81 |
-
});
|
82 |
-
|
83 |
-
google.maps.event.addListener(gmapmarker, 'drag', function() {
|
84 |
-
if(document.getElementById("longval"))
|
85 |
-
{
|
86 |
-
geocoder.geocode({'latLng': gmapmarker.getPosition()}, function(results, status)
|
87 |
-
{
|
88 |
-
if (status == google.maps.GeocoderStatus.OK)
|
89 |
-
{
|
90 |
-
if (results[0])
|
91 |
-
{
|
92 |
-
|
93 |
-
if(document.getElementById("addrval")) document.getElementById("addrval").value = results[0].formatted_address;
|
94 |
-
}
|
95 |
-
}
|
96 |
-
|
97 |
-
});
|
98 |
-
|
99 |
-
if_gmap_updateMap();
|
100 |
-
document.getElementById("latval").value = gmapmarker.getPosition().lat().toFixed(6);
|
101 |
-
document.getElementById("longval").value = gmapmarker.getPosition().lng().toFixed(6);
|
102 |
-
}
|
103 |
-
});
|
104 |
-
google.maps.event.addListener(gmapmarker, 'click', function() {
|
105 |
-
infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(id).getAttribute('info')+"</div>");
|
106 |
-
var infoWOpt = {
|
107 |
-
maxWidth: "300"
|
108 |
-
};
|
109 |
-
infoW.setOptions(infoWOpt);
|
110 |
-
infoW.open(this.getMap(), this);
|
111 |
-
});
|
112 |
-
|
113 |
-
if(document.getElementById("longval"))
|
114 |
-
{
|
115 |
-
document.getElementById("longval").value = def_longval;
|
116 |
-
document.getElementById("latval").value = def_latval;
|
117 |
-
|
118 |
-
geocoder.geocode({'latLng': gmapmarker.getPosition()}, function(results, status) {
|
119 |
-
if (status == google.maps.GeocoderStatus.OK) {
|
120 |
-
if (results[0]) {
|
121 |
-
|
122 |
-
if(document.getElementById("addrval")) document.getElementById("addrval").value = results[0].formatted_address;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
});
|
126 |
-
|
127 |
-
}
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
return false;
|
133 |
-
|
134 |
-
}
|
135 |
-
} // end of if_gmap_init
|
136 |
-
|
137 |
-
|
138 |
-
function add_marker_on_map(id, i, w_long, w_lat, w_info, form_id, dragb)
|
139 |
-
{
|
140 |
-
var marker_point = new google.maps.LatLng(w_lat, w_long);
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
gmapmarker[id][i] = new google.maps.Marker({
|
145 |
-
map: gmapdata[id],
|
146 |
-
position: marker_point,
|
147 |
-
draggable: dragb
|
148 |
-
});
|
149 |
-
|
150 |
-
gmapmarker[id][i].setDraggable(dragb);
|
151 |
-
|
152 |
-
if(dragb)
|
153 |
-
{
|
154 |
-
google.maps.event.addListener(gmapmarker[id][i], 'drag', function()
|
155 |
-
{
|
156 |
-
document.getElementById(id+"_lat"+form_id).value = gmapmarker[id][i].getPosition().lat().toFixed(6);
|
157 |
-
document.getElementById(id+"_long"+form_id).value = gmapmarker[id][i].getPosition().lng().toFixed(6);
|
158 |
-
});
|
159 |
-
}
|
160 |
-
|
161 |
-
infoW = new google.maps.InfoWindow;
|
162 |
-
|
163 |
-
google.maps.event.addListener(gmapmarker[id][i], 'click', function()
|
164 |
-
{
|
165 |
-
infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(id+"_element"+form_id).getAttribute('info'+i)+"</div>");
|
166 |
-
var infoWOpt = {
|
167 |
-
maxWidth: "300"
|
168 |
-
};
|
169 |
-
infoW.setOptions(infoWOpt);
|
170 |
-
infoW.open(this.getMap(), this);
|
171 |
-
});
|
172 |
-
|
173 |
-
return false;
|
174 |
-
|
175 |
-
|
176 |
-
} // end of if_gmap_init
|
177 |
-
|
1 |
+
/* Code based on Google Map APIv3 Tutorials */
|
2 |
+
|
3 |
+
|
4 |
+
var gmapdata= new Array();
|
5 |
+
var gmapmarker = new Array();
|
6 |
+
|
7 |
+
function if_gmap_init(id, form_id)
|
8 |
+
{
|
9 |
+
if(document.getElementById(id+"_element"+form_id)){
|
10 |
+
map=document.getElementById(id+"_element"+form_id);
|
11 |
+
var def_zoomval = parseInt(map.getAttribute("zoom"));
|
12 |
+
var def_longval = map.getAttribute("center_x");
|
13 |
+
var def_latval = map.getAttribute("center_y");
|
14 |
+
|
15 |
+
var curpoint = new google.maps.LatLng(def_latval,def_longval);
|
16 |
+
|
17 |
+
gmapdata[id] = new google.maps.Map(document.getElementById(id+"_element"+form_id), {
|
18 |
+
center: curpoint,
|
19 |
+
zoom: def_zoomval,
|
20 |
+
mapTypeId: 'roadmap'
|
21 |
+
});
|
22 |
+
|
23 |
+
gmapmarker[id] = new Array();
|
24 |
+
|
25 |
+
return false;
|
26 |
+
}
|
27 |
+
else
|
28 |
+
{
|
29 |
+
draggab=false;
|
30 |
+
map=document.getElementById(id);
|
31 |
+
var def_zoomval = parseInt(map.getAttribute("zoom"));
|
32 |
+
var def_longval = map.getAttribute("long");
|
33 |
+
var def_latval = map.getAttribute("lat");
|
34 |
+
|
35 |
+
var curpoint = new google.maps.LatLng(def_latval,def_longval);
|
36 |
+
|
37 |
+
gmapdata = new google.maps.Map(document.getElementById(id), {
|
38 |
+
center: curpoint,
|
39 |
+
zoom: def_zoomval,
|
40 |
+
mapTypeId: 'roadmap'
|
41 |
+
});
|
42 |
+
|
43 |
+
geocoder = new google.maps.Geocoder();
|
44 |
+
|
45 |
+
|
46 |
+
gmapmarker = new google.maps.Marker({
|
47 |
+
map: gmapdata,
|
48 |
+
position: curpoint,
|
49 |
+
draggable: draggab
|
50 |
+
});
|
51 |
+
gmapmarker.setDraggable(draggab);
|
52 |
+
infoW = new google.maps.InfoWindow;
|
53 |
+
|
54 |
+
google.maps.event.addListener(gmapdata, 'mouseover', function(event)
|
55 |
+
{
|
56 |
+
if(!document.getElementById("longval"))
|
57 |
+
gmapmarker.draggable=false;
|
58 |
+
});
|
59 |
+
|
60 |
+
google.maps.event.addListener(gmapdata, 'click', function(event) {
|
61 |
+
if(document.getElementById("longval"))
|
62 |
+
{
|
63 |
+
document.getElementById("longval").value = event.latLng.lng().toFixed(6);
|
64 |
+
document.getElementById("latval").value = event.latLng.lat().toFixed(6);
|
65 |
+
gmapmarker.setPosition(event.latLng);
|
66 |
+
if_gmap_updateMap();
|
67 |
+
|
68 |
+
geocoder.geocode({'latLng': gmapmarker.getPosition()}, function(results, status)
|
69 |
+
{
|
70 |
+
if (status == google.maps.GeocoderStatus.OK)
|
71 |
+
{
|
72 |
+
if (results[0])
|
73 |
+
{
|
74 |
+
|
75 |
+
if(document.getElementById("addrval")) document.getElementById("addrval").value = results[0].formatted_address;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
});
|
79 |
+
}
|
80 |
+
|
81 |
+
});
|
82 |
+
|
83 |
+
google.maps.event.addListener(gmapmarker, 'drag', function() {
|
84 |
+
if(document.getElementById("longval"))
|
85 |
+
{
|
86 |
+
geocoder.geocode({'latLng': gmapmarker.getPosition()}, function(results, status)
|
87 |
+
{
|
88 |
+
if (status == google.maps.GeocoderStatus.OK)
|
89 |
+
{
|
90 |
+
if (results[0])
|
91 |
+
{
|
92 |
+
|
93 |
+
if(document.getElementById("addrval")) document.getElementById("addrval").value = results[0].formatted_address;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
});
|
98 |
+
|
99 |
+
if_gmap_updateMap();
|
100 |
+
document.getElementById("latval").value = gmapmarker.getPosition().lat().toFixed(6);
|
101 |
+
document.getElementById("longval").value = gmapmarker.getPosition().lng().toFixed(6);
|
102 |
+
}
|
103 |
+
});
|
104 |
+
google.maps.event.addListener(gmapmarker, 'click', function() {
|
105 |
+
infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(id).getAttribute('info')+"</div>");
|
106 |
+
var infoWOpt = {
|
107 |
+
maxWidth: "300"
|
108 |
+
};
|
109 |
+
infoW.setOptions(infoWOpt);
|
110 |
+
infoW.open(this.getMap(), this);
|
111 |
+
});
|
112 |
+
|
113 |
+
if(document.getElementById("longval"))
|
114 |
+
{
|
115 |
+
document.getElementById("longval").value = def_longval;
|
116 |
+
document.getElementById("latval").value = def_latval;
|
117 |
+
|
118 |
+
geocoder.geocode({'latLng': gmapmarker.getPosition()}, function(results, status) {
|
119 |
+
if (status == google.maps.GeocoderStatus.OK) {
|
120 |
+
if (results[0]) {
|
121 |
+
|
122 |
+
if(document.getElementById("addrval")) document.getElementById("addrval").value = results[0].formatted_address;
|
123 |
+
}
|
124 |
+
}
|
125 |
+
});
|
126 |
+
|
127 |
+
}
|
128 |
+
|
129 |
+
|
130 |
+
|
131 |
+
|
132 |
+
return false;
|
133 |
+
|
134 |
+
}
|
135 |
+
} // end of if_gmap_init
|
136 |
+
|
137 |
+
|
138 |
+
function add_marker_on_map(id, i, w_long, w_lat, w_info, form_id, dragb)
|
139 |
+
{
|
140 |
+
var marker_point = new google.maps.LatLng(w_lat, w_long);
|
141 |
+
|
142 |
+
|
143 |
+
|
144 |
+
gmapmarker[id][i] = new google.maps.Marker({
|
145 |
+
map: gmapdata[id],
|
146 |
+
position: marker_point,
|
147 |
+
draggable: dragb
|
148 |
+
});
|
149 |
+
|
150 |
+
gmapmarker[id][i].setDraggable(dragb);
|
151 |
+
|
152 |
+
if(dragb)
|
153 |
+
{
|
154 |
+
google.maps.event.addListener(gmapmarker[id][i], 'drag', function()
|
155 |
+
{
|
156 |
+
document.getElementById(id+"_lat"+form_id).value = gmapmarker[id][i].getPosition().lat().toFixed(6);
|
157 |
+
document.getElementById(id+"_long"+form_id).value = gmapmarker[id][i].getPosition().lng().toFixed(6);
|
158 |
+
});
|
159 |
+
}
|
160 |
+
|
161 |
+
infoW = new google.maps.InfoWindow;
|
162 |
+
|
163 |
+
google.maps.event.addListener(gmapmarker[id][i], 'click', function()
|
164 |
+
{
|
165 |
+
infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(id+"_element"+form_id).getAttribute('info'+i)+"</div>");
|
166 |
+
var infoWOpt = {
|
167 |
+
maxWidth: "300"
|
168 |
+
};
|
169 |
+
infoW.setOptions(infoWOpt);
|
170 |
+
infoW.open(this.getMap(), this);
|
171 |
+
});
|
172 |
+
|
173 |
+
return false;
|
174 |
+
|
175 |
+
|
176 |
+
} // end of if_gmap_init
|
177 |
+
|
js/layout/clike.js
CHANGED
@@ -1,271 +1,271 @@
|
|
1 |
-
CodeMirror.defineMode("clike", function(config, parserConfig) {
|
2 |
-
var indentUnit = config.indentUnit,
|
3 |
-
keywords = parserConfig.keywords || {},
|
4 |
-
blockKeywords = parserConfig.blockKeywords || {},
|
5 |
-
atoms = parserConfig.atoms || {},
|
6 |
-
hooks = parserConfig.hooks || {},
|
7 |
-
multiLineStrings = parserConfig.multiLineStrings;
|
8 |
-
var isOperatorChar = /[+\-*&%=<>!?|\/]/;
|
9 |
-
|
10 |
-
var curPunc;
|
11 |
-
|
12 |
-
function tokenBase(stream, state) {
|
13 |
-
var ch = stream.next();
|
14 |
-
if (hooks[ch]) {
|
15 |
-
var result = hooks[ch](stream, state);
|
16 |
-
if (result !== false) return result;
|
17 |
-
}
|
18 |
-
if (ch == '"' || ch == "'") {
|
19 |
-
state.tokenize = tokenString(ch);
|
20 |
-
return state.tokenize(stream, state);
|
21 |
-
}
|
22 |
-
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
23 |
-
curPunc = ch;
|
24 |
-
return null;
|
25 |
-
}
|
26 |
-
if (/\d/.test(ch)) {
|
27 |
-
stream.eatWhile(/[\w\.]/);
|
28 |
-
return "number";
|
29 |
-
}
|
30 |
-
if (ch == "/") {
|
31 |
-
if (stream.eat("*")) {
|
32 |
-
state.tokenize = tokenComment;
|
33 |
-
return tokenComment(stream, state);
|
34 |
-
}
|
35 |
-
if (stream.eat("/")) {
|
36 |
-
stream.skipToEnd();
|
37 |
-
return "comment";
|
38 |
-
}
|
39 |
-
}
|
40 |
-
if (isOperatorChar.test(ch)) {
|
41 |
-
stream.eatWhile(isOperatorChar);
|
42 |
-
return "operator";
|
43 |
-
}
|
44 |
-
stream.eatWhile(/[\w\$_]/);
|
45 |
-
var cur = stream.current();
|
46 |
-
if (keywords.propertyIsEnumerable(cur)) {
|
47 |
-
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
48 |
-
return "keyword";
|
49 |
-
}
|
50 |
-
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
51 |
-
return "word";
|
52 |
-
}
|
53 |
-
|
54 |
-
function tokenString(quote) {
|
55 |
-
return function(stream, state) {
|
56 |
-
var escaped = false, next, end = false;
|
57 |
-
while ((next = stream.next()) != null) {
|
58 |
-
if (next == quote && !escaped) {end = true; break;}
|
59 |
-
escaped = !escaped && next == "\\";
|
60 |
-
}
|
61 |
-
if (end || !(escaped || multiLineStrings))
|
62 |
-
state.tokenize = null;
|
63 |
-
return "string";
|
64 |
-
};
|
65 |
-
}
|
66 |
-
|
67 |
-
function tokenComment(stream, state) {
|
68 |
-
var maybeEnd = false, ch;
|
69 |
-
while (ch = stream.next()) {
|
70 |
-
if (ch == "/" && maybeEnd) {
|
71 |
-
state.tokenize = null;
|
72 |
-
break;
|
73 |
-
}
|
74 |
-
maybeEnd = (ch == "*");
|
75 |
-
}
|
76 |
-
return "comment";
|
77 |
-
}
|
78 |
-
|
79 |
-
function Context(indented, column, type, align, prev) {
|
80 |
-
this.indented = indented;
|
81 |
-
this.column = column;
|
82 |
-
this.type = type;
|
83 |
-
this.align = align;
|
84 |
-
this.prev = prev;
|
85 |
-
}
|
86 |
-
function pushContext(state, col, type) {
|
87 |
-
return state.context = new Context(state.indented, col, type, null, state.context);
|
88 |
-
}
|
89 |
-
function popContext(state) {
|
90 |
-
var t = state.context.type;
|
91 |
-
if (t == ")" || t == "]" || t == "}")
|
92 |
-
state.indented = state.context.indented;
|
93 |
-
return state.context = state.context.prev;
|
94 |
-
}
|
95 |
-
|
96 |
-
// Interface
|
97 |
-
|
98 |
-
return {
|
99 |
-
startState: function(basecolumn) {
|
100 |
-
return {
|
101 |
-
tokenize: null,
|
102 |
-
context: new Context((basecolumn || 0) - indentUnit, 0, "top", false),
|
103 |
-
indented: 0,
|
104 |
-
startOfLine: true
|
105 |
-
};
|
106 |
-
},
|
107 |
-
|
108 |
-
token: function(stream, state) {
|
109 |
-
var ctx = state.context;
|
110 |
-
if (stream.sol()) {
|
111 |
-
if (ctx.align == null) ctx.align = false;
|
112 |
-
state.indented = stream.indentation();
|
113 |
-
state.startOfLine = true;
|
114 |
-
}
|
115 |
-
if (stream.eatSpace()) return null;
|
116 |
-
curPunc = null;
|
117 |
-
var style = (state.tokenize || tokenBase)(stream, state);
|
118 |
-
if (style == "comment" || style == "meta") return style;
|
119 |
-
if (ctx.align == null) ctx.align = true;
|
120 |
-
|
121 |
-
if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state);
|
122 |
-
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
123 |
-
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
124 |
-
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
125 |
-
else if (curPunc == "}") {
|
126 |
-
while (ctx.type == "statement") ctx = popContext(state);
|
127 |
-
if (ctx.type == "}") ctx = popContext(state);
|
128 |
-
while (ctx.type == "statement") ctx = popContext(state);
|
129 |
-
}
|
130 |
-
else if (curPunc == ctx.type) popContext(state);
|
131 |
-
else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement"))
|
132 |
-
pushContext(state, stream.column(), "statement");
|
133 |
-
state.startOfLine = false;
|
134 |
-
return style;
|
135 |
-
},
|
136 |
-
|
137 |
-
indent: function(state, textAfter) {
|
138 |
-
if (state.tokenize != tokenBase && state.tokenize != null) return 0;
|
139 |
-
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
140 |
-
if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
|
141 |
-
var closing = firstChar == ctx.type;
|
142 |
-
if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit);
|
143 |
-
else if (ctx.align) return ctx.column + (closing ? 0 : 1);
|
144 |
-
else return ctx.indented + (closing ? 0 : indentUnit);
|
145 |
-
},
|
146 |
-
|
147 |
-
electricChars: "{}"
|
148 |
-
};
|
149 |
-
});
|
150 |
-
|
151 |
-
(function() {
|
152 |
-
function words(str) {
|
153 |
-
var obj = {}, words = str.split(" ");
|
154 |
-
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
155 |
-
return obj;
|
156 |
-
}
|
157 |
-
var cKeywords = "auto if break int case long char register continue return default short do sizeof " +
|
158 |
-
"double static else struct entry switch extern typedef float union for unsigned " +
|
159 |
-
"goto while enum void const signed volatile";
|
160 |
-
|
161 |
-
function cppHook(stream, state) {
|
162 |
-
if (!state.startOfLine) return false;
|
163 |
-
stream.skipToEnd();
|
164 |
-
return "meta";
|
165 |
-
}
|
166 |
-
|
167 |
-
// C#-style strings where "" escapes a quote.
|
168 |
-
function tokenAtString(stream, state) {
|
169 |
-
var next;
|
170 |
-
while ((next = stream.next()) != null) {
|
171 |
-
if (next == '"' && !stream.eat('"')) {
|
172 |
-
state.tokenize = null;
|
173 |
-
break;
|
174 |
-
}
|
175 |
-
}
|
176 |
-
return "string";
|
177 |
-
}
|
178 |
-
|
179 |
-
CodeMirror.defineMIME("text/x-csrc", {
|
180 |
-
name: "clike",
|
181 |
-
keywords: words(cKeywords),
|
182 |
-
blockKeywords: words("case do else for if switch while struct"),
|
183 |
-
atoms: words("null"),
|
184 |
-
hooks: {"#": cppHook}
|
185 |
-
});
|
186 |
-
CodeMirror.defineMIME("text/x-c++src", {
|
187 |
-
name: "clike",
|
188 |
-
keywords: words(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " +
|
189 |
-
"static_cast typeid catch operator template typename class friend private " +
|
190 |
-
"this using const_cast inline public throw virtual delete mutable protected " +
|
191 |
-
"wchar_t"),
|
192 |
-
blockKeywords: words("catch class do else finally for if struct switch try while"),
|
193 |
-
atoms: words("true false null"),
|
194 |
-
hooks: {"#": cppHook}
|
195 |
-
});
|
196 |
-
CodeMirror.defineMIME("text/x-java", {
|
197 |
-
name: "clike",
|
198 |
-
keywords: words("abstract assert boolean break byte case catch char class const continue default " +
|
199 |
-
"do double else enum extends final finally float for goto if implements import " +
|
200 |
-
"instanceof int interface long native new package private protected public " +
|
201 |
-
"return short static strictfp super switch synchronized this throw throws transient " +
|
202 |
-
"try void volatile while"),
|
203 |
-
blockKeywords: words("catch class do else finally for if switch try while"),
|
204 |
-
atoms: words("true false null"),
|
205 |
-
hooks: {
|
206 |
-
"@": function(stream, state) {
|
207 |
-
stream.eatWhile(/[\w\$_]/);
|
208 |
-
return "meta";
|
209 |
-
}
|
210 |
-
}
|
211 |
-
});
|
212 |
-
CodeMirror.defineMIME("text/x-csharp", {
|
213 |
-
name: "clike",
|
214 |
-
keywords: words("abstract as base bool break byte case catch char checked class const continue decimal" +
|
215 |
-
" default delegate do double else enum event explicit extern finally fixed float for" +
|
216 |
-
" foreach goto if implicit in int interface internal is lock long namespace new object" +
|
217 |
-
" operator out override params private protected public readonly ref return sbyte sealed short" +
|
218 |
-
" sizeof stackalloc static string struct switch this throw try typeof uint ulong unchecked" +
|
219 |
-
" unsafe ushort using virtual void volatile while add alias ascending descending dynamic from get" +
|
220 |
-
" global group into join let orderby partial remove select set value var yield"),
|
221 |
-
blockKeywords: words("catch class do else finally for foreach if struct switch try while"),
|
222 |
-
atoms: words("true false null"),
|
223 |
-
hooks: {
|
224 |
-
"@": function(stream, state) {
|
225 |
-
if (stream.eat('"')) {
|
226 |
-
state.tokenize = tokenAtString;
|
227 |
-
return tokenAtString(stream, state);
|
228 |
-
}
|
229 |
-
stream.eatWhile(/[\w\$_]/);
|
230 |
-
return "meta";
|
231 |
-
}
|
232 |
-
}
|
233 |
-
});
|
234 |
-
CodeMirror.defineMIME("text/x-scala", {
|
235 |
-
name: "clike",
|
236 |
-
keywords: words(
|
237 |
-
|
238 |
-
/* scala */
|
239 |
-
"abstract case catch class def do else extends false final finally for forSome if " +
|
240 |
-
"implicit import lazy match new null object override package private protected return " +
|
241 |
-
"sealed super this throw trait try trye type val var while with yield _ : = => <- <: " +
|
242 |
-
"<% >: # @ " +
|
243 |
-
|
244 |
-
/* package scala */
|
245 |
-
"assert assume require print println printf readLine readBoolean readByte readShort " +
|
246 |
-
"readChar readInt readLong readFloat readDouble " +
|
247 |
-
|
248 |
-
"AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " +
|
249 |
-
"Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable " +
|
250 |
-
"Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " +
|
251 |
-
"Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " +
|
252 |
-
"StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: " +
|
253 |
-
|
254 |
-
/* package java.lang */
|
255 |
-
"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
|
256 |
-
"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
|
257 |
-
"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
|
258 |
-
"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
|
259 |
-
|
260 |
-
|
261 |
-
),
|
262 |
-
blockKeywords: words("catch class do else finally for forSome if match switch try while"),
|
263 |
-
atoms: words("true false null"),
|
264 |
-
hooks: {
|
265 |
-
"@": function(stream, state) {
|
266 |
-
stream.eatWhile(/[\w\$_]/);
|
267 |
-
return "meta";
|
268 |
-
}
|
269 |
-
}
|
270 |
-
});
|
271 |
-
}());
|
1 |
+
CodeMirror.defineMode("clike", function(config, parserConfig) {
|
2 |
+
var indentUnit = config.indentUnit,
|
3 |
+
keywords = parserConfig.keywords || {},
|
4 |
+
blockKeywords = parserConfig.blockKeywords || {},
|
5 |
+
atoms = parserConfig.atoms || {},
|
6 |
+
hooks = parserConfig.hooks || {},
|
7 |
+
multiLineStrings = parserConfig.multiLineStrings;
|
8 |
+
var isOperatorChar = /[+\-*&%=<>!?|\/]/;
|
9 |
+
|
10 |
+
var curPunc;
|
11 |
+
|
12 |
+
function tokenBase(stream, state) {
|
13 |
+
var ch = stream.next();
|
14 |
+
if (hooks[ch]) {
|
15 |
+
var result = hooks[ch](stream, state);
|
16 |
+
if (result !== false) return result;
|
17 |
+
}
|
18 |
+
if (ch == '"' || ch == "'") {
|
19 |
+
state.tokenize = tokenString(ch);
|
20 |
+
return state.tokenize(stream, state);
|
21 |
+
}
|
22 |
+
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
23 |
+
curPunc = ch;
|
24 |
+
return null;
|
25 |
+
}
|
26 |
+
if (/\d/.test(ch)) {
|
27 |
+
stream.eatWhile(/[\w\.]/);
|
28 |
+
return "number";
|
29 |
+
}
|
30 |
+
if (ch == "/") {
|
31 |
+
if (stream.eat("*")) {
|
32 |
+
state.tokenize = tokenComment;
|
33 |
+
return tokenComment(stream, state);
|
34 |
+
}
|
35 |
+
if (stream.eat("/")) {
|
36 |
+
stream.skipToEnd();
|
37 |
+
return "comment";
|
38 |
+
}
|
39 |
+
}
|
40 |
+
if (isOperatorChar.test(ch)) {
|
41 |
+
stream.eatWhile(isOperatorChar);
|
42 |
+
return "operator";
|
43 |
+
}
|
44 |
+
stream.eatWhile(/[\w\$_]/);
|
45 |
+
var cur = stream.current();
|
46 |
+
if (keywords.propertyIsEnumerable(cur)) {
|
47 |
+
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
48 |
+
return "keyword";
|
49 |
+
}
|
50 |
+
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
51 |
+
return "word";
|
52 |
+
}
|
53 |
+
|
54 |
+
function tokenString(quote) {
|
55 |
+
return function(stream, state) {
|
56 |
+
var escaped = false, next, end = false;
|
57 |
+
while ((next = stream.next()) != null) {
|
58 |
+
if (next == quote && !escaped) {end = true; break;}
|
59 |
+
escaped = !escaped && next == "\\";
|
60 |
+
}
|
61 |
+
if (end || !(escaped || multiLineStrings))
|
62 |
+
state.tokenize = null;
|
63 |
+
return "string";
|
64 |
+
};
|
65 |
+
}
|
66 |
+
|
67 |
+
function tokenComment(stream, state) {
|
68 |
+
var maybeEnd = false, ch;
|
69 |
+
while (ch = stream.next()) {
|
70 |
+
if (ch == "/" && maybeEnd) {
|
71 |
+
state.tokenize = null;
|
72 |
+
break;
|
73 |
+
}
|
74 |
+
maybeEnd = (ch == "*");
|
75 |
+
}
|
76 |
+
return "comment";
|
77 |
+
}
|
78 |
+
|
79 |
+
function Context(indented, column, type, align, prev) {
|
80 |
+
this.indented = indented;
|
81 |
+
this.column = column;
|
82 |
+
this.type = type;
|
83 |
+
this.align = align;
|
84 |
+
this.prev = prev;
|
85 |
+
}
|
86 |
+
function pushContext(state, col, type) {
|
87 |
+
return state.context = new Context(state.indented, col, type, null, state.context);
|
88 |
+
}
|
89 |
+
function popContext(state) {
|
90 |
+
var t = state.context.type;
|
91 |
+
if (t == ")" || t == "]" || t == "}")
|
92 |
+
state.indented = state.context.indented;
|
93 |
+
return state.context = state.context.prev;
|
94 |
+
}
|
95 |
+
|
96 |
+
// Interface
|
97 |
+
|
98 |
+
return {
|
99 |
+
startState: function(basecolumn) {
|
100 |
+
return {
|
101 |
+
tokenize: null,
|
102 |
+
context: new Context((basecolumn || 0) - indentUnit, 0, "top", false),
|
103 |
+
indented: 0,
|
104 |
+
startOfLine: true
|
105 |
+
};
|
106 |
+
},
|
107 |
+
|
108 |
+
token: function(stream, state) {
|
109 |
+
var ctx = state.context;
|
110 |
+
if (stream.sol()) {
|
111 |
+
if (ctx.align == null) ctx.align = false;
|
112 |
+
state.indented = stream.indentation();
|
113 |
+
state.startOfLine = true;
|
114 |
+
}
|
115 |
+
if (stream.eatSpace()) return null;
|
116 |
+
curPunc = null;
|
117 |
+
var style = (state.tokenize || tokenBase)(stream, state);
|
118 |
+
if (style == "comment" || style == "meta") return style;
|
119 |
+
if (ctx.align == null) ctx.align = true;
|
120 |
+
|
121 |
+
if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state);
|
122 |
+
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
123 |
+
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
124 |
+
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
125 |
+
else if (curPunc == "}") {
|
126 |
+
while (ctx.type == "statement") ctx = popContext(state);
|
127 |
+
if (ctx.type == "}") ctx = popContext(state);
|
128 |
+
while (ctx.type == "statement") ctx = popContext(state);
|
129 |
+
}
|
130 |
+
else if (curPunc == ctx.type) popContext(state);
|
131 |
+
else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement"))
|
132 |
+
pushContext(state, stream.column(), "statement");
|
133 |
+
state.startOfLine = false;
|
134 |
+
return style;
|
135 |
+
},
|
136 |
+
|
137 |
+
indent: function(state, textAfter) {
|
138 |
+
if (state.tokenize != tokenBase && state.tokenize != null) return 0;
|
139 |
+
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
140 |
+
if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
|
141 |
+
var closing = firstChar == ctx.type;
|
142 |
+
if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit);
|
143 |
+
else if (ctx.align) return ctx.column + (closing ? 0 : 1);
|
144 |
+
else return ctx.indented + (closing ? 0 : indentUnit);
|
145 |
+
},
|
146 |
+
|
147 |
+
electricChars: "{}"
|
148 |
+
};
|
149 |
+
});
|
150 |
+
|
151 |
+
(function() {
|
152 |
+
function words(str) {
|
153 |
+
var obj = {}, words = str.split(" ");
|
154 |
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
155 |
+
return obj;
|
156 |
+
}
|
157 |
+
var cKeywords = "auto if break int case long char register continue return default short do sizeof " +
|
158 |
+
"double static else struct entry switch extern typedef float union for unsigned " +
|
159 |
+
"goto while enum void const signed volatile";
|
160 |
+
|
161 |
+
function cppHook(stream, state) {
|
162 |
+
if (!state.startOfLine) return false;
|
163 |
+
stream.skipToEnd();
|
164 |
+
return "meta";
|
165 |
+
}
|
166 |
+
|
167 |
+
// C#-style strings where "" escapes a quote.
|
168 |
+
function tokenAtString(stream, state) {
|
169 |
+
var next;
|
170 |
+
while ((next = stream.next()) != null) {
|
171 |
+
if (next == '"' && !stream.eat('"')) {
|
172 |
+
state.tokenize = null;
|
173 |
+
break;
|
174 |
+
}
|
175 |
+
}
|
176 |
+
return "string";
|
177 |
+
}
|
178 |
+
|
179 |
+
CodeMirror.defineMIME("text/x-csrc", {
|
180 |
+
name: "clike",
|
181 |
+
keywords: words(cKeywords),
|
182 |
+
blockKeywords: words("case do else for if switch while struct"),
|
183 |
+
atoms: words("null"),
|
184 |
+
hooks: {"#": cppHook}
|
185 |
+
});
|
186 |
+
CodeMirror.defineMIME("text/x-c++src", {
|
187 |
+
name: "clike",
|
188 |
+
keywords: words(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " +
|
189 |
+
"static_cast typeid catch operator template typename class friend private " +
|
190 |
+
"this using const_cast inline public throw virtual delete mutable protected " +
|
191 |
+
"wchar_t"),
|
192 |
+
blockKeywords: words("catch class do else finally for if struct switch try while"),
|
193 |
+
atoms: words("true false null"),
|
194 |
+
hooks: {"#": cppHook}
|
195 |
+
});
|
196 |
+
CodeMirror.defineMIME("text/x-java", {
|
197 |
+
name: "clike",
|
198 |
+
keywords: words("abstract assert boolean break byte case catch char class const continue default " +
|
199 |
+
"do double else enum extends final finally float for goto if implements import " +
|
200 |
+
"instanceof int interface long native new package private protected public " +
|
201 |
+
"return short static strictfp super switch synchronized this throw throws transient " +
|
202 |
+
"try void volatile while"),
|
203 |
+
blockKeywords: words("catch class do else finally for if switch try while"),
|
204 |
+
atoms: words("true false null"),
|
205 |
+
hooks: {
|
206 |
+
"@": function(stream, state) {
|
207 |
+
stream.eatWhile(/[\w\$_]/);
|
208 |
+
return "meta";
|
209 |
+
}
|
210 |
+
}
|
211 |
+
});
|
212 |
+
CodeMirror.defineMIME("text/x-csharp", {
|
213 |
+
name: "clike",
|
214 |
+
keywords: words("abstract as base bool break byte case catch char checked class const continue decimal" +
|
215 |
+
" default delegate do double else enum event explicit extern finally fixed float for" +
|
216 |
+
" foreach goto if implicit in int interface internal is lock long namespace new object" +
|
217 |
+
" operator out override params private protected public readonly ref return sbyte sealed short" +
|
218 |
+
" sizeof stackalloc static string struct switch this throw try typeof uint ulong unchecked" +
|
219 |
+
" unsafe ushort using virtual void volatile while add alias ascending descending dynamic from get" +
|
220 |
+
" global group into join let orderby partial remove select set value var yield"),
|
221 |
+
blockKeywords: words("catch class do else finally for foreach if struct switch try while"),
|
222 |
+
atoms: words("true false null"),
|
223 |
+
hooks: {
|
224 |
+
"@": function(stream, state) {
|
225 |
+
if (stream.eat('"')) {
|
226 |
+
state.tokenize = tokenAtString;
|
227 |
+
return tokenAtString(stream, state);
|
228 |
+
}
|
229 |
+
stream.eatWhile(/[\w\$_]/);
|
230 |
+
return "meta";
|
231 |
+
}
|
232 |
+
}
|
233 |
+
});
|
234 |
+
CodeMirror.defineMIME("text/x-scala", {
|
235 |
+
name: "clike",
|
236 |
+
keywords: words(
|
237 |
+
|
238 |
+
/* scala */
|
239 |
+
"abstract case catch class def do else extends false final finally for forSome if " +
|
240 |
+
"implicit import lazy match new null object override package private protected return " +
|
241 |
+
"sealed super this throw trait try trye type val var while with yield _ : = => <- <: " +
|
242 |
+
"<% >: # @ " +
|
243 |
+
|
244 |
+
/* package scala */
|
245 |
+
"assert assume require print println printf readLine readBoolean readByte readShort " +
|
246 |
+
"readChar readInt readLong readFloat readDouble " +
|
247 |
+
|
248 |
+
"AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " +
|
249 |
+
"Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable " +
|
250 |
+
"Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " +
|
251 |
+
"Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " +
|
252 |
+
"StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: " +
|
253 |
+
|
254 |
+
/* package java.lang */
|
255 |
+
"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
|
256 |
+
"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
|
257 |
+
"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
|
258 |
+
"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
|
259 |
+
|
260 |
+
|
261 |
+
),
|
262 |
+
blockKeywords: words("catch class do else finally for forSome if match switch try while"),
|
263 |
+
atoms: words("true false null"),
|
264 |
+
hooks: {
|
265 |
+
"@": function(stream, state) {
|
266 |
+
stream.eatWhile(/[\w\$_]/);
|
267 |
+
return "meta";
|
268 |
+
}
|
269 |
+
}
|
270 |
+
});
|
271 |
+
}());
|
js/layout/codemirror.js
CHANGED
@@ -1,3181 +1,3181 @@
|
|
1 |
-
// CodeMirror version 2.3
|
2 |
-
//
|
3 |
-
// All functions that need access to the editor's state live inside
|
4 |
-
// the CodeMirror function. Below that, at the bottom of the file,
|
5 |
-
// some utilities are defined.
|
6 |
-
|
7 |
-
// CodeMirror is the only global var we claim
|
8 |
-
var CodeMirror = (function() {
|
9 |
-
// This is the function that produces an editor instance. Its
|
10 |
-
// closure is used to store the editor state.
|
11 |
-
function CodeMirror(place, givenOptions) {
|
12 |
-
// Determine effective options based on given values and defaults.
|
13 |
-
var options = {}, defaults = CodeMirror.defaults;
|
14 |
-
for (var opt in defaults)
|
15 |
-
if (defaults.hasOwnProperty(opt))
|
16 |
-
options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];
|
17 |
-
|
18 |
-
// The element in which the editor lives.
|
19 |
-
var wrapper = document.createElement("div");
|
20 |
-
wrapper.className = "CodeMirror" + (options.lineWrapping ? " CodeMirror-wrap" : "");
|
21 |
-
// This mess creates the base DOM structure for the editor.
|
22 |
-
wrapper.innerHTML =
|
23 |
-
'<div style="overflow: hidden; position: relative; width: 3px; height: 0px;">' + // Wraps and hides input textarea
|
24 |
-
'<textarea style="position: absolute; padding: 0; width: 1px; height: 1em" wrap="off" ' +
|
25 |
-
'autocorrect="off" autocapitalize="off"></textarea></div>' +
|
26 |
-
'<div class="CodeMirror-scrollbar">' + // The vertical scrollbar. Horizontal scrolling is handled by the scroller itself.
|
27 |
-
'<div class="CodeMirror-scrollbar-inner">' + // The empty scrollbar content, used solely for managing the scrollbar thumb.
|
28 |
-
'</div></div>' + // This must be before the scroll area because it's float-right.
|
29 |
-
'<div class="CodeMirror-scroll" tabindex="-1">' +
|
30 |
-
'<div style="position: relative">' + // Set to the height of the text, causes scrolling
|
31 |
-
'<div style="position: relative">' + // Moved around its parent to cover visible view
|
32 |
-
'<div class="CodeMirror-gutter"><div class="CodeMirror-gutter-text"></div></div>' +
|
33 |
-
// Provides positioning relative to (visible) text origin
|
34 |
-
'<div class="CodeMirror-lines"><div style="position: relative; z-index: 0">' +
|
35 |
-
// Used to measure text size
|
36 |
-
'<div style="position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden;"></div>' +
|
37 |
-
'<pre class="CodeMirror-cursor"> </pre>' + // Absolutely positioned blinky cursor
|
38 |
-
'<pre class="CodeMirror-cursor" style="visibility: hidden"> </pre>' + // Used to force a width
|
39 |
-
'<div style="position: relative; z-index: -1"></div><div></div>' + // DIVs containing the selection and the actual code
|
40 |
-
'</div></div></div></div></div>';
|
41 |
-
if (place.appendChild) place.appendChild(wrapper); else place(wrapper);
|
42 |
-
// I've never seen more elegant code in my life.
|
43 |
-
var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,
|
44 |
-
scroller = wrapper.lastChild, code = scroller.firstChild,
|
45 |
-
mover = code.firstChild, gutter = mover.firstChild, gutterText = gutter.firstChild,
|
46 |
-
lineSpace = gutter.nextSibling.firstChild, measure = lineSpace.firstChild,
|
47 |
-
cursor = measure.nextSibling, widthForcer = cursor.nextSibling,
|
48 |
-
selectionDiv = widthForcer.nextSibling, lineDiv = selectionDiv.nextSibling,
|
49 |
-
scrollbar = inputDiv.nextSibling, scrollbarInner = scrollbar.firstChild;
|
50 |
-
themeChanged(); keyMapChanged();
|
51 |
-
// Needed to hide big blue blinking cursor on Mobile Safari
|
52 |
-
if (ios) input.style.width = "0px";
|
53 |
-
if (!webkit) scroller.draggable = true;
|
54 |
-
lineSpace.style.outline = "none";
|
55 |
-
if (options.tabindex != null) input.tabIndex = options.tabindex;
|
56 |
-
if (options.autofocus) focusInput();
|
57 |
-
if (!options.gutter && !options.lineNumbers) gutter.style.display = "none";
|
58 |
-
// Needed to handle Tab key in KHTML
|
59 |
-
if (khtml) inputDiv.style.height = "1px", inputDiv.style.position = "absolute";
|
60 |
-
|
61 |
-
// Check for OS X >= 10.7. If so, we need to force a width on the scrollbar, and
|
62 |
-
// make it overlap the content. (But we only do this if the scrollbar doesn't already
|
63 |
-
// have a natural width. If the mouse is plugged in or the user sets the system pref
|
64 |
-
// to always show scrollbars, the scrollbar shouldn't overlap.)
|
65 |
-
if (mac_geLion) {
|
66 |
-
scrollbar.className += (overlapScrollbars() ? " cm-sb-overlap" : " cm-sb-nonoverlap");
|
67 |
-
} else if (ie_lt8) {
|
68 |
-
// Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).
|
69 |
-
scrollbar.className += " cm-sb-ie7";
|
70 |
-
}
|
71 |
-
|
72 |
-
// Check for problem with IE innerHTML not working when we have a
|
73 |
-
// P (or similar) parent node.
|
74 |
-
try { stringWidth("x"); }
|
75 |
-
catch (e) {
|
76 |
-
if (e.message.match(/runtime/i))
|
77 |
-
e = new Error("A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)");
|
78 |
-
throw e;
|
79 |
-
}
|
80 |
-
|
81 |
-
// Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.
|
82 |
-
var poll = new Delayed(), highlight = new Delayed(), blinker;
|
83 |
-
|
84 |
-
// mode holds a mode API object. doc is the tree of Line objects,
|
85 |
-
// work an array of lines that should be parsed, and history the
|
86 |
-
// undo history (instance of History constructor).
|
87 |
-
var mode, doc = new BranchChunk([new LeafChunk([new Line("")])]), work, focused;
|
88 |
-
loadMode();
|
89 |
-
// The selection. These are always maintained to point at valid
|
90 |
-
// positions. Inverted is used to remember that the user is
|
91 |
-
// selecting bottom-to-top.
|
92 |
-
var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};
|
93 |
-
// Selection-related flags. shiftSelecting obviously tracks
|
94 |
-
// whether the user is holding shift.
|
95 |
-
var shiftSelecting, lastClick, lastDoubleClick, lastScrollTop = 0, lastScrollLeft = 0, draggingText,
|
96 |
-
overwrite = false, suppressEdits = false;
|
97 |
-
// Variables used by startOperation/endOperation to track what
|
98 |
-
// happened during the operation.
|
99 |
-
var updateInput, userSelChange, changes, textChanged, selectionChanged, leaveInputAlone,
|
100 |
-
gutterDirty, callbacks;
|
101 |
-
// Current visible range (may be bigger than the view window).
|
102 |
-
var displayOffset = 0, showingFrom = 0, showingTo = 0, lastSizeC = 0;
|
103 |
-
// bracketHighlighted is used to remember that a bracket has been
|
104 |
-
// marked.
|
105 |
-
var bracketHighlighted;
|
106 |
-
// Tracks the maximum line length so that the horizontal scrollbar
|
107 |
-
// can be kept static when scrolling.
|
108 |
-
var maxLine = "", updateMaxLine = false, maxLineChanged = true;
|
109 |
-
var tabCache = {};
|
110 |
-
|
111 |
-
// Initialize the content.
|
112 |
-
operation(function(){setValue(options.value || ""); updateInput = false;})();
|
113 |
-
var history = new History();
|
114 |
-
|
115 |
-
// Register our event handlers.
|
116 |
-
connect(scroller, "mousedown", operation(onMouseDown));
|
117 |
-
connect(scroller, "dblclick", operation(onDoubleClick));
|
118 |
-
connect(lineSpace, "selectstart", e_preventDefault);
|
119 |
-
// Gecko browsers fire contextmenu *after* opening the menu, at
|
120 |
-
// which point we can't mess with it anymore. Context menu is
|
121 |
-
// handled in onMouseDown for Gecko.
|
122 |
-
if (!gecko) connect(scroller, "contextmenu", onContextMenu);
|
123 |
-
connect(scroller, "scroll", onScroll);
|
124 |
-
connect(scrollbar, "scroll", onScroll);
|
125 |
-
connect(scrollbar, "mousedown", function() {setTimeout(focusInput, 0);});
|
126 |
-
connect(scroller, "mousewheel", onMouseWheel);
|
127 |
-
connect(scroller, "DOMMouseScroll", onMouseWheel);
|
128 |
-
connect(window, "resize", function() {updateDisplay(true);});
|
129 |
-
connect(input, "keyup", operation(onKeyUp));
|
130 |
-
connect(input, "input", fastPoll);
|
131 |
-
connect(input, "keydown", operation(onKeyDown));
|
132 |
-
connect(input, "keypress", operation(onKeyPress));
|
133 |
-
connect(input, "focus", onFocus);
|
134 |
-
connect(input, "blur", onBlur);
|
135 |
-
|
136 |
-
if (options.dragDrop) {
|
137 |
-
connect(scroller, "dragstart", onDragStart);
|
138 |
-
function drag_(e) {
|
139 |
-
if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
|
140 |
-
e_stop(e);
|
141 |
-
}
|
142 |
-
connect(scroller, "dragenter", drag_);
|
143 |
-
connect(scroller, "dragover", drag_);
|
144 |
-
connect(scroller, "drop", operation(onDrop));
|
145 |
-
}
|
146 |
-
connect(scroller, "paste", function(){focusInput(); fastPoll();});
|
147 |
-
connect(input, "paste", fastPoll);
|
148 |
-
connect(input, "cut", operation(function(){
|
149 |
-
if (!options.readOnly) replaceSelection("");
|
150 |
-
}));
|
151 |
-
|
152 |
-
// Needed to handle Tab key in KHTML
|
153 |
-
if (khtml) connect(code, "mouseup", function() {
|
154 |
-
if (document.activeElement == input) input.blur();
|
155 |
-
focusInput();
|
156 |
-
});
|
157 |
-
|
158 |
-
// IE throws unspecified error in certain cases, when
|
159 |
-
// trying to access activeElement before onload
|
160 |
-
var hasFocus; try { hasFocus = (document.activeElement == input); } catch(e) { }
|
161 |
-
if (hasFocus || options.autofocus) setTimeout(onFocus, 20);
|
162 |
-
else onBlur();
|
163 |
-
|
164 |
-
function isLine(l) {return l >= 0 && l < doc.size;}
|
165 |
-
// The instance object that we'll return. Mostly calls out to
|
166 |
-
// local functions in the CodeMirror function. Some do some extra
|
167 |
-
// range checking and/or clipping. operation is used to wrap the
|
168 |
-
// call so that changes it makes are tracked, and the display is
|
169 |
-
// updated afterwards.
|
170 |
-
var instance = wrapper.CodeMirror = {
|
171 |
-
getValue: getValue,
|
172 |
-
setValue: operation(setValue),
|
173 |
-
getSelection: getSelection,
|
174 |
-
replaceSelection: operation(replaceSelection),
|
175 |
-
focus: function(){window.focus(); focusInput(); onFocus(); fastPoll();},
|
176 |
-
setOption: function(option, value) {
|
177 |
-
var oldVal = options[option];
|
178 |
-
options[option] = value;
|
179 |
-
if (option == "mode" || option == "indentUnit") loadMode();
|
180 |
-
else if (option == "readOnly" && value == "nocursor") {onBlur(); input.blur();}
|
181 |
-
else if (option == "readOnly" && !value) {resetInput(true);}
|
182 |
-
else if (option == "theme") themeChanged();
|
183 |
-
else if (option == "lineWrapping" && oldVal != value) operation(wrappingChanged)();
|
184 |
-
else if (option == "tabSize") updateDisplay(true);
|
185 |
-
else if (option == "keyMap") keyMapChanged();
|
186 |
-
if (option == "lineNumbers" || option == "gutter" || option == "firstLineNumber" || option == "theme") {
|
187 |
-
gutterChanged();
|
188 |
-
updateDisplay(true);
|
189 |
-
}
|
190 |
-
},
|
191 |
-
getOption: function(option) {return options[option];},
|
192 |
-
undo: operation(undo),
|
193 |
-
redo: operation(redo),
|
194 |
-
indentLine: operation(function(n, dir) {
|
195 |
-
if (typeof dir != "string") {
|
196 |
-
if (dir == null) dir = options.smartIndent ? "smart" : "prev";
|
197 |
-
else dir = dir ? "add" : "subtract";
|
198 |
-
}
|
199 |
-
if (isLine(n)) indentLine(n, dir);
|
200 |
-
}),
|
201 |
-
indentSelection: operation(indentSelected),
|
202 |
-
historySize: function() {return {undo: history.done.length, redo: history.undone.length};},
|
203 |
-
clearHistory: function() {history = new History();},
|
204 |
-
matchBrackets: operation(function(){matchBrackets(true);}),
|
205 |
-
getTokenAt: operation(function(pos) {
|
206 |
-
pos = clipPos(pos);
|
207 |
-
return getLine(pos.line).getTokenAt(mode, getStateBefore(pos.line), pos.ch);
|
208 |
-
}),
|
209 |
-
getStateAfter: function(line) {
|
210 |
-
line = clipLine(line == null ? doc.size - 1: line);
|
211 |
-
return getStateBefore(line + 1);
|
212 |
-
},
|
213 |
-
cursorCoords: function(start, mode) {
|
214 |
-
if (start == null) start = sel.inverted;
|
215 |
-
return this.charCoords(start ? sel.from : sel.to, mode);
|
216 |
-
},
|
217 |
-
charCoords: function(pos, mode) {
|
218 |
-
pos = clipPos(pos);
|
219 |
-
if (mode == "local") return localCoords(pos, false);
|
220 |
-
if (mode == "div") return localCoords(pos, true);
|
221 |
-
return pageCoords(pos);
|
222 |
-
},
|
223 |
-
coordsChar: function(coords) {
|
224 |
-
var off = eltOffset(lineSpace);
|
225 |
-
return coordsChar(coords.x - off.left, coords.y - off.top);
|
226 |
-
},
|
227 |
-
markText: operation(markText),
|
228 |
-
setBookmark: setBookmark,
|
229 |
-
findMarksAt: findMarksAt,
|
230 |
-
setMarker: operation(addGutterMarker),
|
231 |
-
clearMarker: operation(removeGutterMarker),
|
232 |
-
setLineClass: operation(setLineClass),
|
233 |
-
hideLine: operation(function(h) {return setLineHidden(h, true);}),
|
234 |
-
showLine: operation(function(h) {return setLineHidden(h, false);}),
|
235 |
-
onDeleteLine: function(line, f) {
|
236 |
-
if (typeof line == "number") {
|
237 |
-
if (!isLine(line)) return null;
|
238 |
-
line = getLine(line);
|
239 |
-
}
|
240 |
-
(line.handlers || (line.handlers = [])).push(f);
|
241 |
-
return line;
|
242 |
-
},
|
243 |
-
lineInfo: lineInfo,
|
244 |
-
addWidget: function(pos, node, scroll, vert, horiz) {
|
245 |
-
pos = localCoords(clipPos(pos));
|
246 |
-
var top = pos.yBot, left = pos.x;
|
247 |
-
node.style.position = "absolute";
|
248 |
-
code.appendChild(node);
|
249 |
-
if (vert == "over") top = pos.y;
|
250 |
-
else if (vert == "near") {
|
251 |
-
var vspace = Math.max(scroller.offsetHeight, doc.height * textHeight()),
|
252 |
-
hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();
|
253 |
-
if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)
|
254 |
-
top = pos.y - node.offsetHeight;
|
255 |
-
if (left + node.offsetWidth > hspace)
|
256 |
-
left = hspace - node.offsetWidth;
|
257 |
-
}
|
258 |
-
node.style.top = (top + paddingTop()) + "px";
|
259 |
-
node.style.left = node.style.right = "";
|
260 |
-
if (horiz == "right") {
|
261 |
-
left = code.clientWidth - node.offsetWidth;
|
262 |
-
node.style.right = "0px";
|
263 |
-
} else {
|
264 |
-
if (horiz == "left") left = 0;
|
265 |
-
else if (horiz == "middle") left = (code.clientWidth - node.offsetWidth) / 2;
|
266 |
-
node.style.left = (left + paddingLeft()) + "px";
|
267 |
-
}
|
268 |
-
if (scroll)
|
269 |
-
scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);
|
270 |
-
},
|
271 |
-
|
272 |
-
lineCount: function() {return doc.size;},
|
273 |
-
clipPos: clipPos,
|
274 |
-
getCursor: function(start) {
|
275 |
-
if (start == null) start = sel.inverted;
|
276 |
-
return copyPos(start ? sel.from : sel.to);
|
277 |
-
},
|
278 |
-
somethingSelected: function() {return !posEq(sel.from, sel.to);},
|
279 |
-
setCursor: operation(function(line, ch, user) {
|
280 |
-
if (ch == null && typeof line.line == "number") setCursor(line.line, line.ch, user);
|
281 |
-
else setCursor(line, ch, user);
|
282 |
-
}),
|
283 |
-
setSelection: operation(function(from, to, user) {
|
284 |
-
(user ? setSelectionUser : setSelection)(clipPos(from), clipPos(to || from));
|
285 |
-
}),
|
286 |
-
getLine: function(line) {if (isLine(line)) return getLine(line).text;},
|
287 |
-
getLineHandle: function(line) {if (isLine(line)) return getLine(line);},
|
288 |
-
setLine: operation(function(line, text) {
|
289 |
-
if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: getLine(line).text.length});
|
290 |
-
}),
|
291 |
-
removeLine: operation(function(line) {
|
292 |
-
if (isLine(line)) replaceRange("", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));
|
293 |
-
}),
|
294 |
-
replaceRange: operation(replaceRange),
|
295 |
-
getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},
|
296 |
-
|
297 |
-
triggerOnKeyDown: operation(onKeyDown),
|
298 |
-
execCommand: function(cmd) {return commands[cmd](instance);},
|
299 |
-
// Stuff used by commands, probably not much use to outside code.
|
300 |
-
moveH: operation(moveH),
|
301 |
-
deleteH: operation(deleteH),
|
302 |
-
moveV: operation(moveV),
|
303 |
-
toggleOverwrite: function() {
|
304 |
-
if(overwrite){
|
305 |
-
overwrite = false;
|
306 |
-
cursor.className = cursor.className.replace(" CodeMirror-overwrite", "");
|
307 |
-
} else {
|
308 |
-
overwrite = true;
|
309 |
-
cursor.className += " CodeMirror-overwrite";
|
310 |
-
}
|
311 |
-
},
|
312 |
-
|
313 |
-
posFromIndex: function(off) {
|
314 |
-
var lineNo = 0, ch;
|
315 |
-
doc.iter(0, doc.size, function(line) {
|
316 |
-
var sz = line.text.length + 1;
|
317 |
-
if (sz > off) { ch = off; return true; }
|
318 |
-
off -= sz;
|
319 |
-
++lineNo;
|
320 |
-
});
|
321 |
-
return clipPos({line: lineNo, ch: ch});
|
322 |
-
},
|
323 |
-
indexFromPos: function (coords) {
|
324 |
-
if (coords.line < 0 || coords.ch < 0) return 0;
|
325 |
-
var index = coords.ch;
|
326 |
-
doc.iter(0, coords.line, function (line) {
|
327 |
-
index += line.text.length + 1;
|
328 |
-
});
|
329 |
-
return index;
|
330 |
-
},
|
331 |
-
scrollTo: function(x, y) {
|
332 |
-
if (x != null) scroller.scrollLeft = x;
|
333 |
-
if (y != null) scrollbar.scrollTop = y;
|
334 |
-
updateDisplay([]);
|
335 |
-
},
|
336 |
-
getScrollInfo: function() {
|
337 |
-
return {x: scroller.scrollLeft, y: scrollbar.scrollTop,
|
338 |
-
height: scrollbar.scrollHeight, width: scroller.scrollWidth};
|
339 |
-
},
|
340 |
-
|
341 |
-
operation: function(f){return operation(f)();},
|
342 |
-
compoundChange: function(f){return compoundChange(f);},
|
343 |
-
refresh: function(){
|
344 |
-
updateDisplay(true);
|
345 |
-
if (scrollbar.scrollHeight > lastScrollTop)
|
346 |
-
scrollbar.scrollTop = lastScrollTop;
|
347 |
-
},
|
348 |
-
getInputField: function(){return input;},
|
349 |
-
getWrapperElement: function(){return wrapper;},
|
350 |
-
getScrollerElement: function(){return scroller;},
|
351 |
-
getGutterElement: function(){return gutter;}
|
352 |
-
};
|
353 |
-
|
354 |
-
function getLine(n) { return getLineAt(doc, n); }
|
355 |
-
function updateLineHeight(line, height) {
|
356 |
-
gutterDirty = true;
|
357 |
-
var diff = height - line.height;
|
358 |
-
for (var n = line; n; n = n.parent) n.height += diff;
|
359 |
-
}
|
360 |
-
|
361 |
-
function setValue(code) {
|
362 |
-
var top = {line: 0, ch: 0};
|
363 |
-
updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},
|
364 |
-
splitLines(code), top, top);
|
365 |
-
updateInput = true;
|
366 |
-
}
|
367 |
-
function getValue() {
|
368 |
-
var text = [];
|
369 |
-
doc.iter(0, doc.size, function(line) { text.push(line.text); });
|
370 |
-
return text.join("\n");
|
371 |
-
}
|
372 |
-
|
373 |
-
function onScroll(e) {
|
374 |
-
if (lastScrollTop != scrollbar.scrollTop || lastScrollLeft != scroller.scrollLeft) {
|
375 |
-
lastScrollTop = scrollbar.scrollTop;
|
376 |
-
lastScrollLeft = scroller.scrollLeft;
|
377 |
-
updateDisplay([]);
|
378 |
-
if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + "px";
|
379 |
-
if (options.onScroll) options.onScroll(instance);
|
380 |
-
}
|
381 |
-
}
|
382 |
-
|
383 |
-
function onMouseDown(e) {
|
384 |
-
setShift(e_prop(e, "shiftKey"));
|
385 |
-
// Check whether this is a click in a widget
|
386 |
-
for (var n = e_target(e); n != wrapper; n = n.parentNode)
|
387 |
-
if (n.parentNode == code && n != mover) return;
|
388 |
-
|
389 |
-
// See if this is a click in the gutter
|
390 |
-
for (var n = e_target(e); n != wrapper; n = n.parentNode)
|
391 |
-
if (n.parentNode == gutterText) {
|
392 |
-
if (options.onGutterClick)
|
393 |
-
options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);
|
394 |
-
return e_preventDefault(e);
|
395 |
-
}
|
396 |
-
|
397 |
-
var start = posFromMouse(e);
|
398 |
-
|
399 |
-
switch (e_button(e)) {
|
400 |
-
case 3:
|
401 |
-
if (gecko && !mac) onContextMenu(e);
|
402 |
-
return;
|
403 |
-
case 2:
|
404 |
-
if (start) setCursor(start.line, start.ch, true);
|
405 |
-
setTimeout(focusInput, 20);
|
406 |
-
e_preventDefault(e);
|
407 |
-
return;
|
408 |
-
}
|
409 |
-
// For button 1, if it was clicked inside the editor
|
410 |
-
// (posFromMouse returning non-null), we have to adjust the
|
411 |
-
// selection.
|
412 |
-
if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}
|
413 |
-
|
414 |
-
if (!focused) onFocus();
|
415 |
-
|
416 |
-
var now = +new Date;
|
417 |
-
if (lastDoubleClick && lastDoubleClick.time > now - 400 && posEq(lastDoubleClick.pos, start)) {
|
418 |
-
e_preventDefault(e);
|
419 |
-
setTimeout(focusInput, 20);
|
420 |
-
return selectLine(start.line);
|
421 |
-
} else if (lastClick && lastClick.time > now - 400 && posEq(lastClick.pos, start)) {
|
422 |
-
lastDoubleClick = {time: now, pos: start};
|
423 |
-
e_preventDefault(e);
|
424 |
-
return selectWordAt(start);
|
425 |
-
} else { lastClick = {time: now, pos: start}; }
|
426 |
-
|
427 |
-
var last = start, going;
|
428 |
-
if (options.dragDrop && dragAndDrop && !options.readOnly && !posEq(sel.from, sel.to) &&
|
429 |
-
!posLess(start, sel.from) && !posLess(sel.to, start)) {
|
430 |
-
// Let the drag handler handle this.
|
431 |
-
if (webkit) scroller.draggable = true;
|
432 |
-
function dragEnd(e2) {
|
433 |
-
if (webkit) scroller.draggable = false;
|
434 |
-
draggingText = false;
|
435 |
-
up(); drop();
|
436 |
-
if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {
|
437 |
-
e_preventDefault(e2);
|
438 |
-
setCursor(start.line, start.ch, true);
|
439 |
-
focusInput();
|
440 |
-
}
|
441 |
-
}
|
442 |
-
var up = connect(document, "mouseup", operation(dragEnd), true);
|
443 |
-
var drop = connect(scroller, "drop", operation(dragEnd), true);
|
444 |
-
draggingText = true;
|
445 |
-
// IE's approach to draggable
|
446 |
-
if (scroller.dragDrop) scroller.dragDrop();
|
447 |
-
return;
|
448 |
-
}
|
449 |
-
e_preventDefault(e);
|
450 |
-
setCursor(start.line, start.ch, true);
|
451 |
-
|
452 |
-
function extend(e) {
|
453 |
-
var cur = posFromMouse(e, true);
|
454 |
-
if (cur && !posEq(cur, last)) {
|
455 |
-
if (!focused) onFocus();
|
456 |
-
last = cur;
|
457 |
-
setSelectionUser(start, cur);
|
458 |
-
updateInput = false;
|
459 |
-
var visible = visibleLines();
|
460 |
-
if (cur.line >= visible.to || cur.line < visible.from)
|
461 |
-
going = setTimeout(operation(function(){extend(e);}), 150);
|
462 |
-
}
|
463 |
-
}
|
464 |
-
|
465 |
-
function done(e) {
|
466 |
-
clearTimeout(going);
|
467 |
-
var cur = posFromMouse(e);
|
468 |
-
if (cur) setSelectionUser(start, cur);
|
469 |
-
e_preventDefault(e);
|
470 |
-
focusInput();
|
471 |
-
updateInput = true;
|
472 |
-
move(); up();
|
473 |
-
}
|
474 |
-
var move = connect(document, "mousemove", operation(function(e) {
|
475 |
-
clearTimeout(going);
|
476 |
-
e_preventDefault(e);
|
477 |
-
if (!ie && !e_button(e)) done(e);
|
478 |
-
else extend(e);
|
479 |
-
}), true);
|
480 |
-
var up = connect(document, "mouseup", operation(done), true);
|
481 |
-
}
|
482 |
-
function onDoubleClick(e) {
|
483 |
-
for (var n = e_target(e); n != wrapper; n = n.parentNode)
|
484 |
-
if (n.parentNode == gutterText) return e_preventDefault(e);
|
485 |
-
var start = posFromMouse(e);
|
486 |
-
if (!start) return;
|
487 |
-
lastDoubleClick = {time: +new Date, pos: start};
|
488 |
-
e_preventDefault(e);
|
489 |
-
selectWordAt(start);
|
490 |
-
}
|
491 |
-
function onDrop(e) {
|
492 |
-
if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
|
493 |
-
e.preventDefault();
|
494 |
-
var pos = posFromMouse(e, true), files = e.dataTransfer.files;
|
495 |
-
if (!pos || options.readOnly) return;
|
496 |
-
if (files && files.length && window.FileReader && window.File) {
|
497 |
-
function loadFile(file, i) {
|
498 |
-
var reader = new FileReader;
|
499 |
-
reader.onload = function() {
|
500 |
-
text[i] = reader.result;
|
501 |
-
if (++read == n) {
|
502 |
-
pos = clipPos(pos);
|
503 |
-
operation(function() {
|
504 |
-
var end = replaceRange(text.join(""), pos, pos);
|
505 |
-
setSelectionUser(pos, end);
|
506 |
-
})();
|
507 |
-
}
|
508 |
-
};
|
509 |
-
reader.readAsText(file);
|
510 |
-
}
|
511 |
-
var n = files.length, text = Array(n), read = 0;
|
512 |
-
for (var i = 0; i < n; ++i) loadFile(files[i], i);
|
513 |
-
} else {
|
514 |
-
// Don't do a replace if the drop happened inside of the selected text.
|
515 |
-
if (draggingText && !(posLess(pos, sel.from) || posLess(sel.to, pos))) return;
|
516 |
-
try {
|
517 |
-
var text = e.dataTransfer.getData("Text");
|
518 |
-
if (text) {
|
519 |
-
compoundChange(function() {
|
520 |
-
var curFrom = sel.from, curTo = sel.to;
|
521 |
-
setSelectionUser(pos, pos);
|
522 |
-
if (draggingText) replaceRange("", curFrom, curTo);
|
523 |
-
replaceSelection(text);
|
524 |
-
focusInput();
|
525 |
-
});
|
526 |
-
}
|
527 |
-
}
|
528 |
-
catch(e){}
|
529 |
-
}
|
530 |
-
}
|
531 |
-
function onDragStart(e) {
|
532 |
-
var txt = getSelection();
|
533 |
-
e.dataTransfer.setData("Text", txt);
|
534 |
-
|
535 |
-
// Use dummy image instead of default browsers image.
|
536 |
-
if (gecko || chrome || opera) {
|
537 |
-
var img = document.createElement('img');
|
538 |
-
img.scr = 'data:image/gif;base64,R0lGODdhAgACAIAAAAAAAP///ywAAAAAAgACAAACAoRRADs='; //1x1 image
|
539 |
-
e.dataTransfer.setDragImage(img, 0, 0);
|
540 |
-
}
|
541 |
-
}
|
542 |
-
|
543 |
-
function doHandleBinding(bound, dropShift) {
|
544 |
-
if (typeof bound == "string") {
|
545 |
-
bound = commands[bound];
|
546 |
-
if (!bound) return false;
|
547 |
-
}
|
548 |
-
var prevShift = shiftSelecting;
|
549 |
-
try {
|
550 |
-
if (options.readOnly) suppressEdits = true;
|
551 |
-
if (dropShift) shiftSelecting = null;
|
552 |
-
bound(instance);
|
553 |
-
} catch(e) {
|
554 |
-
if (e != Pass) throw e;
|
555 |
-
return false;
|
556 |
-
} finally {
|
557 |
-
shiftSelecting = prevShift;
|
558 |
-
suppressEdits = false;
|
559 |
-
}
|
560 |
-
return true;
|
561 |
-
}
|
562 |
-
function handleKeyBinding(e) {
|
563 |
-
// Handle auto keymap transitions
|
564 |
-
var startMap = getKeyMap(options.keyMap), next = startMap.auto;
|
565 |
-
clearTimeout(maybeTransition);
|
566 |
-
if (next && !isModifierKey(e)) maybeTransition = setTimeout(function() {
|
567 |
-
if (getKeyMap(options.keyMap) == startMap) {
|
568 |
-
options.keyMap = (next.call ? next.call(null, instance) : next);
|
569 |
-
}
|
570 |
-
}, 50);
|
571 |
-
|
572 |
-
var name = keyNames[e_prop(e, "keyCode")], handled = false;
|
573 |
-
if (name == null || e.altGraphKey) return false;
|
574 |
-
if (e_prop(e, "altKey")) name = "Alt-" + name;
|
575 |
-
if (e_prop(e, "ctrlKey")) name = "Ctrl-" + name;
|
576 |
-
if (e_prop(e, "metaKey")) name = "Cmd-" + name;
|
577 |
-
|
578 |
-
var stopped = false;
|
579 |
-
function stop() { stopped = true; }
|
580 |
-
|
581 |
-
if (e_prop(e, "shiftKey")) {
|
582 |
-
handled = lookupKey("Shift-" + name, options.extraKeys, options.keyMap,
|
583 |
-
function(b) {return doHandleBinding(b, true);}, stop)
|
584 |
-
|| lookupKey(name, options.extraKeys, options.keyMap, function(b) {
|
585 |
-
if (typeof b == "string" && /^go[A-Z]/.test(b)) return doHandleBinding(b);
|
586 |
-
}, stop);
|
587 |
-
} else {
|
588 |
-
handled = lookupKey(name, options.extraKeys, options.keyMap, doHandleBinding, stop);
|
589 |
-
}
|
590 |
-
if (stopped) handled = false;
|
591 |
-
if (handled) {
|
592 |
-
e_preventDefault(e);
|
593 |
-
restartBlink();
|
594 |
-
if (ie) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }
|
595 |
-
}
|
596 |
-
return handled;
|
597 |
-
}
|
598 |
-
function handleCharBinding(e, ch) {
|
599 |
-
var handled = lookupKey("'" + ch + "'", options.extraKeys,
|
600 |
-
options.keyMap, function(b) { return doHandleBinding(b, true); });
|
601 |
-
if (handled) {
|
602 |
-
e_preventDefault(e);
|
603 |
-
restartBlink();
|
604 |
-
}
|
605 |
-
return handled;
|
606 |
-
}
|
607 |
-
|
608 |
-
var lastStoppedKey = null, maybeTransition;
|
609 |
-
function onKeyDown(e) {
|
610 |
-
if (!focused) onFocus();
|
611 |
-
if (ie && e.keyCode == 27) { e.returnValue = false; }
|
612 |
-
if (pollingFast) { if (readInput()) pollingFast = false; }
|
613 |
-
if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
|
614 |
-
var code = e_prop(e, "keyCode");
|
615 |
-
// IE does strange things with escape.
|
616 |
-
setShift(code == 16 || e_prop(e, "shiftKey"));
|
617 |
-
// First give onKeyEvent option a chance to handle this.
|
618 |
-
var handled = handleKeyBinding(e);
|
619 |
-
if (opera) {
|
620 |
-
lastStoppedKey = handled ? code : null;
|
621 |
-
// Opera has no cut event... we try to at least catch the key combo
|
622 |
-
if (!handled && code == 88 && e_prop(e, mac ? "metaKey" : "ctrlKey"))
|
623 |
-
replaceSelection("");
|
624 |
-
}
|
625 |
-
}
|
626 |
-
function onKeyPress(e) {
|
627 |
-
if (pollingFast) readInput();
|
628 |
-
if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
|
629 |
-
var keyCode = e_prop(e, "keyCode"), charCode = e_prop(e, "charCode");
|
630 |
-
if (opera && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}
|
631 |
-
if (((opera && (!e.which || e.which < 10)) || khtml) && handleKeyBinding(e)) return;
|
632 |
-
var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
|
633 |
-
if (options.electricChars && mode.electricChars && options.smartIndent && !options.readOnly) {
|
634 |
-
if (mode.electricChars.indexOf(ch) > -1)
|
635 |
-
setTimeout(operation(function() {indentLine(sel.to.line, "smart");}), 75);
|
636 |
-
}
|
637 |
-
if (handleCharBinding(e, ch)) return;
|
638 |
-
fastPoll();
|
639 |
-
}
|
640 |
-
function onKeyUp(e) {
|
641 |
-
if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
|
642 |
-
if (e_prop(e, "keyCode") == 16) shiftSelecting = null;
|
643 |
-
}
|
644 |
-
|
645 |
-
function onFocus() {
|
646 |
-
if (options.readOnly == "nocursor") return;
|
647 |
-
if (!focused) {
|
648 |
-
if (options.onFocus) options.onFocus(instance);
|
649 |
-
focused = true;
|
650 |
-
if (scroller.className.search(/\bCodeMirror-focused\b/) == -1)
|
651 |
-
scroller.className += " CodeMirror-focused";
|
652 |
-
if (!leaveInputAlone) resetInput(true);
|
653 |
-
}
|
654 |
-
slowPoll();
|
655 |
-
restartBlink();
|
656 |
-
}
|
657 |
-
function onBlur() {
|
658 |
-
if (focused) {
|
659 |
-
if (options.onBlur) options.onBlur(instance);
|
660 |
-
focused = false;
|
661 |
-
if (bracketHighlighted)
|
662 |
-
operation(function(){
|
663 |
-
if (bracketHighlighted) { bracketHighlighted(); bracketHighlighted = null; }
|
664 |
-
})();
|
665 |
-
scroller.className = scroller.className.replace(" CodeMirror-focused", "");
|
666 |
-
}
|
667 |
-
clearInterval(blinker);
|
668 |
-
setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);
|
669 |
-
}
|
670 |
-
|
671 |
-
function chopDelta(delta) {
|
672 |
-
// Make sure we always scroll a little bit for any nonzero delta.
|
673 |
-
if (delta > 0.0 && delta < 1.0) return 1;
|
674 |
-
else if (delta > -1.0 && delta < 0.0) return -1;
|
675 |
-
else return Math.round(delta);
|
676 |
-
}
|
677 |
-
|
678 |
-
function onMouseWheel(e) {
|
679 |
-
var deltaX = 0, deltaY = 0;
|
680 |
-
if (e.type == "DOMMouseScroll") { // Firefox
|
681 |
-
var delta = -e.detail * 8.0;
|
682 |
-
if (e.axis == e.HORIZONTAL_AXIS) deltaX = delta;
|
683 |
-
else if (e.axis == e.VERTICAL_AXIS) deltaY = delta;
|
684 |
-
} else if (e.wheelDeltaX !== undefined && e.wheelDeltaY !== undefined) { // WebKit
|
685 |
-
deltaX = e.wheelDeltaX / 3.0;
|
686 |
-
deltaY = e.wheelDeltaY / 3.0;
|
687 |
-
} else if (e.wheelDelta !== undefined) { // IE or Opera
|
688 |
-
deltaY = e.wheelDelta / 3.0;
|
689 |
-
}
|
690 |
-
|
691 |
-
var scrolled = false;
|
692 |
-
deltaX = chopDelta(deltaX);
|
693 |
-
deltaY = chopDelta(deltaY);
|
694 |
-
if ((deltaX > 0 && scroller.scrollLeft > 0) ||
|
695 |
-
(deltaX < 0 && scroller.scrollLeft + scroller.clientWidth < scroller.scrollWidth)) {
|
696 |
-
scroller.scrollLeft -= deltaX;
|
697 |
-
scrolled = true;
|
698 |
-
}
|
699 |
-
if ((deltaY > 0 && scrollbar.scrollTop > 0) ||
|
700 |
-
(deltaY < 0 && scrollbar.scrollTop + scrollbar.clientHeight < scrollbar.scrollHeight)) {
|
701 |
-
scrollbar.scrollTop -= deltaY;
|
702 |
-
scrolled = true;
|
703 |
-
}
|
704 |
-
if (scrolled) e_stop(e);
|
705 |
-
}
|
706 |
-
|
707 |
-
// Replace the range from from to to by the strings in newText.
|
708 |
-
// Afterwards, set the selection to selFrom, selTo.
|
709 |
-
function updateLines(from, to, newText, selFrom, selTo) {
|
710 |
-
if (suppressEdits) return;
|
711 |
-
if (history) {
|
712 |
-
var old = [];
|
713 |
-
doc.iter(from.line, to.line + 1, function(line) { old.push(line.text); });
|
714 |
-
history.addChange(from.line, newText.length, old);
|
715 |
-
while (history.done.length > options.undoDepth) history.done.shift();
|
716 |
-
}
|
717 |
-
updateLinesNoUndo(from, to, newText, selFrom, selTo);
|
718 |
-
}
|
719 |
-
function unredoHelper(from, to) {
|
720 |
-
if (!from.length) return;
|
721 |
-
var set = from.pop(), out = [];
|
722 |
-
for (var i = set.length - 1; i >= 0; i -= 1) {
|
723 |
-
var change = set[i];
|
724 |
-
var replaced = [], end = change.start + change.added;
|
725 |
-
doc.iter(change.start, end, function(line) { replaced.push(line.text); });
|
726 |
-
out.push({start: change.start, added: change.old.length, old: replaced});
|
727 |
-
var pos = {line: change.start + change.old.length - 1,
|
728 |
-
ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])};
|
729 |
-
updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: getLine(end-1).text.length}, change.old, pos, pos);
|
730 |
-
}
|
731 |
-
updateInput = true;
|
732 |
-
to.push(out);
|
733 |
-
}
|
734 |
-
function undo() {unredoHelper(history.done, history.undone);}
|
735 |
-
function redo() {unredoHelper(history.undone, history.done);}
|
736 |
-
|
737 |
-
function updateLinesNoUndo(from, to, newText, selFrom, selTo) {
|
738 |
-
if (suppressEdits) return;
|
739 |
-
var recomputeMaxLength = false, maxLineLength = maxLine.length;
|
740 |
-
if (!options.lineWrapping)
|
741 |
-
doc.iter(from.line, to.line + 1, function(line) {
|
742 |
-
if (!line.hidden && line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}
|
743 |
-
});
|
744 |
-
if (from.line != to.line || newText.length > 1) gutterDirty = true;
|
745 |
-
|
746 |
-
var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);
|
747 |
-
// First adjust the line structure, taking some care to leave highlighting intact.
|
748 |
-
if (from.ch == 0 && to.ch == 0 && newText[newText.length - 1] == "") {
|
749 |
-
// This is a whole-line replace. Treated specially to make
|
750 |
-
// sure line objects move the way they are supposed to.
|
751 |
-
var added = [], prevLine = null;
|
752 |
-
if (from.line) {
|
753 |
-
prevLine = getLine(from.line - 1);
|
754 |
-
prevLine.fixMarkEnds(lastLine);
|
755 |
-
} else lastLine.fixMarkStarts();
|
756 |
-
for (var i = 0, e = newText.length - 1; i < e; ++i)
|
757 |
-
added.push(Line.inheritMarks(newText[i], prevLine));
|
758 |
-
if (nlines) doc.remove(from.line, nlines, callbacks);
|
759 |
-
if (added.length) doc.insert(from.line, added);
|
760 |
-
} else if (firstLine == lastLine) {
|
761 |
-
if (newText.length == 1)
|
762 |
-
firstLine.replace(from.ch, to.ch, newText[0]);
|
763 |
-
else {
|
764 |
-
lastLine = firstLine.split(to.ch, newText[newText.length-1]);
|
765 |
-
firstLine.replace(from.ch, null, newText[0]);
|
766 |
-
firstLine.fixMarkEnds(lastLine);
|
767 |
-
var added = [];
|
768 |
-
for (var i = 1, e = newText.length - 1; i < e; ++i)
|
769 |
-
added.push(Line.inheritMarks(newText[i], firstLine));
|
770 |
-
added.push(lastLine);
|
771 |
-
doc.insert(from.line + 1, added);
|
772 |
-
}
|
773 |
-
} else if (newText.length == 1) {
|
774 |
-
firstLine.replace(from.ch, null, newText[0]);
|
775 |
-
lastLine.replace(null, to.ch, "");
|
776 |
-
firstLine.append(lastLine);
|
777 |
-
doc.remove(from.line + 1, nlines, callbacks);
|
778 |
-
} else {
|
779 |
-
var added = [];
|
780 |
-
firstLine.replace(from.ch, null, newText[0]);
|
781 |
-
lastLine.replace(null, to.ch, newText[newText.length-1]);
|
782 |
-
firstLine.fixMarkEnds(lastLine);
|
783 |
-
for (var i = 1, e = newText.length - 1; i < e; ++i)
|
784 |
-
added.push(Line.inheritMarks(newText[i], firstLine));
|
785 |
-
if (nlines > 1) doc.remove(from.line + 1, nlines - 1, callbacks);
|
786 |
-
doc.insert(from.line + 1, added);
|
787 |
-
}
|
788 |
-
if (options.lineWrapping) {
|
789 |
-
var perLine = Math.max(5, scroller.clientWidth / charWidth() - 3);
|
790 |
-
doc.iter(from.line, from.line + newText.length, function(line) {
|
791 |
-
if (line.hidden) return;
|
792 |
-
var guess = Math.ceil(line.text.length / perLine) || 1;
|
793 |
-
if (guess != line.height) updateLineHeight(line, guess);
|
794 |
-
});
|
795 |
-
} else {
|
796 |
-
doc.iter(from.line, from.line + newText.length, function(line) {
|
797 |
-
var l = line.text;
|
798 |
-
if (!line.hidden && l.length > maxLineLength) {
|
799 |
-
maxLine = l; maxLineLength = l.length; maxLineChanged = true;
|
800 |
-
recomputeMaxLength = false;
|
801 |
-
}
|
802 |
-
});
|
803 |
-
if (recomputeMaxLength) updateMaxLine = true;
|
804 |
-
}
|
805 |
-
|
806 |
-
// Add these lines to the work array, so that they will be
|
807 |
-
// highlighted. Adjust work lines if lines were added/removed.
|
808 |
-
var newWork = [], lendiff = newText.length - nlines - 1;
|
809 |
-
for (var i = 0, l = work.length; i < l; ++i) {
|
810 |
-
var task = work[i];
|
811 |
-
if (task < from.line) newWork.push(task);
|
812 |
-
else if (task > to.line) newWork.push(task + lendiff);
|
813 |
-
}
|
814 |
-
var hlEnd = from.line + Math.min(newText.length, 500);
|
815 |
-
highlightLines(from.line, hlEnd);
|
816 |
-
newWork.push(hlEnd);
|
817 |
-
work = newWork;
|
818 |
-
startWorker(100);
|
819 |
-
// Remember that these lines changed, for updating the display
|
820 |
-
changes.push({from: from.line, to: to.line + 1, diff: lendiff});
|
821 |
-
var changeObj = {from: from, to: to, text: newText};
|
822 |
-
if (textChanged) {
|
823 |
-
for (var cur = textChanged; cur.next; cur = cur.next) {}
|
824 |
-
cur.next = changeObj;
|
825 |
-
} else textChanged = changeObj;
|
826 |
-
|
827 |
-
// Update the selection
|
828 |
-
function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}
|
829 |
-
setSelection(clipPos(selFrom), clipPos(selTo),
|
830 |
-
updateLine(sel.from.line), updateLine(sel.to.line));
|
831 |
-
}
|
832 |
-
|
833 |
-
function updateVerticalScroll(scrollTop) {
|
834 |
-
var th = textHeight(), virtualHeight = Math.floor(doc.height * th + 2 * paddingTop()), scrollbarHeight = scroller.clientHeight;
|
835 |
-
scrollbar.style.height = scrollbarHeight + "px";
|
836 |
-
if (scroller.clientHeight)
|
837 |
-
scrollbarInner.style.height = virtualHeight + "px";
|
838 |
-
// Position the mover div to align with the current virtual scroll position
|
839 |
-
if (scrollTop != null) scrollbar.scrollTop = scrollTop;
|
840 |
-
mover.style.top = (displayOffset * th - scrollbar.scrollTop) + "px";
|
841 |
-
scrollbar.style.display = (virtualHeight > scrollbarHeight) ? "block" : "none";
|
842 |
-
}
|
843 |
-
|
844 |
-
// On Mac OS X Lion and up, detect whether the mouse is plugged in by measuring
|
845 |
-
// the width of a div with a scrollbar in it. If the width is <= 1, then
|
846 |
-
// the mouse isn't plugged in and scrollbars should overlap the content.
|
847 |
-
function overlapScrollbars() {
|
848 |
-
var tmpSb = document.createElement('div'),
|
849 |
-
tmpSbInner = document.createElement('div');
|
850 |
-
tmpSb.className = "CodeMirror-scrollbar";
|
851 |
-
tmpSb.style.cssText = "position: absolute; left: -9999px; height: 100px;";
|
852 |
-
tmpSbInner.className = "CodeMirror-scrollbar-inner";
|
853 |
-
tmpSbInner.style.height = "200px";
|
854 |
-
tmpSb.appendChild(tmpSbInner);
|
855 |
-
|
856 |
-
document.body.appendChild(tmpSb);
|
857 |
-
var result = (tmpSb.offsetWidth <= 1);
|
858 |
-
document.body.removeChild(tmpSb);
|
859 |
-
return result;
|
860 |
-
}
|
861 |
-
|
862 |
-
function computeMaxLength() {
|
863 |
-
var maxLineLength = 0;
|
864 |
-
maxLine = ""; maxLineChanged = true;
|
865 |
-
doc.iter(0, doc.size, function(line) {
|
866 |
-
var l = line.text;
|
867 |
-
if (!line.hidden && l.length > maxLineLength) {
|
868 |
-
maxLineLength = l.length; maxLine = l;
|
869 |
-
}
|
870 |
-
});
|
871 |
-
updateMaxLine = false;
|
872 |
-
}
|
873 |
-
|
874 |
-
function replaceRange(code, from, to) {
|
875 |
-
from = clipPos(from);
|
876 |
-
if (!to) to = from; else to = clipPos(to);
|
877 |
-
code = splitLines(code);
|
878 |
-
function adjustPos(pos) {
|
879 |
-
if (posLess(pos, from)) return pos;
|
880 |
-
if (!posLess(to, pos)) return end;
|
881 |
-
var line = pos.line + code.length - (to.line - from.line) - 1;
|
882 |
-
var ch = pos.ch;
|
883 |
-
if (pos.line == to.line)
|
884 |
-
ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));
|
885 |
-
return {line: line, ch: ch};
|
886 |
-
}
|
887 |
-
var end;
|
888 |
-
replaceRange1(code, from, to, function(end1) {
|
889 |
-
end = end1;
|
890 |
-
return {from: adjustPos(sel.from), to: adjustPos(sel.to)};
|
891 |
-
});
|
892 |
-
return end;
|
893 |
-
}
|
894 |
-
function replaceSelection(code, collapse) {
|
895 |
-
replaceRange1(splitLines(code), sel.from, sel.to, function(end) {
|
896 |
-
if (collapse == "end") return {from: end, to: end};
|
897 |
-
else if (collapse == "start") return {from: sel.from, to: sel.from};
|
898 |
-
else return {from: sel.from, to: end};
|
899 |
-
});
|
900 |
-
}
|
901 |
-
function replaceRange1(code, from, to, computeSel) {
|
902 |
-
var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;
|
903 |
-
var newSel = computeSel({line: from.line + code.length - 1, ch: endch});
|
904 |
-
updateLines(from, to, code, newSel.from, newSel.to);
|
905 |
-
}
|
906 |
-
|
907 |
-
function getRange(from, to) {
|
908 |
-
var l1 = from.line, l2 = to.line;
|
909 |
-
if (l1 == l2) return getLine(l1).text.slice(from.ch, to.ch);
|
910 |
-
var code = [getLine(l1).text.slice(from.ch)];
|
911 |
-
doc.iter(l1 + 1, l2, function(line) { code.push(line.text); });
|
912 |
-
code.push(getLine(l2).text.slice(0, to.ch));
|
913 |
-
return code.join("\n");
|
914 |
-
}
|
915 |
-
function getSelection() {
|
916 |
-
return getRange(sel.from, sel.to);
|
917 |
-
}
|
918 |
-
|
919 |
-
var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll
|
920 |
-
function slowPoll() {
|
921 |
-
if (pollingFast) return;
|
922 |
-
poll.set(options.pollInterval, function() {
|
923 |
-
startOperation();
|
924 |
-
readInput();
|
925 |
-
if (focused) slowPoll();
|
926 |
-
endOperation();
|
927 |
-
});
|
928 |
-
}
|
929 |
-
function fastPoll() {
|
930 |
-
var missed = false;
|
931 |
-
pollingFast = true;
|
932 |
-
function p() {
|
933 |
-
startOperation();
|
934 |
-
var changed = readInput();
|
935 |
-
if (!changed && !missed) {missed = true; poll.set(60, p);}
|
936 |
-
else {pollingFast = false; slowPoll();}
|
937 |
-
endOperation();
|
938 |
-
}
|
939 |
-
poll.set(20, p);
|
940 |
-
}
|
941 |
-
|
942 |
-
// Previnput is a hack to work with IME. If we reset the textarea
|
943 |
-
// on every change, that breaks IME. So we look for changes
|
944 |
-
// compared to the previous content instead. (Modern browsers have
|
945 |
-
// events that indicate IME taking place, but these are not widely
|
946 |
-
// supported or compatible enough yet to rely on.)
|
947 |
-
var prevInput = "";
|
948 |
-
function readInput() {
|
949 |
-
if (leaveInputAlone || !focused || hasSelection(input) || options.readOnly) return false;
|
950 |
-
var text = input.value;
|
951 |
-
if (text == prevInput) return false;
|
952 |
-
shiftSelecting = null;
|
953 |
-
var same = 0, l = Math.min(prevInput.length, text.length);
|
954 |
-
while (same < l && prevInput[same] == text[same]) ++same;
|
955 |
-
if (same < prevInput.length)
|
956 |
-
sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};
|
957 |
-
else if (overwrite && posEq(sel.from, sel.to))
|
958 |
-
sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};
|
959 |
-
replaceSelection(text.slice(same), "end");
|
960 |
-
if (text.length > 1000) { input.value = prevInput = ""; }
|
961 |
-
else prevInput = text;
|
962 |
-
return true;
|
963 |
-
}
|
964 |
-
function resetInput(user) {
|
965 |
-
if (!posEq(sel.from, sel.to)) {
|
966 |
-
prevInput = "";
|
967 |
-
input.value = getSelection();
|
968 |
-
selectInput(input);
|
969 |
-
} else if (user) prevInput = input.value = "";
|
970 |
-
}
|
971 |
-
|
972 |
-
function focusInput() {
|
973 |
-
if (options.readOnly != "nocursor") input.focus();
|
974 |
-
}
|
975 |
-
|
976 |
-
function scrollEditorIntoView() {
|
977 |
-
if (!cursor.getBoundingClientRect) return;
|
978 |
-
var rect = cursor.getBoundingClientRect();
|
979 |
-
// IE returns bogus coordinates when the instance sits inside of an iframe and the cursor is hidden
|
980 |
-
if (ie && rect.top == rect.bottom) return;
|
981 |
-
var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);
|
982 |
-
if (rect.top < 0 || rect.bottom > winH) scrollCursorIntoView();
|
983 |
-
}
|
984 |
-
function scrollCursorIntoView() {
|
985 |
-
var coords = calculateCursorCoords();
|
986 |
-
return scrollIntoView(coords.x, coords.y, coords.x, coords.yBot);
|
987 |
-
}
|
988 |
-
function calculateCursorCoords() {
|
989 |
-
var cursor = localCoords(sel.inverted ? sel.from : sel.to);
|
990 |
-
var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;
|
991 |
-
return {x: x, y: cursor.y, yBot: cursor.yBot};
|
992 |
-
}
|
993 |
-
function scrollIntoView(x1, y1, x2, y2) {
|
994 |
-
var scrollPos = calculateScrollPos(x1, y1, x2, y2), scrolled = false;
|
995 |
-
if (scrollPos.scrollLeft != null) {scroller.scrollLeft = scrollPos.scrollLeft; scrolled = true;}
|
996 |
-
if (scrollPos.scrollTop != null) {scrollbar.scrollTop = scrollPos.scrollTop; scrolled = true;}
|
997 |
-
if (scrolled && options.onScroll) options.onScroll(instance);
|
998 |
-
}
|
999 |
-
function calculateScrollPos(x1, y1, x2, y2) {
|
1000 |
-
var pl = paddingLeft(), pt = paddingTop();
|
1001 |
-
y1 += pt; y2 += pt; x1 += pl; x2 += pl;
|
1002 |
-
var screen = scroller.clientHeight, screentop = scrollbar.scrollTop, result = {};
|
1003 |
-
var atTop = y1 < paddingTop() + 10;
|
1004 |
-
if (y1 < screentop) result.scrollTop = atTop ? 0 : Math.max(0, y1);
|
1005 |
-
else if (y2 > screentop + screen) result.scrollTop = y2 - screen;
|
1006 |
-
|
1007 |
-
var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;
|
1008 |
-
var gutterw = options.fixedGutter ? gutter.clientWidth : 0;
|
1009 |
-
var atLeft = x1 < gutterw + pl + 10;
|
1010 |
-
if (x1 < screenleft + gutterw || atLeft) {
|
1011 |
-
if (atLeft) x1 = 0;
|
1012 |
-
result.scrollLeft = Math.max(0, x1 - 10 - gutterw);
|
1013 |
-
} else if (x2 > screenw + screenleft - 3) {
|
1014 |
-
result.scrollLeft = x2 + 10 - screenw;
|
1015 |
-
}
|
1016 |
-
return result;
|
1017 |
-
}
|
1018 |
-
|
1019 |
-
function visibleLines(scrollTop) {
|
1020 |
-
var lh = textHeight(), top = (scrollTop != null ? scrollTop : scrollbar.scrollTop) - paddingTop();
|
1021 |
-
var fromHeight = Math.max(0, Math.floor(top / lh));
|
1022 |
-
var toHeight = Math.ceil((top + scroller.clientHeight) / lh);
|
1023 |
-
return {from: lineAtHeight(doc, fromHeight),
|
1024 |
-
to: lineAtHeight(doc, toHeight)};
|
1025 |
-
}
|
1026 |
-
// Uses a set of changes plus the current scroll position to
|
1027 |
-
// determine which DOM updates have to be made, and makes the
|
1028 |
-
// updates.
|
1029 |
-
function updateDisplay(changes, suppressCallback, scrollTop) {
|
1030 |
-
if (!scroller.clientWidth) {
|
1031 |
-
showingFrom = showingTo = displayOffset = 0;
|
1032 |
-
return;
|
1033 |
-
}
|
1034 |
-
// Compute the new visible window
|
1035 |
-
// If scrollTop is specified, use that to determine which lines
|
1036 |
-
// to render instead of the current scrollbar position.
|
1037 |
-
var visible = visibleLines(scrollTop);
|
1038 |
-
// Bail out if the visible area is already rendered and nothing changed.
|
1039 |
-
if (changes !== true && changes.length == 0 && visible.from > showingFrom && visible.to < showingTo) {
|
1040 |
-
updateVerticalScroll(scrollTop);
|
1041 |
-
return;
|
1042 |
-
}
|
1043 |
-
var from = Math.max(visible.from - 100, 0), to = Math.min(doc.size, visible.to + 100);
|
1044 |
-
if (showingFrom < from && from - showingFrom < 20) from = showingFrom;
|
1045 |
-
if (showingTo > to && showingTo - to < 20) to = Math.min(doc.size, showingTo);
|
1046 |
-
|
1047 |
-
// Create a range of theoretically intact lines, and punch holes
|
1048 |
-
// in that using the change info.
|
1049 |
-
var intact = changes === true ? [] :
|
1050 |
-
computeIntact([{from: showingFrom, to: showingTo, domStart: 0}], changes);
|
1051 |
-
// Clip off the parts that won't be visible
|
1052 |
-
var intactLines = 0;
|
1053 |
-
for (var i = 0; i < intact.length; ++i) {
|
1054 |
-
var range = intact[i];
|
1055 |
-
if (range.from < from) {range.domStart += (from - range.from); range.from = from;}
|
1056 |
-
if (range.to > to) range.to = to;
|
1057 |
-
if (range.from >= range.to) intact.splice(i--, 1);
|
1058 |
-
else intactLines += range.to - range.from;
|
1059 |
-
}
|
1060 |
-
if (intactLines == to - from && from == showingFrom && to == showingTo) {
|
1061 |
-
updateVerticalScroll(scrollTop);
|
1062 |
-
return;
|
1063 |
-
}
|
1064 |
-
intact.sort(function(a, b) {return a.domStart - b.domStart;});
|
1065 |
-
|
1066 |
-
var th = textHeight(), gutterDisplay = gutter.style.display;
|
1067 |
-
lineDiv.style.display = "none";
|
1068 |
-
patchDisplay(from, to, intact);
|
1069 |
-
lineDiv.style.display = gutter.style.display = "";
|
1070 |
-
|
1071 |
-
var different = from != showingFrom || to != showingTo || lastSizeC != scroller.clientHeight + th;
|
1072 |
-
// This is just a bogus formula that detects when the editor is
|
1073 |
-
// resized or the font size changes.
|
1074 |
-
if (different) lastSizeC = scroller.clientHeight + th;
|
1075 |
-
showingFrom = from; showingTo = to;
|
1076 |
-
displayOffset = heightAtLine(doc, from);
|
1077 |
-
|
1078 |
-
// Since this is all rather error prone, it is honoured with the
|
1079 |
-
// only assertion in the whole file.
|
1080 |
-
if (lineDiv.childNodes.length != showingTo - showingFrom)
|
1081 |
-
throw new Error("BAD PATCH! " + JSON.stringify(intact) + " size=" + (showingTo - showingFrom) +
|
1082 |
-
" nodes=" + lineDiv.childNodes.length);
|
1083 |
-
|
1084 |
-
function checkHeights() {
|
1085 |
-
var curNode = lineDiv.firstChild, heightChanged = false;
|
1086 |
-
doc.iter(showingFrom, showingTo, function(line) {
|
1087 |
-
if (!line.hidden) {
|
1088 |
-
var height = Math.round(curNode.offsetHeight / th) || 1;
|
1089 |
-
if (line.height != height) {
|
1090 |
-
updateLineHeight(line, height);
|
1091 |
-
gutterDirty = heightChanged = true;
|
1092 |
-
}
|
1093 |
-
}
|
1094 |
-
curNode = curNode.nextSibling;
|
1095 |
-
});
|
1096 |
-
return heightChanged;
|
1097 |
-
}
|
1098 |
-
|
1099 |
-
if (options.lineWrapping) {
|
1100 |
-
// Guess whether we're going to need the scrollbar, so that we don't end up changing the linewrapping
|
1101 |
-
// after the scrollbar appears (during updateVerticalScroll()). Only do this if the scrollbar is
|
1102 |
-
// appearing (if it's disappearing, we don't have to worry about the scroll position, and there are
|
1103 |
-
// issues on IE7 if we turn it off too early).
|
1104 |
-
var virtualHeight = Math.floor(doc.height * th + 2 * paddingTop()), scrollbarHeight = scroller.clientHeight;
|
1105 |
-
if (virtualHeight > scrollbarHeight) scrollbar.style.display = "block";
|
1106 |
-
checkHeights();
|
1107 |
-
}
|
1108 |
-
|
1109 |
-
gutter.style.display = gutterDisplay;
|
1110 |
-
if (different || gutterDirty) {
|
1111 |
-
// If the gutter grew in size, re-check heights. If those changed, re-draw gutter.
|
1112 |
-
updateGutter() && options.lineWrapping && checkHeights() && updateGutter();
|
1113 |
-
}
|
1114 |
-
updateSelection();
|
1115 |
-
updateVerticalScroll(scrollTop);
|
1116 |
-
if (!suppressCallback && options.onUpdate) options.onUpdate(instance);
|
1117 |
-
return true;
|
1118 |
-
}
|
1119 |
-
|
1120 |
-
function computeIntact(intact, changes) {
|
1121 |
-
for (var i = 0, l = changes.length || 0; i < l; ++i) {
|
1122 |
-
var change = changes[i], intact2 = [], diff = change.diff || 0;
|
1123 |
-
for (var j = 0, l2 = intact.length; j < l2; ++j) {
|
1124 |
-
var range = intact[j];
|
1125 |
-
if (change.to <= range.from && change.diff)
|
1126 |
-
intact2.push({from: range.from + diff, to: range.to + diff,
|
1127 |
-
domStart: range.domStart});
|
1128 |
-
else if (change.to <= range.from || change.from >= range.to)
|
1129 |
-
intact2.push(range);
|
1130 |
-
else {
|
1131 |
-
if (change.from > range.from)
|
1132 |
-
intact2.push({from: range.from, to: change.from, domStart: range.domStart});
|
1133 |
-
if (change.to < range.to)
|
1134 |
-
intact2.push({from: change.to + diff, to: range.to + diff,
|
1135 |
-
domStart: range.domStart + (change.to - range.from)});
|
1136 |
-
}
|
1137 |
-
}
|
1138 |
-
intact = intact2;
|
1139 |
-
}
|
1140 |
-
return intact;
|
1141 |
-
}
|
1142 |
-
|
1143 |
-
function patchDisplay(from, to, intact) {
|
1144 |
-
// The first pass removes the DOM nodes that aren't intact.
|
1145 |
-
if (!intact.length) lineDiv.innerHTML = "";
|
1146 |
-
else {
|
1147 |
-
function killNode(node) {
|
1148 |
-
var tmp = node.nextSibling;
|
1149 |
-
node.parentNode.removeChild(node);
|
1150 |
-
return tmp;
|
1151 |
-
}
|
1152 |
-
var domPos = 0, curNode = lineDiv.firstChild, n;
|
1153 |
-
for (var i = 0; i < intact.length; ++i) {
|
1154 |
-
var cur = intact[i];
|
1155 |
-
while (cur.domStart > domPos) {curNode = killNode(curNode); domPos++;}
|
1156 |
-
for (var j = 0, e = cur.to - cur.from; j < e; ++j) {curNode = curNode.nextSibling; domPos++;}
|
1157 |
-
}
|
1158 |
-
while (curNode) curNode = killNode(curNode);
|
1159 |
-
}
|
1160 |
-
// This pass fills in the lines that actually changed.
|
1161 |
-
var nextIntact = intact.shift(), curNode = lineDiv.firstChild, j = from;
|
1162 |
-
var scratch = document.createElement("div");
|
1163 |
-
doc.iter(from, to, function(line) {
|
1164 |
-
if (nextIntact && nextIntact.to == j) nextIntact = intact.shift();
|
1165 |
-
if (!nextIntact || nextIntact.from > j) {
|
1166 |
-
if (line.hidden) var html = scratch.innerHTML = "<pre></pre>";
|
1167 |
-
else {
|
1168 |
-
var html = '<pre' + (line.className ? ' class="' + line.className + '"' : '') + '>'
|
1169 |
-
+ line.getHTML(makeTab) + '</pre>';
|
1170 |
-
// Kludge to make sure the styled element lies behind the selection (by z-index)
|
1171 |
-
if (line.bgClassName)
|
1172 |
-
html = '<div style="position: relative"><pre class="' + line.bgClassName +
|
1173 |
-
'" style="position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2"> </pre>' + html + "</div>";
|
1174 |
-
}
|
1175 |
-
scratch.innerHTML = html;
|
1176 |
-
lineDiv.insertBefore(scratch.firstChild, curNode);
|
1177 |
-
} else {
|
1178 |
-
curNode = curNode.nextSibling;
|
1179 |
-
}
|
1180 |
-
++j;
|
1181 |
-
});
|
1182 |
-
}
|
1183 |
-
|
1184 |
-
function updateGutter() {
|
1185 |
-
if (!options.gutter && !options.lineNumbers) return;
|
1186 |
-
var hText = mover.offsetHeight, hEditor = scroller.clientHeight;
|
1187 |
-
gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + "px";
|
1188 |
-
var html = [], i = showingFrom, normalNode;
|
1189 |
-
doc.iter(showingFrom, Math.max(showingTo, showingFrom + 1), function(line) {
|
1190 |
-
if (line.hidden) {
|
1191 |
-
html.push("<pre></pre>");
|
1192 |
-
} else {
|
1193 |
-
var marker = line.gutterMarker;
|
1194 |
-
var text = options.lineNumbers ? i + options.firstLineNumber : null;
|
1195 |
-
if (marker && marker.text)
|
1196 |
-
text = marker.text.replace("%N%", text != null ? text : "");
|
1197 |
-
else if (text == null)
|
1198 |
-
text = "\u00a0";
|
1199 |
-
html.push((marker && marker.style ? '<pre class="' + marker.style + '">' : "<pre>"), text);
|
1200 |
-
for (var j = 1; j < line.height; ++j) html.push("<br/> ");
|
1201 |
-
html.push("</pre>");
|
1202 |
-
if (!marker) normalNode = i;
|
1203 |
-
}
|
1204 |
-
++i;
|
1205 |
-
});
|
1206 |
-
gutter.style.display = "none";
|
1207 |
-
gutterText.innerHTML = html.join("");
|
1208 |
-
// Make sure scrolling doesn't cause number gutter size to pop
|
1209 |
-
if (normalNode != null && options.lineNumbers) {
|
1210 |
-
var node = gutterText.childNodes[normalNode - showingFrom];
|
1211 |
-
var minwidth = String(doc.size).length, val = eltText(node.firstChild), pad = "";
|
1212 |
-
while (val.length + pad.length < minwidth) pad += "\u00a0";
|
1213 |
-
if (pad) node.insertBefore(document.createTextNode(pad), node.firstChild);
|
1214 |
-
}
|
1215 |
-
gutter.style.display = "";
|
1216 |
-
var resized = Math.abs((parseInt(lineSpace.style.marginLeft) || 0) - gutter.offsetWidth) > 2;
|
1217 |
-
lineSpace.style.marginLeft = gutter.offsetWidth + "px";
|
1218 |
-
gutterDirty = false;
|
1219 |
-
return resized;
|
1220 |
-
}
|
1221 |
-
function updateSelection() {
|
1222 |
-
var collapsed = posEq(sel.from, sel.to);
|
1223 |
-
var fromPos = localCoords(sel.from, true);
|
1224 |
-
var toPos = collapsed ? fromPos : localCoords(sel.to, true);
|
1225 |
-
var headPos = sel.inverted ? fromPos : toPos, th = textHeight();
|
1226 |
-
var wrapOff = eltOffset(wrapper), lineOff = eltOffset(lineDiv);
|
1227 |
-
inputDiv.style.top = Math.max(0, Math.min(scroller.offsetHeight, headPos.y + lineOff.top - wrapOff.top)) + "px";
|
1228 |
-
inputDiv.style.left = Math.max(0, Math.min(scroller.offsetWidth, headPos.x + lineOff.left - wrapOff.left)) + "px";
|
1229 |
-
if (collapsed) {
|
1230 |
-
cursor.style.top = headPos.y + "px";
|
1231 |
-
cursor.style.left = (options.lineWrapping ? Math.min(headPos.x, lineSpace.offsetWidth) : headPos.x) + "px";
|
1232 |
-
cursor.style.display = "";
|
1233 |
-
selectionDiv.style.display = "none";
|
1234 |
-
} else {
|
1235 |
-
var sameLine = fromPos.y == toPos.y, html = "";
|
1236 |
-
var clientWidth = lineSpace.clientWidth || lineSpace.offsetWidth;
|
1237 |
-
var clientHeight = lineSpace.clientHeight || lineSpace.offsetHeight;
|
1238 |
-
function add(left, top, right, height) {
|
1239 |
-
var rstyle = quirksMode ? "width: " + (!right ? clientWidth : clientWidth - right - left) + "px"
|
1240 |
-
: "right: " + right + "px";
|
1241 |
-
html += '<div class="CodeMirror-selected" style="position: absolute; left: ' + left +
|
1242 |
-
'px; top: ' + top + 'px; ' + rstyle + '; height: ' + height + 'px"></div>';
|
1243 |
-
}
|
1244 |
-
if (sel.from.ch && fromPos.y >= 0) {
|
1245 |
-
var right = sameLine ? clientWidth - toPos.x : 0;
|
1246 |
-
add(fromPos.x, fromPos.y, right, th);
|
1247 |
-
}
|
1248 |
-
var middleStart = Math.max(0, fromPos.y + (sel.from.ch ? th : 0));
|
1249 |
-
var middleHeight = Math.min(toPos.y, clientHeight) - middleStart;
|
1250 |
-
if (middleHeight > 0.2 * th)
|
1251 |
-
add(0, middleStart, 0, middleHeight);
|
1252 |
-
if ((!sameLine || !sel.from.ch) && toPos.y < clientHeight - .5 * th)
|
1253 |
-
add(0, toPos.y, clientWidth - toPos.x, th);
|
1254 |
-
selectionDiv.innerHTML = html;
|
1255 |
-
cursor.style.display = "none";
|
1256 |
-
selectionDiv.style.display = "";
|
1257 |
-
}
|
1258 |
-
}
|
1259 |
-
|
1260 |
-
function setShift(val) {
|
1261 |
-
if (val) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);
|
1262 |
-
else shiftSelecting = null;
|
1263 |
-
}
|
1264 |
-
function setSelectionUser(from, to) {
|
1265 |
-
var sh = shiftSelecting && clipPos(shiftSelecting);
|
1266 |
-
if (sh) {
|
1267 |
-
if (posLess(sh, from)) from = sh;
|
1268 |
-
else if (posLess(to, sh)) to = sh;
|
1269 |
-
}
|
1270 |
-
setSelection(from, to);
|
1271 |
-
userSelChange = true;
|
1272 |
-
}
|
1273 |
-
// Update the selection. Last two args are only used by
|
1274 |
-
// updateLines, since they have to be expressed in the line
|
1275 |
-
// numbers before the update.
|
1276 |
-
function setSelection(from, to, oldFrom, oldTo) {
|
1277 |
-
goalColumn = null;
|
1278 |
-
if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}
|
1279 |
-
if (posEq(sel.from, from) && posEq(sel.to, to)) return;
|
1280 |
-
if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}
|
1281 |
-
|
1282 |
-
// Skip over hidden lines.
|
1283 |
-
if (from.line != oldFrom) {
|
1284 |
-
var from1 = skipHidden(from, oldFrom, sel.from.ch);
|
1285 |
-
// If there is no non-hidden line left, force visibility on current line
|
1286 |
-
if (!from1) setLineHidden(from.line, false);
|
1287 |
-
else from = from1;
|
1288 |
-
}
|
1289 |
-
if (to.line != oldTo) to = skipHidden(to, oldTo, sel.to.ch);
|
1290 |
-
|
1291 |
-
if (posEq(from, to)) sel.inverted = false;
|
1292 |
-
else if (posEq(from, sel.to)) sel.inverted = false;
|
1293 |
-
else if (posEq(to, sel.from)) sel.inverted = true;
|
1294 |
-
|
1295 |
-
if (options.autoClearEmptyLines && posEq(sel.from, sel.to)) {
|
1296 |
-
var head = sel.inverted ? from : to;
|
1297 |
-
if (head.line != sel.from.line && sel.from.line < doc.size) {
|
1298 |
-
var oldLine = getLine(sel.from.line);
|
1299 |
-
if (/^\s+$/.test(oldLine.text))
|
1300 |
-
setTimeout(operation(function() {
|
1301 |
-
if (oldLine.parent && /^\s+$/.test(oldLine.text)) {
|
1302 |
-
var no = lineNo(oldLine);
|
1303 |
-
replaceRange("", {line: no, ch: 0}, {line: no, ch: oldLine.text.length});
|
1304 |
-
}
|
1305 |
-
}, 10));
|
1306 |
-
}
|
1307 |
-
}
|
1308 |
-
|
1309 |
-
sel.from = from; sel.to = to;
|
1310 |
-
selectionChanged = true;
|
1311 |
-
}
|
1312 |
-
function skipHidden(pos, oldLine, oldCh) {
|
1313 |
-
function getNonHidden(dir) {
|
1314 |
-
var lNo = pos.line + dir, end = dir == 1 ? doc.size : -1;
|
1315 |
-
while (lNo != end) {
|
1316 |
-
var line = getLine(lNo);
|
1317 |
-
if (!line.hidden) {
|
1318 |
-
var ch = pos.ch;
|
1319 |
-
if (toEnd || ch > oldCh || ch > line.text.length) ch = line.text.length;
|
1320 |
-
return {line: lNo, ch: ch};
|
1321 |
-
}
|
1322 |
-
lNo += dir;
|
1323 |
-
}
|
1324 |
-
}
|
1325 |
-
var line = getLine(pos.line);
|
1326 |
-
var toEnd = pos.ch == line.text.length && pos.ch != oldCh;
|
1327 |
-
if (!line.hidden) return pos;
|
1328 |
-
if (pos.line >= oldLine) return getNonHidden(1) || getNonHidden(-1);
|
1329 |
-
else return getNonHidden(-1) || getNonHidden(1);
|
1330 |
-
}
|
1331 |
-
function setCursor(line, ch, user) {
|
1332 |
-
var pos = clipPos({line: line, ch: ch || 0});
|
1333 |
-
(user ? setSelectionUser : setSelection)(pos, pos);
|
1334 |
-
}
|
1335 |
-
|
1336 |
-
function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}
|
1337 |
-
function clipPos(pos) {
|
1338 |
-
if (pos.line < 0) return {line: 0, ch: 0};
|
1339 |
-
if (pos.line >= doc.size) return {line: doc.size-1, ch: getLine(doc.size-1).text.length};
|
1340 |
-
var ch = pos.ch, linelen = getLine(pos.line).text.length;
|
1341 |
-
if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};
|
1342 |
-
else if (ch < 0) return {line: pos.line, ch: 0};
|
1343 |
-
else return pos;
|
1344 |
-
}
|
1345 |
-
|
1346 |
-
function findPosH(dir, unit) {
|
1347 |
-
var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;
|
1348 |
-
var lineObj = getLine(line);
|
1349 |
-
function findNextLine() {
|
1350 |
-
for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {
|
1351 |
-
var lo = getLine(l);
|
1352 |
-
if (!lo.hidden) { line = l; lineObj = lo; return true; }
|
1353 |
-
}
|
1354 |
-
}
|
1355 |
-
function moveOnce(boundToLine) {
|
1356 |
-
if (ch == (dir < 0 ? 0 : lineObj.text.length)) {
|
1357 |
-
if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;
|
1358 |
-
else return false;
|
1359 |
-
} else ch += dir;
|
1360 |
-
return true;
|
1361 |
-
}
|
1362 |
-
if (unit == "char") moveOnce();
|
1363 |
-
else if (unit == "column") moveOnce(true);
|
1364 |
-
else if (unit == "word") {
|
1365 |
-
var sawWord = false;
|
1366 |
-
for (;;) {
|
1367 |
-
if (dir < 0) if (!moveOnce()) break;
|
1368 |
-
if (isWordChar(lineObj.text.charAt(ch))) sawWord = true;
|
1369 |
-
else if (sawWord) {if (dir < 0) {dir = 1; moveOnce();} break;}
|
1370 |
-
if (dir > 0) if (!moveOnce()) break;
|
1371 |
-
}
|
1372 |
-
}
|
1373 |
-
return {line: line, ch: ch};
|
1374 |
-
}
|
1375 |
-
function moveH(dir, unit) {
|
1376 |
-
var pos = dir < 0 ? sel.from : sel.to;
|
1377 |
-
if (shiftSelecting || posEq(sel.from, sel.to)) pos = findPosH(dir, unit);
|
1378 |
-
setCursor(pos.line, pos.ch, true);
|
1379 |
-
}
|
1380 |
-
function deleteH(dir, unit) {
|
1381 |
-
if (!posEq(sel.from, sel.to)) replaceRange("", sel.from, sel.to);
|
1382 |
-
else if (dir < 0) replaceRange("", findPosH(dir, unit), sel.to);
|
1383 |
-
else replaceRange("", sel.from, findPosH(dir, unit));
|
1384 |
-
userSelChange = true;
|
1385 |
-
}
|
1386 |
-
var goalColumn = null;
|
1387 |
-
function moveV(dir, unit) {
|
1388 |
-
var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);
|
1389 |
-
if (goalColumn != null) pos.x = goalColumn;
|
1390 |
-
if (unit == "page") dist = Math.min(scroller.clientHeight, window.innerHeight || document.documentElement.clientHeight);
|
1391 |
-
else if (unit == "line") dist = textHeight();
|
1392 |
-
var target = coordsChar(pos.x, pos.y + dist * dir + 2);
|
1393 |
-
if (unit == "page") scrollbar.scrollTop += localCoords(target, true).y - pos.y;
|
1394 |
-
setCursor(target.line, target.ch, true);
|
1395 |
-
goalColumn = pos.x;
|
1396 |
-
}
|
1397 |
-
|
1398 |
-
function selectWordAt(pos) {
|
1399 |
-
var line = getLine(pos.line).text;
|
1400 |
-
var start = pos.ch, end = pos.ch;
|
1401 |
-
while (start > 0 && isWordChar(line.charAt(start - 1))) --start;
|
1402 |
-
while (end < line.length && isWordChar(line.charAt(end))) ++end;
|
1403 |
-
setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});
|
1404 |
-
}
|
1405 |
-
function selectLine(line) {
|
1406 |
-
setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));
|
1407 |
-
}
|
1408 |
-
function indentSelected(mode) {
|
1409 |
-
if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);
|
1410 |
-
var e = sel.to.line - (sel.to.ch ? 0 : 1);
|
1411 |
-
for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);
|
1412 |
-
}
|
1413 |
-
|
1414 |
-
function indentLine(n, how) {
|
1415 |
-
if (!how) how = "add";
|
1416 |
-
if (how == "smart") {
|
1417 |
-
if (!mode.indent) how = "prev";
|
1418 |
-
else var state = getStateBefore(n);
|
1419 |
-
}
|
1420 |
-
|
1421 |
-
var line = getLine(n), curSpace = line.indentation(options.tabSize),
|
1422 |
-
curSpaceString = line.text.match(/^\s*/)[0], indentation;
|
1423 |
-
if (how == "smart") {
|
1424 |
-
indentation = mode.indent(state, line.text.slice(curSpaceString.length), line.text);
|
1425 |
-
if (indentation == Pass) how = "prev";
|
1426 |
-
}
|
1427 |
-
if (how == "prev") {
|
1428 |
-
if (n) indentation = getLine(n-1).indentation(options.tabSize);
|
1429 |
-
else indentation = 0;
|
1430 |
-
}
|
1431 |
-
else if (how == "add") indentation = curSpace + options.indentUnit;
|
1432 |
-
else if (how == "subtract") indentation = curSpace - options.indentUnit;
|
1433 |
-
indentation = Math.max(0, indentation);
|
1434 |
-
var diff = indentation - curSpace;
|
1435 |
-
|
1436 |
-
if (!diff) {
|
1437 |
-
if (sel.from.line != n && sel.to.line != n) return;
|
1438 |
-
var indentString = curSpaceString;
|
1439 |
-
} else {
|
1440 |
-
var indentString = "", pos = 0;
|
1441 |
-
if (options.indentWithTabs)
|
1442 |
-
for (var i = Math.floor(indentation / options.tabSize); i; --i) {pos += options.tabSize; indentString += "\t";}
|
1443 |
-
while (pos < indentation) {++pos; indentString += " ";}
|
1444 |
-
}
|
1445 |
-
|
1446 |
-
replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});
|
1447 |
-
}
|
1448 |
-
|
1449 |
-
function loadMode() {
|
1450 |
-
mode = CodeMirror.getMode(options, options.mode);
|
1451 |
-
doc.iter(0, doc.size, function(line) { line.stateAfter = null; });
|
1452 |
-
work = [0];
|
1453 |
-
startWorker();
|
1454 |
-
}
|
1455 |
-
function gutterChanged() {
|
1456 |
-
var visible = options.gutter || options.lineNumbers;
|
1457 |
-
gutter.style.display = visible ? "" : "none";
|
1458 |
-
if (visible) gutterDirty = true;
|
1459 |
-
else lineDiv.parentNode.style.marginLeft = 0;
|
1460 |
-
}
|
1461 |
-
function wrappingChanged(from, to) {
|
1462 |
-
if (options.lineWrapping) {
|
1463 |
-
wrapper.className += " CodeMirror-wrap";
|
1464 |
-
var perLine = scroller.clientWidth / charWidth() - 3;
|
1465 |
-
doc.iter(0, doc.size, function(line) {
|
1466 |
-
if (line.hidden) return;
|
1467 |
-
var guess = Math.ceil(line.text.length / perLine) || 1;
|
1468 |
-
if (guess != 1) updateLineHeight(line, guess);
|
1469 |
-
});
|
1470 |
-
lineSpace.style.width = code.style.width = "";
|
1471 |
-
widthForcer.style.left = "";
|
1472 |
-
} else {
|
1473 |
-
wrapper.className = wrapper.className.replace(" CodeMirror-wrap", "");
|
1474 |
-
maxLine = ""; maxLineChanged = true;
|
1475 |
-
doc.iter(0, doc.size, function(line) {
|
1476 |
-
if (line.height != 1 && !line.hidden) updateLineHeight(line, 1);
|
1477 |
-
if (line.text.length > maxLine.length) maxLine = line.text;
|
1478 |
-
});
|
1479 |
-
}
|
1480 |
-
changes.push({from: 0, to: doc.size});
|
1481 |
-
}
|
1482 |
-
function makeTab(col) {
|
1483 |
-
var w = options.tabSize - col % options.tabSize, cached = tabCache[w];
|
1484 |
-
if (cached) return cached;
|
1485 |
-
for (var str = '<span class="cm-tab">', i = 0; i < w; ++i) str += " ";
|
1486 |
-
return (tabCache[w] = {html: str + "</span>", width: w});
|
1487 |
-
}
|
1488 |
-
function themeChanged() {
|
1489 |
-
scroller.className = scroller.className.replace(/\s*cm-s-\S+/g, "") +
|
1490 |
-
options.theme.replace(/(^|\s)\s*/g, " cm-s-");
|
1491 |
-
}
|
1492 |
-
function keyMapChanged() {
|
1493 |
-
var style = keyMap[options.keyMap].style;
|
1494 |
-
wrapper.className = wrapper.className.replace(/\s*cm-keymap-\S+/g, "") +
|
1495 |
-
(style ? " cm-keymap-" + style : "");
|
1496 |
-
}
|
1497 |
-
|
1498 |
-
function TextMarker() { this.set = []; }
|
1499 |
-
TextMarker.prototype.clear = operation(function() {
|
1500 |
-
var min = Infinity, max = -Infinity;
|
1501 |
-
for (var i = 0, e = this.set.length; i < e; ++i) {
|
1502 |
-
var line = this.set[i], mk = line.marked;
|
1503 |
-
if (!mk || !line.parent) continue;
|
1504 |
-
var lineN = lineNo(line);
|
1505 |
-
min = Math.min(min, lineN); max = Math.max(max, lineN);
|
1506 |
-
for (var j = 0; j < mk.length; ++j)
|
1507 |
-
if (mk[j].marker == this) mk.splice(j--, 1);
|
1508 |
-
}
|
1509 |
-
if (min != Infinity)
|
1510 |
-
changes.push({from: min, to: max + 1});
|
1511 |
-
});
|
1512 |
-
TextMarker.prototype.find = function() {
|
1513 |
-
var from, to;
|
1514 |
-
for (var i = 0, e = this.set.length; i < e; ++i) {
|
1515 |
-
var line = this.set[i], mk = line.marked;
|
1516 |
-
for (var j = 0; j < mk.length; ++j) {
|
1517 |
-
var mark = mk[j];
|
1518 |
-
if (mark.marker == this) {
|
1519 |
-
if (mark.from != null || mark.to != null) {
|
1520 |
-
var found = lineNo(line);
|
1521 |
-
if (found != null) {
|
1522 |
-
if (mark.from != null) from = {line: found, ch: mark.from};
|
1523 |
-
if (mark.to != null) to = {line: found, ch: mark.to};
|
1524 |
-
}
|
1525 |
-
}
|
1526 |
-
}
|
1527 |
-
}
|
1528 |
-
}
|
1529 |
-
return {from: from, to: to};
|
1530 |
-
};
|
1531 |
-
|
1532 |
-
function markText(from, to, className) {
|
1533 |
-
from = clipPos(from); to = clipPos(to);
|
1534 |
-
var tm = new TextMarker();
|
1535 |
-
if (!posLess(from, to)) return tm;
|
1536 |
-
function add(line, from, to, className) {
|
1537 |
-
getLine(line).addMark(new MarkedText(from, to, className, tm));
|
1538 |
-
}
|
1539 |
-
if (from.line == to.line) add(from.line, from.ch, to.ch, className);
|
1540 |
-
else {
|
1541 |
-
add(from.line, from.ch, null, className);
|
1542 |
-
for (var i = from.line + 1, e = to.line; i < e; ++i)
|
1543 |
-
add(i, null, null, className);
|
1544 |
-
add(to.line, null, to.ch, className);
|
1545 |
-
}
|
1546 |
-
changes.push({from: from.line, to: to.line + 1});
|
1547 |
-
return tm;
|
1548 |
-
}
|
1549 |
-
|
1550 |
-
function setBookmark(pos) {
|
1551 |
-
pos = clipPos(pos);
|
1552 |
-
var bm = new Bookmark(pos.ch);
|
1553 |
-
getLine(pos.line).addMark(bm);
|
1554 |
-
return bm;
|
1555 |
-
}
|
1556 |
-
|
1557 |
-
function findMarksAt(pos) {
|
1558 |
-
pos = clipPos(pos);
|
1559 |
-
var markers = [], marked = getLine(pos.line).marked;
|
1560 |
-
if (!marked) return markers;
|
1561 |
-
for (var i = 0, e = marked.length; i < e; ++i) {
|
1562 |
-
var m = marked[i];
|
1563 |
-
if ((m.from == null || m.from <= pos.ch) &&
|
1564 |
-
(m.to == null || m.to >= pos.ch))
|
1565 |
-
markers.push(m.marker || m);
|
1566 |
-
}
|
1567 |
-
return markers;
|
1568 |
-
}
|
1569 |
-
|
1570 |
-
function addGutterMarker(line, text, className) {
|
1571 |
-
if (typeof line == "number") line = getLine(clipLine(line));
|
1572 |
-
line.gutterMarker = {text: text, style: className};
|
1573 |
-
gutterDirty = true;
|
1574 |
-
return line;
|
1575 |
-
}
|
1576 |
-
function removeGutterMarker(line) {
|
1577 |
-
if (typeof line == "number") line = getLine(clipLine(line));
|
1578 |
-
line.gutterMarker = null;
|
1579 |
-
gutterDirty = true;
|
1580 |
-
}
|
1581 |
-
|
1582 |
-
function changeLine(handle, op) {
|
1583 |
-
var no = handle, line = handle;
|
1584 |
-
if (typeof handle == "number") line = getLine(clipLine(handle));
|
1585 |
-
else no = lineNo(handle);
|
1586 |
-
if (no == null) return null;
|
1587 |
-
if (op(line, no)) changes.push({from: no, to: no + 1});
|
1588 |
-
else return null;
|
1589 |
-
return line;
|
1590 |
-
}
|
1591 |
-
function setLineClass(handle, className, bgClassName) {
|
1592 |
-
return changeLine(handle, function(line) {
|
1593 |
-
if (line.className != className || line.bgClassName != bgClassName) {
|
1594 |
-
line.className = className;
|
1595 |
-
line.bgClassName = bgClassName;
|
1596 |
-
return true;
|
1597 |
-
}
|
1598 |
-
});
|
1599 |
-
}
|
1600 |
-
function setLineHidden(handle, hidden) {
|
1601 |
-
return changeLine(handle, function(line, no) {
|
1602 |
-
if (line.hidden != hidden) {
|
1603 |
-
line.hidden = hidden;
|
1604 |
-
if (!options.lineWrapping) {
|
1605 |
-
var l = line.text;
|
1606 |
-
if (hidden && l.length == maxLine.length) {
|
1607 |
-
updateMaxLine = true;
|
1608 |
-
} else if (!hidden && l.length > maxLine.length) {
|
1609 |
-
maxLine = l; maxWidth = null; updateMaxLine = false;
|
1610 |
-
}
|
1611 |
-
}
|
1612 |
-
updateLineHeight(line, hidden ? 0 : 1);
|
1613 |
-
var fline = sel.from.line, tline = sel.to.line;
|
1614 |
-
if (hidden && (fline == no || tline == no)) {
|
1615 |
-
var from = fline == no ? skipHidden({line: fline, ch: 0}, fline, 0) : sel.from;
|
1616 |
-
var to = tline == no ? skipHidden({line: tline, ch: 0}, tline, 0) : sel.to;
|
1617 |
-
// Can't hide the last visible line, we'd have no place to put the cursor
|
1618 |
-
if (!to) return;
|
1619 |
-
setSelection(from, to);
|
1620 |
-
}
|
1621 |
-
return (gutterDirty = true);
|
1622 |
-
}
|
1623 |
-
});
|
1624 |
-
}
|
1625 |
-
|
1626 |
-
function lineInfo(line) {
|
1627 |
-
if (typeof line == "number") {
|
1628 |
-
if (!isLine(line)) return null;
|
1629 |
-
var n = line;
|
1630 |
-
line = getLine(line);
|
1631 |
-
if (!line) return null;
|
1632 |
-
} else {
|
1633 |
-
var n = lineNo(line);
|
1634 |
-
if (n == null) return null;
|
1635 |
-
}
|
1636 |
-
var marker = line.gutterMarker;
|
1637 |
-
return {line: n, handle: line, text: line.text, markerText: marker && marker.text,
|
1638 |
-
markerClass: marker && marker.style, lineClass: line.className, bgClass: line.bgClassName};
|
1639 |
-
}
|
1640 |
-
|
1641 |
-
function stringWidth(str) {
|
1642 |
-
measure.innerHTML = "<pre><span>x</span></pre>";
|
1643 |
-
measure.firstChild.firstChild.firstChild.nodeValue = str;
|
1644 |
-
return measure.firstChild.firstChild.offsetWidth || 10;
|
1645 |
-
}
|
1646 |
-
// These are used to go from pixel positions to character
|
1647 |
-
// positions, taking varying character widths into account.
|
1648 |
-
function charFromX(line, x) {
|
1649 |
-
if (x <= 0) return 0;
|
1650 |
-
var lineObj = getLine(line), text = lineObj.text;
|
1651 |
-
function getX(len) {
|
1652 |
-
return measureLine(lineObj, len).left;
|
1653 |
-
}
|
1654 |
-
var from = 0, fromX = 0, to = text.length, toX;
|
1655 |
-
// Guess a suitable upper bound for our search.
|
1656 |
-
var estimated = Math.min(to, Math.ceil(x / charWidth()));
|
1657 |
-
for (;;) {
|
1658 |
-
var estX = getX(estimated);
|
1659 |
-
if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));
|
1660 |
-
else {toX = estX; to = estimated; break;}
|
1661 |
-
}
|
1662 |
-
if (x > toX) return to;
|
1663 |
-
// Try to guess a suitable lower bound as well.
|
1664 |
-
estimated = Math.floor(to * 0.8); estX = getX(estimated);
|
1665 |
-
if (estX < x) {from = estimated; fromX = estX;}
|
1666 |
-
// Do a binary search between these bounds.
|
1667 |
-
for (;;) {
|
1668 |
-
if (to - from <= 1) return (toX - x > x - fromX) ? from : to;
|
1669 |
-
var middle = Math.ceil((from + to) / 2), middleX = getX(middle);
|
1670 |
-
if (middleX > x) {to = middle; toX = middleX;}
|
1671 |
-
else {from = middle; fromX = middleX;}
|
1672 |
-
}
|
1673 |
-
}
|
1674 |
-
|
1675 |
-
var tempId = "CodeMirror-temp-" + Math.floor(Math.random() * 0xffffff).toString(16);
|
1676 |
-
function measureLine(line, ch) {
|
1677 |
-
if (ch == 0) return {top: 0, left: 0};
|
1678 |
-
var wbr = options.lineWrapping && ch < line.text.length &&
|
1679 |
-
spanAffectsWrapping.test(line.text.slice(ch - 1, ch + 1));
|
1680 |
-
measure.innerHTML = "<pre>" + line.getHTML(makeTab, ch, tempId, wbr) + "</pre>";
|
1681 |
-
var elt = document.getElementById(tempId);
|
1682 |
-
var top = elt.offsetTop, left = elt.offsetLeft;
|
1683 |
-
// Older IEs report zero offsets for spans directly after a wrap
|
1684 |
-
if (ie && top == 0 && left == 0) {
|
1685 |
-
var backup = document.createElement("span");
|
1686 |
-
backup.innerHTML = "x";
|
1687 |
-
elt.parentNode.insertBefore(backup, elt.nextSibling);
|
1688 |
-
top = backup.offsetTop;
|
1689 |
-
}
|
1690 |
-
return {top: top, left: left};
|
1691 |
-
}
|
1692 |
-
function localCoords(pos, inLineWrap) {
|
1693 |
-
var x, lh = textHeight(), y = lh * (heightAtLine(doc, pos.line) - (inLineWrap ? displayOffset : 0));
|
1694 |
-
if (pos.ch == 0) x = 0;
|
1695 |
-
else {
|
1696 |
-
var sp = measureLine(getLine(pos.line), pos.ch);
|
1697 |
-
x = sp.left;
|
1698 |
-
if (options.lineWrapping) y += Math.max(0, sp.top);
|
1699 |
-
}
|
1700 |
-
return {x: x, y: y, yBot: y + lh};
|
1701 |
-
}
|
1702 |
-
// Coords must be lineSpace-local
|
1703 |
-
function coordsChar(x, y) {
|
1704 |
-
if (y < 0) y = 0;
|
1705 |
-
var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);
|
1706 |
-
var lineNo = lineAtHeight(doc, heightPos);
|
1707 |
-
if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};
|
1708 |
-
var lineObj = getLine(lineNo), text = lineObj.text;
|
1709 |
-
var tw = options.lineWrapping, innerOff = tw ? heightPos - heightAtLine(doc, lineNo) : 0;
|
1710 |
-
if (x <= 0 && innerOff == 0) return {line: lineNo, ch: 0};
|
1711 |
-
function getX(len) {
|
1712 |
-
var sp = measureLine(lineObj, len);
|
1713 |
-
if (tw) {
|
1714 |
-
var off = Math.round(sp.top / th);
|
1715 |
-
return Math.max(0, sp.left + (off - innerOff) * scroller.clientWidth);
|
1716 |
-
}
|
1717 |
-
return sp.left;
|
1718 |
-
}
|
1719 |
-
var from = 0, fromX = 0, to = text.length, toX;
|
1720 |
-
// Guess a suitable upper bound for our search.
|
1721 |
-
var estimated = Math.min(to, Math.ceil((x + innerOff * scroller.clientWidth * .9) / cw));
|
1722 |
-
for (;;) {
|
1723 |
-
var estX = getX(estimated);
|
1724 |
-
if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));
|
1725 |
-
else {toX = estX; to = estimated; break;}
|
1726 |
-
}
|
1727 |
-
if (x > toX) return {line: lineNo, ch: to};
|
1728 |
-
// Try to guess a suitable lower bound as well.
|
1729 |
-
estimated = Math.floor(to * 0.8); estX = getX(estimated);
|
1730 |
-
if (estX < x) {from = estimated; fromX = estX;}
|
1731 |
-
// Do a binary search between these bounds.
|
1732 |
-
for (;;) {
|
1733 |
-
if (to - from <= 1) return {line: lineNo, ch: (toX - x > x - fromX) ? from : to};
|
1734 |
-
var middle = Math.ceil((from + to) / 2), middleX = getX(middle);
|
1735 |
-
if (middleX > x) {to = middle; toX = middleX;}
|
1736 |
-
else {from = middle; fromX = middleX;}
|
1737 |
-
}
|
1738 |
-
}
|
1739 |
-
function pageCoords(pos) {
|
1740 |
-
var local = localCoords(pos, true), off = eltOffset(lineSpace);
|
1741 |
-
return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};
|
1742 |
-
}
|
1743 |
-
|
1744 |
-
var cachedHeight, cachedHeightFor, measureText;
|
1745 |
-
function textHeight() {
|
1746 |
-
if (measureText == null) {
|
1747 |
-
measureText = "<pre>";
|
1748 |
-
for (var i = 0; i < 49; ++i) measureText += "x<br/>";
|
1749 |
-
measureText += "x</pre>";
|
1750 |
-
}
|
1751 |
-
var offsetHeight = lineDiv.clientHeight;
|
1752 |
-
if (offsetHeight == cachedHeightFor) return cachedHeight;
|
1753 |
-
cachedHeightFor = offsetHeight;
|
1754 |
-
measure.innerHTML = measureText;
|
1755 |
-
cachedHeight = measure.firstChild.offsetHeight / 50 || 1;
|
1756 |
-
measure.innerHTML = "";
|
1757 |
-
return cachedHeight;
|
1758 |
-
}
|
1759 |
-
var cachedWidth, cachedWidthFor = 0;
|
1760 |
-
function charWidth() {
|
1761 |
-
if (scroller.clientWidth == cachedWidthFor) return cachedWidth;
|
1762 |
-
cachedWidthFor = scroller.clientWidth;
|
1763 |
-
return (cachedWidth = stringWidth("x"));
|
1764 |
-
}
|
1765 |
-
function paddingTop() {return lineSpace.offsetTop;}
|
1766 |
-
function paddingLeft() {return lineSpace.offsetLeft;}
|
1767 |
-
|
1768 |
-
function posFromMouse(e, liberal) {
|
1769 |
-
var offW = eltOffset(scroller, true), x, y;
|
1770 |
-
// Fails unpredictably on IE[67] when mouse is dragged around quickly.
|
1771 |
-
try { x = e.clientX; y = e.clientY; } catch (e) { return null; }
|
1772 |
-
// This is a mess of a heuristic to try and determine whether a
|
1773 |
-
// scroll-bar was clicked or not, and to return null if one was
|
1774 |
-
// (and !liberal).
|
1775 |
-
if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))
|
1776 |
-
return null;
|
1777 |
-
var offL = eltOffset(lineSpace, true);
|
1778 |
-
return coordsChar(x - offL.left, y - offL.top);
|
1779 |
-
}
|
1780 |
-
function onContextMenu(e) {
|
1781 |
-
var pos = posFromMouse(e), scrollPos = scrollbar.scrollTop;
|
1782 |
-
if (!pos || opera) return; // Opera is difficult.
|
1783 |
-
if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))
|
1784 |
-
operation(setCursor)(pos.line, pos.ch);
|
1785 |
-
|
1786 |
-
var oldCSS = input.style.cssText;
|
1787 |
-
inputDiv.style.position = "absolute";
|
1788 |
-
input.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.clientY - 5) +
|
1789 |
-
"px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: white; " +
|
1790 |
-
"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
|
1791 |
-
leaveInputAlone = true;
|
1792 |
-
var val = input.value = getSelection();
|
1793 |
-
focusInput();
|
1794 |
-
selectInput(input);
|
1795 |
-
function rehide() {
|
1796 |
-
var newVal = splitLines(input.value).join("\n");
|
1797 |
-
if (newVal != val && !options.readOnly) operation(replaceSelection)(newVal, "end");
|
1798 |
-
inputDiv.style.position = "relative";
|
1799 |
-
input.style.cssText = oldCSS;
|
1800 |
-
if (ie_lt9) scrollbar.scrollTop = scrollPos;
|
1801 |
-
leaveInputAlone = false;
|
1802 |
-
resetInput(true);
|
1803 |
-
slowPoll();
|
1804 |
-
}
|
1805 |
-
|
1806 |
-
if (gecko) {
|
1807 |
-
e_stop(e);
|
1808 |
-
var mouseup = connect(window, "mouseup", function() {
|
1809 |
-
mouseup();
|
1810 |
-
setTimeout(rehide, 20);
|
1811 |
-
}, true);
|
1812 |
-
} else {
|
1813 |
-
setTimeout(rehide, 50);
|
1814 |
-
}
|
1815 |
-
}
|
1816 |
-
|
1817 |
-
// Cursor-blinking
|
1818 |
-
function restartBlink() {
|
1819 |
-
clearInterval(blinker);
|
1820 |
-
var on = true;
|
1821 |
-
cursor.style.visibility = "";
|
1822 |
-
blinker = setInterval(function() {
|
1823 |
-
cursor.style.visibility = (on = !on) ? "" : "hidden";
|
1824 |
-
}, 650);
|
1825 |
-
}
|
1826 |
-
|
1827 |
-
var matching = {"(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<"};
|
1828 |
-
function matchBrackets(autoclear) {
|
1829 |
-
var head = sel.inverted ? sel.from : sel.to, line = getLine(head.line), pos = head.ch - 1;
|
1830 |
-
var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];
|
1831 |
-
if (!match) return;
|
1832 |
-
var ch = match.charAt(0), forward = match.charAt(1) == ">", d = forward ? 1 : -1, st = line.styles;
|
1833 |
-
for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)
|
1834 |
-
if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}
|
1835 |
-
|
1836 |
-
var stack = [line.text.charAt(pos)], re = /[(){}[\]]/;
|
1837 |
-
function scan(line, from, to) {
|
1838 |
-
if (!line.text) return;
|
1839 |
-
var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;
|
1840 |
-
for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {
|
1841 |
-
var text = st[i];
|
1842 |
-
if (st[i+1] != style) {pos += d * text.length; continue;}
|
1843 |
-
for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {
|
1844 |
-
if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {
|
1845 |
-
var match = matching[cur];
|
1846 |
-
if (match.charAt(1) == ">" == forward) stack.push(cur);
|
1847 |
-
else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};
|
1848 |
-
else if (!stack.length) return {pos: pos, match: true};
|
1849 |
-
}
|
1850 |
-
}
|
1851 |
-
}
|
1852 |
-
}
|
1853 |
-
for (var i = head.line, e = forward ? Math.min(i + 100, doc.size) : Math.max(-1, i - 100); i != e; i+=d) {
|
1854 |
-
var line = getLine(i), first = i == head.line;
|
1855 |
-
var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);
|
1856 |
-
if (found) break;
|
1857 |
-
}
|
1858 |
-
if (!found) found = {pos: null, match: false};
|
1859 |
-
var style = found.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
|
1860 |
-
var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),
|
1861 |
-
two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);
|
1862 |
-
var clear = operation(function(){one.clear(); two && two.clear();});
|
1863 |
-
if (autoclear) setTimeout(clear, 800);
|
1864 |
-
else bracketHighlighted = clear;
|
1865 |
-
}
|
1866 |
-
|
1867 |
-
// Finds the line to start with when starting a parse. Tries to
|
1868 |
-
// find a line with a stateAfter, so that it can start with a
|
1869 |
-
// valid state. If that fails, it returns the line with the
|
1870 |
-
// smallest indentation, which tends to need the least context to
|
1871 |
-
// parse correctly.
|
1872 |
-
function findStartLine(n) {
|
1873 |
-
var minindent, minline;
|
1874 |
-
for (var search = n, lim = n - 40; search > lim; --search) {
|
1875 |
-
if (search == 0) return 0;
|
1876 |
-
var line = getLine(search-1);
|
1877 |
-
if (line.stateAfter) return search;
|
1878 |
-
var indented = line.indentation(options.tabSize);
|
1879 |
-
if (minline == null || minindent > indented) {
|
1880 |
-
minline = search - 1;
|
1881 |
-
minindent = indented;
|
1882 |
-
}
|
1883 |
-
}
|
1884 |
-
return minline;
|
1885 |
-
}
|
1886 |
-
function getStateBefore(n) {
|
1887 |
-
var start = findStartLine(n), state = start && getLine(start-1).stateAfter;
|
1888 |
-
if (!state) state = startState(mode);
|
1889 |
-
else state = copyState(mode, state);
|
1890 |
-
doc.iter(start, n, function(line) {
|
1891 |
-
line.highlight(mode, state, options.tabSize);
|
1892 |
-
line.stateAfter = copyState(mode, state);
|
1893 |
-
});
|
1894 |
-
if (start < n) changes.push({from: start, to: n});
|
1895 |
-
if (n < doc.size && !getLine(n).stateAfter) work.push(n);
|
1896 |
-
return state;
|
1897 |
-
}
|
1898 |
-
function highlightLines(start, end) {
|
1899 |
-
var state = getStateBefore(start);
|
1900 |
-
doc.iter(start, end, function(line) {
|
1901 |
-
line.highlight(mode, state, options.tabSize);
|
1902 |
-
line.stateAfter = copyState(mode, state);
|
1903 |
-
});
|
1904 |
-
}
|
1905 |
-
function highlightWorker() {
|
1906 |
-
var end = +new Date + options.workTime;
|
1907 |
-
var foundWork = work.length;
|
1908 |
-
while (work.length) {
|
1909 |
-
if (!getLine(showingFrom).stateAfter) var task = showingFrom;
|
1910 |
-
else var task = work.pop();
|
1911 |
-
if (task >= doc.size) continue;
|
1912 |
-
var start = findStartLine(task), state = start && getLine(start-1).stateAfter;
|
1913 |
-
if (state) state = copyState(mode, state);
|
1914 |
-
else state = startState(mode);
|
1915 |
-
|
1916 |
-
var unchanged = 0, compare = mode.compareStates, realChange = false,
|
1917 |
-
i = start, bail = false;
|
1918 |
-
doc.iter(i, doc.size, function(line) {
|
1919 |
-
var hadState = line.stateAfter;
|
1920 |
-
if (+new Date > end) {
|
1921 |
-
work.push(i);
|
1922 |
-
startWorker(options.workDelay);
|
1923 |
-
if (realChange) changes.push({from: task, to: i + 1});
|
1924 |
-
return (bail = true);
|
1925 |
-
}
|
1926 |
-
var changed = line.highlight(mode, state, options.tabSize);
|
1927 |
-
if (changed) realChange = true;
|
1928 |
-
line.stateAfter = copyState(mode, state);
|
1929 |
-
var done = null;
|
1930 |
-
if (compare) {
|
1931 |
-
var same = hadState && compare(hadState, state);
|
1932 |
-
if (same != Pass) done = !!same;
|
1933 |
-
}
|
1934 |
-
if (done == null) {
|
1935 |
-
if (changed !== false || !hadState) unchanged = 0;
|
1936 |
-
else if (++unchanged > 3 && (!mode.indent || mode.indent(hadState, "") == mode.indent(state, "")))
|
1937 |
-
done = true;
|
1938 |
-
}
|
1939 |
-
if (done) return true;
|
1940 |
-
++i;
|
1941 |
-
});
|
1942 |
-
if (bail) return;
|
1943 |
-
if (realChange) changes.push({from: task, to: i + 1});
|
1944 |
-
}
|
1945 |
-
if (foundWork && options.onHighlightComplete)
|
1946 |
-
options.onHighlightComplete(instance);
|
1947 |
-
}
|
1948 |
-
function startWorker(time) {
|
1949 |
-
if (!work.length) return;
|
1950 |
-
highlight.set(time, operation(highlightWorker));
|
1951 |
-
}
|
1952 |
-
|
1953 |
-
// Operations are used to wrap changes in such a way that each
|
1954 |
-
// change won't have to update the cursor and display (which would
|
1955 |
-
// be awkward, slow, and error-prone), but instead updates are
|
1956 |
-
// batched and then all combined and executed at once.
|
1957 |
-
function startOperation() {
|
1958 |
-
updateInput = userSelChange = textChanged = null;
|
1959 |
-
changes = []; selectionChanged = false; callbacks = [];
|
1960 |
-
}
|
1961 |
-
function endOperation() {
|
1962 |
-
if (updateMaxLine) computeMaxLength();
|
1963 |
-
if (maxLineChanged && !options.lineWrapping) {
|
1964 |
-
widthForcer.style.left = stringWidth(maxLine) + "px";
|
1965 |
-
maxLineChanged = false;
|
1966 |
-
}
|
1967 |
-
var newScrollPos, updated;
|
1968 |
-
if (selectionChanged) {
|
1969 |
-
var coords = calculateCursorCoords();
|
1970 |
-
newScrollPos = calculateScrollPos(coords.x, coords.y, coords.x, coords.yBot);
|
1971 |
-
}
|
1972 |
-
if (changes.length) updated = updateDisplay(changes, true, (newScrollPos ? newScrollPos.scrollTop : null));
|
1973 |
-
else {
|
1974 |
-
if (selectionChanged) updateSelection();
|
1975 |
-
if (gutterDirty) updateGutter();
|
1976 |
-
}
|
1977 |
-
if (newScrollPos) scrollCursorIntoView();
|
1978 |
-
if (selectionChanged) {scrollEditorIntoView(); restartBlink();}
|
1979 |
-
|
1980 |
-
if (focused && !leaveInputAlone &&
|
1981 |
-
(updateInput === true || (updateInput !== false && selectionChanged)))
|
1982 |
-
resetInput(userSelChange);
|
1983 |
-
|
1984 |
-
if (selectionChanged && options.matchBrackets)
|
1985 |
-
setTimeout(operation(function() {
|
1986 |
-
if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}
|
1987 |
-
if (posEq(sel.from, sel.to)) matchBrackets(false);
|
1988 |
-
}), 20);
|
1989 |
-
var sc = selectionChanged, cbs = callbacks; // these can be reset by callbacks
|
1990 |
-
if (textChanged && options.onChange && instance)
|
1991 |
-
options.onChange(instance, textChanged);
|
1992 |
-
if (sc && options.onCursorActivity)
|
1993 |
-
options.onCursorActivity(instance);
|
1994 |
-
for (var i = 0; i < cbs.length; ++i) cbs[i](instance);
|
1995 |
-
if (updated && options.onUpdate) options.onUpdate(instance);
|
1996 |
-
}
|
1997 |
-
var nestedOperation = 0;
|
1998 |
-
function operation(f) {
|
1999 |
-
return function() {
|
2000 |
-
if (!nestedOperation++) startOperation();
|
2001 |
-
try {var result = f.apply(this, arguments);}
|
2002 |
-
finally {if (!--nestedOperation) endOperation();}
|
2003 |
-
return result;
|
2004 |
-
};
|
2005 |
-
}
|
2006 |
-
|
2007 |
-
function compoundChange(f) {
|
2008 |
-
history.startCompound();
|
2009 |
-
try { return f(); } finally { history.endCompound(); }
|
2010 |
-
}
|
2011 |
-
|
2012 |
-
for (var ext in extensions)
|
2013 |
-
if (extensions.propertyIsEnumerable(ext) &&
|
2014 |
-
!instance.propertyIsEnumerable(ext))
|
2015 |
-
instance[ext] = extensions[ext];
|
2016 |
-
return instance;
|
2017 |
-
} // (end of function CodeMirror)
|
2018 |
-
|
2019 |
-
// The default configuration options.
|
2020 |
-
CodeMirror.defaults = {
|
2021 |
-
value: "",
|
2022 |
-
mode: null,
|
2023 |
-
theme: "default",
|
2024 |
-
indentUnit: 5,
|
2025 |
-
indentWithTabs: false,
|
2026 |
-
smartIndent: true,
|
2027 |
-
tabSize: 6,
|
2028 |
-
keyMap: "default",
|
2029 |
-
extraKeys: null,
|
2030 |
-
electricChars: true,
|
2031 |
-
autoClearEmptyLines: false,
|
2032 |
-
onKeyEvent: null,
|
2033 |
-
onDragEvent: null,
|
2034 |
-
lineWrapping: false,
|
2035 |
-
lineNumbers: false,
|
2036 |
-
gutter: false,
|
2037 |
-
fixedGutter: false,
|
2038 |
-
firstLineNumber: 1,
|
2039 |
-
readOnly: false,
|
2040 |
-
dragDrop: true,
|
2041 |
-
onChange: null,
|
2042 |
-
onCursorActivity: null,
|
2043 |
-
onGutterClick: null,
|
2044 |
-
onHighlightComplete: null,
|
2045 |
-
onUpdate: null,
|
2046 |
-
onFocus: null, onBlur: null, onScroll: null,
|
2047 |
-
matchBrackets: false,
|
2048 |
-
workTime: 100,
|
2049 |
-
workDelay: 200,
|
2050 |
-
pollInterval: 100,
|
2051 |
-
undoDepth: 40,
|
2052 |
-
tabindex: null,
|
2053 |
-
autofocus: null
|
2054 |
-
};
|
2055 |
-
|
2056 |
-
var ios = /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent);
|
2057 |
-
var mac = ios || /Mac/.test(navigator.platform);
|
2058 |
-
var win = /Win/.test(navigator.platform);
|
2059 |
-
|
2060 |
-
// Known modes, by name and by MIME
|
2061 |
-
var modes = CodeMirror.modes = {}, mimeModes = CodeMirror.mimeModes = {};
|
2062 |
-
CodeMirror.defineMode = function(name, mode) {
|
2063 |
-
if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name;
|
2064 |
-
if (arguments.length > 2) {
|
2065 |
-
mode.dependencies = [];
|
2066 |
-
for (var i = 2; i < arguments.length; ++i) mode.dependencies.push(arguments[i]);
|
2067 |
-
}
|
2068 |
-
modes[name] = mode;
|
2069 |
-
};
|
2070 |
-
CodeMirror.defineMIME = function(mime, spec) {
|
2071 |
-
mimeModes[mime] = spec;
|
2072 |
-
};
|
2073 |
-
CodeMirror.resolveMode = function(spec) {
|
2074 |
-
if (typeof spec == "string" && mimeModes.hasOwnProperty(spec))
|
2075 |
-
spec = mimeModes[spec];
|
2076 |
-
else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec))
|
2077 |
-
return CodeMirror.resolveMode("application/xml");
|
2078 |
-
if (typeof spec == "string") return {name: spec};
|
2079 |
-
else return spec || {name: "null"};
|
2080 |
-
};
|
2081 |
-
CodeMirror.getMode = function(options, spec) {
|
2082 |
-
var spec = CodeMirror.resolveMode(spec);
|
2083 |
-
var mfactory = modes[spec.name];
|
2084 |
-
if (!mfactory) return CodeMirror.getMode(options, "text/plain");
|
2085 |
-
return mfactory(options, spec);
|
2086 |
-
};
|
2087 |
-
CodeMirror.listModes = function() {
|
2088 |
-
var list = [];
|
2089 |
-
for (var m in modes)
|
2090 |
-
if (modes.propertyIsEnumerable(m)) list.push(m);
|
2091 |
-
return list;
|
2092 |
-
};
|
2093 |
-
CodeMirror.listMIMEs = function() {
|
2094 |
-
var list = [];
|
2095 |
-
for (var m in mimeModes)
|
2096 |
-
if (mimeModes.propertyIsEnumerable(m)) list.push({mime: m, mode: mimeModes[m]});
|
2097 |
-
return list;
|
2098 |
-
};
|
2099 |
-
|
2100 |
-
var extensions = CodeMirror.extensions = {};
|
2101 |
-
CodeMirror.defineExtension = function(name, func) {
|
2102 |
-
extensions[name] = func;
|
2103 |
-
};
|
2104 |
-
|
2105 |
-
var commands = CodeMirror.commands = {
|
2106 |
-
selectAll: function(cm) {cm.setSelection({line: 0, ch: 0}, {line: cm.lineCount() - 1});},
|
2107 |
-
killLine: function(cm) {
|
2108 |
-
var from = cm.getCursor(true), to = cm.getCursor(false), sel = !posEq(from, to);
|
2109 |
-
if (!sel && cm.getLine(from.line).length == from.ch) cm.replaceRange("", from, {line: from.line + 1, ch: 0});
|
2110 |
-
else cm.replaceRange("", from, sel ? to : {line: from.line});
|
2111 |
-
},
|
2112 |
-
deleteLine: function(cm) {var l = cm.getCursor().line; cm.replaceRange("", {line: l, ch: 0}, {line: l});},
|
2113 |
-
undo: function(cm) {cm.undo();},
|
2114 |
-
redo: function(cm) {cm.redo();},
|
2115 |
-
goDocStart: function(cm) {cm.setCursor(0, 0, true);},
|
2116 |
-
goDocEnd: function(cm) {cm.setSelection({line: cm.lineCount() - 1}, null, true);},
|
2117 |
-
goLineStart: function(cm) {cm.setCursor(cm.getCursor().line, 0, true);},
|
2118 |
-
goLineStartSmart: function(cm) {
|
2119 |
-
var cur = cm.getCursor();
|
2120 |
-
var text = cm.getLine(cur.line), firstNonWS = Math.max(0, text.search(/\S/));
|
2121 |
-
cm.setCursor(cur.line, cur.ch <= firstNonWS && cur.ch ? 0 : firstNonWS, true);
|
2122 |
-
},
|
2123 |
-
goLineEnd: function(cm) {cm.setSelection({line: cm.getCursor().line}, null, true);},
|
2124 |
-
goLineUp: function(cm) {cm.moveV(-1, "line");},
|
2125 |
-
goLineDown: function(cm) {cm.moveV(1, "line");},
|
2126 |
-
goPageUp: function(cm) {cm.moveV(-1, "page");},
|
2127 |
-
goPageDown: function(cm) {cm.moveV(1, "page");},
|
2128 |
-
goCharLeft: function(cm) {cm.moveH(-1, "char");},
|
2129 |
-
goCharRight: function(cm) {cm.moveH(1, "char");},
|
2130 |
-
goColumnLeft: function(cm) {cm.moveH(-1, "column");},
|
2131 |
-
goColumnRight: function(cm) {cm.moveH(1, "column");},
|
2132 |
-
goWordLeft: function(cm) {cm.moveH(-1, "word");},
|
2133 |
-
goWordRight: function(cm) {cm.moveH(1, "word");},
|
2134 |
-
delCharLeft: function(cm) {cm.deleteH(-1, "char");},
|
2135 |
-
delCharRight: function(cm) {cm.deleteH(1, "char");},
|
2136 |
-
delWordLeft: function(cm) {cm.deleteH(-1, "word");},
|
2137 |
-
delWordRight: function(cm) {cm.deleteH(1, "word");},
|
2138 |
-
indentAuto: function(cm) {cm.indentSelection("smart");},
|
2139 |
-
indentMore: function(cm) {cm.indentSelection("add");},
|
2140 |
-
indentLess: function(cm) {cm.indentSelection("subtract");},
|
2141 |
-
insertTab: function(cm) {cm.replaceSelection("\t", "end");},
|
2142 |
-
defaultTab: function(cm) {
|
2143 |
-
if (cm.somethingSelected()) cm.indentSelection("add");
|
2144 |
-
else cm.replaceSelection("\t", "end");
|
2145 |
-
},
|
2146 |
-
transposeChars: function(cm) {
|
2147 |
-
var cur = cm.getCursor(), line = cm.getLine(cur.line);
|
2148 |
-
if (cur.ch > 0 && cur.ch < line.length - 1)
|
2149 |
-
cm.replaceRange(line.charAt(cur.ch) + line.charAt(cur.ch - 1),
|
2150 |
-
{line: cur.line, ch: cur.ch - 1}, {line: cur.line, ch: cur.ch + 1});
|
2151 |
-
},
|
2152 |
-
newlineAndIndent: function(cm) {
|
2153 |
-
cm.replaceSelection("\n", "end");
|
2154 |
-
cm.indentLine(cm.getCursor().line);
|
2155 |
-
},
|
2156 |
-
toggleOverwrite: function(cm) {cm.toggleOverwrite();}
|
2157 |
-
};
|
2158 |
-
|
2159 |
-
var keyMap = CodeMirror.keyMap = {};
|
2160 |
-
keyMap.basic = {
|
2161 |
-
"Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown",
|
2162 |
-
"End": "goLineEnd", "Home": "goLineStartSmart", "PageUp": "goPageUp", "PageDown": "goPageDown",
|
2163 |
-
"Delete": "delCharRight", "Backspace": "delCharLeft", "Tab": "defaultTab", "Shift-Tab": "indentAuto",
|
2164 |
-
"Enter": "newlineAndIndent", "Insert": "toggleOverwrite"
|
2165 |
-
};
|
2166 |
-
// Note that the save and find-related commands aren't defined by
|
2167 |
-
// default. Unknown commands are simply ignored.
|
2168 |
-
keyMap.pcDefault = {
|
2169 |
-
"Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo",
|
2170 |
-
"Ctrl-Home": "goDocStart", "Alt-Up": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Down": "goDocEnd",
|
2171 |
-
"Ctrl-Left": "goWordLeft", "Ctrl-Right": "goWordRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd",
|
2172 |
-
"Ctrl-Backspace": "delWordLeft", "Ctrl-Delete": "delWordRight", "Ctrl-S": "save", "Ctrl-F": "find",
|
2173 |
-
"Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll",
|
2174 |
-
"Ctrl-[": "indentLess", "Ctrl-]": "indentMore",
|
2175 |
-
fallthrough: "basic"
|
2176 |
-
};
|
2177 |
-
keyMap.macDefault = {
|
2178 |
-
"Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo",
|
2179 |
-
"Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goWordLeft",
|
2180 |
-
"Alt-Right": "goWordRight", "Cmd-Left": "goLineStart", "Cmd-Right": "goLineEnd", "Alt-Backspace": "delWordLeft",
|
2181 |
-
"Ctrl-Alt-Backspace": "delWordRight", "Alt-Delete": "delWordRight", "Cmd-S": "save", "Cmd-F": "find",
|
2182 |
-
"Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll",
|
2183 |
-
"Cmd-[": "indentLess", "Cmd-]": "indentMore",
|
2184 |
-
fallthrough: ["basic", "emacsy"]
|
2185 |
-
};
|
2186 |
-
keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault;
|
2187 |
-
keyMap.emacsy = {
|
2188 |
-
"Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown",
|
2189 |
-
"Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd",
|
2190 |
-
"Ctrl-V": "goPageUp", "Shift-Ctrl-V": "goPageDown", "Ctrl-D": "delCharRight", "Ctrl-H": "delCharLeft",
|
2191 |
-
"Alt-D": "delWordRight", "Alt-Backspace": "delWordLeft", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars"
|
2192 |
-
};
|
2193 |
-
|
2194 |
-
function getKeyMap(val) {
|
2195 |
-
if (typeof val == "string") return keyMap[val];
|
2196 |
-
else return val;
|
2197 |
-
}
|
2198 |
-
function lookupKey(name, extraMap, map, handle, stop) {
|
2199 |
-
function lookup(map) {
|
2200 |
-
map = getKeyMap(map);
|
2201 |
-
var found = map[name];
|
2202 |
-
if (found != null && handle(found)) return true;
|
2203 |
-
if (map.nofallthrough) {
|
2204 |
-
if (stop) stop();
|
2205 |
-
return true;
|
2206 |
-
}
|
2207 |
-
var fallthrough = map.fallthrough;
|
2208 |
-
if (fallthrough == null) return false;
|
2209 |
-
if (Object.prototype.toString.call(fallthrough) != "[object Array]")
|
2210 |
-
return lookup(fallthrough);
|
2211 |
-
for (var i = 0, e = fallthrough.length; i < e; ++i) {
|
2212 |
-
if (lookup(fallthrough[i])) return true;
|
2213 |
-
}
|
2214 |
-
return false;
|
2215 |
-
}
|
2216 |
-
if (extraMap && lookup(extraMap)) return true;
|
2217 |
-
return lookup(map);
|
2218 |
-
}
|
2219 |
-
function isModifierKey(event) {
|
2220 |
-
var name = keyNames[e_prop(event, "keyCode")];
|
2221 |
-
return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
|
2222 |
-
}
|
2223 |
-
|
2224 |
-
CodeMirror.fromTextArea = function(textarea, options) {
|
2225 |
-
if (!options) options = {};
|
2226 |
-
options.value = textarea.value;
|
2227 |
-
if (!options.tabindex && textarea.tabindex)
|
2228 |
-
options.tabindex = textarea.tabindex;
|
2229 |
-
if (options.autofocus == null && textarea.getAttribute("autofocus") != null)
|
2230 |
-
options.autofocus = true;
|
2231 |
-
|
2232 |
-
function save() {textarea.value = instance.getValue();}
|
2233 |
-
if (textarea.form) {
|
2234 |
-
// Deplorable hack to make the submit method do the right thing.
|
2235 |
-
var rmSubmit = connect(textarea.form, "submit", save, true);
|
2236 |
-
if (typeof textarea.form.submit == "function") {
|
2237 |
-
var realSubmit = textarea.form.submit;
|
2238 |
-
function wrappedSubmit() {
|
2239 |
-
save();
|
2240 |
-
textarea.form.submit = realSubmit;
|
2241 |
-
textarea.form.submit();
|
2242 |
-
textarea.form.submit = wrappedSubmit;
|
2243 |
-
}
|
2244 |
-
textarea.form.submit = wrappedSubmit;
|
2245 |
-
}
|
2246 |
-
}
|
2247 |
-
|
2248 |
-
textarea.style.display = "none";
|
2249 |
-
var instance = CodeMirror(function(node) {
|
2250 |
-
textarea.parentNode.insertBefore(node, textarea.nextSibling);
|
2251 |
-
}, options);
|
2252 |
-
instance.save = save;
|
2253 |
-
instance.getTextArea = function() { return textarea; };
|
2254 |
-
instance.toTextArea = function() {
|
2255 |
-
save();
|
2256 |
-
textarea.parentNode.removeChild(instance.getWrapperElement());
|
2257 |
-
textarea.style.display = "";
|
2258 |
-
if (textarea.form) {
|
2259 |
-
rmSubmit();
|
2260 |
-
if (typeof textarea.form.submit == "function")
|
2261 |
-
textarea.form.submit = realSubmit;
|
2262 |
-
}
|
2263 |
-
};
|
2264 |
-
return instance;
|
2265 |
-
};
|
2266 |
-
|
2267 |
-
// Utility functions for working with state. Exported because modes
|
2268 |
-
// sometimes need to do this.
|
2269 |
-
function copyState(mode, state) {
|
2270 |
-
if (state === true) return state;
|
2271 |
-
if (mode.copyState) return mode.copyState(state);
|
2272 |
-
var nstate = {};
|
2273 |
-
for (var n in state) {
|
2274 |
-
var val = state[n];
|
2275 |
-
if (val instanceof Array) val = val.concat([]);
|
2276 |
-
nstate[n] = val;
|
2277 |
-
}
|
2278 |
-
return nstate;
|
2279 |
-
}
|
2280 |
-
CodeMirror.copyState = copyState;
|
2281 |
-
function startState(mode, a1, a2) {
|
2282 |
-
return mode.startState ? mode.startState(a1, a2) : true;
|
2283 |
-
}
|
2284 |
-
CodeMirror.startState = startState;
|
2285 |
-
|
2286 |
-
// The character stream used by a mode's parser.
|
2287 |
-
function StringStream(string, tabSize) {
|
2288 |
-
this.pos = this.start = 0;
|
2289 |
-
this.string = string;
|
2290 |
-
this.tabSize = tabSize || 8;
|
2291 |
-
}
|
2292 |
-
StringStream.prototype = {
|
2293 |
-
eol: function() {return this.pos >= this.string.length;},
|
2294 |
-
sol: function() {return this.pos == 0;},
|
2295 |
-
peek: function() {return this.string.charAt(this.pos);},
|
2296 |
-
next: function() {
|
2297 |
-
if (this.pos < this.string.length)
|
2298 |
-
return this.string.charAt(this.pos++);
|
2299 |
-
},
|
2300 |
-
eat: function(match) {
|
2301 |
-
var ch = this.string.charAt(this.pos);
|
2302 |
-
if (typeof match == "string") var ok = ch == match;
|
2303 |
-
else var ok = ch && (match.test ? match.test(ch) : match(ch));
|
2304 |
-
if (ok) {++this.pos; return ch;}
|
2305 |
-
},
|
2306 |
-
eatWhile: function(match) {
|
2307 |
-
var start = this.pos;
|
2308 |
-
while (this.eat(match)){}
|
2309 |
-
return this.pos > start;
|
2310 |
-
},
|
2311 |
-
eatSpace: function() {
|
2312 |
-
var start = this.pos;
|
2313 |
-
while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos;
|
2314 |
-
return this.pos > start;
|
2315 |
-
},
|
2316 |
-
skipToEnd: function() {this.pos = this.string.length;},
|
2317 |
-
skipTo: function(ch) {
|
2318 |
-
var found = this.string.indexOf(ch, this.pos);
|
2319 |
-
if (found > -1) {this.pos = found; return true;}
|
2320 |
-
},
|
2321 |
-
backUp: function(n) {this.pos -= n;},
|
2322 |
-
column: function() {return countColumn(this.string, this.start, this.tabSize);},
|
2323 |
-
indentation: function() {return countColumn(this.string, null, this.tabSize);},
|
2324 |
-
match: function(pattern, consume, caseInsensitive) {
|
2325 |
-
if (typeof pattern == "string") {
|
2326 |
-
function cased(str) {return caseInsensitive ? str.toLowerCase() : str;}
|
2327 |
-
if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {
|
2328 |
-
if (consume !== false) this.pos += pattern.length;
|
2329 |
-
return true;
|
2330 |
-
}
|
2331 |
-
} else {
|
2332 |
-
var match = this.string.slice(this.pos).match(pattern);
|
2333 |
-
if (match && consume !== false) this.pos += match[0].length;
|
2334 |
-
return match;
|
2335 |
-
}
|
2336 |
-
},
|
2337 |
-
current: function(){return this.string.slice(this.start, this.pos);}
|
2338 |
-
};
|
2339 |
-
CodeMirror.StringStream = StringStream;
|
2340 |
-
|
2341 |
-
function MarkedText(from, to, className, marker) {
|
2342 |
-
this.from = from; this.to = to; this.style = className; this.marker = marker;
|
2343 |
-
}
|
2344 |
-
MarkedText.prototype = {
|
2345 |
-
attach: function(line) { this.marker.set.push(line); },
|
2346 |
-
detach: function(line) {
|
2347 |
-
var ix = indexOf(this.marker.set, line);
|
2348 |
-
if (ix > -1) this.marker.set.splice(ix, 1);
|
2349 |
-
},
|
2350 |
-
split: function(pos, lenBefore) {
|
2351 |
-
if (this.to <= pos && this.to != null) return null;
|
2352 |
-
var from = this.from < pos || this.from == null ? null : this.from - pos + lenBefore;
|
2353 |
-
var to = this.to == null ? null : this.to - pos + lenBefore;
|
2354 |
-
return new MarkedText(from, to, this.style, this.marker);
|
2355 |
-
},
|
2356 |
-
dup: function() { return new MarkedText(null, null, this.style, this.marker); },
|
2357 |
-
clipTo: function(fromOpen, from, toOpen, to, diff) {
|
2358 |
-
if (fromOpen && to > this.from && (to < this.to || this.to == null))
|
2359 |
-
this.from = null;
|
2360 |
-
else if (this.from != null && this.from >= from)
|
2361 |
-
this.from = Math.max(to, this.from) + diff;
|
2362 |
-
if (toOpen && (from < this.to || this.to == null) && (from > this.from || this.from == null))
|
2363 |
-
this.to = null;
|
2364 |
-
else if (this.to != null && this.to > from)
|
2365 |
-
this.to = to < this.to ? this.to + diff : from;
|
2366 |
-
},
|
2367 |
-
isDead: function() { return this.from != null && this.to != null && this.from >= this.to; },
|
2368 |
-
sameSet: function(x) { return this.marker == x.marker; }
|
2369 |
-
};
|
2370 |
-
|
2371 |
-
function Bookmark(pos) {
|
2372 |
-
this.from = pos; this.to = pos; this.line = null;
|
2373 |
-
}
|
2374 |
-
Bookmark.prototype = {
|
2375 |
-
attach: function(line) { this.line = line; },
|
2376 |
-
detach: function(line) { if (this.line == line) this.line = null; },
|
2377 |
-
split: function(pos, lenBefore) {
|
2378 |
-
if (pos < this.from) {
|
2379 |
-
this.from = this.to = (this.from - pos) + lenBefore;
|
2380 |
-
return this;
|
2381 |
-
}
|
2382 |
-
},
|
2383 |
-
isDead: function() { return this.from > this.to; },
|
2384 |
-
clipTo: function(fromOpen, from, toOpen, to, diff) {
|
2385 |
-
if ((fromOpen || from < this.from) && (toOpen || to > this.to)) {
|
2386 |
-
this.from = 0; this.to = -1;
|
2387 |
-
} else if (this.from > from) {
|
2388 |
-
this.from = this.to = Math.max(to, this.from) + diff;
|
2389 |
-
}
|
2390 |
-
},
|
2391 |
-
sameSet: function(x) { return false; },
|
2392 |
-
find: function() {
|
2393 |
-
if (!this.line || !this.line.parent) return null;
|
2394 |
-
return {line: lineNo(this.line), ch: this.from};
|
2395 |
-
},
|
2396 |
-
clear: function() {
|
2397 |
-
if (this.line) {
|
2398 |
-
var found = indexOf(this.line.marked, this);
|
2399 |
-
if (found != -1) this.line.marked.splice(found, 1);
|
2400 |
-
this.line = null;
|
2401 |
-
}
|
2402 |
-
}
|
2403 |
-
};
|
2404 |
-
|
2405 |
-
// Line objects. These hold state related to a line, including
|
2406 |
-
// highlighting info (the styles array).
|
2407 |
-
function Line(text, styles) {
|
2408 |
-
this.styles = styles || [text, null];
|
2409 |
-
this.text = text;
|
2410 |
-
this.height = 1;
|
2411 |
-
this.marked = this.gutterMarker = this.className = this.bgClassName = this.handlers = null;
|
2412 |
-
this.stateAfter = this.parent = this.hidden = null;
|
2413 |
-
}
|
2414 |
-
Line.inheritMarks = function(text, orig) {
|
2415 |
-
var ln = new Line(text), mk = orig && orig.marked;
|
2416 |
-
if (mk) {
|
2417 |
-
for (var i = 0; i < mk.length; ++i) {
|
2418 |
-
if (mk[i].to == null && mk[i].style) {
|
2419 |
-
var newmk = ln.marked || (ln.marked = []), mark = mk[i];
|
2420 |
-
var nmark = mark.dup(); newmk.push(nmark); nmark.attach(ln);
|
2421 |
-
}
|
2422 |
-
}
|
2423 |
-
}
|
2424 |
-
return ln;
|
2425 |
-
}
|
2426 |
-
Line.prototype = {
|
2427 |
-
// Replace a piece of a line, keeping the styles around it intact.
|
2428 |
-
replace: function(from, to_, text) {
|
2429 |
-
var st = [], mk = this.marked, to = to_ == null ? this.text.length : to_;
|
2430 |
-
copyStyles(0, from, this.styles, st);
|
2431 |
-
if (text) st.push(text, null);
|
2432 |
-
copyStyles(to, this.text.length, this.styles, st);
|
2433 |
-
this.styles = st;
|
2434 |
-
this.text = this.text.slice(0, from) + text + this.text.slice(to);
|
2435 |
-
this.stateAfter = null;
|
2436 |
-
if (mk) {
|
2437 |
-
var diff = text.length - (to - from);
|
2438 |
-
for (var i = 0; i < mk.length; ++i) {
|
2439 |
-
var mark = mk[i];
|
2440 |
-
mark.clipTo(from == null, from || 0, to_ == null, to, diff);
|
2441 |
-
if (mark.isDead()) {mark.detach(this); mk.splice(i--, 1);}
|
2442 |
-
}
|
2443 |
-
}
|
2444 |
-
},
|
2445 |
-
// Split a part off a line, keeping styles and markers intact.
|
2446 |
-
split: function(pos, textBefore) {
|
2447 |
-
var st = [textBefore, null], mk = this.marked;
|
2448 |
-
copyStyles(pos, this.text.length, this.styles, st);
|
2449 |
-
var taken = new Line(textBefore + this.text.slice(pos), st);
|
2450 |
-
if (mk) {
|
2451 |
-
for (var i = 0; i < mk.length; ++i) {
|
2452 |
-
var mark = mk[i];
|
2453 |
-
var newmark = mark.split(pos, textBefore.length);
|
2454 |
-
if (newmark) {
|
2455 |
-
if (!taken.marked) taken.marked = [];
|
2456 |
-
taken.marked.push(newmark); newmark.attach(taken);
|
2457 |
-
if (newmark == mark) mk.splice(i--, 1);
|
2458 |
-
}
|
2459 |
-
}
|
2460 |
-
}
|
2461 |
-
return taken;
|
2462 |
-
},
|
2463 |
-
append: function(line) {
|
2464 |
-
var mylen = this.text.length, mk = line.marked, mymk = this.marked;
|
2465 |
-
this.text += line.text;
|
2466 |
-
copyStyles(0, line.text.length, line.styles, this.styles);
|
2467 |
-
if (mymk) {
|
2468 |
-
for (var i = 0; i < mymk.length; ++i)
|
2469 |
-
if (mymk[i].to == null) mymk[i].to = mylen;
|
2470 |
-
}
|
2471 |
-
if (mk && mk.length) {
|
2472 |
-
if (!mymk) this.marked = mymk = [];
|
2473 |
-
outer: for (var i = 0; i < mk.length; ++i) {
|
2474 |
-
var mark = mk[i];
|
2475 |
-
if (!mark.from) {
|
2476 |
-
for (var j = 0; j < mymk.length; ++j) {
|
2477 |
-
var mymark = mymk[j];
|
2478 |
-
if (mymark.to == mylen && mymark.sameSet(mark)) {
|
2479 |
-
mymark.to = mark.to == null ? null : mark.to + mylen;
|
2480 |
-
if (mymark.isDead()) {
|
2481 |
-
mymark.detach(this);
|
2482 |
-
mk.splice(i--, 1);
|
2483 |
-
}
|
2484 |
-
continue outer;
|
2485 |
-
}
|
2486 |
-
}
|
2487 |
-
}
|
2488 |
-
mymk.push(mark);
|
2489 |
-
mark.attach(this);
|
2490 |
-
mark.from += mylen;
|
2491 |
-
if (mark.to != null) mark.to += mylen;
|
2492 |
-
}
|
2493 |
-
}
|
2494 |
-
},
|
2495 |
-
fixMarkEnds: function(other) {
|
2496 |
-
var mk = this.marked, omk = other.marked;
|
2497 |
-
if (!mk) return;
|
2498 |
-
for (var i = 0; i < mk.length; ++i) {
|
2499 |
-
var mark = mk[i], close = mark.to == null;
|
2500 |
-
if (close && omk) {
|
2501 |
-
for (var j = 0; j < omk.length; ++j)
|
2502 |
-
if (omk[j].sameSet(mark)) {close = false; break;}
|
2503 |
-
}
|
2504 |
-
if (close) mark.to = this.text.length;
|
2505 |
-
}
|
2506 |
-
},
|
2507 |
-
fixMarkStarts: function() {
|
2508 |
-
var mk = this.marked;
|
2509 |
-
if (!mk) return;
|
2510 |
-
for (var i = 0; i < mk.length; ++i)
|
2511 |
-
if (mk[i].from == null) mk[i].from = 0;
|
2512 |
-
},
|
2513 |
-
addMark: function(mark) {
|
2514 |
-
mark.attach(this);
|
2515 |
-
if (this.marked == null) this.marked = [];
|
2516 |
-
this.marked.push(mark);
|
2517 |
-
this.marked.sort(function(a, b){return (a.from || 0) - (b.from || 0);});
|
2518 |
-
},
|
2519 |
-
// Run the given mode's parser over a line, update the styles
|
2520 |
-
// array, which contains alternating fragments of text and CSS
|
2521 |
-
// classes.
|
2522 |
-
highlight: function(mode, state, tabSize) {
|
2523 |
-
var stream = new StringStream(this.text, tabSize), st = this.styles, pos = 0;
|
2524 |
-
var changed = false, curWord = st[0], prevWord;
|
2525 |
-
if (this.text == "" && mode.blankLine) mode.blankLine(state);
|
2526 |
-
while (!stream.eol()) {
|
2527 |
-
var style = mode.token(stream, state);
|
2528 |
-
var substr = this.text.slice(stream.start, stream.pos);
|
2529 |
-
stream.start = stream.pos;
|
2530 |
-
if (pos && st[pos-1] == style)
|
2531 |
-
st[pos-2] += substr;
|
2532 |
-
else if (substr) {
|
2533 |
-
if (!changed && (st[pos+1] != style || (pos && st[pos-2] != prevWord))) changed = true;
|
2534 |
-
st[pos++] = substr; st[pos++] = style;
|
2535 |
-
prevWord = curWord; curWord = st[pos];
|
2536 |
-
}
|
2537 |
-
// Give up when line is ridiculously long
|
2538 |
-
if (stream.pos > 5000) {
|
2539 |
-
st[pos++] = this.text.slice(stream.pos); st[pos++] = null;
|
2540 |
-
break;
|
2541 |
-
}
|
2542 |
-
}
|
2543 |
-
if (st.length != pos) {st.length = pos; changed = true;}
|
2544 |
-
if (pos && st[pos-2] != prevWord) changed = true;
|
2545 |
-
// Short lines with simple highlights return null, and are
|
2546 |
-
// counted as changed by the driver because they are likely to
|
2547 |
-
// highlight the same way in various contexts.
|
2548 |
-
return changed || (st.length < 5 && this.text.length < 10 ? null : false);
|
2549 |
-
},
|
2550 |
-
// Fetch the parser token for a given character. Useful for hacks
|
2551 |
-
// that want to inspect the mode state (say, for completion).
|
2552 |
-
getTokenAt: function(mode, state, ch) {
|
2553 |
-
var txt = this.text, stream = new StringStream(txt);
|
2554 |
-
while (stream.pos < ch && !stream.eol()) {
|
2555 |
-
stream.start = stream.pos;
|
2556 |
-
var style = mode.token(stream, state);
|
2557 |
-
}
|
2558 |
-
return {start: stream.start,
|
2559 |
-
end: stream.pos,
|
2560 |
-
string: stream.current(),
|
2561 |
-
className: style || null,
|
2562 |
-
state: state};
|
2563 |
-
},
|
2564 |
-
indentation: function(tabSize) {return countColumn(this.text, null, tabSize);},
|
2565 |
-
// Produces an HTML fragment for the line, taking selection,
|
2566 |
-
// marking, and highlighting into account.
|
2567 |
-
getHTML: function(makeTab, wrapAt, wrapId, wrapWBR) {
|
2568 |
-
var html = [], first = true, col = 0;
|
2569 |
-
function span_(text, style) {
|
2570 |
-
if (!text) return;
|
2571 |
-
// Work around a bug where, in some compat modes, IE ignores leading spaces
|
2572 |
-
if (first && ie && text.charAt(0) == " ") text = "\u00a0" + text.slice(1);
|
2573 |
-
first = false;
|
2574 |
-
if (text.indexOf("\t") == -1) {
|
2575 |
-
col += text.length;
|
2576 |
-
var escaped = htmlEscape(text);
|
2577 |
-
} else {
|
2578 |
-
var escaped = "";
|
2579 |
-
for (var pos = 0;;) {
|
2580 |
-
var idx = text.indexOf("\t", pos);
|
2581 |
-
if (idx == -1) {
|
2582 |
-
escaped += htmlEscape(text.slice(pos));
|
2583 |
-
col += text.length - pos;
|
2584 |
-
break;
|
2585 |
-
} else {
|
2586 |
-
col += idx - pos;
|
2587 |
-
var tab = makeTab(col);
|
2588 |
-
escaped += htmlEscape(text.slice(pos, idx)) + tab.html;
|
2589 |
-
col += tab.width;
|
2590 |
-
pos = idx + 1;
|
2591 |
-
}
|
2592 |
-
}
|
2593 |
-
}
|
2594 |
-
if (style) html.push('<span class="', style, '">', escaped, "</span>");
|
2595 |
-
else html.push(escaped);
|
2596 |
-
}
|
2597 |
-
var span = span_;
|
2598 |
-
if (wrapAt != null) {
|
2599 |
-
var outPos = 0, open = "<span id=\"" + wrapId + "\">";
|
2600 |
-
span = function(text, style) {
|
2601 |
-
var l = text.length;
|
2602 |
-
if (wrapAt >= outPos && wrapAt < outPos + l) {
|
2603 |
-
if (wrapAt > outPos) {
|
2604 |
-
span_(text.slice(0, wrapAt - outPos), style);
|
2605 |
-
// See comment at the definition of spanAffectsWrapping
|
2606 |
-
if (wrapWBR) html.push("<wbr>");
|
2607 |
-
}
|
2608 |
-
html.push(open);
|
2609 |
-
var cut = wrapAt - outPos;
|
2610 |
-
span_(opera ? text.slice(cut, cut + 1) : text.slice(cut), style);
|
2611 |
-
html.push("</span>");
|
2612 |
-
if (opera) span_(text.slice(cut + 1), style);
|
2613 |
-
wrapAt--;
|
2614 |
-
outPos += l;
|
2615 |
-
} else {
|
2616 |
-
outPos += l;
|
2617 |
-
span_(text, style);
|
2618 |
-
// Output empty wrapper when at end of line
|
2619 |
-
if (outPos == wrapAt && outPos == len) html.push(open + " </span>");
|
2620 |
-
// Stop outputting HTML when gone sufficiently far beyond measure
|
2621 |
-
else if (outPos > wrapAt + 10 && /\s/.test(text)) span = function(){};
|
2622 |
-
}
|
2623 |
-
}
|
2624 |
-
}
|
2625 |
-
|
2626 |
-
var st = this.styles, allText = this.text, marked = this.marked;
|
2627 |
-
var len = allText.length;
|
2628 |
-
function styleToClass(style) {
|
2629 |
-
if (!style) return null;
|
2630 |
-
return "cm-" + style.replace(/ +/g, " cm-");
|
2631 |
-
}
|
2632 |
-
|
2633 |
-
if (!allText && wrapAt == null) {
|
2634 |
-
span(" ");
|
2635 |
-
} else if (!marked || !marked.length) {
|
2636 |
-
for (var i = 0, ch = 0; ch < len; i+=2) {
|
2637 |
-
var str = st[i], style = st[i+1], l = str.length;
|
2638 |
-
if (ch + l > len) str = str.slice(0, len - ch);
|
2639 |
-
ch += l;
|
2640 |
-
span(str, styleToClass(style));
|
2641 |
-
}
|
2642 |
-
} else {
|
2643 |
-
var pos = 0, i = 0, text = "", style, sg = 0;
|
2644 |
-
var nextChange = marked[0].from || 0, marks = [], markpos = 0;
|
2645 |
-
function advanceMarks() {
|
2646 |
-
var m;
|
2647 |
-
while (markpos < marked.length &&
|
2648 |
-
((m = marked[markpos]).from == pos || m.from == null)) {
|
2649 |
-
if (m.style != null) marks.push(m);
|
2650 |
-
++markpos;
|
2651 |
-
}
|
2652 |
-
nextChange = markpos < marked.length ? marked[markpos].from : Infinity;
|
2653 |
-
for (var i = 0; i < marks.length; ++i) {
|
2654 |
-
var to = marks[i].to || Infinity;
|
2655 |
-
if (to == pos) marks.splice(i--, 1);
|
2656 |
-
else nextChange = Math.min(to, nextChange);
|
2657 |
-
}
|
2658 |
-
}
|
2659 |
-
var m = 0;
|
2660 |
-
while (pos < len) {
|
2661 |
-
if (nextChange == pos) advanceMarks();
|
2662 |
-
var upto = Math.min(len, nextChange);
|
2663 |
-
while (true) {
|
2664 |
-
if (text) {
|
2665 |
-
var end = pos + text.length;
|
2666 |
-
var appliedStyle = style;
|
2667 |
-
for (var j = 0; j < marks.length; ++j)
|
2668 |
-
appliedStyle = (appliedStyle ? appliedStyle + " " : "") + marks[j].style;
|
2669 |
-
span(end > upto ? text.slice(0, upto - pos) : text, appliedStyle);
|
2670 |
-
if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;}
|
2671 |
-
pos = end;
|
2672 |
-
}
|
2673 |
-
text = st[i++]; style = styleToClass(st[i++]);
|
2674 |
-
}
|
2675 |
-
}
|
2676 |
-
}
|
2677 |
-
return html.join("");
|
2678 |
-
},
|
2679 |
-
cleanUp: function() {
|
2680 |
-
this.parent = null;
|
2681 |
-
if (this.marked)
|
2682 |
-
for (var i = 0, e = this.marked.length; i < e; ++i) this.marked[i].detach(this);
|
2683 |
-
}
|
2684 |
-
};
|
2685 |
-
// Utility used by replace and split above
|
2686 |
-
function copyStyles(from, to, source, dest) {
|
2687 |
-
for (var i = 0, pos = 0, state = 0; pos < to; i+=2) {
|
2688 |
-
var part = source[i], end = pos + part.length;
|
2689 |
-
if (state == 0) {
|
2690 |
-
if (end > from) dest.push(part.slice(from - pos, Math.min(part.length, to - pos)), source[i+1]);
|
2691 |
-
if (end >= from) state = 1;
|
2692 |
-
} else if (state == 1) {
|
2693 |
-
if (end > to) dest.push(part.slice(0, to - pos), source[i+1]);
|
2694 |
-
else dest.push(part, source[i+1]);
|
2695 |
-
}
|
2696 |
-
pos = end;
|
2697 |
-
}
|
2698 |
-
}
|
2699 |
-
|
2700 |
-
// Data structure that holds the sequence of lines.
|
2701 |
-
function LeafChunk(lines) {
|
2702 |
-
this.lines = lines;
|
2703 |
-
this.parent = null;
|
2704 |
-
for (var i = 0, e = lines.length, height = 0; i < e; ++i) {
|
2705 |
-
lines[i].parent = this;
|
2706 |
-
height += lines[i].height;
|
2707 |
-
}
|
2708 |
-
this.height = height;
|
2709 |
-
}
|
2710 |
-
LeafChunk.prototype = {
|
2711 |
-
chunkSize: function() { return this.lines.length; },
|
2712 |
-
remove: function(at, n, callbacks) {
|
2713 |
-
for (var i = at, e = at + n; i < e; ++i) {
|
2714 |
-
var line = this.lines[i];
|
2715 |
-
this.height -= line.height;
|
2716 |
-
line.cleanUp();
|
2717 |
-
if (line.handlers)
|
2718 |
-
for (var j = 0; j < line.handlers.length; ++j) callbacks.push(line.handlers[j]);
|
2719 |
-
}
|
2720 |
-
this.lines.splice(at, n);
|
2721 |
-
},
|
2722 |
-
collapse: function(lines) {
|
2723 |
-
lines.splice.apply(lines, [lines.length, 0].concat(this.lines));
|
2724 |
-
},
|
2725 |
-
insertHeight: function(at, lines, height) {
|
2726 |
-
this.height += height;
|
2727 |
-
this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));
|
2728 |
-
for (var i = 0, e = lines.length; i < e; ++i) lines[i].parent = this;
|
2729 |
-
},
|
2730 |
-
iterN: function(at, n, op) {
|
2731 |
-
for (var e = at + n; at < e; ++at)
|
2732 |
-
if (op(this.lines[at])) return true;
|
2733 |
-
}
|
2734 |
-
};
|
2735 |
-
function BranchChunk(children) {
|
2736 |
-
this.children = children;
|
2737 |
-
var size = 0, height = 0;
|
2738 |
-
for (var i = 0, e = children.length; i < e; ++i) {
|
2739 |
-
var ch = children[i];
|
2740 |
-
size += ch.chunkSize(); height += ch.height;
|
2741 |
-
ch.parent = this;
|
2742 |
-
}
|
2743 |
-
this.size = size;
|
2744 |
-
this.height = height;
|
2745 |
-
this.parent = null;
|
2746 |
-
}
|
2747 |
-
BranchChunk.prototype = {
|
2748 |
-
chunkSize: function() { return this.size; },
|
2749 |
-
remove: function(at, n, callbacks) {
|
2750 |
-
this.size -= n;
|
2751 |
-
for (var i = 0; i < this.children.length; ++i) {
|
2752 |
-
var child = this.children[i], sz = child.chunkSize();
|
2753 |
-
if (at < sz) {
|
2754 |
-
var rm = Math.min(n, sz - at), oldHeight = child.height;
|
2755 |
-
child.remove(at, rm, callbacks);
|
2756 |
-
this.height -= oldHeight - child.height;
|
2757 |
-
if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }
|
2758 |
-
if ((n -= rm) == 0) break;
|
2759 |
-
at = 0;
|
2760 |
-
} else at -= sz;
|
2761 |
-
}
|
2762 |
-
if (this.size - n < 25) {
|
2763 |
-
var lines = [];
|
2764 |
-
this.collapse(lines);
|
2765 |
-
this.children = [new LeafChunk(lines)];
|
2766 |
-
this.children[0].parent = this;
|
2767 |
-
}
|
2768 |
-
},
|
2769 |
-
collapse: function(lines) {
|
2770 |
-
for (var i = 0, e = this.children.length; i < e; ++i) this.children[i].collapse(lines);
|
2771 |
-
},
|
2772 |
-
insert: function(at, lines) {
|
2773 |
-
var height = 0;
|
2774 |
-
for (var i = 0, e = lines.length; i < e; ++i) height += lines[i].height;
|
2775 |
-
this.insertHeight(at, lines, height);
|
2776 |
-
},
|
2777 |
-
insertHeight: function(at, lines, height) {
|
2778 |
-
this.size += lines.length;
|
2779 |
-
this.height += height;
|
2780 |
-
for (var i = 0, e = this.children.length; i < e; ++i) {
|
2781 |
-
var child = this.children[i], sz = child.chunkSize();
|
2782 |
-
if (at <= sz) {
|
2783 |
-
child.insertHeight(at, lines, height);
|
2784 |
-
if (child.lines && child.lines.length > 50) {
|
2785 |
-
while (child.lines.length > 50) {
|
2786 |
-
var spilled = child.lines.splice(child.lines.length - 25, 25);
|
2787 |
-
var newleaf = new LeafChunk(spilled);
|
2788 |
-
child.height -= newleaf.height;
|
2789 |
-
this.children.splice(i + 1, 0, newleaf);
|
2790 |
-
newleaf.parent = this;
|
2791 |
-
}
|
2792 |
-
this.maybeSpill();
|
2793 |
-
}
|
2794 |
-
break;
|
2795 |
-
}
|
2796 |
-
at -= sz;
|
2797 |
-
}
|
2798 |
-
},
|
2799 |
-
maybeSpill: function() {
|
2800 |
-
if (this.children.length <= 10) return;
|
2801 |
-
var me = this;
|
2802 |
-
do {
|
2803 |
-
var spilled = me.children.splice(me.children.length - 5, 5);
|
2804 |
-
var sibling = new BranchChunk(spilled);
|
2805 |
-
if (!me.parent) { // Become the parent node
|
2806 |
-
var copy = new BranchChunk(me.children);
|
2807 |
-
copy.parent = me;
|
2808 |
-
me.children = [copy, sibling];
|
2809 |
-
me = copy;
|
2810 |
-
} else {
|
2811 |
-
me.size -= sibling.size;
|
2812 |
-
me.height -= sibling.height;
|
2813 |
-
var myIndex = indexOf(me.parent.children, me);
|
2814 |
-
me.parent.children.splice(myIndex + 1, 0, sibling);
|
2815 |
-
}
|
2816 |
-
sibling.parent = me.parent;
|
2817 |
-
} while (me.children.length > 10);
|
2818 |
-
me.parent.maybeSpill();
|
2819 |
-
},
|
2820 |
-
iter: function(from, to, op) { this.iterN(from, to - from, op); },
|
2821 |
-
iterN: function(at, n, op) {
|
2822 |
-
for (var i = 0, e = this.children.length; i < e; ++i) {
|
2823 |
-
var child = this.children[i], sz = child.chunkSize();
|
2824 |
-
if (at < sz) {
|
2825 |
-
var used = Math.min(n, sz - at);
|
2826 |
-
if (child.iterN(at, used, op)) return true;
|
2827 |
-
if ((n -= used) == 0) break;
|
2828 |
-
at = 0;
|
2829 |
-
} else at -= sz;
|
2830 |
-
}
|
2831 |
-
}
|
2832 |
-
};
|
2833 |
-
|
2834 |
-
function getLineAt(chunk, n) {
|
2835 |
-
while (!chunk.lines) {
|
2836 |
-
for (var i = 0;; ++i) {
|
2837 |
-
var child = chunk.children[i], sz = child.chunkSize();
|
2838 |
-
if (n < sz) { chunk = child; break; }
|
2839 |
-
n -= sz;
|
2840 |
-
}
|
2841 |
-
}
|
2842 |
-
return chunk.lines[n];
|
2843 |
-
}
|
2844 |
-
function lineNo(line) {
|
2845 |
-
if (line.parent == null) return null;
|
2846 |
-
var cur = line.parent, no = indexOf(cur.lines, line);
|
2847 |
-
for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {
|
2848 |
-
for (var i = 0, e = chunk.children.length; ; ++i) {
|
2849 |
-
if (chunk.children[i] == cur) break;
|
2850 |
-
no += chunk.children[i].chunkSize();
|
2851 |
-
}
|
2852 |
-
}
|
2853 |
-
return no;
|
2854 |
-
}
|
2855 |
-
function lineAtHeight(chunk, h) {
|
2856 |
-
var n = 0;
|
2857 |
-
outer: do {
|
2858 |
-
for (var i = 0, e = chunk.children.length; i < e; ++i) {
|
2859 |
-
var child = chunk.children[i], ch = child.height;
|
2860 |
-
if (h < ch) { chunk = child; continue outer; }
|
2861 |
-
h -= ch;
|
2862 |
-
n += child.chunkSize();
|
2863 |
-
}
|
2864 |
-
return n;
|
2865 |
-
} while (!chunk.lines);
|
2866 |
-
for (var i = 0, e = chunk.lines.length; i < e; ++i) {
|
2867 |
-
var line = chunk.lines[i], lh = line.height;
|
2868 |
-
if (h < lh) break;
|
2869 |
-
h -= lh;
|
2870 |
-
}
|
2871 |
-
return n + i;
|
2872 |
-
}
|
2873 |
-
function heightAtLine(chunk, n) {
|
2874 |
-
var h = 0;
|
2875 |
-
outer: do {
|
2876 |
-
for (var i = 0, e = chunk.children.length; i < e; ++i) {
|
2877 |
-
var child = chunk.children[i], sz = child.chunkSize();
|
2878 |
-
if (n < sz) { chunk = child; continue outer; }
|
2879 |
-
n -= sz;
|
2880 |
-
h += child.height;
|
2881 |
-
}
|
2882 |
-
return h;
|
2883 |
-
} while (!chunk.lines);
|
2884 |
-
for (var i = 0; i < n; ++i) h += chunk.lines[i].height;
|
2885 |
-
return h;
|
2886 |
-
}
|
2887 |
-
|
2888 |
-
// The history object 'chunks' changes that are made close together
|
2889 |
-
// and at almost the same time into bigger undoable units.
|
2890 |
-
function History() {
|
2891 |
-
this.time = 0;
|
2892 |
-
this.done = []; this.undone = [];
|
2893 |
-
this.compound = 0;
|
2894 |
-
this.closed = false;
|
2895 |
-
}
|
2896 |
-
History.prototype = {
|
2897 |
-
addChange: function(start, added, old) {
|
2898 |
-
this.undone.length = 0;
|
2899 |
-
var time = +new Date, cur = this.done[this.done.length - 1], last = cur && cur[cur.length - 1];
|
2900 |
-
var dtime = time - this.time;
|
2901 |
-
|
2902 |
-
if (this.compound && cur && !this.closed) {
|
2903 |
-
cur.push({start: start, added: added, old: old});
|
2904 |
-
} else if (dtime > 400 || !last || this.closed ||
|
2905 |
-
last.start > start + old.length || last.start + last.added < start) {
|
2906 |
-
this.done.push([{start: start, added: added, old: old}]);
|
2907 |
-
this.closed = false;
|
2908 |
-
} else {
|
2909 |
-
var startBefore = Math.max(0, last.start - start),
|
2910 |
-
endAfter = Math.max(0, (start + old.length) - (last.start + last.added));
|
2911 |
-
for (var i = startBefore; i > 0; --i) last.old.unshift(old[i - 1]);
|
2912 |
-
for (var i = endAfter; i > 0; --i) last.old.push(old[old.length - i]);
|
2913 |
-
if (startBefore) last.start = start;
|
2914 |
-
last.added += added - (old.length - startBefore - endAfter);
|
2915 |
-
}
|
2916 |
-
this.time = time;
|
2917 |
-
},
|
2918 |
-
startCompound: function() {
|
2919 |
-
if (!this.compound++) this.closed = true;
|
2920 |
-
},
|
2921 |
-
endCompound: function() {
|
2922 |
-
if (!--this.compound) this.closed = true;
|
2923 |
-
}
|
2924 |
-
};
|
2925 |
-
|
2926 |
-
function stopMethod() {e_stop(this);}
|
2927 |
-
// Ensure an event has a stop method.
|
2928 |
-
function addStop(event) {
|
2929 |
-
if (!event.stop) event.stop = stopMethod;
|
2930 |
-
return event;
|
2931 |
-
}
|
2932 |
-
|
2933 |
-
function e_preventDefault(e) {
|
2934 |
-
if (e.preventDefault) e.preventDefault();
|
2935 |
-
else e.returnValue = false;
|
2936 |
-
}
|
2937 |
-
function e_stopPropagation(e) {
|
2938 |
-
if (e.stopPropagation) e.stopPropagation();
|
2939 |
-
else e.cancelBubble = true;
|
2940 |
-
}
|
2941 |
-
function e_stop(e) {e_preventDefault(e); e_stopPropagation(e);}
|
2942 |
-
CodeMirror.e_stop = e_stop;
|
2943 |
-
CodeMirror.e_preventDefault = e_preventDefault;
|
2944 |
-
CodeMirror.e_stopPropagation = e_stopPropagation;
|
2945 |
-
|
2946 |
-
function e_target(e) {return e.target || e.srcElement;}
|
2947 |
-
function e_button(e) {
|
2948 |
-
if (e.which) return e.which;
|
2949 |
-
else if (e.button & 1) return 1;
|
2950 |
-
else if (e.button & 2) return 3;
|
2951 |
-
else if (e.button & 4) return 2;
|
2952 |
-
}
|
2953 |
-
|
2954 |
-
// Allow 3rd-party code to override event properties by adding an override
|
2955 |
-
// object to an event object.
|
2956 |
-
function e_prop(e, prop) {
|
2957 |
-
var overridden = e.override && e.override.hasOwnProperty(prop);
|
2958 |
-
return overridden ? e.override[prop] : e[prop];
|
2959 |
-
}
|
2960 |
-
|
2961 |
-
// Event handler registration. If disconnect is true, it'll return a
|
2962 |
-
// function that unregisters the handler.
|
2963 |
-
function connect(node, type, handler, disconnect) {
|
2964 |
-
if (typeof node.addEventListener == "function") {
|
2965 |
-
node.addEventListener(type, handler, false);
|
2966 |
-
if (disconnect) return function() {node.removeEventListener(type, handler, false);};
|
2967 |
-
} else {
|
2968 |
-
var wrapHandler = function(event) {handler(event || window.event);};
|
2969 |
-
node.attachEvent("on" + type, wrapHandler);
|
2970 |
-
if (disconnect) return function() {node.detachEvent("on" + type, wrapHandler);};
|
2971 |
-
}
|
2972 |
-
}
|
2973 |
-
CodeMirror.connect = connect;
|
2974 |
-
|
2975 |
-
function Delayed() {this.id = null;}
|
2976 |
-
Delayed.prototype = {set: function(ms, f) {clearTimeout(this.id); this.id = setTimeout(f, ms);}};
|
2977 |
-
|
2978 |
-
var Pass = CodeMirror.Pass = {toString: function(){return "CodeMirror.Pass";}};
|
2979 |
-
|
2980 |
-
var gecko = /gecko\/\d{7}/i.test(navigator.userAgent);
|
2981 |
-
var ie = /MSIE \d/.test(navigator.userAgent);
|
2982 |
-
var ie_lt8 = /MSIE [1-7]\b/.test(navigator.userAgent);
|
2983 |
-
var ie_lt9 = /MSIE [1-8]\b/.test(navigator.userAgent);
|
2984 |
-
var quirksMode = ie && document.documentMode == 5;
|
2985 |
-
var webkit = /WebKit\//.test(navigator.userAgent);
|
2986 |
-
var chrome = /Chrome\//.test(navigator.userAgent);
|
2987 |
-
var opera = /Opera\//.test(navigator.userAgent);
|
2988 |
-
var safari = /Apple Computer/.test(navigator.vendor);
|
2989 |
-
var khtml = /KHTML\//.test(navigator.userAgent);
|
2990 |
-
var mac_geLion = /Mac OS X 10\D([7-9]|\d\d)\D/.test(navigator.userAgent);
|
2991 |
-
|
2992 |
-
// Detect drag-and-drop
|
2993 |
-
var dragAndDrop = function() {
|
2994 |
-
// There is *some* kind of drag-and-drop support in IE6-8, but I
|
2995 |
-
// couldn't get it to work yet.
|
2996 |
-
if (ie_lt9) return false;
|
2997 |
-
var div = document.createElement('div');
|
2998 |
-
return "draggable" in div || "dragDrop" in div;
|
2999 |
-
}();
|
3000 |
-
|
3001 |
-
// Feature-detect whether newlines in textareas are converted to \r\n
|
3002 |
-
var lineSep = function () {
|
3003 |
-
var te = document.createElement("textarea");
|
3004 |
-
te.value = "foo\nbar";
|
3005 |
-
if (te.value.indexOf("\r") > -1) return "\r\n";
|
3006 |
-
return "\n";
|
3007 |
-
}();
|
3008 |
-
|
3009 |
-
// For a reason I have yet to figure out, some browsers disallow
|
3010 |
-
// word wrapping between certain characters *only* if a new inline
|
3011 |
-
// element is started between them. This makes it hard to reliably
|
3012 |
-
// measure the position of things, since that requires inserting an
|
3013 |
-
// extra span. This terribly fragile set of regexps matches the
|
3014 |
-
// character combinations that suffer from this phenomenon on the
|
3015 |
-
// various browsers.
|
3016 |
-
var spanAffectsWrapping = /^$/; // Won't match any two-character string
|
3017 |
-
if (gecko) spanAffectsWrapping = /$'/;
|
3018 |
-
else if (safari) spanAffectsWrapping = /\-[^ \-?]|\?[^ !'\"\),.\-\/:;\?\]\}]/;
|
3019 |
-
else if (chrome) spanAffectsWrapping = /\-[^ \-\.?]|\?[^ \-\.?\]\}:;!'\"\),\/]|[\.!\"#&%\)*+,:;=>\]|\}~][\(\{\[<]|\$'/;
|
3020 |
-
|
3021 |
-
// Counts the column offset in a string, taking tabs into account.
|
3022 |
-
// Used mostly to find indentation.
|
3023 |
-
function countColumn(string, end, tabSize) {
|
3024 |
-
if (end == null) {
|
3025 |
-
end = string.search(/[^\s\u00a0]/);
|
3026 |
-
if (end == -1) end = string.length;
|
3027 |
-
}
|
3028 |
-
for (var i = 0, n = 0; i < end; ++i) {
|
3029 |
-
if (string.charAt(i) == "\t") n += tabSize - (n % tabSize);
|
3030 |
-
else ++n;
|
3031 |
-
}
|
3032 |
-
return n;
|
3033 |
-
}
|
3034 |
-
|
3035 |
-
function computedStyle(elt) {
|
3036 |
-
if (elt.currentStyle) return elt.currentStyle;
|
3037 |
-
return window.getComputedStyle(elt, null);
|
3038 |
-
}
|
3039 |
-
|
3040 |
-
// Find the position of an element by following the offsetParent chain.
|
3041 |
-
// If screen==true, it returns screen (rather than page) coordinates.
|
3042 |
-
function eltOffset(node, screen) {
|
3043 |
-
var bod = node.ownerDocument.body;
|
3044 |
-
var x = 0, y = 0, skipBody = false;
|
3045 |
-
for (var n = node; n; n = n.offsetParent) {
|
3046 |
-
var ol = n.offsetLeft, ot = n.offsetTop;
|
3047 |
-
// Firefox reports weird inverted offsets when the body has a border.
|
3048 |
-
if (n == bod) { x += Math.abs(ol); y += Math.abs(ot); }
|
3049 |
-
else { x += ol, y += ot; }
|
3050 |
-
if (screen && computedStyle(n).position == "fixed")
|
3051 |
-
skipBody = true;
|
3052 |
-
}
|
3053 |
-
var e = screen && !skipBody ? null : bod;
|
3054 |
-
for (var n = node.parentNode; n != e; n = n.parentNode)
|
3055 |
-
if (n.scrollLeft != null) { x -= n.scrollLeft; y -= n.scrollTop;}
|
3056 |
-
return {left: x, top: y};
|
3057 |
-
}
|
3058 |
-
// Use the faster and saner getBoundingClientRect method when possible.
|
3059 |
-
if (document.documentElement.getBoundingClientRect != null) eltOffset = function(node, screen) {
|
3060 |
-
// Take the parts of bounding client rect that we are interested in so we are able to edit if need be,
|
3061 |
-
// since the returned value cannot be changed externally (they are kept in sync as the element moves within the page)
|
3062 |
-
try { var box = node.getBoundingClientRect(); box = { top: box.top, left: box.left }; }
|
3063 |
-
catch(e) { box = {top: 0, left: 0}; }
|
3064 |
-
if (!screen) {
|
3065 |
-
// Get the toplevel scroll, working around browser differences.
|
3066 |
-
if (window.pageYOffset == null) {
|
3067 |
-
var t = document.documentElement || document.body.parentNode;
|
3068 |
-
if (t.scrollTop == null) t = document.body;
|
3069 |
-
box.top += t.scrollTop; box.left += t.scrollLeft;
|
3070 |
-
} else {
|
3071 |
-
box.top += window.pageYOffset; box.left += window.pageXOffset;
|
3072 |
-
}
|
3073 |
-
}
|
3074 |
-
return box;
|
3075 |
-
};
|
3076 |
-
|
3077 |
-
// Get a node's text content.
|
3078 |
-
function eltText(node) {
|
3079 |
-
return node.textContent || node.innerText || node.nodeValue || "";
|
3080 |
-
}
|
3081 |
-
function selectInput(node) {
|
3082 |
-
if (ios) { // Mobile Safari apparently has a bug where select() is broken.
|
3083 |
-
node.selectionStart = 0;
|
3084 |
-
node.selectionEnd = node.value.length;
|
3085 |
-
} else node.select();
|
3086 |
-
}
|
3087 |
-
|
3088 |
-
// Operations on {line, ch} objects.
|
3089 |
-
function posEq(a, b) {return a.line == b.line && a.ch == b.ch;}
|
3090 |
-
function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);}
|
3091 |
-
function copyPos(x) {return {line: x.line, ch: x.ch};}
|
3092 |
-
|
3093 |
-
var escapeElement = document.createElement("pre");
|
3094 |
-
function htmlEscape(str) {
|
3095 |
-
escapeElement.textContent = str;
|
3096 |
-
return escapeElement.innerHTML;
|
3097 |
-
}
|
3098 |
-
// Recent (late 2011) Opera betas insert bogus newlines at the start
|
3099 |
-
// of the textContent, so we strip those.
|
3100 |
-
if (htmlEscape("a") == "\na") {
|
3101 |
-
htmlEscape = function(str) {
|
3102 |
-
escapeElement.textContent = str;
|
3103 |
-
return escapeElement.innerHTML.slice(1);
|
3104 |
-
};
|
3105 |
-
// Some IEs don't preserve tabs through innerHTML
|
3106 |
-
} else if (htmlEscape("\t") != "\t") {
|
3107 |
-
htmlEscape = function(str) {
|
3108 |
-
escapeElement.innerHTML = "";
|
3109 |
-
escapeElement.appendChild(document.createTextNode(str));
|
3110 |
-
return escapeElement.innerHTML;
|
3111 |
-
};
|
3112 |
-
}
|
3113 |
-
CodeMirror.htmlEscape = htmlEscape;
|
3114 |
-
|
3115 |
-
// Used to position the cursor after an undo/redo by finding the
|
3116 |
-
// last edited character.
|
3117 |
-
function editEnd(from, to) {
|
3118 |
-
if (!to) return 0;
|
3119 |
-
if (!from) return to.length;
|
3120 |
-
for (var i = from.length, j = to.length; i >= 0 && j >= 0; --i, --j)
|
3121 |
-
if (from.charAt(i) != to.charAt(j)) break;
|
3122 |
-
return j + 1;
|
3123 |
-
}
|
3124 |
-
|
3125 |
-
function indexOf(collection, elt) {
|
3126 |
-
if (collection.indexOf) return collection.indexOf(elt);
|
3127 |
-
for (var i = 0, e = collection.length; i < e; ++i)
|
3128 |
-
if (collection[i] == elt) return i;
|
3129 |
-
return -1;
|
3130 |
-
}
|
3131 |
-
function isWordChar(ch) {
|
3132 |
-
return /\w/.test(ch) || ch.toUpperCase() != ch.toLowerCase();
|
3133 |
-
}
|
3134 |
-
|
3135 |
-
// See if "".split is the broken IE version, if so, provide an
|
3136 |
-
// alternative way to split lines.
|
3137 |
-
var splitLines = "\n\nb".split(/\n/).length != 3 ? function(string) {
|
3138 |
-
var pos = 0, nl, result = [];
|
3139 |
-
while ((nl = string.indexOf("\n", pos)) > -1) {
|
3140 |
-
result.push(string.slice(pos, string.charAt(nl-1) == "\r" ? nl - 1 : nl));
|
3141 |
-
pos = nl + 1;
|
3142 |
-
}
|
3143 |
-
result.push(string.slice(pos));
|
3144 |
-
return result;
|
3145 |
-
} : function(string){return string.split(/\r?\n/);};
|
3146 |
-
CodeMirror.splitLines = splitLines;
|
3147 |
-
|
3148 |
-
var hasSelection = window.getSelection ? function(te) {
|
3149 |
-
try { return te.selectionStart != te.selectionEnd; }
|
3150 |
-
catch(e) { return false; }
|
3151 |
-
} : function(te) {
|
3152 |
-
try {var range = te.ownerDocument.selection.createRange();}
|
3153 |
-
catch(e) {}
|
3154 |
-
if (!range || range.parentElement() != te) return false;
|
3155 |
-
return range.compareEndPoints("StartToEnd", range) != 0;
|
3156 |
-
};
|
3157 |
-
|
3158 |
-
CodeMirror.defineMode("null", function() {
|
3159 |
-
return {token: function(stream) {stream.skipToEnd();}};
|
3160 |
-
});
|
3161 |
-
CodeMirror.defineMIME("text/plain", "null");
|
3162 |
-
|
3163 |
-
var keyNames = {3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
|
3164 |
-
19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",
|
3165 |
-
36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",
|
3166 |
-
46: "Delete", 59: ";", 91: "Mod", 92: "Mod", 93: "Mod", 109: "-", 107: "=", 127: "Delete",
|
3167 |
-
186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",
|
3168 |
-
221: "]", 222: "'", 63276: "PageUp", 63277: "PageDown", 63275: "End", 63273: "Home",
|
3169 |
-
63234: "Left", 63232: "Up", 63235: "Right", 63233: "Down", 63302: "Insert", 63272: "Delete"};
|
3170 |
-
CodeMirror.keyNames = keyNames;
|
3171 |
-
(function() {
|
3172 |
-
// Number keys
|
3173 |
-
for (var i = 0; i < 10; i++) keyNames[i + 48] = String(i);
|
3174 |
-
// Alphabetic keys
|
3175 |
-
for (var i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i);
|
3176 |
-
// Function keys
|
3177 |
-
for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i;
|
3178 |
-
})();
|
3179 |
-
|
3180 |
-
return CodeMirror;
|
3181 |
-
})();
|
1 |
+
// CodeMirror version 2.3
|
2 |
+
//
|
3 |
+
// All functions that need access to the editor's state live inside
|
4 |
+
// the CodeMirror function. Below that, at the bottom of the file,
|
5 |
+
// some utilities are defined.
|
6 |
+
|
7 |
+
// CodeMirror is the only global var we claim
|
8 |
+
var CodeMirror = (function() {
|
9 |
+
// This is the function that produces an editor instance. Its
|
10 |
+
// closure is used to store the editor state.
|
11 |
+
function CodeMirror(place, givenOptions) {
|
12 |
+
// Determine effective options based on given values and defaults.
|
13 |
+
var options = {}, defaults = CodeMirror.defaults;
|
14 |
+
for (var opt in defaults)
|
15 |
+
if (defaults.hasOwnProperty(opt))
|
16 |
+
options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];
|
17 |
+
|
18 |
+
// The element in which the editor lives.
|
19 |
+
var wrapper = document.createElement("div");
|
20 |
+
wrapper.className = "CodeMirror" + (options.lineWrapping ? " CodeMirror-wrap" : "");
|
21 |
+
// This mess creates the base DOM structure for the editor.
|
22 |
+
wrapper.innerHTML =
|
23 |
+
'<div style="overflow: hidden; position: relative; width: 3px; height: 0px;">' + // Wraps and hides input textarea
|
24 |
+
'<textarea style="position: absolute; padding: 0; width: 1px; height: 1em" wrap="off" ' +
|
25 |
+
'autocorrect="off" autocapitalize="off"></textarea></div>' +
|
26 |
+
'<div class="CodeMirror-scrollbar">' + // The vertical scrollbar. Horizontal scrolling is handled by the scroller itself.
|
27 |
+
'<div class="CodeMirror-scrollbar-inner">' + // The empty scrollbar content, used solely for managing the scrollbar thumb.
|
28 |
+
'</div></div>' + // This must be before the scroll area because it's float-right.
|
29 |
+
'<div class="CodeMirror-scroll" tabindex="-1">' +
|
30 |
+
'<div style="position: relative">' + // Set to the height of the text, causes scrolling
|
31 |
+
'<div style="position: relative">' + // Moved around its parent to cover visible view
|
32 |
+
'<div class="CodeMirror-gutter"><div class="CodeMirror-gutter-text"></div></div>' +
|
33 |
+
// Provides positioning relative to (visible) text origin
|
34 |
+
'<div class="CodeMirror-lines"><div style="position: relative; z-index: 0">' +
|
35 |
+
// Used to measure text size
|
36 |
+
'<div style="position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden;"></div>' +
|
37 |
+
'<pre class="CodeMirror-cursor"> </pre>' + // Absolutely positioned blinky cursor
|
38 |
+
'<pre class="CodeMirror-cursor" style="visibility: hidden"> </pre>' + // Used to force a width
|
39 |
+
'<div style="position: relative; z-index: -1"></div><div></div>' + // DIVs containing the selection and the actual code
|
40 |
+
'</div></div></div></div></div>';
|
41 |
+
if (place.appendChild) place.appendChild(wrapper); else place(wrapper);
|
42 |
+
// I've never seen more elegant code in my life.
|
43 |
+
var inputDiv = wrapper.firstChild, input = inputDiv.firstChild,
|
44 |
+
scroller = wrapper.lastChild, code = scroller.firstChild,
|
45 |
+
mover = code.firstChild, gutter = mover.firstChild, gutterText = gutter.firstChild,
|
46 |
+
lineSpace = gutter.nextSibling.firstChild, measure = lineSpace.firstChild,
|
47 |
+
cursor = measure.nextSibling, widthForcer = cursor.nextSibling,
|
48 |
+
selectionDiv = widthForcer.nextSibling, lineDiv = selectionDiv.nextSibling,
|
49 |
+
scrollbar = inputDiv.nextSibling, scrollbarInner = scrollbar.firstChild;
|
50 |
+
themeChanged(); keyMapChanged();
|
51 |
+
// Needed to hide big blue blinking cursor on Mobile Safari
|
52 |
+
if (ios) input.style.width = "0px";
|
53 |
+
if (!webkit) scroller.draggable = true;
|
54 |
+
lineSpace.style.outline = "none";
|
55 |
+
if (options.tabindex != null) input.tabIndex = options.tabindex;
|
56 |
+
if (options.autofocus) focusInput();
|
57 |
+
if (!options.gutter && !options.lineNumbers) gutter.style.display = "none";
|
58 |
+
// Needed to handle Tab key in KHTML
|
59 |
+
if (khtml) inputDiv.style.height = "1px", inputDiv.style.position = "absolute";
|
60 |
+
|
61 |
+
// Check for OS X >= 10.7. If so, we need to force a width on the scrollbar, and
|
62 |
+
// make it overlap the content. (But we only do this if the scrollbar doesn't already
|
63 |
+
// have a natural width. If the mouse is plugged in or the user sets the system pref
|
64 |
+
// to always show scrollbars, the scrollbar shouldn't overlap.)
|
65 |
+
if (mac_geLion) {
|
66 |
+
scrollbar.className += (overlapScrollbars() ? " cm-sb-overlap" : " cm-sb-nonoverlap");
|
67 |
+
} else if (ie_lt8) {
|
68 |
+
// Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).
|
69 |
+
scrollbar.className += " cm-sb-ie7";
|
70 |
+
}
|
71 |
+
|
72 |
+
// Check for problem with IE innerHTML not working when we have a
|
73 |
+
// P (or similar) parent node.
|
74 |
+
try { stringWidth("x"); }
|
75 |
+
catch (e) {
|
76 |
+
if (e.message.match(/runtime/i))
|
77 |
+
e = new Error("A CodeMirror inside a P-style element does not work in Internet Explorer. (innerHTML bug)");
|
78 |
+
throw e;
|
79 |
+
}
|
80 |
+
|
81 |
+
// Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.
|
82 |
+
var poll = new Delayed(), highlight = new Delayed(), blinker;
|
83 |
+
|
84 |
+
// mode holds a mode API object. doc is the tree of Line objects,
|
85 |
+
// work an array of lines that should be parsed, and history the
|
86 |
+
// undo history (instance of History constructor).
|
87 |
+
var mode, doc = new BranchChunk([new LeafChunk([new Line("")])]), work, focused;
|
88 |
+
loadMode();
|
89 |
+
// The selection. These are always maintained to point at valid
|
90 |
+
// positions. Inverted is used to remember that the user is
|
91 |
+
// selecting bottom-to-top.
|
92 |
+
var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};
|
93 |
+
// Selection-related flags. shiftSelecting obviously tracks
|
94 |
+
// whether the user is holding shift.
|
95 |
+
var shiftSelecting, lastClick, lastDoubleClick, lastScrollTop = 0, lastScrollLeft = 0, draggingText,
|
96 |
+
overwrite = false, suppressEdits = false;
|
97 |
+
// Variables used by startOperation/endOperation to track what
|
98 |
+
// happened during the operation.
|
99 |
+
var updateInput, userSelChange, changes, textChanged, selectionChanged, leaveInputAlone,
|
100 |
+
gutterDirty, callbacks;
|
101 |
+
// Current visible range (may be bigger than the view window).
|
102 |
+
var displayOffset = 0, showingFrom = 0, showingTo = 0, lastSizeC = 0;
|
103 |
+
// bracketHighlighted is used to remember that a bracket has been
|
104 |
+
// marked.
|
105 |
+
var bracketHighlighted;
|
106 |
+
// Tracks the maximum line length so that the horizontal scrollbar
|
107 |
+
// can be kept static when scrolling.
|
108 |
+
var maxLine = "", updateMaxLine = false, maxLineChanged = true;
|
109 |
+
var tabCache = {};
|
110 |
+
|
111 |
+
// Initialize the content.
|
112 |
+
operation(function(){setValue(options.value || ""); updateInput = false;})();
|
113 |
+
var history = new History();
|
114 |
+
|
115 |
+
// Register our event handlers.
|
116 |
+
connect(scroller, "mousedown", operation(onMouseDown));
|
117 |
+
connect(scroller, "dblclick", operation(onDoubleClick));
|
118 |
+
connect(lineSpace, "selectstart", e_preventDefault);
|
119 |
+
// Gecko browsers fire contextmenu *after* opening the menu, at
|
120 |
+
// which point we can't mess with it anymore. Context menu is
|
121 |
+
// handled in onMouseDown for Gecko.
|
122 |
+
if (!gecko) connect(scroller, "contextmenu", onContextMenu);
|
123 |
+
connect(scroller, "scroll", onScroll);
|
124 |
+
connect(scrollbar, "scroll", onScroll);
|
125 |
+
connect(scrollbar, "mousedown", function() {setTimeout(focusInput, 0);});
|
126 |
+
connect(scroller, "mousewheel", onMouseWheel);
|
127 |
+
connect(scroller, "DOMMouseScroll", onMouseWheel);
|
128 |
+
connect(window, "resize", function() {updateDisplay(true);});
|
129 |
+
connect(input, "keyup", operation(onKeyUp));
|
130 |
+
connect(input, "input", fastPoll);
|
131 |
+
connect(input, "keydown", operation(onKeyDown));
|
132 |
+
connect(input, "keypress", operation(onKeyPress));
|
133 |
+
connect(input, "focus", onFocus);
|
134 |
+
connect(input, "blur", onBlur);
|
135 |
+
|
136 |
+
if (options.dragDrop) {
|
137 |
+
connect(scroller, "dragstart", onDragStart);
|
138 |
+
function drag_(e) {
|
139 |
+
if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
|
140 |
+
e_stop(e);
|
141 |
+
}
|
142 |
+
connect(scroller, "dragenter", drag_);
|
143 |
+
connect(scroller, "dragover", drag_);
|
144 |
+
connect(scroller, "drop", operation(onDrop));
|
145 |
+
}
|
146 |
+
connect(scroller, "paste", function(){focusInput(); fastPoll();});
|
147 |
+
connect(input, "paste", fastPoll);
|
148 |
+
connect(input, "cut", operation(function(){
|
149 |
+
if (!options.readOnly) replaceSelection("");
|
150 |
+
}));
|
151 |
+
|
152 |
+
// Needed to handle Tab key in KHTML
|
153 |
+
if (khtml) connect(code, "mouseup", function() {
|
154 |
+
if (document.activeElement == input) input.blur();
|
155 |
+
focusInput();
|
156 |
+
});
|
157 |
+
|
158 |
+
// IE throws unspecified error in certain cases, when
|
159 |
+
// trying to access activeElement before onload
|
160 |
+
var hasFocus; try { hasFocus = (document.activeElement == input); } catch(e) { }
|
161 |
+
if (hasFocus || options.autofocus) setTimeout(onFocus, 20);
|
162 |
+
else onBlur();
|
163 |
+
|
164 |
+
function isLine(l) {return l >= 0 && l < doc.size;}
|
165 |
+
// The instance object that we'll return. Mostly calls out to
|
166 |
+
// local functions in the CodeMirror function. Some do some extra
|
167 |
+
// range checking and/or clipping. operation is used to wrap the
|
168 |
+
// call so that changes it makes are tracked, and the display is
|
169 |
+
// updated afterwards.
|
170 |
+
var instance = wrapper.CodeMirror = {
|
171 |
+
getValue: getValue,
|
172 |
+
setValue: operation(setValue),
|
173 |
+
getSelection: getSelection,
|
174 |
+
replaceSelection: operation(replaceSelection),
|
175 |
+
focus: function(){window.focus(); focusInput(); onFocus(); fastPoll();},
|
176 |
+
setOption: function(option, value) {
|
177 |
+
var oldVal = options[option];
|
178 |
+
options[option] = value;
|
179 |
+
if (option == "mode" || option == "indentUnit") loadMode();
|
180 |
+
else if (option == "readOnly" && value == "nocursor") {onBlur(); input.blur();}
|
181 |
+
else if (option == "readOnly" && !value) {resetInput(true);}
|
182 |
+
else if (option == "theme") themeChanged();
|
183 |
+
else if (option == "lineWrapping" && oldVal != value) operation(wrappingChanged)();
|
184 |
+
else if (option == "tabSize") updateDisplay(true);
|
185 |
+
else if (option == "keyMap") keyMapChanged();
|
186 |
+
if (option == "lineNumbers" || option == "gutter" || option == "firstLineNumber" || option == "theme") {
|
187 |
+
gutterChanged();
|
188 |
+
updateDisplay(true);
|
189 |
+
}
|
190 |
+
},
|
191 |
+
getOption: function(option) {return options[option];},
|
192 |
+
undo: operation(undo),
|
193 |
+
redo: operation(redo),
|
194 |
+
indentLine: operation(function(n, dir) {
|
195 |
+
if (typeof dir != "string") {
|
196 |
+
if (dir == null) dir = options.smartIndent ? "smart" : "prev";
|
197 |
+
else dir = dir ? "add" : "subtract";
|
198 |
+
}
|
199 |
+
if (isLine(n)) indentLine(n, dir);
|
200 |
+
}),
|
201 |
+
indentSelection: operation(indentSelected),
|
202 |
+
historySize: function() {return {undo: history.done.length, redo: history.undone.length};},
|
203 |
+
clearHistory: function() {history = new History();},
|
204 |
+
matchBrackets: operation(function(){matchBrackets(true);}),
|
205 |
+
getTokenAt: operation(function(pos) {
|
206 |
+
pos = clipPos(pos);
|
207 |
+
return getLine(pos.line).getTokenAt(mode, getStateBefore(pos.line), pos.ch);
|
208 |
+
}),
|
209 |
+
getStateAfter: function(line) {
|
210 |
+
line = clipLine(line == null ? doc.size - 1: line);
|
211 |
+
return getStateBefore(line + 1);
|
212 |
+
},
|
213 |
+
cursorCoords: function(start, mode) {
|
214 |
+
if (start == null) start = sel.inverted;
|
215 |
+
return this.charCoords(start ? sel.from : sel.to, mode);
|
216 |
+
},
|
217 |
+
charCoords: function(pos, mode) {
|
218 |
+
pos = clipPos(pos);
|
219 |
+
if (mode == "local") return localCoords(pos, false);
|
220 |
+
if (mode == "div") return localCoords(pos, true);
|
221 |
+
return pageCoords(pos);
|
222 |
+
},
|
223 |
+
coordsChar: function(coords) {
|
224 |
+
var off = eltOffset(lineSpace);
|
225 |
+
return coordsChar(coords.x - off.left, coords.y - off.top);
|
226 |
+
},
|
227 |
+
markText: operation(markText),
|
228 |
+
setBookmark: setBookmark,
|
229 |
+
findMarksAt: findMarksAt,
|
230 |
+
setMarker: operation(addGutterMarker),
|
231 |
+
clearMarker: operation(removeGutterMarker),
|
232 |
+
setLineClass: operation(setLineClass),
|
233 |
+
hideLine: operation(function(h) {return setLineHidden(h, true);}),
|
234 |
+
showLine: operation(function(h) {return setLineHidden(h, false);}),
|
235 |
+
onDeleteLine: function(line, f) {
|
236 |
+
if (typeof line == "number") {
|
237 |
+
if (!isLine(line)) return null;
|
238 |
+
line = getLine(line);
|
239 |
+
}
|
240 |
+
(line.handlers || (line.handlers = [])).push(f);
|
241 |
+
return line;
|
242 |
+
},
|
243 |
+
lineInfo: lineInfo,
|
244 |
+
addWidget: function(pos, node, scroll, vert, horiz) {
|
245 |
+
pos = localCoords(clipPos(pos));
|
246 |
+
var top = pos.yBot, left = pos.x;
|
247 |
+
node.style.position = "absolute";
|
248 |
+
code.appendChild(node);
|
249 |
+
if (vert == "over") top = pos.y;
|
250 |
+
else if (vert == "near") {
|
251 |
+
var vspace = Math.max(scroller.offsetHeight, doc.height * textHeight()),
|
252 |
+
hspace = Math.max(code.clientWidth, lineSpace.clientWidth) - paddingLeft();
|
253 |
+
if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)
|
254 |
+
top = pos.y - node.offsetHeight;
|
255 |
+
if (left + node.offsetWidth > hspace)
|
256 |
+
left = hspace - node.offsetWidth;
|
257 |
+
}
|
258 |
+
node.style.top = (top + paddingTop()) + "px";
|
259 |
+
node.style.left = node.style.right = "";
|
260 |
+
if (horiz == "right") {
|
261 |
+
left = code.clientWidth - node.offsetWidth;
|
262 |
+
node.style.right = "0px";
|
263 |
+
} else {
|
264 |
+
if (horiz == "left") left = 0;
|
265 |
+
else if (horiz == "middle") left = (code.clientWidth - node.offsetWidth) / 2;
|
266 |
+
node.style.left = (left + paddingLeft()) + "px";
|
267 |
+
}
|
268 |
+
if (scroll)
|
269 |
+
scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);
|
270 |
+
},
|
271 |
+
|
272 |
+
lineCount: function() {return doc.size;},
|
273 |
+
clipPos: clipPos,
|
274 |
+
getCursor: function(start) {
|
275 |
+
if (start == null) start = sel.inverted;
|
276 |
+
return copyPos(start ? sel.from : sel.to);
|
277 |
+
},
|
278 |
+
somethingSelected: function() {return !posEq(sel.from, sel.to);},
|
279 |
+
setCursor: operation(function(line, ch, user) {
|
280 |
+
if (ch == null && typeof line.line == "number") setCursor(line.line, line.ch, user);
|
281 |
+
else setCursor(line, ch, user);
|
282 |
+
}),
|
283 |
+
setSelection: operation(function(from, to, user) {
|
284 |
+
(user ? setSelectionUser : setSelection)(clipPos(from), clipPos(to || from));
|
285 |
+
}),
|
286 |
+
getLine: function(line) {if (isLine(line)) return getLine(line).text;},
|
287 |
+
getLineHandle: function(line) {if (isLine(line)) return getLine(line);},
|
288 |
+
setLine: operation(function(line, text) {
|
289 |
+
if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: getLine(line).text.length});
|
290 |
+
}),
|
291 |
+
removeLine: operation(function(line) {
|
292 |
+
if (isLine(line)) replaceRange("", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));
|
293 |
+
}),
|
294 |
+
replaceRange: operation(replaceRange),
|
295 |
+
getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));},
|
296 |
+
|
297 |
+
triggerOnKeyDown: operation(onKeyDown),
|
298 |
+
execCommand: function(cmd) {return commands[cmd](instance);},
|
299 |
+
// Stuff used by commands, probably not much use to outside code.
|
300 |
+
moveH: operation(moveH),
|
301 |
+
deleteH: operation(deleteH),
|
302 |
+
moveV: operation(moveV),
|
303 |
+
toggleOverwrite: function() {
|
304 |
+
if(overwrite){
|
305 |
+
overwrite = false;
|
306 |
+
cursor.className = cursor.className.replace(" CodeMirror-overwrite", "");
|
307 |
+
} else {
|
308 |
+
overwrite = true;
|
309 |
+
cursor.className += " CodeMirror-overwrite";
|
310 |
+
}
|
311 |
+
},
|
312 |
+
|
313 |
+
posFromIndex: function(off) {
|
314 |
+
var lineNo = 0, ch;
|
315 |
+
doc.iter(0, doc.size, function(line) {
|
316 |
+
var sz = line.text.length + 1;
|
317 |
+
if (sz > off) { ch = off; return true; }
|
318 |
+
off -= sz;
|
319 |
+
++lineNo;
|
320 |
+
});
|
321 |
+
return clipPos({line: lineNo, ch: ch});
|
322 |
+
},
|
323 |
+
indexFromPos: function (coords) {
|
324 |
+
if (coords.line < 0 || coords.ch < 0) return 0;
|
325 |
+
var index = coords.ch;
|
326 |
+
doc.iter(0, coords.line, function (line) {
|
327 |
+
index += line.text.length + 1;
|
328 |
+
});
|
329 |
+
return index;
|
330 |
+
},
|
331 |
+
scrollTo: function(x, y) {
|
332 |
+
if (x != null) scroller.scrollLeft = x;
|
333 |
+
if (y != null) scrollbar.scrollTop = y;
|
334 |
+
updateDisplay([]);
|
335 |
+
},
|
336 |
+
getScrollInfo: function() {
|
337 |
+
return {x: scroller.scrollLeft, y: scrollbar.scrollTop,
|
338 |
+
height: scrollbar.scrollHeight, width: scroller.scrollWidth};
|
339 |
+
},
|
340 |
+
|
341 |
+
operation: function(f){return operation(f)();},
|
342 |
+
compoundChange: function(f){return compoundChange(f);},
|
343 |
+
refresh: function(){
|
344 |
+
updateDisplay(true);
|
345 |
+
if (scrollbar.scrollHeight > lastScrollTop)
|
346 |
+
scrollbar.scrollTop = lastScrollTop;
|
347 |
+
},
|
348 |
+
getInputField: function(){return input;},
|
349 |
+
getWrapperElement: function(){return wrapper;},
|
350 |
+
getScrollerElement: function(){return scroller;},
|
351 |
+
getGutterElement: function(){return gutter;}
|
352 |
+
};
|
353 |
+
|
354 |
+
function getLine(n) { return getLineAt(doc, n); }
|
355 |
+
function updateLineHeight(line, height) {
|
356 |
+
gutterDirty = true;
|
357 |
+
var diff = height - line.height;
|
358 |
+
for (var n = line; n; n = n.parent) n.height += diff;
|
359 |
+
}
|
360 |
+
|
361 |
+
function setValue(code) {
|
362 |
+
var top = {line: 0, ch: 0};
|
363 |
+
updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},
|
364 |
+
splitLines(code), top, top);
|
365 |
+
updateInput = true;
|
366 |
+
}
|
367 |
+
function getValue() {
|
368 |
+
var text = [];
|
369 |
+
doc.iter(0, doc.size, function(line) { text.push(line.text); });
|
370 |
+
return text.join("\n");
|
371 |
+
}
|
372 |
+
|
373 |
+
function onScroll(e) {
|
374 |
+
if (lastScrollTop != scrollbar.scrollTop || lastScrollLeft != scroller.scrollLeft) {
|
375 |
+
lastScrollTop = scrollbar.scrollTop;
|
376 |
+
lastScrollLeft = scroller.scrollLeft;
|
377 |
+
updateDisplay([]);
|
378 |
+
if (options.fixedGutter) gutter.style.left = scroller.scrollLeft + "px";
|
379 |
+
if (options.onScroll) options.onScroll(instance);
|
380 |
+
}
|
381 |
+
}
|
382 |
+
|
383 |
+
function onMouseDown(e) {
|
384 |
+
setShift(e_prop(e, "shiftKey"));
|
385 |
+
// Check whether this is a click in a widget
|
386 |
+
for (var n = e_target(e); n != wrapper; n = n.parentNode)
|
387 |
+
if (n.parentNode == code && n != mover) return;
|
388 |
+
|
389 |
+
// See if this is a click in the gutter
|
390 |
+
for (var n = e_target(e); n != wrapper; n = n.parentNode)
|
391 |
+
if (n.parentNode == gutterText) {
|
392 |
+
if (options.onGutterClick)
|
393 |
+
options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);
|
394 |
+
return e_preventDefault(e);
|
395 |
+
}
|
396 |
+
|
397 |
+
var start = posFromMouse(e);
|
398 |
+
|
399 |
+
switch (e_button(e)) {
|
400 |
+
case 3:
|
401 |
+
if (gecko && !mac) onContextMenu(e);
|
402 |
+
return;
|
403 |
+
case 2:
|
404 |
+
if (start) setCursor(start.line, start.ch, true);
|
405 |
+
setTimeout(focusInput, 20);
|
406 |
+
e_preventDefault(e);
|
407 |
+
return;
|
408 |
+
}
|
409 |
+
// For button 1, if it was clicked inside the editor
|
410 |
+
// (posFromMouse returning non-null), we have to adjust the
|
411 |
+
// selection.
|
412 |
+
if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}
|
413 |
+
|
414 |
+
if (!focused) onFocus();
|
415 |
+
|
416 |
+
var now = +new Date;
|
417 |
+
if (lastDoubleClick && lastDoubleClick.time > now - 400 && posEq(lastDoubleClick.pos, start)) {
|
418 |
+
e_preventDefault(e);
|
419 |
+
setTimeout(focusInput, 20);
|
420 |
+
return selectLine(start.line);
|
421 |
+
} else if (lastClick && lastClick.time > now - 400 && posEq(lastClick.pos, start)) {
|
422 |
+
lastDoubleClick = {time: now, pos: start};
|
423 |
+
e_preventDefault(e);
|
424 |
+
return selectWordAt(start);
|
425 |
+
} else { lastClick = {time: now, pos: start}; }
|
426 |
+
|
427 |
+
var last = start, going;
|
428 |
+
if (options.dragDrop && dragAndDrop && !options.readOnly && !posEq(sel.from, sel.to) &&
|
429 |
+
!posLess(start, sel.from) && !posLess(sel.to, start)) {
|
430 |
+
// Let the drag handler handle this.
|
431 |
+
if (webkit) scroller.draggable = true;
|
432 |
+
function dragEnd(e2) {
|
433 |
+
if (webkit) scroller.draggable = false;
|
434 |
+
draggingText = false;
|
435 |
+
up(); drop();
|
436 |
+
if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {
|
437 |
+
e_preventDefault(e2);
|
438 |
+
setCursor(start.line, start.ch, true);
|
439 |
+
focusInput();
|
440 |
+
}
|
441 |
+
}
|
442 |
+
var up = connect(document, "mouseup", operation(dragEnd), true);
|
443 |
+
var drop = connect(scroller, "drop", operation(dragEnd), true);
|
444 |
+
draggingText = true;
|
445 |
+
// IE's approach to draggable
|
446 |
+
if (scroller.dragDrop) scroller.dragDrop();
|
447 |
+
return;
|
448 |
+
}
|
449 |
+
e_preventDefault(e);
|
450 |
+
setCursor(start.line, start.ch, true);
|
451 |
+
|
452 |
+
function extend(e) {
|
453 |
+
var cur = posFromMouse(e, true);
|
454 |
+
if (cur && !posEq(cur, last)) {
|
455 |
+
if (!focused) onFocus();
|
456 |
+
last = cur;
|
457 |
+
setSelectionUser(start, cur);
|
458 |
+
updateInput = false;
|
459 |
+
var visible = visibleLines();
|
460 |
+
if (cur.line >= visible.to || cur.line < visible.from)
|
461 |
+
going = setTimeout(operation(function(){extend(e);}), 150);
|
462 |
+
}
|
463 |
+
}
|
464 |
+
|
465 |
+
function done(e) {
|
466 |
+
clearTimeout(going);
|
467 |
+
var cur = posFromMouse(e);
|
468 |
+
if (cur) setSelectionUser(start, cur);
|
469 |
+
e_preventDefault(e);
|
470 |
+
focusInput();
|
471 |
+
updateInput = true;
|
472 |
+
move(); up();
|
473 |
+
}
|
474 |
+
var move = connect(document, "mousemove", operation(function(e) {
|
475 |
+
clearTimeout(going);
|
476 |
+
e_preventDefault(e);
|
477 |
+
if (!ie && !e_button(e)) done(e);
|
478 |
+
else extend(e);
|
479 |
+
}), true);
|
480 |
+
var up = connect(document, "mouseup", operation(done), true);
|
481 |
+
}
|
482 |
+
function onDoubleClick(e) {
|
483 |
+
for (var n = e_target(e); n != wrapper; n = n.parentNode)
|
484 |
+
if (n.parentNode == gutterText) return e_preventDefault(e);
|
485 |
+
var start = posFromMouse(e);
|
486 |
+
if (!start) return;
|
487 |
+
lastDoubleClick = {time: +new Date, pos: start};
|
488 |
+
e_preventDefault(e);
|
489 |
+
selectWordAt(start);
|
490 |
+
}
|
491 |
+
function onDrop(e) {
|
492 |
+
if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
|
493 |
+
e.preventDefault();
|
494 |
+
var pos = posFromMouse(e, true), files = e.dataTransfer.files;
|
495 |
+
if (!pos || options.readOnly) return;
|
496 |
+
if (files && files.length && window.FileReader && window.File) {
|
497 |
+
function loadFile(file, i) {
|
498 |
+
var reader = new FileReader;
|
499 |
+
reader.onload = function() {
|
500 |
+
text[i] = reader.result;
|
501 |
+
if (++read == n) {
|
502 |
+
pos = clipPos(pos);
|
503 |
+
operation(function() {
|
504 |
+
var end = replaceRange(text.join(""), pos, pos);
|
505 |
+
setSelectionUser(pos, end);
|
506 |
+
})();
|
507 |
+
}
|
508 |
+
};
|
509 |
+
reader.readAsText(file);
|
510 |
+
}
|
511 |
+
var n = files.length, text = Array(n), read = 0;
|
512 |
+
for (var i = 0; i < n; ++i) loadFile(files[i], i);
|
513 |
+
} else {
|
514 |
+
// Don't do a replace if the drop happened inside of the selected text.
|
515 |
+
if (draggingText && !(posLess(pos, sel.from) || posLess(sel.to, pos))) return;
|
516 |
+
try {
|
517 |
+
var text = e.dataTransfer.getData("Text");
|
518 |
+
if (text) {
|
519 |
+
compoundChange(function() {
|
520 |
+
var curFrom = sel.from, curTo = sel.to;
|
521 |
+
setSelectionUser(pos, pos);
|
522 |
+
if (draggingText) replaceRange("", curFrom, curTo);
|
523 |
+
replaceSelection(text);
|
524 |
+
focusInput();
|
525 |
+
});
|
526 |
+
}
|
527 |
+
}
|
528 |
+
catch(e){}
|
529 |
+
}
|
530 |
+
}
|
531 |
+
function onDragStart(e) {
|
532 |
+
var txt = getSelection();
|
533 |
+
e.dataTransfer.setData("Text", txt);
|
534 |
+
|
535 |
+
// Use dummy image instead of default browsers image.
|
536 |
+
if (gecko || chrome || opera) {
|
537 |
+
var img = document.createElement('img');
|
538 |
+
img.scr = 'data:image/gif;base64,R0lGODdhAgACAIAAAAAAAP///ywAAAAAAgACAAACAoRRADs='; //1x1 image
|
539 |
+
e.dataTransfer.setDragImage(img, 0, 0);
|
540 |
+
}
|
541 |
+
}
|
542 |
+
|
543 |
+
function doHandleBinding(bound, dropShift) {
|
544 |
+
if (typeof bound == "string") {
|
545 |
+
bound = commands[bound];
|
546 |
+
if (!bound) return false;
|
547 |
+
}
|
548 |
+
var prevShift = shiftSelecting;
|
549 |
+
try {
|
550 |
+
if (options.readOnly) suppressEdits = true;
|
551 |
+
if (dropShift) shiftSelecting = null;
|
552 |
+
bound(instance);
|
553 |
+
} catch(e) {
|
554 |
+
if (e != Pass) throw e;
|
555 |
+
return false;
|
556 |
+
} finally {
|
557 |
+
shiftSelecting = prevShift;
|
558 |
+
suppressEdits = false;
|
559 |
+
}
|
560 |
+
return true;
|
561 |
+
}
|
562 |
+
function handleKeyBinding(e) {
|
563 |
+
// Handle auto keymap transitions
|
564 |
+
var startMap = getKeyMap(options.keyMap), next = startMap.auto;
|
565 |
+
clearTimeout(maybeTransition);
|
566 |
+
if (next && !isModifierKey(e)) maybeTransition = setTimeout(function() {
|
567 |
+
if (getKeyMap(options.keyMap) == startMap) {
|
568 |
+
options.keyMap = (next.call ? next.call(null, instance) : next);
|
569 |
+
}
|
570 |
+
}, 50);
|
571 |
+
|
572 |
+
var name = keyNames[e_prop(e, "keyCode")], handled = false;
|
573 |
+
if (name == null || e.altGraphKey) return false;
|
574 |
+
if (e_prop(e, "altKey")) name = "Alt-" + name;
|
575 |
+
if (e_prop(e, "ctrlKey")) name = "Ctrl-" + name;
|
576 |
+
if (e_prop(e, "metaKey")) name = "Cmd-" + name;
|
577 |
+
|
578 |
+
var stopped = false;
|
579 |
+
function stop() { stopped = true; }
|
580 |
+
|
581 |
+
if (e_prop(e, "shiftKey")) {
|
582 |
+
handled = lookupKey("Shift-" + name, options.extraKeys, options.keyMap,
|
583 |
+
function(b) {return doHandleBinding(b, true);}, stop)
|
584 |
+
|| lookupKey(name, options.extraKeys, options.keyMap, function(b) {
|
585 |
+
if (typeof b == "string" && /^go[A-Z]/.test(b)) return doHandleBinding(b);
|
586 |
+
}, stop);
|
587 |
+
} else {
|
588 |
+
handled = lookupKey(name, options.extraKeys, options.keyMap, doHandleBinding, stop);
|
589 |
+
}
|
590 |
+
if (stopped) handled = false;
|
591 |
+
if (handled) {
|
592 |
+
e_preventDefault(e);
|
593 |
+
restartBlink();
|
594 |
+
if (ie) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }
|
595 |
+
}
|
596 |
+
return handled;
|
597 |
+
}
|
598 |
+
function handleCharBinding(e, ch) {
|
599 |
+
var handled = lookupKey("'" + ch + "'", options.extraKeys,
|
600 |
+
options.keyMap, function(b) { return doHandleBinding(b, true); });
|
601 |
+
if (handled) {
|
602 |
+
e_preventDefault(e);
|
603 |
+
restartBlink();
|
604 |
+
}
|
605 |
+
return handled;
|
606 |
+
}
|
607 |
+
|
608 |
+
var lastStoppedKey = null, maybeTransition;
|
609 |
+
function onKeyDown(e) {
|
610 |
+
if (!focused) onFocus();
|
611 |
+
if (ie && e.keyCode == 27) { e.returnValue = false; }
|
612 |
+
if (pollingFast) { if (readInput()) pollingFast = false; }
|
613 |
+
if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
|
614 |
+
var code = e_prop(e, "keyCode");
|
615 |
+
// IE does strange things with escape.
|
616 |
+
setShift(code == 16 || e_prop(e, "shiftKey"));
|
617 |
+
// First give onKeyEvent option a chance to handle this.
|
618 |
+
var handled = handleKeyBinding(e);
|
619 |
+
if (opera) {
|
620 |
+
lastStoppedKey = handled ? code : null;
|
621 |
+
// Opera has no cut event... we try to at least catch the key combo
|
622 |
+
if (!handled && code == 88 && e_prop(e, mac ? "metaKey" : "ctrlKey"))
|
623 |
+
replaceSelection("");
|
624 |
+
}
|
625 |
+
}
|
626 |
+
function onKeyPress(e) {
|
627 |
+
if (pollingFast) readInput();
|
628 |
+
if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
|
629 |
+
var keyCode = e_prop(e, "keyCode"), charCode = e_prop(e, "charCode");
|
630 |
+
if (opera && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}
|
631 |
+
if (((opera && (!e.which || e.which < 10)) || khtml) && handleKeyBinding(e)) return;
|
632 |
+
var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
|
633 |
+
if (options.electricChars && mode.electricChars && options.smartIndent && !options.readOnly) {
|
634 |
+
if (mode.electricChars.indexOf(ch) > -1)
|
635 |
+
setTimeout(operation(function() {indentLine(sel.to.line, "smart");}), 75);
|
636 |
+
}
|
637 |
+
if (handleCharBinding(e, ch)) return;
|
638 |
+
fastPoll();
|
639 |
+
}
|
640 |
+
function onKeyUp(e) {
|
641 |
+
if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
|
642 |
+
if (e_prop(e, "keyCode") == 16) shiftSelecting = null;
|
643 |
+
}
|
644 |
+
|
645 |
+
function onFocus() {
|
646 |
+
if (options.readOnly == "nocursor") return;
|
647 |
+
if (!focused) {
|
648 |
+
if (options.onFocus) options.onFocus(instance);
|
649 |
+
focused = true;
|
650 |
+
if (scroller.className.search(/\bCodeMirror-focused\b/) == -1)
|
651 |
+
scroller.className += " CodeMirror-focused";
|
652 |
+
if (!leaveInputAlone) resetInput(true);
|
653 |
+
}
|
654 |
+
slowPoll();
|
655 |
+
restartBlink();
|
656 |
+
}
|
657 |
+
function onBlur() {
|
658 |
+
if (focused) {
|
659 |
+
if (options.onBlur) options.onBlur(instance);
|
660 |
+
focused = false;
|
661 |
+
if (bracketHighlighted)
|
662 |
+
operation(function(){
|
663 |
+
if (bracketHighlighted) { bracketHighlighted(); bracketHighlighted = null; }
|
664 |
+
})();
|
665 |
+
scroller.className = scroller.className.replace(" CodeMirror-focused", "");
|
666 |
+
}
|
667 |
+
clearInterval(blinker);
|
668 |
+
setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);
|
669 |
+
}
|
670 |
+
|
671 |
+
function chopDelta(delta) {
|
672 |
+
// Make sure we always scroll a little bit for any nonzero delta.
|
673 |
+
if (delta > 0.0 && delta < 1.0) return 1;
|
674 |
+
else if (delta > -1.0 && delta < 0.0) return -1;
|
675 |
+
else return Math.round(delta);
|
676 |
+
}
|
677 |
+
|
678 |
+
function onMouseWheel(e) {
|
679 |
+
var deltaX = 0, deltaY = 0;
|
680 |
+
if (e.type == "DOMMouseScroll") { // Firefox
|
681 |
+
var delta = -e.detail * 8.0;
|
682 |
+
if (e.axis == e.HORIZONTAL_AXIS) deltaX = delta;
|
683 |
+
else if (e.axis == e.VERTICAL_AXIS) deltaY = delta;
|
684 |
+
} else if (e.wheelDeltaX !== undefined && e.wheelDeltaY !== undefined) { // WebKit
|
685 |
+
deltaX = e.wheelDeltaX / 3.0;
|
686 |
+
deltaY = e.wheelDeltaY / 3.0;
|
687 |
+
} else if (e.wheelDelta !== undefined) { // IE or Opera
|
688 |
+
deltaY = e.wheelDelta / 3.0;
|
689 |
+
}
|
690 |
+
|
691 |
+
var scrolled = false;
|
692 |
+
deltaX = chopDelta(deltaX);
|
693 |
+
deltaY = chopDelta(deltaY);
|
694 |
+
if ((deltaX > 0 && scroller.scrollLeft > 0) ||
|
695 |
+
(deltaX < 0 && scroller.scrollLeft + scroller.clientWidth < scroller.scrollWidth)) {
|
696 |
+
scroller.scrollLeft -= deltaX;
|
697 |
+
scrolled = true;
|
698 |
+
}
|
699 |
+
if ((deltaY > 0 && scrollbar.scrollTop > 0) ||
|
700 |
+
(deltaY < 0 && scrollbar.scrollTop + scrollbar.clientHeight < scrollbar.scrollHeight)) {
|
701 |
+
scrollbar.scrollTop -= deltaY;
|
702 |
+
scrolled = true;
|
703 |
+
}
|
704 |
+
if (scrolled) e_stop(e);
|
705 |
+
}
|
706 |
+
|
707 |
+
// Replace the range from from to to by the strings in newText.
|
708 |
+
// Afterwards, set the selection to selFrom, selTo.
|
709 |
+
function updateLines(from, to, newText, selFrom, selTo) {
|
710 |
+
if (suppressEdits) return;
|
711 |
+
if (history) {
|
712 |
+
var old = [];
|
713 |
+
doc.iter(from.line, to.line + 1, function(line) { old.push(line.text); });
|
714 |
+
history.addChange(from.line, newText.length, old);
|
715 |
+
while (history.done.length > options.undoDepth) history.done.shift();
|
716 |
+
}
|
717 |
+
updateLinesNoUndo(from, to, newText, selFrom, selTo);
|
718 |
+
}
|
719 |
+
function unredoHelper(from, to) {
|
720 |
+
if (!from.length) return;
|
721 |
+
var set = from.pop(), out = [];
|
722 |
+
for (var i = set.length - 1; i >= 0; i -= 1) {
|
723 |
+
var change = set[i];
|
724 |
+
var replaced = [], end = change.start + change.added;
|
725 |
+
doc.iter(change.start, end, function(line) { replaced.push(line.text); });
|
726 |
+
out.push({start: change.start, added: change.old.length, old: replaced});
|
727 |
+
var pos = {line: change.start + change.old.length - 1,
|
728 |
+
ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])};
|
729 |
+
updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: getLine(end-1).text.length}, change.old, pos, pos);
|
730 |
+
}
|
731 |
+
updateInput = true;
|
732 |
+
to.push(out);
|
733 |
+
}
|
734 |
+
function undo() {unredoHelper(history.done, history.undone);}
|
735 |
+
function redo() {unredoHelper(history.undone, history.done);}
|
736 |
+
|
737 |
+
function updateLinesNoUndo(from, to, newText, selFrom, selTo) {
|
738 |
+
if (suppressEdits) return;
|
739 |
+
var recomputeMaxLength = false, maxLineLength = maxLine.length;
|
740 |
+
if (!options.lineWrapping)
|
741 |
+
doc.iter(from.line, to.line + 1, function(line) {
|
742 |
+
if (!line.hidden && line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}
|
743 |
+
});
|
744 |
+
if (from.line != to.line || newText.length > 1) gutterDirty = true;
|
745 |
+
|
746 |
+
var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);
|
747 |
+
// First adjust the line structure, taking some care to leave highlighting intact.
|
748 |
+
if (from.ch == 0 && to.ch == 0 && newText[newText.length - 1] == "") {
|
749 |
+
// This is a whole-line replace. Treated specially to make
|
750 |
+
// sure line objects move the way they are supposed to.
|
751 |
+
var added = [], prevLine = null;
|
752 |
+
if (from.line) {
|
753 |
+
prevLine = getLine(from.line - 1);
|
754 |
+
prevLine.fixMarkEnds(lastLine);
|
755 |
+
} else lastLine.fixMarkStarts();
|
756 |
+
for (var i = 0, e = newText.length - 1; i < e; ++i)
|
757 |
+
added.push(Line.inheritMarks(newText[i], prevLine));
|
758 |
+
if (nlines) doc.remove(from.line, nlines, callbacks);
|
759 |
+
if (added.length) doc.insert(from.line, added);
|
760 |
+
} else if (firstLine == lastLine) {
|
761 |
+
if (newText.length == 1)
|
762 |
+
firstLine.replace(from.ch, to.ch, newText[0]);
|
763 |
+
else {
|
764 |
+
lastLine = firstLine.split(to.ch, newText[newText.length-1]);
|
765 |
+
firstLine.replace(from.ch, null, newText[0]);
|
766 |
+
firstLine.fixMarkEnds(lastLine);
|
767 |
+
var added = [];
|
768 |
+
for (var i = 1, e = newText.length - 1; i < e; ++i)
|
769 |
+
added.push(Line.inheritMarks(newText[i], firstLine));
|
770 |
+
added.push(lastLine);
|
771 |
+
doc.insert(from.line + 1, added);
|
772 |
+
}
|
773 |
+
} else if (newText.length == 1) {
|
774 |
+
firstLine.replace(from.ch, null, newText[0]);
|
775 |
+
lastLine.replace(null, to.ch, "");
|
776 |
+
firstLine.append(lastLine);
|
777 |
+
doc.remove(from.line + 1, nlines, callbacks);
|
778 |
+
} else {
|
779 |
+
var added = [];
|
780 |
+
firstLine.replace(from.ch, null, newText[0]);
|
781 |
+
lastLine.replace(null, to.ch, newText[newText.length-1]);
|
782 |
+
firstLine.fixMarkEnds(lastLine);
|
783 |
+
for (var i = 1, e = newText.length - 1; i < e; ++i)
|
784 |
+
added.push(Line.inheritMarks(newText[i], firstLine));
|
785 |
+
if (nlines > 1) doc.remove(from.line + 1, nlines - 1, callbacks);
|
786 |
+
doc.insert(from.line + 1, added);
|
787 |
+
}
|
788 |
+
if (options.lineWrapping) {
|
789 |
+
var perLine = Math.max(5, scroller.clientWidth / charWidth() - 3);
|
790 |
+
doc.iter(from.line, from.line + newText.length, function(line) {
|
791 |
+
if (line.hidden) return;
|
792 |
+
var guess = Math.ceil(line.text.length / perLine) || 1;
|
793 |
+
if (guess != line.height) updateLineHeight(line, guess);
|
794 |
+
});
|
795 |
+
} else {
|
796 |
+
doc.iter(from.line, from.line + newText.length, function(line) {
|
797 |
+
var l = line.text;
|
798 |
+
if (!line.hidden && l.length > maxLineLength) {
|
799 |
+
maxLine = l; maxLineLength = l.length; maxLineChanged = true;
|
800 |
+
recomputeMaxLength = false;
|
801 |
+
}
|
802 |
+
});
|
803 |
+
if (recomputeMaxLength) updateMaxLine = true;
|
804 |
+
}
|
805 |
+
|
806 |
+
// Add these lines to the work array, so that they will be
|
807 |
+
// highlighted. Adjust work lines if lines were added/removed.
|
808 |
+
var newWork = [], lendiff = newText.length - nlines - 1;
|
809 |
+
for (var i = 0, l = work.length; i < l; ++i) {
|
810 |
+
var task = work[i];
|
811 |
+
if (task < from.line) newWork.push(task);
|
812 |
+
else if (task > to.line) newWork.push(task + lendiff);
|
813 |
+
}
|
814 |
+
var hlEnd = from.line + Math.min(newText.length, 500);
|
815 |
+
highlightLines(from.line, hlEnd);
|
816 |
+
newWork.push(hlEnd);
|
817 |
+
work = newWork;
|
818 |
+
startWorker(100);
|
819 |
+
// Remember that these lines changed, for updating the display
|
820 |
+
changes.push({from: from.line, to: to.line + 1, diff: lendiff});
|
821 |
+
var changeObj = {from: from, to: to, text: newText};
|
822 |
+
if (textChanged) {
|
823 |
+
for (var cur = textChanged; cur.next; cur = cur.next) {}
|
824 |
+
cur.next = changeObj;
|
825 |
+
} else textChanged = changeObj;
|
826 |
+
|
827 |
+
// Update the selection
|
828 |
+
function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}
|
829 |
+
setSelection(clipPos(selFrom), clipPos(selTo),
|
830 |
+
updateLine(sel.from.line), updateLine(sel.to.line));
|
831 |
+
}
|
832 |
+
|
833 |
+
function updateVerticalScroll(scrollTop) {
|
834 |
+
var th = textHeight(), virtualHeight = Math.floor(doc.height * th + 2 * paddingTop()), scrollbarHeight = scroller.clientHeight;
|
835 |
+
scrollbar.style.height = scrollbarHeight + "px";
|
836 |
+
if (scroller.clientHeight)
|
837 |
+
scrollbarInner.style.height = virtualHeight + "px";
|
838 |
+
// Position the mover div to align with the current virtual scroll position
|
839 |
+
if (scrollTop != null) scrollbar.scrollTop = scrollTop;
|
840 |
+
mover.style.top = (displayOffset * th - scrollbar.scrollTop) + "px";
|
841 |
+
scrollbar.style.display = (virtualHeight > scrollbarHeight) ? "block" : "none";
|
842 |
+
}
|
843 |
+
|
844 |
+
// On Mac OS X Lion and up, detect whether the mouse is plugged in by measuring
|
845 |
+
// the width of a div with a scrollbar in it. If the width is <= 1, then
|
846 |
+
// the mouse isn't plugged in and scrollbars should overlap the content.
|
847 |
+
function overlapScrollbars() {
|
848 |
+
var tmpSb = document.createElement('div'),
|
849 |
+
tmpSbInner = document.createElement('div');
|
850 |
+
tmpSb.className = "CodeMirror-scrollbar";
|
851 |
+
tmpSb.style.cssText = "position: absolute; left: -9999px; height: 100px;";
|
852 |
+
tmpSbInner.className = "CodeMirror-scrollbar-inner";
|
853 |
+
tmpSbInner.style.height = "200px";
|
854 |
+
tmpSb.appendChild(tmpSbInner);
|
855 |
+
|
856 |
+
document.body.appendChild(tmpSb);
|
857 |
+
var result = (tmpSb.offsetWidth <= 1);
|
858 |
+
document.body.removeChild(tmpSb);
|
859 |
+
return result;
|
860 |
+
}
|
861 |
+
|
862 |
+
function computeMaxLength() {
|
863 |
+
var maxLineLength = 0;
|
864 |
+
maxLine = ""; maxLineChanged = true;
|
865 |
+
doc.iter(0, doc.size, function(line) {
|
866 |
+
var l = line.text;
|
867 |
+
if (!line.hidden && l.length > maxLineLength) {
|
868 |
+
maxLineLength = l.length; maxLine = l;
|
869 |
+
}
|
870 |
+
});
|
871 |
+
updateMaxLine = false;
|
872 |
+
}
|
873 |
+
|
874 |
+
function replaceRange(code, from, to) {
|
875 |
+
from = clipPos(from);
|
876 |
+
if (!to) to = from; else to = clipPos(to);
|
877 |
+
code = splitLines(code);
|
878 |
+
function adjustPos(pos) {
|
879 |
+
if (posLess(pos, from)) return pos;
|
880 |
+
if (!posLess(to, pos)) return end;
|
881 |
+
var line = pos.line + code.length - (to.line - from.line) - 1;
|
882 |
+
var ch = pos.ch;
|
883 |
+
if (pos.line == to.line)
|
884 |
+
ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0));
|
885 |
+
return {line: line, ch: ch};
|
886 |
+
}
|
887 |
+
var end;
|
888 |
+
replaceRange1(code, from, to, function(end1) {
|
889 |
+
end = end1;
|
890 |
+
return {from: adjustPos(sel.from), to: adjustPos(sel.to)};
|
891 |
+
});
|
892 |
+
return end;
|
893 |
+
}
|
894 |
+
function replaceSelection(code, collapse) {
|
895 |
+
replaceRange1(splitLines(code), sel.from, sel.to, function(end) {
|
896 |
+
if (collapse == "end") return {from: end, to: end};
|
897 |
+
else if (collapse == "start") return {from: sel.from, to: sel.from};
|
898 |
+
else return {from: sel.from, to: end};
|
899 |
+
});
|
900 |
+
}
|
901 |
+
function replaceRange1(code, from, to, computeSel) {
|
902 |
+
var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length;
|
903 |
+
var newSel = computeSel({line: from.line + code.length - 1, ch: endch});
|
904 |
+
updateLines(from, to, code, newSel.from, newSel.to);
|
905 |
+
}
|
906 |
+
|
907 |
+
function getRange(from, to) {
|
908 |
+
var l1 = from.line, l2 = to.line;
|
909 |
+
if (l1 == l2) return getLine(l1).text.slice(from.ch, to.ch);
|
910 |
+
var code = [getLine(l1).text.slice(from.ch)];
|
911 |
+
doc.iter(l1 + 1, l2, function(line) { code.push(line.text); });
|
912 |
+
code.push(getLine(l2).text.slice(0, to.ch));
|
913 |
+
return code.join("\n");
|
914 |
+
}
|
915 |
+
function getSelection() {
|
916 |
+
return getRange(sel.from, sel.to);
|
917 |
+
}
|
918 |
+
|
919 |
+
var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll
|
920 |
+
function slowPoll() {
|
921 |
+
if (pollingFast) return;
|
922 |
+
poll.set(options.pollInterval, function() {
|
923 |
+
startOperation();
|
924 |
+
readInput();
|
925 |
+
if (focused) slowPoll();
|
926 |
+
endOperation();
|
927 |
+
});
|
928 |
+
}
|
929 |
+
function fastPoll() {
|
930 |
+
var missed = false;
|
931 |
+
pollingFast = true;
|
932 |
+
function p() {
|
933 |
+
startOperation();
|
934 |
+
var changed = readInput();
|
935 |
+
if (!changed && !missed) {missed = true; poll.set(60, p);}
|
936 |
+
else {pollingFast = false; slowPoll();}
|
937 |
+
endOperation();
|
938 |
+
}
|
939 |
+
poll.set(20, p);
|
940 |
+
}
|
941 |
+
|
942 |
+
// Previnput is a hack to work with IME. If we reset the textarea
|
943 |
+
// on every change, that breaks IME. So we look for changes
|
944 |
+
// compared to the previous content instead. (Modern browsers have
|
945 |
+
// events that indicate IME taking place, but these are not widely
|
946 |
+
// supported or compatible enough yet to rely on.)
|
947 |
+
var prevInput = "";
|
948 |
+
function readInput() {
|
949 |
+
if (leaveInputAlone || !focused || hasSelection(input) || options.readOnly) return false;
|
950 |
+
var text = input.value;
|
951 |
+
if (text == prevInput) return false;
|
952 |
+
shiftSelecting = null;
|
953 |
+
var same = 0, l = Math.min(prevInput.length, text.length);
|
954 |
+
while (same < l && prevInput[same] == text[same]) ++same;
|
955 |
+
if (same < prevInput.length)
|
956 |
+
sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};
|
957 |
+
else if (overwrite && posEq(sel.from, sel.to))
|
958 |
+
sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};
|
959 |
+
replaceSelection(text.slice(same), "end");
|
960 |
+
if (text.length > 1000) { input.value = prevInput = ""; }
|
961 |
+
else prevInput = text;
|
962 |
+
return true;
|
963 |
+
}
|
964 |
+
function resetInput(user) {
|
965 |
+
if (!posEq(sel.from, sel.to)) {
|
966 |
+
prevInput = "";
|
967 |
+
input.value = getSelection();
|
968 |
+
selectInput(input);
|
969 |
+
} else if (user) prevInput = input.value = "";
|
970 |
+
}
|
971 |
+
|
972 |
+
function focusInput() {
|
973 |
+
if (options.readOnly != "nocursor") input.focus();
|
974 |
+
}
|
975 |
+
|
976 |
+
function scrollEditorIntoView() {
|
977 |
+
if (!cursor.getBoundingClientRect) return;
|
978 |
+
var rect = cursor.getBoundingClientRect();
|
979 |
+
// IE returns bogus coordinates when the instance sits inside of an iframe and the cursor is hidden
|
980 |
+
if (ie && rect.top == rect.bottom) return;
|
981 |
+
var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);
|
982 |
+
if (rect.top < 0 || rect.bottom > winH) scrollCursorIntoView();
|
983 |
+
}
|
984 |
+
function scrollCursorIntoView() {
|
985 |
+
var coords = calculateCursorCoords();
|
986 |
+
return scrollIntoView(coords.x, coords.y, coords.x, coords.yBot);
|
987 |
+
}
|
988 |
+
function calculateCursorCoords() {
|
989 |
+
var cursor = localCoords(sel.inverted ? sel.from : sel.to);
|
990 |
+
var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;
|
991 |
+
return {x: x, y: cursor.y, yBot: cursor.yBot};
|
992 |
+
}
|
993 |
+
function scrollIntoView(x1, y1, x2, y2) {
|
994 |
+
var scrollPos = calculateScrollPos(x1, y1, x2, y2), scrolled = false;
|
995 |
+
if (scrollPos.scrollLeft != null) {scroller.scrollLeft = scrollPos.scrollLeft; scrolled = true;}
|
996 |
+
if (scrollPos.scrollTop != null) {scrollbar.scrollTop = scrollPos.scrollTop; scrolled = true;}
|
997 |
+
if (scrolled && options.onScroll) options.onScroll(instance);
|
998 |
+
}
|
999 |
+
function calculateScrollPos(x1, y1, x2, y2) {
|
1000 |
+
var pl = paddingLeft(), pt = paddingTop();
|
1001 |
+
y1 += pt; y2 += pt; x1 += pl; x2 += pl;
|
1002 |
+
var screen = scroller.clientHeight, screentop = scrollbar.scrollTop, result = {};
|
1003 |
+
var atTop = y1 < paddingTop() + 10;
|
1004 |
+
if (y1 < screentop) result.scrollTop = atTop ? 0 : Math.max(0, y1);
|
1005 |
+
else if (y2 > screentop + screen) result.scrollTop = y2 - screen;
|
1006 |
+
|
1007 |
+
var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;
|
1008 |
+
var gutterw = options.fixedGutter ? gutter.clientWidth : 0;
|
1009 |
+
var atLeft = x1 < gutterw + pl + 10;
|
1010 |
+
if (x1 < screenleft + gutterw || atLeft) {
|
1011 |
+
if (atLeft) x1 = 0;
|
1012 |
+
result.scrollLeft = Math.max(0, x1 - 10 - gutterw);
|
1013 |
+
} else if (x2 > screenw + screenleft - 3) {
|
1014 |
+
result.scrollLeft = x2 + 10 - screenw;
|
1015 |
+
}
|
1016 |
+
return result;
|
1017 |
+
}
|
1018 |
+
|
1019 |
+
function visibleLines(scrollTop) {
|
1020 |
+
var lh = textHeight(), top = (scrollTop != null ? scrollTop : scrollbar.scrollTop) - paddingTop();
|
1021 |
+
var fromHeight = Math.max(0, Math.floor(top / lh));
|
1022 |
+
var toHeight = Math.ceil((top + scroller.clientHeight) / lh);
|
1023 |
+
return {from: lineAtHeight(doc, fromHeight),
|
1024 |
+
to: lineAtHeight(doc, toHeight)};
|
1025 |
+
}
|
1026 |
+
// Uses a set of changes plus the current scroll position to
|
1027 |
+
// determine which DOM updates have to be made, and makes the
|
1028 |
+
// updates.
|
1029 |
+
function updateDisplay(changes, suppressCallback, scrollTop) {
|
1030 |
+
if (!scroller.clientWidth) {
|
1031 |
+
showingFrom = showingTo = displayOffset = 0;
|
1032 |
+
return;
|
1033 |
+
}
|
1034 |
+
// Compute the new visible window
|
1035 |
+
// If scrollTop is specified, use that to determine which lines
|
1036 |
+
// to render instead of the current scrollbar position.
|
1037 |
+
var visible = visibleLines(scrollTop);
|
1038 |
+
// Bail out if the visible area is already rendered and nothing changed.
|
1039 |
+
if (changes !== true && changes.length == 0 && visible.from > showingFrom && visible.to < showingTo) {
|
1040 |
+
updateVerticalScroll(scrollTop);
|
1041 |
+
return;
|
1042 |
+
}
|
1043 |
+
var from = Math.max(visible.from - 100, 0), to = Math.min(doc.size, visible.to + 100);
|
1044 |
+
if (showingFrom < from && from - showingFrom < 20) from = showingFrom;
|
1045 |
+
if (showingTo > to && showingTo - to < 20) to = Math.min(doc.size, showingTo);
|
1046 |
+
|
1047 |
+
// Create a range of theoretically intact lines, and punch holes
|
1048 |
+
// in that using the change info.
|
1049 |
+
var intact = changes === true ? [] :
|
1050 |
+
computeIntact([{from: showingFrom, to: showingTo, domStart: 0}], changes);
|
1051 |
+
// Clip off the parts that won't be visible
|
1052 |
+
var intactLines = 0;
|
1053 |
+
for (var i = 0; i < intact.length; ++i) {
|
1054 |
+
var range = intact[i];
|
1055 |
+
if (range.from < from) {range.domStart += (from - range.from); range.from = from;}
|
1056 |
+
if (range.to > to) range.to = to;
|
1057 |
+
if (range.from >= range.to) intact.splice(i--, 1);
|
1058 |
+
else intactLines += range.to - range.from;
|
1059 |
+
}
|
1060 |
+
if (intactLines == to - from && from == showingFrom && to == showingTo) {
|
1061 |
+
updateVerticalScroll(scrollTop);
|
1062 |
+
return;
|
1063 |
+
}
|
1064 |
+
intact.sort(function(a, b) {return a.domStart - b.domStart;});
|
1065 |
+
|
1066 |
+
var th = textHeight(), gutterDisplay = gutter.style.display;
|
1067 |
+
lineDiv.style.display = "none";
|
1068 |
+
patchDisplay(from, to, intact);
|
1069 |
+
lineDiv.style.display = gutter.style.display = "";
|
1070 |
+
|
1071 |
+
var different = from != showingFrom || to != showingTo || lastSizeC != scroller.clientHeight + th;
|
1072 |
+
// This is just a bogus formula that detects when the editor is
|
1073 |
+
// resized or the font size changes.
|
1074 |
+
if (different) lastSizeC = scroller.clientHeight + th;
|
1075 |
+
showingFrom = from; showingTo = to;
|
1076 |
+
displayOffset = heightAtLine(doc, from);
|
1077 |
+
|
1078 |
+
// Since this is all rather error prone, it is honoured with the
|
1079 |
+
// only assertion in the whole file.
|
1080 |
+
if (lineDiv.childNodes.length != showingTo - showingFrom)
|
1081 |
+
throw new Error("BAD PATCH! " + JSON.stringify(intact) + " size=" + (showingTo - showingFrom) +
|
1082 |
+
" nodes=" + lineDiv.childNodes.length);
|
1083 |
+
|
1084 |
+
function checkHeights() {
|
1085 |
+
var curNode = lineDiv.firstChild, heightChanged = false;
|
1086 |
+
doc.iter(showingFrom, showingTo, function(line) {
|
1087 |
+
if (!line.hidden) {
|
1088 |
+
var height = Math.round(curNode.offsetHeight / th) || 1;
|
1089 |
+
if (line.height != height) {
|
1090 |
+
updateLineHeight(line, height);
|
1091 |
+
gutterDirty = heightChanged = true;
|
1092 |
+
}
|
1093 |
+
}
|
1094 |
+
curNode = curNode.nextSibling;
|
1095 |
+
});
|
1096 |
+
return heightChanged;
|
1097 |
+
}
|
1098 |
+
|
1099 |
+
if (options.lineWrapping) {
|
1100 |
+
// Guess whether we're going to need the scrollbar, so that we don't end up changing the linewrapping
|
1101 |
+
// after the scrollbar appears (during updateVerticalScroll()). Only do this if the scrollbar is
|
1102 |
+
// appearing (if it's disappearing, we don't have to worry about the scroll position, and there are
|
1103 |
+
// issues on IE7 if we turn it off too early).
|
1104 |
+
var virtualHeight = Math.floor(doc.height * th + 2 * paddingTop()), scrollbarHeight = scroller.clientHeight;
|
1105 |
+
if (virtualHeight > scrollbarHeight) scrollbar.style.display = "block";
|
1106 |
+
checkHeights();
|
1107 |
+
}
|
1108 |
+
|
1109 |
+
gutter.style.display = gutterDisplay;
|
1110 |
+
if (different || gutterDirty) {
|
1111 |
+
// If the gutter grew in size, re-check heights. If those changed, re-draw gutter.
|
1112 |
+
updateGutter() && options.lineWrapping && checkHeights() && updateGutter();
|
1113 |
+
}
|
1114 |
+
updateSelection();
|
1115 |
+
updateVerticalScroll(scrollTop);
|
1116 |
+
if (!suppressCallback && options.onUpdate) options.onUpdate(instance);
|
1117 |
+
return true;
|
1118 |
+
}
|
1119 |
+
|
1120 |
+
function computeIntact(intact, changes) {
|
1121 |
+
for (var i = 0, l = changes.length || 0; i < l; ++i) {
|
1122 |
+
var change = changes[i], intact2 = [], diff = change.diff || 0;
|
1123 |
+
for (var j = 0, l2 = intact.length; j < l2; ++j) {
|
1124 |
+
var range = intact[j];
|
1125 |
+
if (change.to <= range.from && change.diff)
|
1126 |
+
intact2.push({from: range.from + diff, to: range.to + diff,
|
1127 |
+
domStart: range.domStart});
|
1128 |
+
else if (change.to <= range.from || change.from >= range.to)
|
1129 |
+
intact2.push(range);
|
1130 |
+
else {
|
1131 |
+
if (change.from > range.from)
|
1132 |
+
intact2.push({from: range.from, to: change.from, domStart: range.domStart});
|
1133 |
+
if (change.to < range.to)
|
1134 |
+
intact2.push({from: change.to + diff, to: range.to + diff,
|
1135 |
+
domStart: range.domStart + (change.to - range.from)});
|
1136 |
+
}
|
1137 |
+
}
|
1138 |
+
intact = intact2;
|
1139 |
+
}
|
1140 |
+
return intact;
|
1141 |
+
}
|
1142 |
+
|
1143 |
+
function patchDisplay(from, to, intact) {
|
1144 |
+
// The first pass removes the DOM nodes that aren't intact.
|
1145 |
+
if (!intact.length) lineDiv.innerHTML = "";
|
1146 |
+
else {
|
1147 |
+
function killNode(node) {
|
1148 |
+
var tmp = node.nextSibling;
|
1149 |
+
node.parentNode.removeChild(node);
|
1150 |
+
return tmp;
|
1151 |
+
}
|
1152 |
+
var domPos = 0, curNode = lineDiv.firstChild, n;
|
1153 |
+
for (var i = 0; i < intact.length; ++i) {
|
1154 |
+
var cur = intact[i];
|
1155 |
+
while (cur.domStart > domPos) {curNode = killNode(curNode); domPos++;}
|
1156 |
+
for (var j = 0, e = cur.to - cur.from; j < e; ++j) {curNode = curNode.nextSibling; domPos++;}
|
1157 |
+
}
|
1158 |
+
while (curNode) curNode = killNode(curNode);
|
1159 |
+
}
|
1160 |
+
// This pass fills in the lines that actually changed.
|
1161 |
+
var nextIntact = intact.shift(), curNode = lineDiv.firstChild, j = from;
|
1162 |
+
var scratch = document.createElement("div");
|
1163 |
+
doc.iter(from, to, function(line) {
|
1164 |
+
if (nextIntact && nextIntact.to == j) nextIntact = intact.shift();
|
1165 |
+
if (!nextIntact || nextIntact.from > j) {
|
1166 |
+
if (line.hidden) var html = scratch.innerHTML = "<pre></pre>";
|
1167 |
+
else {
|
1168 |
+
var html = '<pre' + (line.className ? ' class="' + line.className + '"' : '') + '>'
|
1169 |
+
+ line.getHTML(makeTab) + '</pre>';
|
1170 |
+
// Kludge to make sure the styled element lies behind the selection (by z-index)
|
1171 |
+
if (line.bgClassName)
|
1172 |
+
html = '<div style="position: relative"><pre class="' + line.bgClassName +
|
1173 |
+
'" style="position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2"> </pre>' + html + "</div>";
|
1174 |
+
}
|
1175 |
+
scratch.innerHTML = html;
|
1176 |
+
lineDiv.insertBefore(scratch.firstChild, curNode);
|
1177 |
+
} else {
|
1178 |
+
curNode = curNode.nextSibling;
|
1179 |
+
}
|
1180 |
+
++j;
|
1181 |
+
});
|
1182 |
+
}
|
1183 |
+
|
1184 |
+
function updateGutter() {
|
1185 |
+
if (!options.gutter && !options.lineNumbers) return;
|
1186 |
+
var hText = mover.offsetHeight, hEditor = scroller.clientHeight;
|
1187 |
+
gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + "px";
|
1188 |
+
var html = [], i = showingFrom, normalNode;
|
1189 |
+
doc.iter(showingFrom, Math.max(showingTo, showingFrom + 1), function(line) {
|
1190 |
+
if (line.hidden) {
|
1191 |
+
html.push("<pre></pre>");
|
1192 |
+
} else {
|
1193 |
+
var marker = line.gutterMarker;
|
1194 |
+
var text = options.lineNumbers ? i + options.firstLineNumber : null;
|
1195 |
+
if (marker && marker.text)
|
1196 |
+
text = marker.text.replace("%N%", text != null ? text : "");
|
1197 |
+
else if (text == null)
|
1198 |
+
text = "\u00a0";
|
1199 |
+
html.push((marker && marker.style ? '<pre class="' + marker.style + '">' : "<pre>"), text);
|
1200 |
+
for (var j = 1; j < line.height; ++j) html.push("<br/> ");
|
1201 |
+
html.push("</pre>");
|
1202 |
+
if (!marker) normalNode = i;
|
1203 |
+
}
|
1204 |
+
++i;
|
1205 |
+
});
|
1206 |
+
gutter.style.display = "none";
|
1207 |
+
gutterText.innerHTML = html.join("");
|
1208 |
+
// Make sure scrolling doesn't cause number gutter size to pop
|
1209 |
+
if (normalNode != null && options.lineNumbers) {
|
1210 |
+
var node = gutterText.childNodes[normalNode - showingFrom];
|
1211 |
+
var minwidth = String(doc.size).length, val = eltText(node.firstChild), pad = "";
|
1212 |
+
while (val.length + pad.length < minwidth) pad += "\u00a0";
|
1213 |
+
if (pad) node.insertBefore(document.createTextNode(pad), node.firstChild);
|
1214 |
+
}
|
1215 |
+
gutter.style.display = "";
|
1216 |
+
var resized = Math.abs((parseInt(lineSpace.style.marginLeft) || 0) - gutter.offsetWidth) > 2;
|
1217 |
+
lineSpace.style.marginLeft = gutter.offsetWidth + "px";
|
1218 |
+
gutterDirty = false;
|
1219 |
+
return resized;
|
1220 |
+
}
|
1221 |
+
function updateSelection() {
|
1222 |
+
var collapsed = posEq(sel.from, sel.to);
|
1223 |
+
var fromPos = localCoords(sel.from, true);
|
1224 |
+
var toPos = collapsed ? fromPos : localCoords(sel.to, true);
|
1225 |
+
var headPos = sel.inverted ? fromPos : toPos, th = textHeight();
|
1226 |
+
var wrapOff = eltOffset(wrapper), lineOff = eltOffset(lineDiv);
|
1227 |
+
inputDiv.style.top = Math.max(0, Math.min(scroller.offsetHeight, headPos.y + lineOff.top - wrapOff.top)) + "px";
|
1228 |
+
inputDiv.style.left = Math.max(0, Math.min(scroller.offsetWidth, headPos.x + lineOff.left - wrapOff.left)) + "px";
|
1229 |
+
if (collapsed) {
|
1230 |
+
cursor.style.top = headPos.y + "px";
|
1231 |
+
cursor.style.left = (options.lineWrapping ? Math.min(headPos.x, lineSpace.offsetWidth) : headPos.x) + "px";
|
1232 |
+
cursor.style.display = "";
|
1233 |
+
selectionDiv.style.display = "none";
|
1234 |
+
} else {
|
1235 |
+
var sameLine = fromPos.y == toPos.y, html = "";
|
1236 |
+
var clientWidth = lineSpace.clientWidth || lineSpace.offsetWidth;
|
1237 |
+
var clientHeight = lineSpace.clientHeight || lineSpace.offsetHeight;
|
1238 |
+
function add(left, top, right, height) {
|
1239 |
+
var rstyle = quirksMode ? "width: " + (!right ? clientWidth : clientWidth - right - left) + "px"
|
1240 |
+
: "right: " + right + "px";
|
1241 |
+
html += '<div class="CodeMirror-selected" style="position: absolute; left: ' + left +
|
1242 |
+
'px; top: ' + top + 'px; ' + rstyle + '; height: ' + height + 'px"></div>';
|
1243 |
+
}
|
1244 |
+
if (sel.from.ch && fromPos.y >= 0) {
|
1245 |
+
var right = sameLine ? clientWidth - toPos.x : 0;
|
1246 |
+
add(fromPos.x, fromPos.y, right, th);
|
1247 |
+
}
|
1248 |
+
var middleStart = Math.max(0, fromPos.y + (sel.from.ch ? th : 0));
|
1249 |
+
var middleHeight = Math.min(toPos.y, clientHeight) - middleStart;
|
1250 |
+
if (middleHeight > 0.2 * th)
|
1251 |
+
add(0, middleStart, 0, middleHeight);
|
1252 |
+
if ((!sameLine || !sel.from.ch) && toPos.y < clientHeight - .5 * th)
|
1253 |
+
add(0, toPos.y, clientWidth - toPos.x, th);
|
1254 |
+
selectionDiv.innerHTML = html;
|
1255 |
+
cursor.style.display = "none";
|
1256 |
+
selectionDiv.style.display = "";
|
1257 |
+
}
|
1258 |
+
}
|
1259 |
+
|
1260 |
+
function setShift(val) {
|
1261 |
+
if (val) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);
|
1262 |
+
else shiftSelecting = null;
|
1263 |
+
}
|
1264 |
+
function setSelectionUser(from, to) {
|
1265 |
+
var sh = shiftSelecting && clipPos(shiftSelecting);
|
1266 |
+
if (sh) {
|
1267 |
+
if (posLess(sh, from)) from = sh;
|
1268 |
+
else if (posLess(to, sh)) to = sh;
|
1269 |
+
}
|
1270 |
+
setSelection(from, to);
|
1271 |
+
userSelChange = true;
|
1272 |
+
}
|
1273 |
+
// Update the selection. Last two args are only used by
|
1274 |
+
// updateLines, since they have to be expressed in the line
|
1275 |
+
// numbers before the update.
|
1276 |
+
function setSelection(from, to, oldFrom, oldTo) {
|
1277 |
+
goalColumn = null;
|
1278 |
+
if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}
|
1279 |
+
if (posEq(sel.from, from) && posEq(sel.to, to)) return;
|
1280 |
+
if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}
|
1281 |
+
|
1282 |
+
// Skip over hidden lines.
|
1283 |
+
if (from.line != oldFrom) {
|
1284 |
+
var from1 = skipHidden(from, oldFrom, sel.from.ch);
|
1285 |
+
// If there is no non-hidden line left, force visibility on current line
|
1286 |
+
if (!from1) setLineHidden(from.line, false);
|
1287 |
+
else from = from1;
|
1288 |
+
}
|
1289 |
+
if (to.line != oldTo) to = skipHidden(to, oldTo, sel.to.ch);
|
1290 |
+
|
1291 |
+
if (posEq(from, to)) sel.inverted = false;
|
1292 |
+
else if (posEq(from, sel.to)) sel.inverted = false;
|
1293 |
+
else if (posEq(to, sel.from)) sel.inverted = true;
|
1294 |
+
|
1295 |
+
if (options.autoClearEmptyLines && posEq(sel.from, sel.to)) {
|
1296 |
+
var head = sel.inverted ? from : to;
|
1297 |
+
if (head.line != sel.from.line && sel.from.line < doc.size) {
|
1298 |
+
var oldLine = getLine(sel.from.line);
|
1299 |
+
if (/^\s+$/.test(oldLine.text))
|
1300 |
+
setTimeout(operation(function() {
|
1301 |
+
if (oldLine.parent && /^\s+$/.test(oldLine.text)) {
|
1302 |
+
var no = lineNo(oldLine);
|
1303 |
+
replaceRange("", {line: no, ch: 0}, {line: no, ch: oldLine.text.length});
|
1304 |
+
}
|
1305 |
+
}, 10));
|
1306 |
+
}
|
1307 |
+
}
|
1308 |
+
|
1309 |
+
sel.from = from; sel.to = to;
|
1310 |
+
selectionChanged = true;
|
1311 |
+
}
|
1312 |
+
function skipHidden(pos, oldLine, oldCh) {
|
1313 |
+
function getNonHidden(dir) {
|
1314 |
+
var lNo = pos.line + dir, end = dir == 1 ? doc.size : -1;
|
1315 |
+
while (lNo != end) {
|
1316 |
+
var line = getLine(lNo);
|
1317 |
+
if (!line.hidden) {
|
1318 |
+
var ch = pos.ch;
|
1319 |
+
if (toEnd || ch > oldCh || ch > line.text.length) ch = line.text.length;
|
1320 |
+
return {line: lNo, ch: ch};
|
1321 |
+
}
|
1322 |
+
lNo += dir;
|
1323 |
+
}
|
1324 |
+
}
|
1325 |
+
var line = getLine(pos.line);
|
1326 |
+
var toEnd = pos.ch == line.text.length && pos.ch != oldCh;
|
1327 |
+
if (!line.hidden) return pos;
|
1328 |
+
if (pos.line >= oldLine) return getNonHidden(1) || getNonHidden(-1);
|
1329 |
+
else return getNonHidden(-1) || getNonHidden(1);
|
1330 |
+
}
|
1331 |
+
function setCursor(line, ch, user) {
|
1332 |
+
var pos = clipPos({line: line, ch: ch || 0});
|
1333 |
+
(user ? setSelectionUser : setSelection)(pos, pos);
|
1334 |
+
}
|
1335 |
+
|
1336 |
+
function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}
|
1337 |
+
function clipPos(pos) {
|
1338 |
+
if (pos.line < 0) return {line: 0, ch: 0};
|
1339 |
+
if (pos.line >= doc.size) return {line: doc.size-1, ch: getLine(doc.size-1).text.length};
|
1340 |
+
var ch = pos.ch, linelen = getLine(pos.line).text.length;
|
1341 |
+
if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};
|
1342 |
+
else if (ch < 0) return {line: pos.line, ch: 0};
|
1343 |
+
else return pos;
|
1344 |
+
}
|
1345 |
+
|
1346 |
+
function findPosH(dir, unit) {
|
1347 |
+
var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;
|
1348 |
+
var lineObj = getLine(line);
|
1349 |
+
function findNextLine() {
|
1350 |
+
for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {
|
1351 |
+
var lo = getLine(l);
|
1352 |
+
if (!lo.hidden) { line = l; lineObj = lo; return true; }
|
1353 |
+
}
|
1354 |
+
}
|
1355 |
+
function moveOnce(boundToLine) {
|
1356 |
+
if (ch == (dir < 0 ? 0 : lineObj.text.length)) {
|
1357 |
+
if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;
|
1358 |
+
else return false;
|
1359 |
+
} else ch += dir;
|
1360 |
+
return true;
|
1361 |
+
}
|
1362 |
+
if (unit == "char") moveOnce();
|
1363 |
+
else if (unit == "column") moveOnce(true);
|
1364 |
+
else if (unit == "word") {
|
1365 |
+
var sawWord = false;
|
1366 |
+
for (;;) {
|
1367 |
+
if (dir < 0) if (!moveOnce()) break;
|
1368 |
+
if (isWordChar(lineObj.text.charAt(ch))) sawWord = true;
|
1369 |
+
else if (sawWord) {if (dir < 0) {dir = 1; moveOnce();} break;}
|
1370 |
+
if (dir > 0) if (!moveOnce()) break;
|
1371 |
+
}
|
1372 |
+
}
|
1373 |
+
return {line: line, ch: ch};
|
1374 |
+
}
|
1375 |
+
function moveH(dir, unit) {
|
1376 |
+
var pos = dir < 0 ? sel.from : sel.to;
|
1377 |
+
if (shiftSelecting || posEq(sel.from, sel.to)) pos = findPosH(dir, unit);
|
1378 |
+
setCursor(pos.line, pos.ch, true);
|
1379 |
+
}
|
1380 |
+
function deleteH(dir, unit) {
|
1381 |
+
if (!posEq(sel.from, sel.to)) replaceRange("", sel.from, sel.to);
|
1382 |
+
else if (dir < 0) replaceRange("", findPosH(dir, unit), sel.to);
|
1383 |
+
else replaceRange("", sel.from, findPosH(dir, unit));
|
1384 |
+
userSelChange = true;
|
1385 |
+
}
|
1386 |
+
var goalColumn = null;
|
1387 |
+
function moveV(dir, unit) {
|
1388 |
+
var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);
|
1389 |
+
if (goalColumn != null) pos.x = goalColumn;
|
1390 |
+
if (unit == "page") dist = Math.min(scroller.clientHeight, window.innerHeight || document.documentElement.clientHeight);
|
1391 |
+
else if (unit == "line") dist = textHeight();
|
1392 |
+
var target = coordsChar(pos.x, pos.y + dist * dir + 2);
|
1393 |
+
if (unit == "page") scrollbar.scrollTop += localCoords(target, true).y - pos.y;
|
1394 |
+
setCursor(target.line, target.ch, true);
|
1395 |
+
goalColumn = pos.x;
|
1396 |
+
}
|
1397 |
+
|
1398 |
+
function selectWordAt(pos) {
|
1399 |
+
var line = getLine(pos.line).text;
|
1400 |
+
var start = pos.ch, end = pos.ch;
|
1401 |
+
while (start > 0 && isWordChar(line.charAt(start - 1))) --start;
|
1402 |
+
while (end < line.length && isWordChar(line.charAt(end))) ++end;
|
1403 |
+
setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end});
|
1404 |
+
}
|
1405 |
+
function selectLine(line) {
|
1406 |
+
setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));
|
1407 |
+
}
|
1408 |
+
function indentSelected(mode) {
|
1409 |
+
if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);
|
1410 |
+
var e = sel.to.line - (sel.to.ch ? 0 : 1);
|
1411 |
+
for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);
|
1412 |
+
}
|
1413 |
+
|
1414 |
+
function indentLine(n, how) {
|
1415 |
+
if (!how) how = "add";
|
1416 |
+
if (how == "smart") {
|
1417 |
+
if (!mode.indent) how = "prev";
|
1418 |
+
else var state = getStateBefore(n);
|
1419 |
+
}
|
1420 |
+
|
1421 |
+
var line = getLine(n), curSpace = line.indentation(options.tabSize),
|
1422 |
+
curSpaceString = line.text.match(/^\s*/)[0], indentation;
|
1423 |
+
if (how == "smart") {
|
1424 |
+
indentation = mode.indent(state, line.text.slice(curSpaceString.length), line.text);
|
1425 |
+
if (indentation == Pass) how = "prev";
|
1426 |
+
}
|
1427 |
+
if (how == "prev") {
|
1428 |
+
if (n) indentation = getLine(n-1).indentation(options.tabSize);
|
1429 |
+
else indentation = 0;
|
1430 |
+
}
|
1431 |
+
else if (how == "add") indentation = curSpace + options.indentUnit;
|
1432 |
+
else if (how == "subtract") indentation = curSpace - options.indentUnit;
|
1433 |
+
indentation = Math.max(0, indentation);
|
1434 |
+
var diff = indentation - curSpace;
|
1435 |
+
|
1436 |
+
if (!diff) {
|
1437 |
+
if (sel.from.line != n && sel.to.line != n) return;
|
1438 |
+
var indentString = curSpaceString;
|
1439 |
+
} else {
|
1440 |
+
var indentString = "", pos = 0;
|
1441 |
+
if (options.indentWithTabs)
|
1442 |
+
for (var i = Math.floor(indentation / options.tabSize); i; --i) {pos += options.tabSize; indentString += "\t";}
|
1443 |
+
while (pos < indentation) {++pos; indentString += " ";}
|
1444 |
+
}
|
1445 |
+
|
1446 |
+
replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});
|
1447 |
+
}
|
1448 |
+
|
1449 |
+
function loadMode() {
|
1450 |
+
mode = CodeMirror.getMode(options, options.mode);
|
1451 |
+
doc.iter(0, doc.size, function(line) { line.stateAfter = null; });
|
1452 |
+
work = [0];
|
1453 |
+
startWorker();
|
1454 |
+
}
|
1455 |
+
function gutterChanged() {
|
1456 |
+
var visible = options.gutter || options.lineNumbers;
|
1457 |
+
gutter.style.display = visible ? "" : "none";
|
1458 |
+
if (visible) gutterDirty = true;
|
1459 |
+
else lineDiv.parentNode.style.marginLeft = 0;
|
1460 |
+
}
|
1461 |
+
function wrappingChanged(from, to) {
|
1462 |
+
if (options.lineWrapping) {
|
1463 |
+
wrapper.className += " CodeMirror-wrap";
|
1464 |
+
var perLine = scroller.clientWidth / charWidth() - 3;
|
1465 |
+
doc.iter(0, doc.size, function(line) {
|
1466 |
+
if (line.hidden) return;
|
1467 |
+
var guess = Math.ceil(line.text.length / perLine) || 1;
|
1468 |
+
if (guess != 1) updateLineHeight(line, guess);
|
1469 |
+
});
|
1470 |
+
lineSpace.style.width = code.style.width = "";
|
1471 |
+
widthForcer.style.left = "";
|
1472 |
+
} else {
|
1473 |
+
wrapper.className = wrapper.className.replace(" CodeMirror-wrap", "");
|
1474 |
+
maxLine = ""; maxLineChanged = true;
|
1475 |
+
doc.iter(0, doc.size, function(line) {
|
1476 |
+
if (line.height != 1 && !line.hidden) updateLineHeight(line, 1);
|
1477 |
+
if (line.text.length > maxLine.length) maxLine = line.text;
|
1478 |
+
});
|
1479 |
+
}
|
1480 |
+
changes.push({from: 0, to: doc.size});
|
1481 |
+
}
|
1482 |
+
function makeTab(col) {
|
1483 |
+
var w = options.tabSize - col % options.tabSize, cached = tabCache[w];
|
1484 |
+
if (cached) return cached;
|
1485 |
+
for (var str = '<span class="cm-tab">', i = 0; i < w; ++i) str += " ";
|
1486 |
+
return (tabCache[w] = {html: str + "</span>", width: w});
|
1487 |
+
}
|
1488 |
+
function themeChanged() {
|
1489 |
+
scroller.className = scroller.className.replace(/\s*cm-s-\S+/g, "") +
|
1490 |
+
options.theme.replace(/(^|\s)\s*/g, " cm-s-");
|
1491 |
+
}
|
1492 |
+
function keyMapChanged() {
|
1493 |
+
var style = keyMap[options.keyMap].style;
|
1494 |
+
wrapper.className = wrapper.className.replace(/\s*cm-keymap-\S+/g, "") +
|
1495 |
+
(style ? " cm-keymap-" + style : "");
|
1496 |
+
}
|
1497 |
+
|
1498 |
+
function TextMarker() { this.set = []; }
|
1499 |
+
TextMarker.prototype.clear = operation(function() {
|
1500 |
+
var min = Infinity, max = -Infinity;
|
1501 |
+
for (var i = 0, e = this.set.length; i < e; ++i) {
|
1502 |
+
var line = this.set[i], mk = line.marked;
|
1503 |
+
if (!mk || !line.parent) continue;
|
1504 |
+
var lineN = lineNo(line);
|
1505 |
+
min = Math.min(min, lineN); max = Math.max(max, lineN);
|
1506 |
+
for (var j = 0; j < mk.length; ++j)
|
1507 |
+
if (mk[j].marker == this) mk.splice(j--, 1);
|
1508 |
+
}
|
1509 |
+
if (min != Infinity)
|
1510 |
+
changes.push({from: min, to: max + 1});
|
1511 |
+
});
|
1512 |
+
TextMarker.prototype.find = function() {
|
1513 |
+
var from, to;
|
1514 |
+
for (var i = 0, e = this.set.length; i < e; ++i) {
|
1515 |
+
var line = this.set[i], mk = line.marked;
|
1516 |
+
for (var j = 0; j < mk.length; ++j) {
|
1517 |
+
var mark = mk[j];
|
1518 |
+
if (mark.marker == this) {
|
1519 |
+
if (mark.from != null || mark.to != null) {
|
1520 |
+
var found = lineNo(line);
|
1521 |
+
if (found != null) {
|
1522 |
+
if (mark.from != null) from = {line: found, ch: mark.from};
|
1523 |
+
if (mark.to != null) to = {line: found, ch: mark.to};
|
1524 |
+
}
|
1525 |
+
}
|
1526 |
+
}
|
1527 |
+
}
|
1528 |
+
}
|
1529 |
+
return {from: from, to: to};
|
1530 |
+
};
|
1531 |
+
|
1532 |
+
function markText(from, to, className) {
|
1533 |
+
from = clipPos(from); to = clipPos(to);
|
1534 |
+
var tm = new TextMarker();
|
1535 |
+
if (!posLess(from, to)) return tm;
|
1536 |
+
function add(line, from, to, className) {
|
1537 |
+
getLine(line).addMark(new MarkedText(from, to, className, tm));
|
1538 |
+
}
|
1539 |
+
if (from.line == to.line) add(from.line, from.ch, to.ch, className);
|
1540 |
+
else {
|
1541 |
+
add(from.line, from.ch, null, className);
|
1542 |
+
for (var i = from.line + 1, e = to.line; i < e; ++i)
|
1543 |
+
add(i, null, null, className);
|
1544 |
+
add(to.line, null, to.ch, className);
|
1545 |
+
}
|
1546 |
+
changes.push({from: from.line, to: to.line + 1});
|
1547 |
+
return tm;
|
1548 |
+
}
|
1549 |
+
|
1550 |
+
function setBookmark(pos) {
|
1551 |
+
pos = clipPos(pos);
|
1552 |
+
var bm = new Bookmark(pos.ch);
|
1553 |
+
getLine(pos.line).addMark(bm);
|
1554 |
+
return bm;
|
1555 |
+
}
|
1556 |
+
|
1557 |
+
function findMarksAt(pos) {
|
1558 |
+
pos = clipPos(pos);
|
1559 |
+
var markers = [], marked = getLine(pos.line).marked;
|
1560 |
+
if (!marked) return markers;
|
1561 |
+
for (var i = 0, e = marked.length; i < e; ++i) {
|
1562 |
+
var m = marked[i];
|
1563 |
+
if ((m.from == null || m.from <= pos.ch) &&
|
1564 |
+
(m.to == null || m.to >= pos.ch))
|
1565 |
+
markers.push(m.marker || m);
|
1566 |
+
}
|
1567 |
+
return markers;
|
1568 |
+
}
|
1569 |
+
|
1570 |
+
function addGutterMarker(line, text, className) {
|
1571 |
+
if (typeof line == "number") line = getLine(clipLine(line));
|
1572 |
+
line.gutterMarker = {text: text, style: className};
|
1573 |
+
gutterDirty = true;
|
1574 |
+
return line;
|
1575 |
+
}
|
1576 |
+
function removeGutterMarker(line) {
|
1577 |
+
if (typeof line == "number") line = getLine(clipLine(line));
|
1578 |
+
line.gutterMarker = null;
|
1579 |
+
gutterDirty = true;
|
1580 |
+
}
|
1581 |
+
|
1582 |
+
function changeLine(handle, op) {
|
1583 |
+
var no = handle, line = handle;
|
1584 |
+
if (typeof handle == "number") line = getLine(clipLine(handle));
|
1585 |
+
else no = lineNo(handle);
|
1586 |
+
if (no == null) return null;
|
1587 |
+
if (op(line, no)) changes.push({from: no, to: no + 1});
|
1588 |
+
else return null;
|
1589 |
+
return line;
|
1590 |
+
}
|
1591 |
+
function setLineClass(handle, className, bgClassName) {
|
1592 |
+
return changeLine(handle, function(line) {
|
1593 |
+
if (line.className != className || line.bgClassName != bgClassName) {
|
1594 |
+
line.className = className;
|
1595 |
+
line.bgClassName = bgClassName;
|
1596 |
+
return true;
|
1597 |
+
}
|
1598 |
+
});
|
1599 |
+
}
|
1600 |
+
function setLineHidden(handle, hidden) {
|
1601 |
+
return changeLine(handle, function(line, no) {
|
1602 |
+
if (line.hidden != hidden) {
|
1603 |
+
line.hidden = hidden;
|
1604 |
+
if (!options.lineWrapping) {
|
1605 |
+
var l = line.text;
|
1606 |
+
if (hidden && l.length == maxLine.length) {
|
1607 |
+
updateMaxLine = true;
|
1608 |
+
} else if (!hidden && l.length > maxLine.length) {
|
1609 |
+
maxLine = l; maxWidth = null; updateMaxLine = false;
|
1610 |
+
}
|
1611 |
+
}
|
1612 |
+
updateLineHeight(line, hidden ? 0 : 1);
|
1613 |
+
var fline = sel.from.line, tline = sel.to.line;
|
1614 |
+
if (hidden && (fline == no || tline == no)) {
|
1615 |
+
var from = fline == no ? skipHidden({line: fline, ch: 0}, fline, 0) : sel.from;
|
1616 |
+
var to = tline == no ? skipHidden({line: tline, ch: 0}, tline, 0) : sel.to;
|
1617 |
+
// Can't hide the last visible line, we'd have no place to put the cursor
|
1618 |
+
if (!to) return;
|
1619 |
+
setSelection(from, to);
|
1620 |
+
}
|
1621 |
+
return (gutterDirty = true);
|
1622 |
+
}
|
1623 |
+
});
|
1624 |
+
}
|
1625 |
+
|
1626 |
+
function lineInfo(line) {
|
1627 |
+
if (typeof line == "number") {
|
1628 |
+
if (!isLine(line)) return null;
|
1629 |
+
var n = line;
|
1630 |
+
line = getLine(line);
|
1631 |
+
if (!line) return null;
|
1632 |
+
} else {
|
1633 |
+
var n = lineNo(line);
|
1634 |
+
if (n == null) return null;
|
1635 |
+
}
|
1636 |
+
var marker = line.gutterMarker;
|
1637 |
+
return {line: n, handle: line, text: line.text, markerText: marker && marker.text,
|
1638 |
+
markerClass: marker && marker.style, lineClass: line.className, bgClass: line.bgClassName};
|
1639 |
+
}
|
1640 |
+
|
1641 |
+
function stringWidth(str) {
|
1642 |
+
measure.innerHTML = "<pre><span>x</span></pre>";
|
1643 |
+
measure.firstChild.firstChild.firstChild.nodeValue = str;
|
1644 |
+
return measure.firstChild.firstChild.offsetWidth || 10;
|
1645 |
+
}
|
1646 |
+
// These are used to go from pixel positions to character
|
1647 |
+
// positions, taking varying character widths into account.
|
1648 |
+
function charFromX(line, x) {
|
1649 |
+
if (x <= 0) return 0;
|
1650 |
+
var lineObj = getLine(line), text = lineObj.text;
|
1651 |
+
function getX(len) {
|
1652 |
+
return measureLine(lineObj, len).left;
|
1653 |
+
}
|
1654 |
+
var from = 0, fromX = 0, to = text.length, toX;
|
1655 |
+
// Guess a suitable upper bound for our search.
|
1656 |
+
var estimated = Math.min(to, Math.ceil(x / charWidth()));
|
1657 |
+
for (;;) {
|
1658 |
+
var estX = getX(estimated);
|
1659 |
+
if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));
|
1660 |
+
else {toX = estX; to = estimated; break;}
|
1661 |
+
}
|
1662 |
+
if (x > toX) return to;
|
1663 |
+
// Try to guess a suitable lower bound as well.
|
1664 |
+
estimated = Math.floor(to * 0.8); estX = getX(estimated);
|
1665 |
+
if (estX < x) {from = estimated; fromX = estX;}
|
1666 |
+
// Do a binary search between these bounds.
|
1667 |
+
for (;;) {
|
1668 |
+
if (to - from <= 1) return (toX - x > x - fromX) ? from : to;
|
1669 |
+
var middle = Math.ceil((from + to) / 2), middleX = getX(middle);
|
1670 |
+
if (middleX > x) {to = middle; toX = middleX;}
|
1671 |
+
else {from = middle; fromX = middleX;}
|
1672 |
+
}
|
1673 |
+
}
|
1674 |
+
|
1675 |
+
var tempId = "CodeMirror-temp-" + Math.floor(Math.random() * 0xffffff).toString(16);
|
1676 |
+
function measureLine(line, ch) {
|
1677 |
+
if (ch == 0) return {top: 0, left: 0};
|
1678 |
+
var wbr = options.lineWrapping && ch < line.text.length &&
|
1679 |
+
spanAffectsWrapping.test(line.text.slice(ch - 1, ch + 1));
|
1680 |
+
measure.innerHTML = "<pre>" + line.getHTML(makeTab, ch, tempId, wbr) + "</pre>";
|
1681 |
+
var elt = document.getElementById(tempId);
|
1682 |
+
var top = elt.offsetTop, left = elt.offsetLeft;
|
1683 |
+
// Older IEs report zero offsets for spans directly after a wrap
|
1684 |
+
if (ie && top == 0 && left == 0) {
|
1685 |
+
var backup = document.createElement("span");
|
1686 |
+
backup.innerHTML = "x";
|
1687 |
+
elt.parentNode.insertBefore(backup, elt.nextSibling);
|
1688 |
+
top = backup.offsetTop;
|
1689 |
+
}
|
1690 |
+
return {top: top, left: left};
|
1691 |
+
}
|
1692 |
+
function localCoords(pos, inLineWrap) {
|
1693 |
+
var x, lh = textHeight(), y = lh * (heightAtLine(doc, pos.line) - (inLineWrap ? displayOffset : 0));
|
1694 |
+
if (pos.ch == 0) x = 0;
|
1695 |
+
else {
|
1696 |
+
var sp = measureLine(getLine(pos.line), pos.ch);
|
1697 |
+
x = sp.left;
|
1698 |
+
if (options.lineWrapping) y += Math.max(0, sp.top);
|
1699 |
+
}
|
1700 |
+
return {x: x, y: y, yBot: y + lh};
|
1701 |
+
}
|
1702 |
+
// Coords must be lineSpace-local
|
1703 |
+
function coordsChar(x, y) {
|
1704 |
+
if (y < 0) y = 0;
|
1705 |
+
var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);
|
1706 |
+
var lineNo = lineAtHeight(doc, heightPos);
|
1707 |
+
if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};
|
1708 |
+
var lineObj = getLine(lineNo), text = lineObj.text;
|
1709 |
+
var tw = options.lineWrapping, innerOff = tw ? heightPos - heightAtLine(doc, lineNo) : 0;
|
1710 |
+
if (x <= 0 && innerOff == 0) return {line: lineNo, ch: 0};
|
1711 |
+
function getX(len) {
|
1712 |
+
var sp = measureLine(lineObj, len);
|
1713 |
+
if (tw) {
|
1714 |
+
var off = Math.round(sp.top / th);
|
1715 |
+
return Math.max(0, sp.left + (off - innerOff) * scroller.clientWidth);
|
1716 |
+
}
|
1717 |
+
return sp.left;
|
1718 |
+
}
|
1719 |
+
var from = 0, fromX = 0, to = text.length, toX;
|
1720 |
+
// Guess a suitable upper bound for our search.
|
1721 |
+
var estimated = Math.min(to, Math.ceil((x + innerOff * scroller.clientWidth * .9) / cw));
|
1722 |
+
for (;;) {
|
1723 |
+
var estX = getX(estimated);
|
1724 |
+
if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));
|
1725 |
+
else {toX = estX; to = estimated; break;}
|
1726 |
+
}
|
1727 |
+
if (x > toX) return {line: lineNo, ch: to};
|
1728 |
+
// Try to guess a suitable lower bound as well.
|
1729 |
+
estimated = Math.floor(to * 0.8); estX = getX(estimated);
|
1730 |
+
if (estX < x) {from = estimated; fromX = estX;}
|
1731 |
+
// Do a binary search between these bounds.
|
1732 |
+
for (;;) {
|
1733 |
+
if (to - from <= 1) return {line: lineNo, ch: (toX - x > x - fromX) ? from : to};
|
1734 |
+
var middle = Math.ceil((from + to) / 2), middleX = getX(middle);
|
1735 |
+
if (middleX > x) {to = middle; toX = middleX;}
|
1736 |
+
else {from = middle; fromX = middleX;}
|
1737 |
+
}
|
1738 |
+
}
|
1739 |
+
function pageCoords(pos) {
|
1740 |
+
var local = localCoords(pos, true), off = eltOffset(lineSpace);
|
1741 |
+
return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};
|
1742 |
+
}
|
1743 |
+
|
1744 |
+
var cachedHeight, cachedHeightFor, measureText;
|
1745 |
+
function textHeight() {
|
1746 |
+
if (measureText == null) {
|
1747 |
+
measureText = "<pre>";
|
1748 |
+
for (var i = 0; i < 49; ++i) measureText += "x<br/>";
|
1749 |
+
measureText += "x</pre>";
|
1750 |
+
}
|
1751 |
+
var offsetHeight = lineDiv.clientHeight;
|
1752 |
+
if (offsetHeight == cachedHeightFor) return cachedHeight;
|
1753 |
+
cachedHeightFor = offsetHeight;
|
1754 |
+
measure.innerHTML = measureText;
|
1755 |
+
cachedHeight = measure.firstChild.offsetHeight / 50 || 1;
|
1756 |
+
measure.innerHTML = "";
|
1757 |
+
return cachedHeight;
|
1758 |
+
}
|
1759 |
+
var cachedWidth, cachedWidthFor = 0;
|
1760 |
+
function charWidth() {
|
1761 |
+
if (scroller.clientWidth == cachedWidthFor) return cachedWidth;
|
1762 |
+
cachedWidthFor = scroller.clientWidth;
|
1763 |
+
return (cachedWidth = stringWidth("x"));
|
1764 |
+
}
|
1765 |
+
function paddingTop() {return lineSpace.offsetTop;}
|
1766 |
+
function paddingLeft() {return lineSpace.offsetLeft;}
|
1767 |
+
|
1768 |
+
function posFromMouse(e, liberal) {
|
1769 |
+
var offW = eltOffset(scroller, true), x, y;
|
1770 |
+
// Fails unpredictably on IE[67] when mouse is dragged around quickly.
|
1771 |
+
try { x = e.clientX; y = e.clientY; } catch (e) { return null; }
|
1772 |
+
// This is a mess of a heuristic to try and determine whether a
|
1773 |
+
// scroll-bar was clicked or not, and to return null if one was
|
1774 |
+
// (and !liberal).
|
1775 |
+
if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))
|
1776 |
+
return null;
|
1777 |
+
var offL = eltOffset(lineSpace, true);
|
1778 |
+
return coordsChar(x - offL.left, y - offL.top);
|
1779 |
+
}
|
1780 |
+
function onContextMenu(e) {
|
1781 |
+
var pos = posFromMouse(e), scrollPos = scrollbar.scrollTop;
|
1782 |
+
if (!pos || opera) return; // Opera is difficult.
|
1783 |
+
if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))
|
1784 |
+
operation(setCursor)(pos.line, pos.ch);
|
1785 |
+
|
1786 |
+
var oldCSS = input.style.cssText;
|
1787 |
+
inputDiv.style.position = "absolute";
|
1788 |
+
input.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.clientY - 5) +
|
1789 |
+
"px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: white; " +
|
1790 |
+
"border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
|
1791 |
+
leaveInputAlone = true;
|
1792 |
+
var val = input.value = getSelection();
|
1793 |
+
focusInput();
|
1794 |
+
selectInput(input);
|
1795 |
+
function rehide() {
|
1796 |
+
var newVal = splitLines(input.value).join("\n");
|
1797 |
+
if (newVal != val && !options.readOnly) operation(replaceSelection)(newVal, "end");
|
1798 |
+
inputDiv.style.position = "relative";
|
1799 |
+
input.style.cssText = oldCSS;
|
1800 |
+
if (ie_lt9) scrollbar.scrollTop = scrollPos;
|
1801 |
+
leaveInputAlone = false;
|
1802 |
+
resetInput(true);
|
1803 |
+
slowPoll();
|
1804 |
+
}
|
1805 |
+
|
1806 |
+
if (gecko) {
|
1807 |
+
e_stop(e);
|
1808 |
+
var mouseup = connect(window, "mouseup", function() {
|
1809 |
+
mouseup();
|
1810 |
+
setTimeout(rehide, 20);
|
1811 |
+
}, true);
|
1812 |
+
} else {
|
1813 |
+
setTimeout(rehide, 50);
|
1814 |
+
}
|
1815 |
+
}
|
1816 |
+
|
1817 |
+
// Cursor-blinking
|
1818 |
+
function restartBlink() {
|
1819 |
+
clearInterval(blinker);
|
1820 |
+
var on = true;
|
1821 |
+
cursor.style.visibility = "";
|
1822 |
+
blinker = setInterval(function() {
|
1823 |
+
cursor.style.visibility = (on = !on) ? "" : "hidden";
|
1824 |
+
}, 650);
|
1825 |
+
}
|
1826 |
+
|
1827 |
+
var matching = {"(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<"};
|
1828 |
+
function matchBrackets(autoclear) {
|
1829 |
+
var head = sel.inverted ? sel.from : sel.to, line = getLine(head.line), pos = head.ch - 1;
|
1830 |
+
var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];
|
1831 |
+
if (!match) return;
|
1832 |
+
var ch = match.charAt(0), forward = match.charAt(1) == ">", d = forward ? 1 : -1, st = line.styles;
|
1833 |
+
for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)
|
1834 |
+
if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}
|
1835 |
+
|
1836 |
+
var stack = [line.text.charAt(pos)], re = /[(){}[\]]/;
|
1837 |
+
function scan(line, from, to) {
|
1838 |
+
if (!line.text) return;
|
1839 |
+
var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;
|
1840 |
+
for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {
|
1841 |
+
var text = st[i];
|
1842 |
+
if (st[i+1] != style) {pos += d * text.length; continue;}
|
1843 |
+
for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {
|
1844 |
+
if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {
|
1845 |
+
var match = matching[cur];
|
1846 |
+
if (match.charAt(1) == ">" == forward) stack.push(cur);
|
1847 |
+
else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};
|
1848 |
+
else if (!stack.length) return {pos: pos, match: true};
|
1849 |
+
}
|
1850 |
+
}
|
1851 |
+
}
|
1852 |
+
}
|
1853 |
+
for (var i = head.line, e = forward ? Math.min(i + 100, doc.size) : Math.max(-1, i - 100); i != e; i+=d) {
|
1854 |
+
var line = getLine(i), first = i == head.line;
|
1855 |
+
var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);
|
1856 |
+
if (found) break;
|
1857 |
+
}
|
1858 |
+
if (!found) found = {pos: null, match: false};
|
1859 |
+
var style = found.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
|
1860 |
+
var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),
|
1861 |
+
two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);
|
1862 |
+
var clear = operation(function(){one.clear(); two && two.clear();});
|
1863 |
+
if (autoclear) setTimeout(clear, 800);
|
1864 |
+
else bracketHighlighted = clear;
|
1865 |
+
}
|
1866 |
+
|
1867 |
+
// Finds the line to start with when starting a parse. Tries to
|
1868 |
+
// find a line with a stateAfter, so that it can start with a
|
1869 |
+
// valid state. If that fails, it returns the line with the
|
1870 |
+
// smallest indentation, which tends to need the least context to
|
1871 |
+
// parse correctly.
|
1872 |
+
function findStartLine(n) {
|
1873 |
+
var minindent, minline;
|
1874 |
+
for (var search = n, lim = n - 40; search > lim; --search) {
|
1875 |
+
if (search == 0) return 0;
|
1876 |
+
var line = getLine(search-1);
|
1877 |
+
if (line.stateAfter) return search;
|
1878 |
+
var indented = line.indentation(options.tabSize);
|
1879 |
+
if (minline == null || minindent > indented) {
|
1880 |
+
minline = search - 1;
|
1881 |
+
minindent = indented;
|
1882 |
+
}
|
1883 |
+
}
|
1884 |
+
return minline;
|
1885 |
+
}
|
1886 |
+
function getStateBefore(n) {
|
1887 |
+
var start = findStartLine(n), state = start && getLine(start-1).stateAfter;
|
1888 |
+
if (!state) state = startState(mode);
|
1889 |
+
else state = copyState(mode, state);
|
1890 |
+
doc.iter(start, n, function(line) {
|
1891 |
+
line.highlight(mode, state, options.tabSize);
|
1892 |
+
line.stateAfter = copyState(mode, state);
|
1893 |
+
});
|
1894 |
+
if (start < n) changes.push({from: start, to: n});
|
1895 |
+
if (n < doc.size && !getLine(n).stateAfter) work.push(n);
|
1896 |
+
return state;
|
1897 |
+
}
|
1898 |
+
function highlightLines(start, end) {
|
1899 |
+
var state = getStateBefore(start);
|
1900 |
+
doc.iter(start, end, function(line) {
|
1901 |
+
line.highlight(mode, state, options.tabSize);
|
1902 |
+
line.stateAfter = copyState(mode, state);
|
1903 |
+
});
|
1904 |
+
}
|
1905 |
+
function highlightWorker() {
|
1906 |
+
var end = +new Date + options.workTime;
|
1907 |
+
var foundWork = work.length;
|
1908 |
+
while (work.length) {
|
1909 |
+
if (!getLine(showingFrom).stateAfter) var task = showingFrom;
|
1910 |
+
else var task = work.pop();
|
1911 |
+
if (task >= doc.size) continue;
|
1912 |
+
var start = findStartLine(task), state = start && getLine(start-1).stateAfter;
|
1913 |
+
if (state) state = copyState(mode, state);
|
1914 |
+
else state = startState(mode);
|
1915 |
+
|
1916 |
+
var unchanged = 0, compare = mode.compareStates, realChange = false,
|
1917 |
+
i = start, bail = false;
|
1918 |
+
doc.iter(i, doc.size, function(line) {
|
1919 |
+
var hadState = line.stateAfter;
|
1920 |
+
if (+new Date > end) {
|
1921 |
+
work.push(i);
|
1922 |
+
startWorker(options.workDelay);
|
1923 |
+
if (realChange) changes.push({from: task, to: i + 1});
|
1924 |
+
return (bail = true);
|
1925 |
+
}
|
1926 |
+
var changed = line.highlight(mode, state, options.tabSize);
|
1927 |
+
if (changed) realChange = true;
|
1928 |
+
line.stateAfter = copyState(mode, state);
|
1929 |
+
var done = null;
|
1930 |
+
if (compare) {
|
1931 |
+
var same = hadState && compare(hadState, state);
|
1932 |
+
if (same != Pass) done = !!same;
|
1933 |
+
}
|
1934 |
+
if (done == null) {
|
1935 |
+
if (changed !== false || !hadState) unchanged = 0;
|
1936 |
+
else if (++unchanged > 3 && (!mode.indent || mode.indent(hadState, "") == mode.indent(state, "")))
|
1937 |
+
done = true;
|
1938 |
+
}
|
1939 |
+
if (done) return true;
|
1940 |
+
++i;
|
1941 |
+
});
|
1942 |
+
if (bail) return;
|
1943 |
+
if (realChange) changes.push({from: task, to: i + 1});
|
1944 |
+
}
|
1945 |
+
if (foundWork && options.onHighlightComplete)
|
1946 |
+
options.onHighlightComplete(instance);
|
1947 |
+
}
|
1948 |
+
function startWorker(time) {
|
1949 |
+
if (!work.length) return;
|
1950 |
+
highlight.set(time, operation(highlightWorker));
|
1951 |
+
}
|
1952 |
+
|
1953 |
+
// Operations are used to wrap changes in such a way that each
|
1954 |
+
// change won't have to update the cursor and display (which would
|
1955 |
+
// be awkward, slow, and error-prone), but instead updates are
|
1956 |
+
// batched and then all combined and executed at once.
|
1957 |
+
function startOperation() {
|
1958 |
+
updateInput = userSelChange = textChanged = null;
|
1959 |
+
changes = []; selectionChanged = false; callbacks = [];
|
1960 |
+
}
|
1961 |
+
function endOperation() {
|
1962 |
+
if (updateMaxLine) computeMaxLength();
|
1963 |
+
if (maxLineChanged && !options.lineWrapping) {
|
1964 |
+
widthForcer.style.left = stringWidth(maxLine) + "px";
|
1965 |
+
maxLineChanged = false;
|
1966 |
+
}
|
1967 |
+
var newScrollPos, updated;
|
1968 |
+
if (selectionChanged) {
|
1969 |
+
var coords = calculateCursorCoords();
|
1970 |
+
newScrollPos = calculateScrollPos(coords.x, coords.y, coords.x, coords.yBot);
|
1971 |
+
}
|
1972 |
+
if (changes.length) updated = updateDisplay(changes, true, (newScrollPos ? newScrollPos.scrollTop : null));
|
1973 |
+
else {
|
1974 |
+
if (selectionChanged) updateSelection();
|
1975 |
+
if (gutterDirty) updateGutter();
|
1976 |
+
}
|
1977 |
+
if (newScrollPos) scrollCursorIntoView();
|
1978 |
+
if (selectionChanged) {scrollEditorIntoView(); restartBlink();}
|
1979 |
+
|
1980 |
+
if (focused && !leaveInputAlone &&
|
1981 |
+
(updateInput === true || (updateInput !== false && selectionChanged)))
|
1982 |
+
resetInput(userSelChange);
|
1983 |
+
|
1984 |
+
if (selectionChanged && options.matchBrackets)
|
1985 |
+
setTimeout(operation(function() {
|
1986 |
+
if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}
|
1987 |
+
if (posEq(sel.from, sel.to)) matchBrackets(false);
|
1988 |
+
}), 20);
|
1989 |
+
var sc = selectionChanged, cbs = callbacks; // these can be reset by callbacks
|
1990 |
+
if (textChanged && options.onChange && instance)
|
1991 |
+
options.onChange(instance, textChanged);
|
1992 |
+
if (sc && options.onCursorActivity)
|
1993 |
+
options.onCursorActivity(instance);
|
1994 |
+
for (var i = 0; i < cbs.length; ++i) cbs[i](instance);
|
1995 |
+
if (updated && options.onUpdate) options.onUpdate(instance);
|
1996 |
+
}
|
1997 |
+
var nestedOperation = 0;
|
1998 |
+
function operation(f) {
|
1999 |
+
return function() {
|
2000 |
+
if (!nestedOperation++) startOperation();
|
2001 |
+
try {var result = f.apply(this, arguments);}
|
2002 |
+
finally {if (!--nestedOperation) endOperation();}
|
2003 |
+
return result;
|
2004 |
+
};
|
2005 |
+
}
|
2006 |
+
|
2007 |
+
function compoundChange(f) {
|
2008 |
+
history.startCompound();
|
2009 |
+
try { return f(); } finally { history.endCompound(); }
|
2010 |
+
}
|
2011 |
+
|
2012 |
+
for (var ext in extensions)
|
2013 |
+
if (extensions.propertyIsEnumerable(ext) &&
|
2014 |
+
!instance.propertyIsEnumerable(ext))
|
2015 |
+
instance[ext] = extensions[ext];
|
2016 |
+
return instance;
|
2017 |
+
} // (end of function CodeMirror)
|
2018 |
+
|
2019 |
+
// The default configuration options.
|
2020 |
+
CodeMirror.defaults = {
|
2021 |
+
value: "",
|
2022 |
+
mode: null,
|
2023 |
+
theme: "default",
|
2024 |
+
indentUnit: 5,
|
2025 |
+
indentWithTabs: false,
|
2026 |
+
smartIndent: true,
|
2027 |
+
tabSize: 6,
|
2028 |
+
keyMap: "default",
|
2029 |
+
extraKeys: null,
|
2030 |
+
electricChars: true,
|
2031 |
+
autoClearEmptyLines: false,
|
2032 |
+
onKeyEvent: null,
|
2033 |
+
onDragEvent: null,
|
2034 |
+
lineWrapping: false,
|
2035 |
+
lineNumbers: false,
|
2036 |
+
gutter: false,
|
2037 |
+
fixedGutter: false,
|
2038 |
+
firstLineNumber: 1,
|
2039 |
+
readOnly: false,
|
2040 |
+
dragDrop: true,
|
2041 |
+
onChange: null,
|
2042 |
+
onCursorActivity: null,
|
2043 |
+
onGutterClick: null,
|
2044 |
+
onHighlightComplete: null,
|
2045 |
+
onUpdate: null,
|
2046 |
+
onFocus: null, onBlur: null, onScroll: null,
|
2047 |
+
matchBrackets: false,
|
2048 |
+
workTime: 100,
|
2049 |
+
workDelay: 200,
|
2050 |
+
pollInterval: 100,
|
2051 |
+
undoDepth: 40,
|
2052 |
+
tabindex: null,
|
2053 |
+
autofocus: null
|
2054 |
+
};
|
2055 |
+
|
2056 |
+
var ios = /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent);
|
2057 |
+
var mac = ios || /Mac/.test(navigator.platform);
|
2058 |
+
var win = /Win/.test(navigator.platform);
|
2059 |
+
|
2060 |
+
// Known modes, by name and by MIME
|
2061 |
+
var modes = CodeMirror.modes = {}, mimeModes = CodeMirror.mimeModes = {};
|
2062 |
+
CodeMirror.defineMode = function(name, mode) {
|
2063 |
+
if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name;
|
2064 |
+
if (arguments.length > 2) {
|
2065 |
+
mode.dependencies = [];
|
2066 |
+
for (var i = 2; i < arguments.length; ++i) mode.dependencies.push(arguments[i]);
|
2067 |
+
}
|
2068 |
+
modes[name] = mode;
|
2069 |
+
};
|
2070 |
+
CodeMirror.defineMIME = function(mime, spec) {
|
2071 |
+
mimeModes[mime] = spec;
|
2072 |
+
};
|
2073 |
+
CodeMirror.resolveMode = function(spec) {
|
2074 |
+
if (typeof spec == "string" && mimeModes.hasOwnProperty(spec))
|
2075 |
+
spec = mimeModes[spec];
|
2076 |
+
else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec))
|
2077 |
+
return CodeMirror.resolveMode("application/xml");
|
2078 |
+
if (typeof spec == "string") return {name: spec};
|
2079 |
+
else return spec || {name: "null"};
|
2080 |
+
};
|
2081 |
+
CodeMirror.getMode = function(options, spec) {
|
2082 |
+
var spec = CodeMirror.resolveMode(spec);
|
2083 |
+
var mfactory = modes[spec.name];
|
2084 |
+
if (!mfactory) return CodeMirror.getMode(options, "text/plain");
|
2085 |
+
return mfactory(options, spec);
|
2086 |
+
};
|
2087 |
+
CodeMirror.listModes = function() {
|
2088 |
+
var list = [];
|
2089 |
+
for (var m in modes)
|
2090 |
+
if (modes.propertyIsEnumerable(m)) list.push(m);
|
2091 |
+
return list;
|
2092 |
+
};
|
2093 |
+
CodeMirror.listMIMEs = function() {
|
2094 |
+
var list = [];
|
2095 |
+
for (var m in mimeModes)
|
2096 |
+
if (mimeModes.propertyIsEnumerable(m)) list.push({mime: m, mode: mimeModes[m]});
|
2097 |
+
return list;
|
2098 |
+
};
|
2099 |
+
|
2100 |
+
var extensions = CodeMirror.extensions = {};
|
2101 |
+
CodeMirror.defineExtension = function(name, func) {
|
2102 |
+
extensions[name] = func;
|
2103 |
+
};
|
2104 |
+
|
2105 |
+
var commands = CodeMirror.commands = {
|
2106 |
+
selectAll: function(cm) {cm.setSelection({line: 0, ch: 0}, {line: cm.lineCount() - 1});},
|
2107 |
+
killLine: function(cm) {
|
2108 |
+
var from = cm.getCursor(true), to = cm.getCursor(false), sel = !posEq(from, to);
|
2109 |
+
if (!sel && cm.getLine(from.line).length == from.ch) cm.replaceRange("", from, {line: from.line + 1, ch: 0});
|
2110 |
+
else cm.replaceRange("", from, sel ? to : {line: from.line});
|
2111 |
+
},
|
2112 |
+
deleteLine: function(cm) {var l = cm.getCursor().line; cm.replaceRange("", {line: l, ch: 0}, {line: l});},
|
2113 |
+
undo: function(cm) {cm.undo();},
|
2114 |
+
redo: function(cm) {cm.redo();},
|
2115 |
+
goDocStart: function(cm) {cm.setCursor(0, 0, true);},
|
2116 |
+
goDocEnd: function(cm) {cm.setSelection({line: cm.lineCount() - 1}, null, true);},
|
2117 |
+
goLineStart: function(cm) {cm.setCursor(cm.getCursor().line, 0, true);},
|
2118 |
+
goLineStartSmart: function(cm) {
|
2119 |
+
var cur = cm.getCursor();
|
2120 |
+
var text = cm.getLine(cur.line), firstNonWS = Math.max(0, text.search(/\S/));
|
2121 |
+
cm.setCursor(cur.line, cur.ch <= firstNonWS && cur.ch ? 0 : firstNonWS, true);
|
2122 |
+
},
|
2123 |
+
goLineEnd: function(cm) {cm.setSelection({line: cm.getCursor().line}, null, true);},
|
2124 |
+
goLineUp: function(cm) {cm.moveV(-1, "line");},
|
2125 |
+
goLineDown: function(cm) {cm.moveV(1, "line");},
|
2126 |
+
goPageUp: function(cm) {cm.moveV(-1, "page");},
|
2127 |
+
goPageDown: function(cm) {cm.moveV(1, "page");},
|
2128 |
+
goCharLeft: function(cm) {cm.moveH(-1, "char");},
|
2129 |
+
goCharRight: function(cm) {cm.moveH(1, "char");},
|
2130 |
+
goColumnLeft: function(cm) {cm.moveH(-1, "column");},
|
2131 |
+
goColumnRight: function(cm) {cm.moveH(1, "column");},
|
2132 |
+
goWordLeft: function(cm) {cm.moveH(-1, "word");},
|
2133 |
+
goWordRight: function(cm) {cm.moveH(1, "word");},
|
2134 |
+
delCharLeft: function(cm) {cm.deleteH(-1, "char");},
|
2135 |
+
delCharRight: function(cm) {cm.deleteH(1, "char");},
|
2136 |
+
delWordLeft: function(cm) {cm.deleteH(-1, "word");},
|
2137 |
+
delWordRight: function(cm) {cm.deleteH(1, "word");},
|
2138 |
+
indentAuto: function(cm) {cm.indentSelection("smart");},
|
2139 |
+
indentMore: function(cm) {cm.indentSelection("add");},
|
2140 |
+
indentLess: function(cm) {cm.indentSelection("subtract");},
|
2141 |
+
insertTab: function(cm) {cm.replaceSelection("\t", "end");},
|
2142 |
+
defaultTab: function(cm) {
|
2143 |
+
if (cm.somethingSelected()) cm.indentSelection("add");
|
2144 |
+
else cm.replaceSelection("\t", "end");
|
2145 |
+
},
|
2146 |
+
transposeChars: function(cm) {
|
2147 |
+
var cur = cm.getCursor(), line = cm.getLine(cur.line);
|
2148 |
+
if (cur.ch > 0 && cur.ch < line.length - 1)
|
2149 |
+
cm.replaceRange(line.charAt(cur.ch) + line.charAt(cur.ch - 1),
|
2150 |
+
{line: cur.line, ch: cur.ch - 1}, {line: cur.line, ch: cur.ch + 1});
|
2151 |
+
},
|
2152 |
+
newlineAndIndent: function(cm) {
|
2153 |
+
cm.replaceSelection("\n", "end");
|
2154 |
+
cm.indentLine(cm.getCursor().line);
|
2155 |
+
},
|
2156 |
+
toggleOverwrite: function(cm) {cm.toggleOverwrite();}
|
2157 |
+
};
|
2158 |
+
|
2159 |
+
var keyMap = CodeMirror.keyMap = {};
|
2160 |
+
keyMap.basic = {
|
2161 |
+
"Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown",
|
2162 |
+
"End": "goLineEnd", "Home": "goLineStartSmart", "PageUp": "goPageUp", "PageDown": "goPageDown",
|
2163 |
+
"Delete": "delCharRight", "Backspace": "delCharLeft", "Tab": "defaultTab", "Shift-Tab": "indentAuto",
|
2164 |
+
"Enter": "newlineAndIndent", "Insert": "toggleOverwrite"
|
2165 |
+
};
|
2166 |
+
// Note that the save and find-related commands aren't defined by
|
2167 |
+
// default. Unknown commands are simply ignored.
|
2168 |
+
keyMap.pcDefault = {
|
2169 |
+
"Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo",
|
2170 |
+
"Ctrl-Home": "goDocStart", "Alt-Up": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Down": "goDocEnd",
|
2171 |
+
"Ctrl-Left": "goWordLeft", "Ctrl-Right": "goWordRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd",
|
2172 |
+
"Ctrl-Backspace": "delWordLeft", "Ctrl-Delete": "delWordRight", "Ctrl-S": "save", "Ctrl-F": "find",
|
2173 |
+
"Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll",
|
2174 |
+
"Ctrl-[": "indentLess", "Ctrl-]": "indentMore",
|
2175 |
+
fallthrough: "basic"
|
2176 |
+
};
|
2177 |
+
keyMap.macDefault = {
|
2178 |
+
"Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo",
|
2179 |
+
"Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goWordLeft",
|
2180 |
+
"Alt-Right": "goWordRight", "Cmd-Left": "goLineStart", "Cmd-Right": "goLineEnd", "Alt-Backspace": "delWordLeft",
|
2181 |
+
"Ctrl-Alt-Backspace": "delWordRight", "Alt-Delete": "delWordRight", "Cmd-S": "save", "Cmd-F": "find",
|
2182 |
+
"Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll",
|
2183 |
+
"Cmd-[": "indentLess", "Cmd-]": "indentMore",
|
2184 |
+
fallthrough: ["basic", "emacsy"]
|
2185 |
+
};
|
2186 |
+
keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault;
|
2187 |
+
keyMap.emacsy = {
|
2188 |
+
"Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown",
|
2189 |
+
"Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd",
|
2190 |
+
"Ctrl-V": "goPageUp", "Shift-Ctrl-V": "goPageDown", "Ctrl-D": "delCharRight", "Ctrl-H": "delCharLeft",
|
2191 |
+
"Alt-D": "delWordRight", "Alt-Backspace": "delWordLeft", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars"
|
2192 |
+
};
|
2193 |
+
|
2194 |
+
function getKeyMap(val) {
|
2195 |
+
if (typeof val == "string") return keyMap[val];
|
2196 |
+
else return val;
|
2197 |
+
}
|
2198 |
+
function lookupKey(name, extraMap, map, handle, stop) {
|
2199 |
+
function lookup(map) {
|
2200 |
+
map = getKeyMap(map);
|
2201 |
+
var found = map[name];
|
2202 |
+
if (found != null && handle(found)) return true;
|
2203 |
+
if (map.nofallthrough) {
|
2204 |
+
if (stop) stop();
|
2205 |
+
return true;
|
2206 |
+
}
|
2207 |
+
var fallthrough = map.fallthrough;
|
2208 |
+
if (fallthrough == null) return false;
|
2209 |
+
if (Object.prototype.toString.call(fallthrough) != "[object Array]")
|
2210 |
+
return lookup(fallthrough);
|
2211 |
+
for (var i = 0, e = fallthrough.length; i < e; ++i) {
|
2212 |
+
if (lookup(fallthrough[i])) return true;
|
2213 |
+
}
|
2214 |
+
return false;
|
2215 |
+
}
|
2216 |
+
if (extraMap && lookup(extraMap)) return true;
|
2217 |
+
return lookup(map);
|
2218 |
+
}
|
2219 |
+
function isModifierKey(event) {
|
2220 |
+
var name = keyNames[e_prop(event, "keyCode")];
|
2221 |
+
return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
|
2222 |
+
}
|
2223 |
+
|
2224 |
+
CodeMirror.fromTextArea = function(textarea, options) {
|
2225 |
+
if (!options) options = {};
|
2226 |
+
options.value = textarea.value;
|
2227 |
+
if (!options.tabindex && textarea.tabindex)
|
2228 |
+
options.tabindex = textarea.tabindex;
|
2229 |
+
if (options.autofocus == null && textarea.getAttribute("autofocus") != null)
|
2230 |
+
options.autofocus = true;
|
2231 |
+
|
2232 |
+
function save() {textarea.value = instance.getValue();}
|
2233 |
+
if (textarea.form) {
|
2234 |
+
// Deplorable hack to make the submit method do the right thing.
|
2235 |
+
var rmSubmit = connect(textarea.form, "submit", save, true);
|
2236 |
+
if (typeof textarea.form.submit == "function") {
|
2237 |
+
var realSubmit = textarea.form.submit;
|
2238 |
+
function wrappedSubmit() {
|
2239 |
+
save();
|
2240 |
+
textarea.form.submit = realSubmit;
|
2241 |
+
textarea.form.submit();
|
2242 |
+
textarea.form.submit = wrappedSubmit;
|
2243 |
+
}
|
2244 |
+
textarea.form.submit = wrappedSubmit;
|
2245 |
+
}
|
2246 |
+
}
|
2247 |
+
|
2248 |
+
textarea.style.display = "none";
|
2249 |
+
var instance = CodeMirror(function(node) {
|
2250 |
+
textarea.parentNode.insertBefore(node, textarea.nextSibling);
|
2251 |
+
}, options);
|
2252 |
+
instance.save = save;
|
2253 |
+
instance.getTextArea = function() { return textarea; };
|
2254 |
+
instance.toTextArea = function() {
|
2255 |
+
save();
|
2256 |
+
textarea.parentNode.removeChild(instance.getWrapperElement());
|
2257 |
+
textarea.style.display = "";
|
2258 |
+
if (textarea.form) {
|
2259 |
+
rmSubmit();
|
2260 |
+
if (typeof textarea.form.submit == "function")
|
2261 |
+
textarea.form.submit = realSubmit;
|
2262 |
+
}
|
2263 |
+
};
|
2264 |
+
return instance;
|
2265 |
+
};
|
2266 |
+
|
2267 |
+
// Utility functions for working with state. Exported because modes
|
2268 |
+
// sometimes need to do this.
|
2269 |
+
function copyState(mode, state) {
|
2270 |
+
if (state === true) return state;
|
2271 |
+
if (mode.copyState) return mode.copyState(state);
|
2272 |
+
var nstate = {};
|
2273 |
+
for (var n in state) {
|
2274 |
+
var val = state[n];
|
2275 |
+
if (val instanceof Array) val = val.concat([]);
|
2276 |
+
nstate[n] = val;
|
2277 |
+
}
|
2278 |
+
return nstate;
|
2279 |
+
}
|
2280 |
+
CodeMirror.copyState = copyState;
|
2281 |
+
function startState(mode, a1, a2) {
|
2282 |
+
return mode.startState ? mode.startState(a1, a2) : true;
|
2283 |
+
}
|
2284 |
+
CodeMirror.startState = startState;
|
2285 |
+
|
2286 |
+
// The character stream used by a mode's parser.
|
2287 |
+
function StringStream(string, tabSize) {
|
2288 |
+
this.pos = this.start = 0;
|
2289 |
+
this.string = string;
|
2290 |
+
this.tabSize = tabSize || 8;
|
2291 |
+
}
|
2292 |
+
StringStream.prototype = {
|
2293 |
+
eol: function() {return this.pos >= this.string.length;},
|
2294 |
+
sol: function() {return this.pos == 0;},
|
2295 |
+
peek: function() {return this.string.charAt(this.pos);},
|
2296 |
+
next: function() {
|
2297 |
+
if (this.pos < this.string.length)
|
2298 |
+
return this.string.charAt(this.pos++);
|
2299 |
+
},
|
2300 |
+
eat: function(match) {
|
2301 |
+
var ch = this.string.charAt(this.pos);
|
2302 |
+
if (typeof match == "string") var ok = ch == match;
|
2303 |
+
else var ok = ch && (match.test ? match.test(ch) : match(ch));
|
2304 |
+
if (ok) {++this.pos; return ch;}
|
2305 |
+
},
|
2306 |
+
eatWhile: function(match) {
|
2307 |
+
var start = this.pos;
|
2308 |
+
while (this.eat(match)){}
|
2309 |
+
return this.pos > start;
|
2310 |
+
},
|
2311 |
+
eatSpace: function() {
|
2312 |
+
var start = this.pos;
|
2313 |
+
while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos;
|
2314 |
+
return this.pos > start;
|
2315 |
+
},
|
2316 |
+
skipToEnd: function() {this.pos = this.string.length;},
|
2317 |
+
skipTo: function(ch) {
|
2318 |
+
var found = this.string.indexOf(ch, this.pos);
|
2319 |
+
if (found > -1) {this.pos = found; return true;}
|
2320 |
+
},
|
2321 |
+
backUp: function(n) {this.pos -= n;},
|
2322 |
+
column: function() {return countColumn(this.string, this.start, this.tabSize);},
|
2323 |
+
indentation: function() {return countColumn(this.string, null, this.tabSize);},
|
2324 |
+
match: function(pattern, consume, caseInsensitive) {
|
2325 |
+
if (typeof pattern == "string") {
|
2326 |
+
function cased(str) {return caseInsensitive ? str.toLowerCase() : str;}
|
2327 |
+
if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {
|
2328 |
+
if (consume !== false) this.pos += pattern.length;
|
2329 |
+
return true;
|
2330 |
+
}
|
2331 |
+
} else {
|
2332 |
+
var match = this.string.slice(this.pos).match(pattern);
|
2333 |
+
if (match && consume !== false) this.pos += match[0].length;
|
2334 |
+
return match;
|
2335 |
+
}
|
2336 |
+
},
|
2337 |
+
current: function(){return this.string.slice(this.start, this.pos);}
|
2338 |
+
};
|
2339 |
+
CodeMirror.StringStream = StringStream;
|
2340 |
+
|
2341 |
+
function MarkedText(from, to, className, marker) {
|
2342 |
+
this.from = from; this.to = to; this.style = className; this.marker = marker;
|
2343 |
+
}
|
2344 |
+
MarkedText.prototype = {
|
2345 |
+
attach: function(line) { this.marker.set.push(line); },
|
2346 |
+
detach: function(line) {
|
2347 |
+
var ix = indexOf(this.marker.set, line);
|
2348 |
+
if (ix > -1) this.marker.set.splice(ix, 1);
|
2349 |
+
},
|
2350 |
+
split: function(pos, lenBefore) {
|
2351 |
+
if (this.to <= pos && this.to != null) return null;
|
2352 |
+
var from = this.from < pos || this.from == null ? null : this.from - pos + lenBefore;
|
2353 |
+
var to = this.to == null ? null : this.to - pos + lenBefore;
|
2354 |
+
return new MarkedText(from, to, this.style, this.marker);
|
2355 |
+
},
|
2356 |
+
dup: function() { return new MarkedText(null, null, this.style, this.marker); },
|
2357 |
+
clipTo: function(fromOpen, from, toOpen, to, diff) {
|
2358 |
+
if (fromOpen && to > this.from && (to < this.to || this.to == null))
|
2359 |
+
this.from = null;
|
2360 |
+
else if (this.from != null && this.from >= from)
|
2361 |
+
this.from = Math.max(to, this.from) + diff;
|
2362 |
+
if (toOpen && (from < this.to || this.to == null) && (from > this.from || this.from == null))
|
2363 |
+
this.to = null;
|
2364 |
+
else if (this.to != null && this.to > from)
|
2365 |
+
this.to = to < this.to ? this.to + diff : from;
|
2366 |
+
},
|
2367 |
+
isDead: function() { return this.from != null && this.to != null && this.from >= this.to; },
|
2368 |
+
sameSet: function(x) { return this.marker == x.marker; }
|
2369 |
+
};
|
2370 |
+
|
2371 |
+
function Bookmark(pos) {
|
2372 |
+
this.from = pos; this.to = pos; this.line = null;
|
2373 |
+
}
|
2374 |
+
Bookmark.prototype = {
|
2375 |
+
attach: function(line) { this.line = line; },
|
2376 |
+
detach: function(line) { if (this.line == line) this.line = null; },
|
2377 |
+
split: function(pos, lenBefore) {
|
2378 |
+
if (pos < this.from) {
|
2379 |
+
this.from = this.to = (this.from - pos) + lenBefore;
|
2380 |
+
return this;
|
2381 |
+
}
|
2382 |
+
},
|
2383 |
+
isDead: function() { return this.from > this.to; },
|
2384 |
+
clipTo: function(fromOpen, from, toOpen, to, diff) {
|
2385 |
+
if ((fromOpen || from < this.from) && (toOpen || to > this.to)) {
|
2386 |
+
this.from = 0; this.to = -1;
|
2387 |
+
} else if (this.from > from) {
|
2388 |
+
this.from = this.to = Math.max(to, this.from) + diff;
|
2389 |
+
}
|
2390 |
+
},
|
2391 |
+
sameSet: function(x) { return false; },
|
2392 |
+
find: function() {
|
2393 |
+
if (!this.line || !this.line.parent) return null;
|
2394 |
+
return {line: lineNo(this.line), ch: this.from};
|
2395 |
+
},
|
2396 |
+
clear: function() {
|
2397 |
+
if (this.line) {
|
2398 |
+
var found = indexOf(this.line.marked, this);
|
2399 |
+
if (found != -1) this.line.marked.splice(found, 1);
|
2400 |
+
this.line = null;
|
2401 |
+
}
|
2402 |
+
}
|
2403 |
+
};
|
2404 |
+
|
2405 |
+
// Line objects. These hold state related to a line, including
|
2406 |
+
// highlighting info (the styles array).
|
2407 |
+
function Line(text, styles) {
|
2408 |
+
this.styles = styles || [text, null];
|
2409 |
+
this.text = text;
|
2410 |
+
this.height = 1;
|
2411 |
+
this.marked = this.gutterMarker = this.className = this.bgClassName = this.handlers = null;
|
2412 |
+
this.stateAfter = this.parent = this.hidden = null;
|
2413 |
+
}
|
2414 |
+
Line.inheritMarks = function(text, orig) {
|
2415 |
+
var ln = new Line(text), mk = orig && orig.marked;
|
2416 |
+
if (mk) {
|
2417 |
+
for (var i = 0; i < mk.length; ++i) {
|
2418 |
+
if (mk[i].to == null && mk[i].style) {
|
2419 |
+
var newmk = ln.marked || (ln.marked = []), mark = mk[i];
|
2420 |
+
var nmark = mark.dup(); newmk.push(nmark); nmark.attach(ln);
|
2421 |
+
}
|
2422 |
+
}
|
2423 |
+
}
|
2424 |
+
return ln;
|
2425 |
+
}
|
2426 |
+
Line.prototype = {
|
2427 |
+
// Replace a piece of a line, keeping the styles around it intact.
|
2428 |
+
replace: function(from, to_, text) {
|
2429 |
+
var st = [], mk = this.marked, to = to_ == null ? this.text.length : to_;
|
2430 |
+
copyStyles(0, from, this.styles, st);
|
2431 |
+
if (text) st.push(text, null);
|
2432 |
+
copyStyles(to, this.text.length, this.styles, st);
|
2433 |
+
this.styles = st;
|
2434 |
+
this.text = this.text.slice(0, from) + text + this.text.slice(to);
|
2435 |
+
this.stateAfter = null;
|
2436 |
+
if (mk) {
|
2437 |
+
var diff = text.length - (to - from);
|
2438 |
+
for (var i = 0; i < mk.length; ++i) {
|
2439 |
+
var mark = mk[i];
|
2440 |
+
mark.clipTo(from == null, from || 0, to_ == null, to, diff);
|
2441 |
+
if (mark.isDead()) {mark.detach(this); mk.splice(i--, 1);}
|
2442 |
+
}
|
2443 |
+
}
|
2444 |
+
},
|
2445 |
+
// Split a part off a line, keeping styles and markers intact.
|
2446 |
+
split: function(pos, textBefore) {
|
2447 |
+
var st = [textBefore, null], mk = this.marked;
|
2448 |
+
copyStyles(pos, this.text.length, this.styles, st);
|
2449 |
+
var taken = new Line(textBefore + this.text.slice(pos), st);
|
2450 |
+
if (mk) {
|
2451 |
+
for (var i = 0; i < mk.length; ++i) {
|
2452 |
+
var mark = mk[i];
|
2453 |
+
var newmark = mark.split(pos, textBefore.length);
|
2454 |
+
if (newmark) {
|
2455 |
+
if (!taken.marked) taken.marked = [];
|
2456 |
+
taken.marked.push(newmark); newmark.attach(taken);
|
2457 |
+
if (newmark == mark) mk.splice(i--, 1);
|
2458 |
+
}
|
2459 |
+
}
|
2460 |
+
}
|
2461 |
+
return taken;
|
2462 |
+
},
|
2463 |
+
append: function(line) {
|
2464 |
+
var mylen = this.text.length, mk = line.marked, mymk = this.marked;
|
2465 |
+
this.text += line.text;
|
2466 |
+
copyStyles(0, line.text.length, line.styles, this.styles);
|
2467 |
+
if (mymk) {
|
2468 |
+
for (var i = 0; i < mymk.length; ++i)
|
2469 |
+
if (mymk[i].to == null) mymk[i].to = mylen;
|
2470 |
+
}
|
2471 |
+
if (mk && mk.length) {
|
2472 |
+
if (!mymk) this.marked = mymk = [];
|
2473 |
+
outer: for (var i = 0; i < mk.length; ++i) {
|
2474 |
+
var mark = mk[i];
|
2475 |
+
if (!mark.from) {
|
2476 |
+
for (var j = 0; j < mymk.length; ++j) {
|
2477 |
+
var mymark = mymk[j];
|
2478 |
+
if (mymark.to == mylen && mymark.sameSet(mark)) {
|
2479 |
+
mymark.to = mark.to == null ? null : mark.to + mylen;
|
2480 |
+
if (mymark.isDead()) {
|
2481 |
+
mymark.detach(this);
|
2482 |
+
mk.splice(i--, 1);
|
2483 |
+
}
|
2484 |
+
continue outer;
|
2485 |
+
}
|
2486 |
+
}
|
2487 |
+
}
|
2488 |
+
mymk.push(mark);
|
2489 |
+
mark.attach(this);
|
2490 |
+
mark.from += mylen;
|
2491 |
+
if (mark.to != null) mark.to += mylen;
|
2492 |
+
}
|
2493 |
+
}
|
2494 |
+
},
|
2495 |
+
fixMarkEnds: function(other) {
|
2496 |
+
var mk = this.marked, omk = other.marked;
|
2497 |
+
if (!mk) return;
|
2498 |
+
for (var i = 0; i < mk.length; ++i) {
|
2499 |
+
var mark = mk[i], close = mark.to == null;
|
2500 |
+
if (close && omk) {
|
2501 |
+
for (var j = 0; j < omk.length; ++j)
|
2502 |
+
if (omk[j].sameSet(mark)) {close = false; break;}
|
2503 |
+
}
|
2504 |
+
if (close) mark.to = this.text.length;
|
2505 |
+
}
|
2506 |
+
},
|
2507 |
+
fixMarkStarts: function() {
|
2508 |
+
var mk = this.marked;
|
2509 |
+
if (!mk) return;
|
2510 |
+
for (var i = 0; i < mk.length; ++i)
|
2511 |
+
if (mk[i].from == null) mk[i].from = 0;
|
2512 |
+
},
|
2513 |
+
addMark: function(mark) {
|
2514 |
+
mark.attach(this);
|
2515 |
+
if (this.marked == null) this.marked = [];
|
2516 |
+
this.marked.push(mark);
|
2517 |
+
this.marked.sort(function(a, b){return (a.from || 0) - (b.from || 0);});
|
2518 |
+
},
|
2519 |
+
// Run the given mode's parser over a line, update the styles
|
2520 |
+
// array, which contains alternating fragments of text and CSS
|
2521 |
+
// classes.
|
2522 |
+
highlight: function(mode, state, tabSize) {
|
2523 |
+
var stream = new StringStream(this.text, tabSize), st = this.styles, pos = 0;
|
2524 |
+
var changed = false, curWord = st[0], prevWord;
|
2525 |
+
if (this.text == "" && mode.blankLine) mode.blankLine(state);
|
2526 |
+
while (!stream.eol()) {
|
2527 |
+
var style = mode.token(stream, state);
|
2528 |
+
var substr = this.text.slice(stream.start, stream.pos);
|
2529 |
+
stream.start = stream.pos;
|
2530 |
+
if (pos && st[pos-1] == style)
|
2531 |
+
st[pos-2] += substr;
|
2532 |
+
else if (substr) {
|
2533 |
+
if (!changed && (st[pos+1] != style || (pos && st[pos-2] != prevWord))) changed = true;
|
2534 |
+
st[pos++] = substr; st[pos++] = style;
|
2535 |
+
prevWord = curWord; curWord = st[pos];
|
2536 |
+
}
|
2537 |
+
// Give up when line is ridiculously long
|
2538 |
+
if (stream.pos > 5000) {
|
2539 |
+
st[pos++] = this.text.slice(stream.pos); st[pos++] = null;
|
2540 |
+
break;
|
2541 |
+
}
|
2542 |
+
}
|
2543 |
+
if (st.length != pos) {st.length = pos; changed = true;}
|
2544 |
+
if (pos && st[pos-2] != prevWord) changed = true;
|
2545 |
+
// Short lines with simple highlights return null, and are
|
2546 |
+
// counted as changed by the driver because they are likely to
|
2547 |
+
// highlight the same way in various contexts.
|
2548 |
+
return changed || (st.length < 5 && this.text.length < 10 ? null : false);
|
2549 |
+
},
|
2550 |
+
// Fetch the parser token for a given character. Useful for hacks
|
2551 |
+
// that want to inspect the mode state (say, for completion).
|
2552 |
+
getTokenAt: function(mode, state, ch) {
|
2553 |
+
var txt = this.text, stream = new StringStream(txt);
|
2554 |
+
while (stream.pos < ch && !stream.eol()) {
|
2555 |
+
stream.start = stream.pos;
|
2556 |
+
var style = mode.token(stream, state);
|
2557 |
+
}
|
2558 |
+
return {start: stream.start,
|
2559 |
+
end: stream.pos,
|
2560 |
+
string: stream.current(),
|
2561 |
+
className: style || null,
|
2562 |
+
state: state};
|
2563 |
+
},
|
2564 |
+
indentation: function(tabSize) {return countColumn(this.text, null, tabSize);},
|
2565 |
+
// Produces an HTML fragment for the line, taking selection,
|
2566 |
+
// marking, and highlighting into account.
|
2567 |
+
getHTML: function(makeTab, wrapAt, wrapId, wrapWBR) {
|
2568 |
+
var html = [], first = true, col = 0;
|
2569 |
+
function span_(text, style) {
|
2570 |
+
if (!text) return;
|
2571 |
+
// Work around a bug where, in some compat modes, IE ignores leading spaces
|
2572 |
+
if (first && ie && text.charAt(0) == " ") text = "\u00a0" + text.slice(1);
|
2573 |
+
first = false;
|
2574 |
+
if (text.indexOf("\t") == -1) {
|
2575 |
+
col += text.length;
|
2576 |
+
var escaped = htmlEscape(text);
|
2577 |
+
} else {
|
2578 |
+
var escaped = "";
|
2579 |
+
for (var pos = 0;;) {
|
2580 |
+
var idx = text.indexOf("\t", pos);
|
2581 |
+
if (idx == -1) {
|
2582 |
+
escaped += htmlEscape(text.slice(pos));
|
2583 |
+
col += text.length - pos;
|
2584 |
+
break;
|
2585 |
+
} else {
|
2586 |
+
col += idx - pos;
|
2587 |
+
var tab = makeTab(col);
|
2588 |
+
escaped += htmlEscape(text.slice(pos, idx)) + tab.html;
|
2589 |
+
col += tab.width;
|
2590 |
+
pos = idx + 1;
|
2591 |
+
}
|
2592 |
+
}
|
2593 |
+
}
|
2594 |
+
if (style) html.push('<span class="', style, '">', escaped, "</span>");
|
2595 |
+
else html.push(escaped);
|
2596 |
+
}
|
2597 |
+
var span = span_;
|
2598 |
+
if (wrapAt != null) {
|
2599 |
+
var outPos = 0, open = "<span id=\"" + wrapId + "\">";
|
2600 |
+
span = function(text, style) {
|
2601 |
+
var l = text.length;
|
2602 |
+
if (wrapAt >= outPos && wrapAt < outPos + l) {
|
2603 |
+
if (wrapAt > outPos) {
|
2604 |
+
span_(text.slice(0, wrapAt - outPos), style);
|
2605 |
+
// See comment at the definition of spanAffectsWrapping
|
2606 |
+
if (wrapWBR) html.push("<wbr>");
|
2607 |
+
}
|
2608 |
+
html.push(open);
|
2609 |
+
var cut = wrapAt - outPos;
|
2610 |
+
span_(opera ? text.slice(cut, cut + 1) : text.slice(cut), style);
|
2611 |
+
html.push("</span>");
|
2612 |
+
if (opera) span_(text.slice(cut + 1), style);
|
2613 |
+
wrapAt--;
|
2614 |
+
outPos += l;
|
2615 |
+
} else {
|
2616 |
+
outPos += l;
|
2617 |
+
span_(text, style);
|
2618 |
+
// Output empty wrapper when at end of line
|
2619 |
+
if (outPos == wrapAt && outPos == len) html.push(open + " </span>");
|
2620 |
+
// Stop outputting HTML when gone sufficiently far beyond measure
|
2621 |
+
else if (outPos > wrapAt + 10 && /\s/.test(text)) span = function(){};
|
2622 |
+
}
|
2623 |
+
}
|
2624 |
+
}
|
2625 |
+
|
2626 |
+
var st = this.styles, allText = this.text, marked = this.marked;
|
2627 |
+
var len = allText.length;
|
2628 |
+
function styleToClass(style) {
|
2629 |
+
if (!style) return null;
|
2630 |
+
return "cm-" + style.replace(/ +/g, " cm-");
|
2631 |
+
}
|
2632 |
+
|
2633 |
+
if (!allText && wrapAt == null) {
|
2634 |
+
span(" ");
|
2635 |
+
} else if (!marked || !marked.length) {
|
2636 |
+
for (var i = 0, ch = 0; ch < len; i+=2) {
|
2637 |
+
var str = st[i], style = st[i+1], l = str.length;
|
2638 |
+
if (ch + l > len) str = str.slice(0, len - ch);
|
2639 |
+
ch += l;
|
2640 |
+
span(str, styleToClass(style));
|
2641 |
+
}
|
2642 |
+
} else {
|
2643 |
+
var pos = 0, i = 0, text = "", style, sg = 0;
|
2644 |
+
var nextChange = marked[0].from || 0, marks = [], markpos = 0;
|
2645 |
+
function advanceMarks() {
|
2646 |
+
var m;
|
2647 |
+
while (markpos < marked.length &&
|
2648 |
+
((m = marked[markpos]).from == pos || m.from == null)) {
|
2649 |
+
if (m.style != null) marks.push(m);
|
2650 |
+
++markpos;
|
2651 |
+
}
|
2652 |
+
nextChange = markpos < marked.length ? marked[markpos].from : Infinity;
|
2653 |
+
for (var i = 0; i < marks.length; ++i) {
|
2654 |
+
var to = marks[i].to || Infinity;
|
2655 |
+
if (to == pos) marks.splice(i--, 1);
|
2656 |
+
else nextChange = Math.min(to, nextChange);
|
2657 |
+
}
|
2658 |
+
}
|
2659 |
+
var m = 0;
|
2660 |
+
while (pos < len) {
|
2661 |
+
if (nextChange == pos) advanceMarks();
|
2662 |
+
var upto = Math.min(len, nextChange);
|
2663 |
+
while (true) {
|
2664 |
+
if (text) {
|
2665 |
+
var end = pos + text.length;
|
2666 |
+
var appliedStyle = style;
|
2667 |
+
for (var j = 0; j < marks.length; ++j)
|
2668 |
+
appliedStyle = (appliedStyle ? appliedStyle + " " : "") + marks[j].style;
|
2669 |
+
span(end > upto ? text.slice(0, upto - pos) : text, appliedStyle);
|
2670 |
+
if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;}
|
2671 |
+
pos = end;
|
2672 |
+
}
|
2673 |
+
text = st[i++]; style = styleToClass(st[i++]);
|
2674 |
+
}
|
2675 |
+
}
|
2676 |
+
}
|
2677 |
+
return html.join("");
|
2678 |
+
},
|
2679 |
+
cleanUp: function() {
|
2680 |
+
this.parent = null;
|
2681 |
+
if (this.marked)
|
2682 |
+
for (var i = 0, e = this.marked.length; i < e; ++i) this.marked[i].detach(this);
|
2683 |
+
}
|
2684 |
+
};
|
2685 |
+
// Utility used by replace and split above
|
2686 |
+
function copyStyles(from, to, source, dest) {
|
2687 |
+
for (var i = 0, pos = 0, state = 0; pos < to; i+=2) {
|
2688 |
+
var part = source[i], end = pos + part.length;
|
2689 |
+
if (state == 0) {
|
2690 |
+
if (end > from) dest.push(part.slice(from - pos, Math.min(part.length, to - pos)), source[i+1]);
|
2691 |
+
if (end >= from) state = 1;
|
2692 |
+
} else if (state == 1) {
|
2693 |
+
if (end > to) dest.push(part.slice(0, to - pos), source[i+1]);
|
2694 |
+
else dest.push(part, source[i+1]);
|
2695 |
+
}
|
2696 |
+
pos = end;
|
2697 |
+
}
|
2698 |
+
}
|
2699 |
+
|
2700 |
+
// Data structure that holds the sequence of lines.
|
2701 |
+
function LeafChunk(lines) {
|
2702 |
+
this.lines = lines;
|
2703 |
+
this.parent = null;
|
2704 |
+
for (var i = 0, e = lines.length, height = 0; i < e; ++i) {
|
2705 |
+
lines[i].parent = this;
|
2706 |
+
height += lines[i].height;
|
2707 |
+
}
|
2708 |
+
this.height = height;
|
2709 |
+
}
|
2710 |
+
LeafChunk.prototype = {
|
2711 |
+
chunkSize: function() { return this.lines.length; },
|
2712 |
+
remove: function(at, n, callbacks) {
|
2713 |
+
for (var i = at, e = at + n; i < e; ++i) {
|
2714 |
+
var line = this.lines[i];
|
2715 |
+
this.height -= line.height;
|
2716 |
+
line.cleanUp();
|
2717 |
+
if (line.handlers)
|
2718 |
+
for (var j = 0; j < line.handlers.length; ++j) callbacks.push(line.handlers[j]);
|
2719 |
+
}
|
2720 |
+
this.lines.splice(at, n);
|
2721 |
+
},
|
2722 |
+
collapse: function(lines) {
|
2723 |
+
lines.splice.apply(lines, [lines.length, 0].concat(this.lines));
|
2724 |
+
},
|
2725 |
+
insertHeight: function(at, lines, height) {
|
2726 |
+
this.height += height;
|
2727 |
+
this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));
|
2728 |
+
for (var i = 0, e = lines.length; i < e; ++i) lines[i].parent = this;
|
2729 |
+
},
|
2730 |
+
iterN: function(at, n, op) {
|
2731 |
+
for (var e = at + n; at < e; ++at)
|
2732 |
+
if (op(this.lines[at])) return true;
|
2733 |
+
}
|
2734 |
+
};
|
2735 |
+
function BranchChunk(children) {
|
2736 |
+
this.children = children;
|
2737 |
+
var size = 0, height = 0;
|
2738 |
+
for (var i = 0, e = children.length; i < e; ++i) {
|
2739 |
+
var ch = children[i];
|
2740 |
+
size += ch.chunkSize(); height += ch.height;
|
2741 |
+
ch.parent = this;
|
2742 |
+
}
|
2743 |
+
this.size = size;
|
2744 |
+
this.height = height;
|
2745 |
+
this.parent = null;
|
2746 |
+
}
|
2747 |
+
BranchChunk.prototype = {
|
2748 |
+
chunkSize: function() { return this.size; },
|
2749 |
+
remove: function(at, n, callbacks) {
|
2750 |
+
this.size -= n;
|
2751 |
+
for (var i = 0; i < this.children.length; ++i) {
|
2752 |
+
var child = this.children[i], sz = child.chunkSize();
|
2753 |
+
if (at < sz) {
|
2754 |
+
var rm = Math.min(n, sz - at), oldHeight = child.height;
|
2755 |
+
child.remove(at, rm, callbacks);
|
2756 |
+
this.height -= oldHeight - child.height;
|
2757 |
+
if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }
|
2758 |
+
if ((n -= rm) == 0) break;
|
2759 |
+
at = 0;
|
2760 |
+
} else at -= sz;
|
2761 |
+
}
|
2762 |
+
if (this.size - n < 25) {
|
2763 |
+
var lines = [];
|
2764 |
+
this.collapse(lines);
|
2765 |
+
this.children = [new LeafChunk(lines)];
|
2766 |
+
this.children[0].parent = this;
|
2767 |
+
}
|
2768 |
+
},
|
2769 |
+
collapse: function(lines) {
|
2770 |
+
for (var i = 0, e = this.children.length; i < e; ++i) this.children[i].collapse(lines);
|
2771 |
+
},
|
2772 |
+
insert: function(at, lines) {
|
2773 |
+
var height = 0;
|
2774 |
+
for (var i = 0, e = lines.length; i < e; ++i) height += lines[i].height;
|
2775 |
+
this.insertHeight(at, lines, height);
|
2776 |
+
},
|
2777 |
+
insertHeight: function(at, lines, height) {
|
2778 |
+
this.size += lines.length;
|
2779 |
+
this.height += height;
|
2780 |
+
for (var i = 0, e = this.children.length; i < e; ++i) {
|
2781 |
+
var child = this.children[i], sz = child.chunkSize();
|
2782 |
+
if (at <= sz) {
|
2783 |
+
child.insertHeight(at, lines, height);
|
2784 |
+
if (child.lines && child.lines.length > 50) {
|
2785 |
+
while (child.lines.length > 50) {
|
2786 |
+
var spilled = child.lines.splice(child.lines.length - 25, 25);
|
2787 |
+
var newleaf = new LeafChunk(spilled);
|
2788 |
+
child.height -= newleaf.height;
|
2789 |
+
this.children.splice(i + 1, 0, newleaf);
|
2790 |
+
newleaf.parent = this;
|
2791 |
+
}
|
2792 |
+
this.maybeSpill();
|
2793 |
+
}
|
2794 |
+
break;
|
2795 |
+
}
|
2796 |
+
at -= sz;
|
2797 |
+
}
|
2798 |
+
},
|
2799 |
+
maybeSpill: function() {
|
2800 |
+
if (this.children.length <= 10) return;
|
2801 |
+
var me = this;
|
2802 |
+
do {
|
2803 |
+
var spilled = me.children.splice(me.children.length - 5, 5);
|
2804 |
+
var sibling = new BranchChunk(spilled);
|
2805 |
+
if (!me.parent) { // Become the parent node
|
2806 |
+
var copy = new BranchChunk(me.children);
|
2807 |
+
copy.parent = me;
|
2808 |
+
me.children = [copy, sibling];
|
2809 |
+
me = copy;
|
2810 |
+
} else {
|
2811 |
+
me.size -= sibling.size;
|
2812 |
+
me.height -= sibling.height;
|
2813 |
+
var myIndex = indexOf(me.parent.children, me);
|
2814 |
+
me.parent.children.splice(myIndex + 1, 0, sibling);
|
2815 |
+
}
|
2816 |
+
sibling.parent = me.parent;
|
2817 |
+
} while (me.children.length > 10);
|
2818 |
+
me.parent.maybeSpill();
|
2819 |
+
},
|
2820 |
+
iter: function(from, to, op) { this.iterN(from, to - from, op); },
|
2821 |
+
iterN: function(at, n, op) {
|
2822 |
+
for (var i = 0, e = this.children.length; i < e; ++i) {
|
2823 |
+
var child = this.children[i], sz = child.chunkSize();
|
2824 |
+
if (at < sz) {
|
2825 |
+
var used = Math.min(n, sz - at);
|
2826 |
+
if (child.iterN(at, used, op)) return true;
|
2827 |
+
if ((n -= used) == 0) break;
|
2828 |
+
at = 0;
|
2829 |
+
} else at -= sz;
|
2830 |
+
}
|
2831 |
+
}
|
2832 |
+
};
|
2833 |
+
|
2834 |
+
function getLineAt(chunk, n) {
|
2835 |
+
while (!chunk.lines) {
|
2836 |
+
for (var i = 0;; ++i) {
|
2837 |
+
var child = chunk.children[i], sz = child.chunkSize();
|
2838 |
+
if (n < sz) { chunk = child; break; }
|
2839 |
+
n -= sz;
|
2840 |
+
}
|
2841 |
+
}
|
2842 |
+
return chunk.lines[n];
|
2843 |
+
}
|
2844 |
+
function lineNo(line) {
|
2845 |
+
if (line.parent == null) return null;
|
2846 |
+
var cur = line.parent, no = indexOf(cur.lines, line);
|
2847 |
+
for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {
|
2848 |
+
for (var i = 0, e = chunk.children.length; ; ++i) {
|
2849 |
+
if (chunk.children[i] == cur) break;
|
2850 |
+
no += chunk.children[i].chunkSize();
|
2851 |
+
}
|
2852 |
+
}
|
2853 |
+
return no;
|
2854 |
+
}
|
2855 |
+
function lineAtHeight(chunk, h) {
|
2856 |
+
var n = 0;
|
2857 |
+
outer: do {
|
2858 |
+
for (var i = 0, e = chunk.children.length; i < e; ++i) {
|
2859 |
+
var child = chunk.children[i], ch = child.height;
|
2860 |
+
if (h < ch) { chunk = child; continue outer; }
|
2861 |
+
h -= ch;
|
2862 |
+
n += child.chunkSize();
|
2863 |
+
}
|
2864 |
+
return n;
|
2865 |
+
} while (!chunk.lines);
|
2866 |
+
for (var i = 0, e = chunk.lines.length; i < e; ++i) {
|
2867 |
+
var line = chunk.lines[i], lh = line.height;
|
2868 |
+
if (h < lh) break;
|
2869 |
+
h -= lh;
|
2870 |
+
}
|
2871 |
+
return n + i;
|
2872 |
+
}
|
2873 |
+
function heightAtLine(chunk, n) {
|
2874 |
+
var h = 0;
|
2875 |
+
outer: do {
|
2876 |
+
for (var i = 0, e = chunk.children.length; i < e; ++i) {
|
2877 |
+
var child = chunk.children[i], sz = child.chunkSize();
|
2878 |
+
if (n < sz) { chunk = child; continue outer; }
|
2879 |
+
n -= sz;
|
2880 |
+
h += child.height;
|
2881 |
+
}
|
2882 |
+
return h;
|
2883 |
+
} while (!chunk.lines);
|
2884 |
+
for (var i = 0; i < n; ++i) h += chunk.lines[i].height;
|
2885 |
+
return h;
|
2886 |
+
}
|
2887 |
+
|
2888 |
+
// The history object 'chunks' changes that are made close together
|
2889 |
+
// and at almost the same time into bigger undoable units.
|
2890 |
+
function History() {
|
2891 |
+
this.time = 0;
|
2892 |
+
this.done = []; this.undone = [];
|
2893 |
+
this.compound = 0;
|
2894 |
+
this.closed = false;
|
2895 |
+
}
|
2896 |
+
History.prototype = {
|
2897 |
+
addChange: function(start, added, old) {
|
2898 |
+
this.undone.length = 0;
|
2899 |
+
var time = +new Date, cur = this.done[this.done.length - 1], last = cur && cur[cur.length - 1];
|
2900 |
+
var dtime = time - this.time;
|
2901 |
+
|
2902 |
+
if (this.compound && cur && !this.closed) {
|
2903 |
+
cur.push({start: start, added: added, old: old});
|
2904 |
+
} else if (dtime > 400 || !last || this.closed ||
|
2905 |
+
last.start > start + old.length || last.start + last.added < start) {
|
2906 |
+
this.done.push([{start: start, added: added, old: old}]);
|
2907 |
+
this.closed = false;
|
2908 |
+
} else {
|
2909 |
+
var startBefore = Math.max(0, last.start - start),
|
2910 |
+
endAfter = Math.max(0, (start + old.length) - (last.start + last.added));
|
2911 |
+
for (var i = startBefore; i > 0; --i) last.old.unshift(old[i - 1]);
|
2912 |
+
for (var i = endAfter; i > 0; --i) last.old.push(old[old.length - i]);
|
2913 |
+
if (startBefore) last.start = start;
|
2914 |
+
last.added += added - (old.length - startBefore - endAfter);
|
2915 |
+
}
|
2916 |
+
this.time = time;
|
2917 |
+
},
|
2918 |
+
startCompound: function() {
|
2919 |
+
if (!this.compound++) this.closed = true;
|
2920 |
+
},
|
2921 |
+
endCompound: function() {
|
2922 |
+
if (!--this.compound) this.closed = true;
|
2923 |
+
}
|
2924 |
+
};
|
2925 |
+
|
2926 |
+
function stopMethod() {e_stop(this);}
|
2927 |
+
// Ensure an event has a stop method.
|
2928 |
+
function addStop(event) {
|
2929 |
+
if (!event.stop) event.stop = stopMethod;
|
2930 |
+
return event;
|
2931 |
+
}
|
2932 |
+
|
2933 |
+
function e_preventDefault(e) {
|
2934 |
+
if (e.preventDefault) e.preventDefault();
|
2935 |
+
else e.returnValue = false;
|
2936 |
+
}
|
2937 |
+
function e_stopPropagation(e) {
|
2938 |
+
if (e.stopPropagation) e.stopPropagation();
|
2939 |
+
else e.cancelBubble = true;
|
2940 |
+
}
|
2941 |
+
function e_stop(e) {e_preventDefault(e); e_stopPropagation(e);}
|
2942 |
+
CodeMirror.e_stop = e_stop;
|
2943 |
+
CodeMirror.e_preventDefault = e_preventDefault;
|
2944 |
+
CodeMirror.e_stopPropagation = e_stopPropagation;
|
2945 |
+
|
2946 |
+
function e_target(e) {return e.target || e.srcElement;}
|
2947 |
+
function e_button(e) {
|
2948 |
+
if (e.which) return e.which;
|
2949 |
+
else if (e.button & 1) return 1;
|
2950 |
+
else if (e.button & 2) return 3;
|
2951 |
+
else if (e.button & 4) return 2;
|
2952 |
+
}
|
2953 |
+
|
2954 |
+
// Allow 3rd-party code to override event properties by adding an override
|
2955 |
+
// object to an event object.
|
2956 |
+
function e_prop(e, prop) {
|
2957 |
+
var overridden = e.override && e.override.hasOwnProperty(prop);
|
2958 |
+
return overridden ? e.override[prop] : e[prop];
|
2959 |
+
}
|
2960 |
+
|
2961 |
+
// Event handler registration. If disconnect is true, it'll return a
|
2962 |
+
// function that unregisters the handler.
|
2963 |
+
function connect(node, type, handler, disconnect) {
|
2964 |
+
if (typeof node.addEventListener == "function") {
|
2965 |
+
node.addEventListener(type, handler, false);
|
2966 |
+
if (disconnect) return function() {node.removeEventListener(type, handler, false);};
|
2967 |
+
} else {
|
2968 |
+
var wrapHandler = function(event) {handler(event || window.event);};
|
2969 |
+
node.attachEvent("on" + type, wrapHandler);
|
2970 |
+
if (disconnect) return function() {node.detachEvent("on" + type, wrapHandler);};
|
2971 |
+
}
|
2972 |
+
}
|
2973 |
+
CodeMirror.connect = connect;
|
2974 |
+
|
2975 |
+
function Delayed() {this.id = null;}
|
2976 |
+
Delayed.prototype = {set: function(ms, f) {clearTimeout(this.id); this.id = setTimeout(f, ms);}};
|
2977 |
+
|
2978 |
+
var Pass = CodeMirror.Pass = {toString: function(){return "CodeMirror.Pass";}};
|
2979 |
+
|
2980 |
+
var gecko = /gecko\/\d{7}/i.test(navigator.userAgent);
|
2981 |
+
var ie = /MSIE \d/.test(navigator.userAgent);
|
2982 |
+
var ie_lt8 = /MSIE [1-7]\b/.test(navigator.userAgent);
|
2983 |
+
var ie_lt9 = /MSIE [1-8]\b/.test(navigator.userAgent);
|
2984 |
+
var quirksMode = ie && document.documentMode == 5;
|
2985 |
+
var webkit = /WebKit\//.test(navigator.userAgent);
|
2986 |
+
var chrome = /Chrome\//.test(navigator.userAgent);
|
2987 |
+
var opera = /Opera\//.test(navigator.userAgent);
|
2988 |
+
var safari = /Apple Computer/.test(navigator.vendor);
|
2989 |
+
var khtml = /KHTML\//.test(navigator.userAgent);
|
2990 |
+
var mac_geLion = /Mac OS X 10\D([7-9]|\d\d)\D/.test(navigator.userAgent);
|
2991 |
+
|
2992 |
+
// Detect drag-and-drop
|
2993 |
+
var dragAndDrop = function() {
|
2994 |
+
// There is *some* kind of drag-and-drop support in IE6-8, but I
|
2995 |
+
// couldn't get it to work yet.
|
2996 |
+
if (ie_lt9) return false;
|
2997 |
+
var div = document.createElement('div');
|
2998 |
+
return "draggable" in div || "dragDrop" in div;
|
2999 |
+
}();
|
3000 |
+
|
3001 |
+
// Feature-detect whether newlines in textareas are converted to \r\n
|
3002 |
+
var lineSep = function () {
|
3003 |
+
var te = document.createElement("textarea");
|
3004 |
+
te.value = "foo\nbar";
|
3005 |
+
if (te.value.indexOf("\r") > -1) return "\r\n";
|
3006 |
+
return "\n";
|
3007 |
+
}();
|
3008 |
+
|
3009 |
+
// For a reason I have yet to figure out, some browsers disallow
|
3010 |
+
// word wrapping between certain characters *only* if a new inline
|
3011 |
+
// element is started between them. This makes it hard to reliably
|
3012 |
+
// measure the position of things, since that requires inserting an
|
3013 |
+
// extra span. This terribly fragile set of regexps matches the
|
3014 |
+
// character combinations that suffer from this phenomenon on the
|
3015 |
+
// various browsers.
|
3016 |
+
var spanAffectsWrapping = /^$/; // Won't match any two-character string
|
3017 |
+
if (gecko) spanAffectsWrapping = /$'/;
|
3018 |
+
else if (safari) spanAffectsWrapping = /\-[^ \-?]|\?[^ !'\"\),.\-\/:;\?\]\}]/;
|
3019 |
+
else if (chrome) spanAffectsWrapping = /\-[^ \-\.?]|\?[^ \-\.?\]\}:;!'\"\),\/]|[\.!\"#&%\)*+,:;=>\]|\}~][\(\{\[<]|\$'/;
|
3020 |
+
|
3021 |
+
// Counts the column offset in a string, taking tabs into account.
|
3022 |
+
// Used mostly to find indentation.
|
3023 |
+
function countColumn(string, end, tabSize) {
|
3024 |
+
if (end == null) {
|
3025 |
+
end = string.search(/[^\s\u00a0]/);
|
3026 |
+
if (end == -1) end = string.length;
|
3027 |
+
}
|
3028 |
+
for (var i = 0, n = 0; i < end; ++i) {
|
3029 |
+
if (string.charAt(i) == "\t") n += tabSize - (n % tabSize);
|
3030 |
+
else ++n;
|
3031 |
+
}
|
3032 |
+
return n;
|
3033 |
+
}
|
3034 |
+
|
3035 |
+
function computedStyle(elt) {
|
3036 |
+
if (elt.currentStyle) return elt.currentStyle;
|
3037 |
+
return window.getComputedStyle(elt, null);
|
3038 |
+
}
|
3039 |
+
|
3040 |
+
// Find the position of an element by following the offsetParent chain.
|
3041 |
+
// If screen==true, it returns screen (rather than page) coordinates.
|
3042 |
+
function eltOffset(node, screen) {
|
3043 |
+
var bod = node.ownerDocument.body;
|
3044 |
+
var x = 0, y = 0, skipBody = false;
|
3045 |
+
for (var n = node; n; n = n.offsetParent) {
|
3046 |
+
var ol = n.offsetLeft, ot = n.offsetTop;
|
3047 |
+
// Firefox reports weird inverted offsets when the body has a border.
|
3048 |
+
if (n == bod) { x += Math.abs(ol); y += Math.abs(ot); }
|
3049 |
+
else { x += ol, y += ot; }
|
3050 |
+
if (screen && computedStyle(n).position == "fixed")
|
3051 |
+
skipBody = true;
|
3052 |
+
}
|
3053 |
+
var e = screen && !skipBody ? null : bod;
|
3054 |
+
for (var n = node.parentNode; n != e; n = n.parentNode)
|
3055 |
+
if (n.scrollLeft != null) { x -= n.scrollLeft; y -= n.scrollTop;}
|
3056 |
+
return {left: x, top: y};
|
3057 |
+
}
|
3058 |
+
// Use the faster and saner getBoundingClientRect method when possible.
|
3059 |
+
if (document.documentElement.getBoundingClientRect != null) eltOffset = function(node, screen) {
|
3060 |
+
// Take the parts of bounding client rect that we are interested in so we are able to edit if need be,
|
3061 |
+
// since the returned value cannot be changed externally (they are kept in sync as the element moves within the page)
|
3062 |
+
try { var box = node.getBoundingClientRect(); box = { top: box.top, left: box.left }; }
|
3063 |
+
catch(e) { box = {top: 0, left: 0}; }
|
3064 |
+
if (!screen) {
|
3065 |
+
// Get the toplevel scroll, working around browser differences.
|
3066 |
+
if (window.pageYOffset == null) {
|
3067 |
+
var t = document.documentElement || document.body.parentNode;
|
3068 |
+
if (t.scrollTop == null) t = document.body;
|
3069 |
+
box.top += t.scrollTop; box.left += t.scrollLeft;
|
3070 |
+
} else {
|
3071 |
+
box.top += window.pageYOffset; box.left += window.pageXOffset;
|
3072 |
+
}
|
3073 |
+
}
|
3074 |
+
return box;
|
3075 |
+
};
|
3076 |
+
|
3077 |
+
// Get a node's text content.
|
3078 |
+
function eltText(node) {
|
3079 |
+
return node.textContent || node.innerText || node.nodeValue || "";
|
3080 |
+
}
|
3081 |
+
function selectInput(node) {
|
3082 |
+
if (ios) { // Mobile Safari apparently has a bug where select() is broken.
|
3083 |
+
node.selectionStart = 0;
|
3084 |
+
node.selectionEnd = node.value.length;
|
3085 |
+
} else node.select();
|
3086 |
+
}
|
3087 |
+
|
3088 |
+
// Operations on {line, ch} objects.
|
3089 |
+
function posEq(a, b) {return a.line == b.line && a.ch == b.ch;}
|
3090 |
+
function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);}
|
3091 |
+
function copyPos(x) {return {line: x.line, ch: x.ch};}
|
3092 |
+
|
3093 |
+
var escapeElement = document.createElement("pre");
|
3094 |
+
function htmlEscape(str) {
|
3095 |
+
escapeElement.textContent = str;
|
3096 |
+
return escapeElement.innerHTML;
|
3097 |
+
}
|
3098 |
+
// Recent (late 2011) Opera betas insert bogus newlines at the start
|
3099 |
+
// of the textContent, so we strip those.
|
3100 |
+
if (htmlEscape("a") == "\na") {
|
3101 |
+
htmlEscape = function(str) {
|
3102 |
+
escapeElement.textContent = str;
|
3103 |
+
return escapeElement.innerHTML.slice(1);
|
3104 |
+
};
|
3105 |
+
// Some IEs don't preserve tabs through innerHTML
|
3106 |
+
} else if (htmlEscape("\t") != "\t") {
|
3107 |
+
htmlEscape = function(str) {
|
3108 |
+
escapeElement.innerHTML = "";
|
3109 |
+
escapeElement.appendChild(document.createTextNode(str));
|
3110 |
+
return escapeElement.innerHTML;
|
3111 |
+
};
|
3112 |
+
}
|
3113 |
+
CodeMirror.htmlEscape = htmlEscape;
|
3114 |
+
|
3115 |
+
// Used to position the cursor after an undo/redo by finding the
|
3116 |
+
// last edited character.
|
3117 |
+
function editEnd(from, to) {
|
3118 |
+
if (!to) return 0;
|
3119 |
+
if (!from) return to.length;
|
3120 |
+
for (var i = from.length, j = to.length; i >= 0 && j >= 0; --i, --j)
|
3121 |
+
if (from.charAt(i) != to.charAt(j)) break;
|
3122 |
+
return j + 1;
|
3123 |
+
}
|
3124 |
+
|
3125 |
+
function indexOf(collection, elt) {
|
3126 |
+
if (collection.indexOf) return collection.indexOf(elt);
|
3127 |
+
for (var i = 0, e = collection.length; i < e; ++i)
|
3128 |
+
if (collection[i] == elt) return i;
|
3129 |
+
return -1;
|
3130 |
+
}
|
3131 |
+
function isWordChar(ch) {
|
3132 |
+
return /\w/.test(ch) || ch.toUpperCase() != ch.toLowerCase();
|
3133 |
+
}
|
3134 |
+
|
3135 |
+
// See if "".split is the broken IE version, if so, provide an
|
3136 |
+
// alternative way to split lines.
|
3137 |
+
var splitLines = "\n\nb".split(/\n/).length != 3 ? function(string) {
|
3138 |
+
var pos = 0, nl, result = [];
|
3139 |
+
while ((nl = string.indexOf("\n", pos)) > -1) {
|
3140 |
+
result.push(string.slice(pos, string.charAt(nl-1) == "\r" ? nl - 1 : nl));
|
3141 |
+
pos = nl + 1;
|
3142 |
+
}
|
3143 |
+
result.push(string.slice(pos));
|
3144 |
+
return result;
|
3145 |
+
} : function(string){return string.split(/\r?\n/);};
|
3146 |
+
CodeMirror.splitLines = splitLines;
|
3147 |
+
|
3148 |
+
var hasSelection = window.getSelection ? function(te) {
|
3149 |
+
try { return te.selectionStart != te.selectionEnd; }
|
3150 |
+
catch(e) { return false; }
|
3151 |
+
} : function(te) {
|
3152 |
+
try {var range = te.ownerDocument.selection.createRange();}
|
3153 |
+
catch(e) {}
|
3154 |
+
if (!range || range.parentElement() != te) return false;
|
3155 |
+
return range.compareEndPoints("StartToEnd", range) != 0;
|
3156 |
+
};
|
3157 |
+
|
3158 |
+
CodeMirror.defineMode("null", function() {
|
3159 |
+
return {token: function(stream) {stream.skipToEnd();}};
|
3160 |
+
});
|
3161 |
+
CodeMirror.defineMIME("text/plain", "null");
|
3162 |
+
|
3163 |
+
var keyNames = {3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
|
3164 |
+
19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",
|
3165 |
+
36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",
|
3166 |
+
46: "Delete", 59: ";", 91: "Mod", 92: "Mod", 93: "Mod", 109: "-", 107: "=", 127: "Delete",
|
3167 |
+
186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",
|
3168 |
+
221: "]", 222: "'", 63276: "PageUp", 63277: "PageDown", 63275: "End", 63273: "Home",
|
3169 |
+
63234: "Left", 63232: "Up", 63235: "Right", 63233: "Down", 63302: "Insert", 63272: "Delete"};
|
3170 |
+
CodeMirror.keyNames = keyNames;
|
3171 |
+
(function() {
|
3172 |
+
// Number keys
|
3173 |
+
for (var i = 0; i < 10; i++) keyNames[i + 48] = String(i);
|
3174 |
+
// Alphabetic keys
|
3175 |
+
for (var i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i);
|
3176 |
+
// Function keys
|
3177 |
+
for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i;
|
3178 |
+
})();
|
3179 |
+
|
3180 |
+
return CodeMirror;
|
3181 |
+
})();
|
js/layout/css.js
CHANGED
@@ -1,124 +1,124 @@
|
|
1 |
-
CodeMirror.defineMode("css", function(config) {
|
2 |
-
var indentUnit = config.indentUnit, type;
|
3 |
-
function ret(style, tp) {type = tp; return style;}
|
4 |
-
|
5 |
-
function tokenBase(stream, state) {
|
6 |
-
var ch = stream.next();
|
7 |
-
if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());}
|
8 |
-
else if (ch == "/" && stream.eat("*")) {
|
9 |
-
state.tokenize = tokenCComment;
|
10 |
-
return tokenCComment(stream, state);
|
11 |
-
}
|
12 |
-
else if (ch == "<" && stream.eat("!")) {
|
13 |
-
state.tokenize = tokenSGMLComment;
|
14 |
-
return tokenSGMLComment(stream, state);
|
15 |
-
}
|
16 |
-
else if (ch == "=") ret(null, "compare");
|
17 |
-
else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
|
18 |
-
else if (ch == "\"" || ch == "'") {
|
19 |
-
state.tokenize = tokenString(ch);
|
20 |
-
return state.tokenize(stream, state);
|
21 |
-
}
|
22 |
-
else if (ch == "#") {
|
23 |
-
stream.eatWhile(/[\w\\\-]/);
|
24 |
-
return ret("atom", "hash");
|
25 |
-
}
|
26 |
-
else if (ch == "!") {
|
27 |
-
stream.match(/^\s*\w*/);
|
28 |
-
return ret("keyword", "important");
|
29 |
-
}
|
30 |
-
else if (/\d/.test(ch)) {
|
31 |
-
stream.eatWhile(/[\w.%]/);
|
32 |
-
return ret("number", "unit");
|
33 |
-
}
|
34 |
-
else if (/[,.+>*\/]/.test(ch)) {
|
35 |
-
return ret(null, "select-op");
|
36 |
-
}
|
37 |
-
else if (/[;{}:\[\]]/.test(ch)) {
|
38 |
-
return ret(null, ch);
|
39 |
-
}
|
40 |
-
else {
|
41 |
-
stream.eatWhile(/[\w\\\-]/);
|
42 |
-
return ret("variable", "variable");
|
43 |
-
}
|
44 |
-
}
|
45 |
-
|
46 |
-
function tokenCComment(stream, state) {
|
47 |
-
var maybeEnd = false, ch;
|
48 |
-
while ((ch = stream.next()) != null) {
|
49 |
-
if (maybeEnd && ch == "/") {
|
50 |
-
state.tokenize = tokenBase;
|
51 |
-
break;
|
52 |
-
}
|
53 |
-
maybeEnd = (ch == "*");
|
54 |
-
}
|
55 |
-
return ret("comment", "comment");
|
56 |
-
}
|
57 |
-
|
58 |
-
function tokenSGMLComment(stream, state) {
|
59 |
-
var dashes = 0, ch;
|
60 |
-
while ((ch = stream.next()) != null) {
|
61 |
-
if (dashes >= 2 && ch == ">") {
|
62 |
-
state.tokenize = tokenBase;
|
63 |
-
break;
|
64 |
-
}
|
65 |
-
dashes = (ch == "-") ? dashes + 1 : 0;
|
66 |
-
}
|
67 |
-
return ret("comment", "comment");
|
68 |
-
}
|
69 |
-
|
70 |
-
function tokenString(quote) {
|
71 |
-
return function(stream, state) {
|
72 |
-
var escaped = false, ch;
|
73 |
-
while ((ch = stream.next()) != null) {
|
74 |
-
if (ch == quote && !escaped)
|
75 |
-
break;
|
76 |
-
escaped = !escaped && ch == "\\";
|
77 |
-
}
|
78 |
-
if (!escaped) state.tokenize = tokenBase;
|
79 |
-
return ret("string", "string");
|
80 |
-
};
|
81 |
-
}
|
82 |
-
|
83 |
-
return {
|
84 |
-
startState: function(base) {
|
85 |
-
return {tokenize: tokenBase,
|
86 |
-
baseIndent: base || 0,
|
87 |
-
stack: []};
|
88 |
-
},
|
89 |
-
|
90 |
-
token: function(stream, state) {
|
91 |
-
if (stream.eatSpace()) return null;
|
92 |
-
var style = state.tokenize(stream, state);
|
93 |
-
|
94 |
-
var context = state.stack[state.stack.length-1];
|
95 |
-
if (type == "hash" && context != "rule") style = "string-2";
|
96 |
-
else if (style == "variable") {
|
97 |
-
if (context == "rule") style = "number";
|
98 |
-
else if (!context || context == "@media{") style = "tag";
|
99 |
-
}
|
100 |
-
|
101 |
-
if (context == "rule" && /^[\{\};]$/.test(type))
|
102 |
-
state.stack.pop();
|
103 |
-
if (type == "{") {
|
104 |
-
if (context == "@media") state.stack[state.stack.length-1] = "@media{";
|
105 |
-
else state.stack.push("{");
|
106 |
-
}
|
107 |
-
else if (type == "}") state.stack.pop();
|
108 |
-
else if (type == "@media") state.stack.push("@media");
|
109 |
-
else if (context == "{" && type != "comment") state.stack.push("rule");
|
110 |
-
return style;
|
111 |
-
},
|
112 |
-
|
113 |
-
indent: function(state, textAfter) {
|
114 |
-
var n = state.stack.length;
|
115 |
-
if (/^\}/.test(textAfter))
|
116 |
-
n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1;
|
117 |
-
return state.baseIndent + n * indentUnit;
|
118 |
-
},
|
119 |
-
|
120 |
-
electricChars: "}"
|
121 |
-
};
|
122 |
-
});
|
123 |
-
|
124 |
-
CodeMirror.defineMIME("text/css", "css");
|
1 |
+
CodeMirror.defineMode("css", function(config) {
|
2 |
+
var indentUnit = config.indentUnit, type;
|
3 |
+
function ret(style, tp) {type = tp; return style;}
|
4 |
+
|
5 |
+
function tokenBase(stream, state) {
|
6 |
+
var ch = stream.next();
|
7 |
+
if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());}
|
8 |
+
else if (ch == "/" && stream.eat("*")) {
|
9 |
+
state.tokenize = tokenCComment;
|
10 |
+
return tokenCComment(stream, state);
|
11 |
+
}
|
12 |
+
else if (ch == "<" && stream.eat("!")) {
|
13 |
+
state.tokenize = tokenSGMLComment;
|
14 |
+
return tokenSGMLComment(stream, state);
|
15 |
+
}
|
16 |
+
else if (ch == "=") ret(null, "compare");
|
17 |
+
else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
|
18 |
+
else if (ch == "\"" || ch == "'") {
|
19 |
+
state.tokenize = tokenString(ch);
|
20 |
+
return state.tokenize(stream, state);
|
21 |
+
}
|
22 |
+
else if (ch == "#") {
|
23 |
+
stream.eatWhile(/[\w\\\-]/);
|
24 |
+
return ret("atom", "hash");
|
25 |
+
}
|
26 |
+
else if (ch == "!") {
|
27 |
+
stream.match(/^\s*\w*/);
|
28 |
+
return ret("keyword", "important");
|
29 |
+
}
|
30 |
+
else if (/\d/.test(ch)) {
|
31 |
+
stream.eatWhile(/[\w.%]/);
|
32 |
+
return ret("number", "unit");
|
33 |
+
}
|
34 |
+
else if (/[,.+>*\/]/.test(ch)) {
|
35 |
+
return ret(null, "select-op");
|
36 |
+
}
|
37 |
+
else if (/[;{}:\[\]]/.test(ch)) {
|
38 |
+
return ret(null, ch);
|
39 |
+
}
|
40 |
+
else {
|
41 |
+
stream.eatWhile(/[\w\\\-]/);
|
42 |
+
return ret("variable", "variable");
|
43 |
+
}
|
44 |
+
}
|
45 |
+
|
46 |
+
function tokenCComment(stream, state) {
|
47 |
+
var maybeEnd = false, ch;
|
48 |
+
while ((ch = stream.next()) != null) {
|
49 |
+
if (maybeEnd && ch == "/") {
|
50 |
+
state.tokenize = tokenBase;
|
51 |
+
break;
|
52 |
+
}
|
53 |
+
maybeEnd = (ch == "*");
|
54 |
+
}
|
55 |
+
return ret("comment", "comment");
|
56 |
+
}
|
57 |
+
|
58 |
+
function tokenSGMLComment(stream, state) {
|
59 |
+
var dashes = 0, ch;
|
60 |
+
while ((ch = stream.next()) != null) {
|
61 |
+
if (dashes >= 2 && ch == ">") {
|
62 |
+
state.tokenize = tokenBase;
|
63 |
+
break;
|
64 |
+
}
|
65 |
+
dashes = (ch == "-") ? dashes + 1 : 0;
|
66 |
+
}
|
67 |
+
return ret("comment", "comment");
|
68 |
+
}
|
69 |
+
|
70 |
+
function tokenString(quote) {
|
71 |
+
return function(stream, state) {
|
72 |
+
var escaped = false, ch;
|
73 |
+
while ((ch = stream.next()) != null) {
|
74 |
+
if (ch == quote && !escaped)
|
75 |
+
break;
|
76 |
+
escaped = !escaped && ch == "\\";
|
77 |
+
}
|
78 |
+
if (!escaped) state.tokenize = tokenBase;
|
79 |
+
return ret("string", "string");
|
80 |
+
};
|
81 |
+
}
|
82 |
+
|
83 |
+
return {
|
84 |
+
startState: function(base) {
|
85 |
+
return {tokenize: tokenBase,
|
86 |
+
baseIndent: base || 0,
|
87 |
+
stack: []};
|
88 |
+
},
|
89 |
+
|
90 |
+
token: function(stream, state) {
|
91 |
+
if (stream.eatSpace()) return null;
|
92 |
+
var style = state.tokenize(stream, state);
|
93 |
+
|
94 |
+
var context = state.stack[state.stack.length-1];
|
95 |
+
if (type == "hash" && context != "rule") style = "string-2";
|
96 |
+
else if (style == "variable") {
|
97 |
+
if (context == "rule") style = "number";
|
98 |
+
else if (!context || context == "@media{") style = "tag";
|
99 |
+
}
|
100 |
+
|
101 |
+
if (context == "rule" && /^[\{\};]$/.test(type))
|
102 |
+
state.stack.pop();
|
103 |
+
if (type == "{") {
|
104 |
+
if (context == "@media") state.stack[state.stack.length-1] = "@media{";
|
105 |
+
else state.stack.push("{");
|
106 |
+
}
|
107 |
+
else if (type == "}") state.stack.pop();
|
108 |
+
else if (type == "@media") state.stack.push("@media");
|
109 |
+
else if (context == "{" && type != "comment") state.stack.push("rule");
|
110 |
+
return style;
|
111 |
+
},
|
112 |
+
|
113 |
+
indent: function(state, textAfter) {
|
114 |
+
var n = state.stack.length;
|
115 |
+
if (/^\}/.test(textAfter))
|
116 |
+
n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1;
|
117 |
+
return state.baseIndent + n * indentUnit;
|
118 |
+
},
|
119 |
+
|
120 |
+
electricChars: "}"
|
121 |
+
};
|
122 |
+
});
|
123 |
+
|
124 |
+
CodeMirror.defineMIME("text/css", "css");
|
js/layout/formatting.js
CHANGED
@@ -1,297 +1,297 @@
|
|
1 |
-
// ============== Formatting extensions ============================
|
2 |
-
// A common storage for all mode-specific formatting features
|
3 |
-
if (!CodeMirror.modeExtensions) CodeMirror.modeExtensions = {};
|
4 |
-
|
5 |
-
// Returns the extension of the editor's current mode
|
6 |
-
CodeMirror.defineExtension("getModeExt", function () {
|
7 |
-
var mname = CodeMirror.resolveMode(this.getOption("mode")).name;
|
8 |
-
var ext = CodeMirror.modeExtensions[mname];
|
9 |
-
if (!ext) throw new Error("No extensions found for mode " + mname);
|
10 |
-
return ext;
|
11 |
-
});
|
12 |
-
|
13 |
-
// If the current mode is 'htmlmixed', returns the extension of a mode located at
|
14 |
-
// the specified position (can be htmlmixed, css or javascript). Otherwise, simply
|
15 |
-
// returns the extension of the editor's current mode.
|
16 |
-
CodeMirror.defineExtension("getModeExtAtPos", function (pos) {
|
17 |
-
var token = this.getTokenAt(pos);
|
18 |
-
if (token && token.state && token.state.mode)
|
19 |
-
return CodeMirror.modeExtensions[token.state.mode == "html" ? "htmlmixed" : token.state.mode];
|
20 |
-
else
|
21 |
-
return this.getModeExt();
|
22 |
-
});
|
23 |
-
|
24 |
-
// Comment/uncomment the specified range
|
25 |
-
CodeMirror.defineExtension("commentRange", function (isComment, from, to) {
|
26 |
-
var curMode = this.getModeExtAtPos(this.getCursor());
|
27 |
-
if (isComment) { // Comment range
|
28 |
-
var commentedText = this.getRange(from, to);
|
29 |
-
this.replaceRange(curMode.commentStart + this.getRange(from, to) + curMode.commentEnd
|
30 |
-
, from, to);
|
31 |
-
if (from.line == to.line && from.ch == to.ch) { // An empty comment inserted - put cursor inside
|
32 |
-
this.setCursor(from.line, from.ch + curMode.commentStart.length);
|
33 |
-
}
|
34 |
-
}
|
35 |
-
else { // Uncomment range
|
36 |
-
var selText = this.getRange(from, to);
|
37 |
-
var startIndex = selText.indexOf(curMode.commentStart);
|
38 |
-
var endIndex = selText.lastIndexOf(curMode.commentEnd);
|
39 |
-
if (startIndex > -1 && endIndex > -1 && endIndex > startIndex) {
|
40 |
-
// Take string till comment start
|
41 |
-
selText = selText.substr(0, startIndex)
|
42 |
-
// From comment start till comment end
|
43 |
-
+ selText.substring(startIndex + curMode.commentStart.length, endIndex)
|
44 |
-
// From comment end till string end
|
45 |
-
+ selText.substr(endIndex + curMode.commentEnd.length);
|
46 |
-
}
|
47 |
-
this.replaceRange(selText, from, to);
|
48 |
-
}
|
49 |
-
});
|
50 |
-
|
51 |
-
// Applies automatic mode-aware indentation to the specified range
|
52 |
-
CodeMirror.defineExtension("autoIndentRange", function (from, to) {
|
53 |
-
var cmInstance = this;
|
54 |
-
this.operation(function () {
|
55 |
-
for (var i = from.line; i <= to.line; i++) {
|
56 |
-
cmInstance.indentLine(i, "smart");
|
57 |
-
}
|
58 |
-
});
|
59 |
-
});
|
60 |
-
|
61 |
-
// Applies automatic formatting to the specified range
|
62 |
-
CodeMirror.defineExtension("autoFormatRange", function (from, to) {
|
63 |
-
var absStart = this.indexFromPos(from);
|
64 |
-
var absEnd = this.indexFromPos(to);
|
65 |
-
// Insert additional line breaks where necessary according to the
|
66 |
-
// mode's syntax
|
67 |
-
var res = this.getModeExt().autoFormatLineBreaks(this.getValue(), absStart, absEnd);
|
68 |
-
var cmInstance = this;
|
69 |
-
|
70 |
-
// Replace and auto-indent the range
|
71 |
-
this.operation(function () {
|
72 |
-
cmInstance.replaceRange(res, from, to);
|
73 |
-
var startLine = cmInstance.posFromIndex(absStart).line;
|
74 |
-
var endLine = cmInstance.posFromIndex(absStart + res.length).line;
|
75 |
-
for (var i = startLine; i <= endLine; i++) {
|
76 |
-
cmInstance.indentLine(i, "smart");
|
77 |
-
}
|
78 |
-
});
|
79 |
-
});
|
80 |
-
|
81 |
-
// Define extensions for a few modes
|
82 |
-
|
83 |
-
CodeMirror.modeExtensions["css"] = {
|
84 |
-
commentStart: "/*",
|
85 |
-
commentEnd: "*/",
|
86 |
-
wordWrapChars: [";", "\\{", "\\}"],
|
87 |
-
autoFormatLineBreaks: function (text, startPos, endPos) {
|
88 |
-
text = text.substring(startPos, endPos);
|
89 |
-
return text.replace(new RegExp("(;|\\{|\\})([^\r\n])", "g"), "$1\n$2");
|
90 |
-
}
|
91 |
-
};
|
92 |
-
|
93 |
-
CodeMirror.modeExtensions["javascript"] = {
|
94 |
-
commentStart: "/*",
|
95 |
-
commentEnd: "*/",
|
96 |
-
wordWrapChars: [";", "\\{", "\\}"],
|
97 |
-
|
98 |
-
getNonBreakableBlocks: function (text) {
|
99 |
-
var nonBreakableRegexes = [
|
100 |
-
new RegExp("for\\s*?\\(([\\s\\S]*?)\\)"),
|
101 |
-
new RegExp("'([\\s\\S]*?)('|$)"),
|
102 |
-
new RegExp("\"([\\s\\S]*?)(\"|$)"),
|
103 |
-
new RegExp("//.*([\r\n]|$)")
|
104 |
-
];
|
105 |
-
var nonBreakableBlocks = new Array();
|
106 |
-
for (var i = 0; i < nonBreakableRegexes.length; i++) {
|
107 |
-
var curPos = 0;
|
108 |
-
while (curPos < text.length) {
|
109 |
-
var m = text.substr(curPos).match(nonBreakableRegexes[i]);
|
110 |
-
if (m != null) {
|
111 |
-
nonBreakableBlocks.push({
|
112 |
-
start: curPos + m.index,
|
113 |
-
end: curPos + m.index + m[0].length
|
114 |
-
});
|
115 |
-
curPos += m.index + Math.max(1, m[0].length);
|
116 |
-
}
|
117 |
-
else { // No more matches
|
118 |
-
break;
|
119 |
-
}
|
120 |
-
}
|
121 |
-
}
|
122 |
-
nonBreakableBlocks.sort(function (a, b) {
|
123 |
-
return a.start - b.start;
|
124 |
-
});
|
125 |
-
|
126 |
-
return nonBreakableBlocks;
|
127 |
-
},
|
128 |
-
|
129 |
-
autoFormatLineBreaks: function (text, startPos, endPos) {
|
130 |
-
text = text.substring(startPos, endPos);
|
131 |
-
var curPos = 0;
|
132 |
-
var reLinesSplitter = new RegExp("(;|\\{|\\})([^\r\n])", "g");
|
133 |
-
var nonBreakableBlocks = this.getNonBreakableBlocks(text);
|
134 |
-
if (nonBreakableBlocks != null) {
|
135 |
-
var res = "";
|
136 |
-
for (var i = 0; i < nonBreakableBlocks.length; i++) {
|
137 |
-
if (nonBreakableBlocks[i].start > curPos) { // Break lines till the block
|
138 |
-
res += text.substring(curPos, nonBreakableBlocks[i].start).replace(reLinesSplitter, "$1\n$2");
|
139 |
-
curPos = nonBreakableBlocks[i].start;
|
140 |
-
}
|
141 |
-
if (nonBreakableBlocks[i].start <= curPos
|
142 |
-
&& nonBreakableBlocks[i].end >= curPos) { // Skip non-breakable block
|
143 |
-
res += text.substring(curPos, nonBreakableBlocks[i].end);
|
144 |
-
curPos = nonBreakableBlocks[i].end;
|
145 |
-
}
|
146 |
-
}
|
147 |
-
if (curPos < text.length - 1) {
|
148 |
-
res += text.substr(curPos).replace(reLinesSplitter, "$1\n$2");
|
149 |
-
}
|
150 |
-
return res;
|
151 |
-
}
|
152 |
-
else {
|
153 |
-
return text.replace(reLinesSplitter, "$1\n$2");
|
154 |
-
}
|
155 |
-
}
|
156 |
-
};
|
157 |
-
|
158 |
-
CodeMirror.modeExtensions["xml"] = {
|
159 |
-
commentStart: "<!--",
|
160 |
-
commentEnd: "-->",
|
161 |
-
wordWrapChars: [">"],
|
162 |
-
|
163 |
-
autoFormatLineBreaks: function (text, startPos, endPos) {
|
164 |
-
text = text.substring(startPos, endPos);
|
165 |
-
var lines = text.split("\n");
|
166 |
-
var reProcessedPortion = new RegExp("(^\\s*?<|^[^<]*?)(.+)(>\\s*?$|[^>]*?$)");
|
167 |
-
var reOpenBrackets = new RegExp("<", "g");
|
168 |
-
var reCloseBrackets = new RegExp("(>)([^\r\n])", "g");
|
169 |
-
for (var i = 0; i < lines.length; i++) {
|
170 |
-
var mToProcess = lines[i].match(reProcessedPortion);
|
171 |
-
if (mToProcess != null && mToProcess.length > 3) { // The line starts with whitespaces and ends with whitespaces
|
172 |
-
lines[i] = mToProcess[1]
|
173 |
-
+ mToProcess[2].replace(reOpenBrackets, "\n$&").replace(reCloseBrackets, "$1\n$2")
|
174 |
-
+ mToProcess[3];
|
175 |
-
continue;
|
176 |
-
}
|
177 |
-
}
|
178 |
-
|
179 |
-
return lines.join("\n");
|
180 |
-
}
|
181 |
-
};
|
182 |
-
|
183 |
-
CodeMirror.modeExtensions["htmlmixed"] = {
|
184 |
-
commentStart: "<!--",
|
185 |
-
commentEnd: "-->",
|
186 |
-
wordWrapChars: [">", ";", "\\{", "\\}"],
|
187 |
-
|
188 |
-
getModeInfos: function (text, absPos) {
|
189 |
-
var modeInfos = new Array();
|
190 |
-
modeInfos[0] =
|
191 |
-
{
|
192 |
-
pos: 0,
|
193 |
-
modeExt: CodeMirror.modeExtensions["xml"],
|
194 |
-
modeName: "xml"
|
195 |
-
};
|
196 |
-
|
197 |
-
var modeMatchers = new Array();
|
198 |
-
modeMatchers[0] =
|
199 |
-
{
|
200 |
-
regex: new RegExp("<style[^>]*>([\\s\\S]*?)(</style[^>]*>|$)", "i"),
|
201 |
-
modeExt: CodeMirror.modeExtensions["css"],
|
202 |
-
modeName: "css"
|
203 |
-
};
|
204 |
-
modeMatchers[1] =
|
205 |
-
{
|
206 |
-
regex: new RegExp("<script[^>]*>([\\s\\S]*?)(</script[^>]*>|$)", "i"),
|
207 |
-
modeExt: CodeMirror.modeExtensions["javascript"],
|
208 |
-
modeName: "javascript"
|
209 |
-
};
|
210 |
-
|
211 |
-
var lastCharPos = (typeof (absPos) !== "undefined" ? absPos : text.length - 1);
|
212 |
-
// Detect modes for the entire text
|
213 |
-
for (var i = 0; i < modeMatchers.length; i++) {
|
214 |
-
var curPos = 0;
|
215 |
-
while (curPos <= lastCharPos) {
|
216 |
-
var m = text.substr(curPos).match(modeMatchers[i].regex);
|
217 |
-
if (m != null) {
|
218 |
-
if (m.length > 1 && m[1].length > 0) {
|
219 |
-
// Push block begin pos
|
220 |
-
var blockBegin = curPos + m.index + m[0].indexOf(m[1]);
|
221 |
-
modeInfos.push(
|
222 |
-
{
|
223 |
-
pos: blockBegin,
|
224 |
-
modeExt: modeMatchers[i].modeExt,
|
225 |
-
modeName: modeMatchers[i].modeName
|
226 |
-
});
|
227 |
-
// Push block end pos
|
228 |
-
modeInfos.push(
|
229 |
-
{
|
230 |
-
pos: blockBegin + m[1].length,
|
231 |
-
modeExt: modeInfos[0].modeExt,
|
232 |
-
modeName: modeInfos[0].modeName
|
233 |
-
});
|
234 |
-
curPos += m.index + m[0].length;
|
235 |
-
continue;
|
236 |
-
}
|
237 |
-
else {
|
238 |
-
curPos += m.index + Math.max(m[0].length, 1);
|
239 |
-
}
|
240 |
-
}
|
241 |
-
else { // No more matches
|
242 |
-
break;
|
243 |
-
}
|
244 |
-
}
|
245 |
-
}
|
246 |
-
// Sort mode infos
|
247 |
-
modeInfos.sort(function sortModeInfo(a, b) {
|
248 |
-
return a.pos - b.pos;
|
249 |
-
});
|
250 |
-
|
251 |
-
return modeInfos;
|
252 |
-
},
|
253 |
-
|
254 |
-
autoFormatLineBreaks: function (text, startPos, endPos) {
|
255 |
-
var modeInfos = this.getModeInfos(text);
|
256 |
-
var reBlockStartsWithNewline = new RegExp("^\\s*?\n");
|
257 |
-
var reBlockEndsWithNewline = new RegExp("\n\\s*?$");
|
258 |
-
var res = "";
|
259 |
-
// Use modes info to break lines correspondingly
|
260 |
-
if (modeInfos.length > 1) { // Deal with multi-mode text
|
261 |
-
for (var i = 1; i <= modeInfos.length; i++) {
|
262 |
-
var selStart = modeInfos[i - 1].pos;
|
263 |
-
var selEnd = (i < modeInfos.length ? modeInfos[i].pos : endPos);
|
264 |
-
|
265 |
-
if (selStart >= endPos) { // The block starts later than the needed fragment
|
266 |
-
break;
|
267 |
-
}
|
268 |
-
if (selStart < startPos) {
|
269 |
-
if (selEnd <= startPos) { // The block starts earlier than the needed fragment
|
270 |
-
continue;
|
271 |
-
}
|
272 |
-
selStart = startPos;
|
273 |
-
}
|
274 |
-
if (selEnd > endPos) {
|
275 |
-
selEnd = endPos;
|
276 |
-
}
|
277 |
-
var textPortion = text.substring(selStart, selEnd);
|
278 |
-
if (modeInfos[i - 1].modeName != "xml") { // Starting a CSS or JavaScript block
|
279 |
-
if (!reBlockStartsWithNewline.test(textPortion)
|
280 |
-
&& selStart > 0) { // The block does not start with a line break
|
281 |
-
textPortion = "\n" + textPortion;
|
282 |
-
}
|
283 |
-
if (!reBlockEndsWithNewline.test(textPortion)
|
284 |
-
&& selEnd < text.length - 1) { // The block does not end with a line break
|
285 |
-
textPortion += "\n";
|
286 |
-
}
|
287 |
-
}
|
288 |
-
res += modeInfos[i - 1].modeExt.autoFormatLineBreaks(textPortion);
|
289 |
-
}
|
290 |
-
}
|
291 |
-
else { // Single-mode text
|
292 |
-
res = modeInfos[0].modeExt.autoFormatLineBreaks(text.substring(startPos, endPos));
|
293 |
-
}
|
294 |
-
|
295 |
-
return res;
|
296 |
-
}
|
297 |
-
};
|
1 |
+
// ============== Formatting extensions ============================
|
2 |
+
// A common storage for all mode-specific formatting features
|
3 |
+
if (!CodeMirror.modeExtensions) CodeMirror.modeExtensions = {};
|
4 |
+
|
5 |
+
// Returns the extension of the editor's current mode
|
6 |
+
CodeMirror.defineExtension("getModeExt", function () {
|
7 |
+
var mname = CodeMirror.resolveMode(this.getOption("mode")).name;
|
8 |
+
var ext = CodeMirror.modeExtensions[mname];
|
9 |
+
if (!ext) throw new Error("No extensions found for mode " + mname);
|
10 |
+
return ext;
|
11 |
+
});
|
12 |
+
|
13 |
+
// If the current mode is 'htmlmixed', returns the extension of a mode located at
|
14 |
+
// the specified position (can be htmlmixed, css or javascript). Otherwise, simply
|
15 |
+
// returns the extension of the editor's current mode.
|
16 |
+
CodeMirror.defineExtension("getModeExtAtPos", function (pos) {
|
17 |
+
var token = this.getTokenAt(pos);
|
18 |
+
if (token && token.state && token.state.mode)
|
19 |
+
return CodeMirror.modeExtensions[token.state.mode == "html" ? "htmlmixed" : token.state.mode];
|
20 |
+
else
|
21 |
+
return this.getModeExt();
|
22 |
+
});
|
23 |
+
|
24 |
+
// Comment/uncomment the specified range
|
25 |
+
CodeMirror.defineExtension("commentRange", function (isComment, from, to) {
|
26 |
+
var curMode = this.getModeExtAtPos(this.getCursor());
|
27 |
+
if (isComment) { // Comment range
|
28 |
+
var commentedText = this.getRange(from, to);
|
29 |
+
this.replaceRange(curMode.commentStart + this.getRange(from, to) + curMode.commentEnd
|
30 |
+
, from, to);
|
31 |
+
if (from.line == to.line && from.ch == to.ch) { // An empty comment inserted - put cursor inside
|
32 |
+
this.setCursor(from.line, from.ch + curMode.commentStart.length);
|
33 |
+
}
|
34 |
+
}
|
35 |
+
else { // Uncomment range
|
36 |
+
var selText = this.getRange(from, to);
|
37 |
+
var startIndex = selText.indexOf(curMode.commentStart);
|
38 |
+
var endIndex = selText.lastIndexOf(curMode.commentEnd);
|
39 |
+
if (startIndex > -1 && endIndex > -1 && endIndex > startIndex) {
|
40 |
+
// Take string till comment start
|
41 |
+
selText = selText.substr(0, startIndex)
|
42 |
+
// From comment start till comment end
|
43 |
+
+ selText.substring(startIndex + curMode.commentStart.length, endIndex)
|
44 |
+
// From comment end till string end
|
45 |
+
+ selText.substr(endIndex + curMode.commentEnd.length);
|
46 |
+
}
|
47 |
+
this.replaceRange(selText, from, to);
|
48 |
+
}
|
49 |
+
});
|
50 |
+
|
51 |
+
// Applies automatic mode-aware indentation to the specified range
|
52 |
+
CodeMirror.defineExtension("autoIndentRange", function (from, to) {
|
53 |
+
var cmInstance = this;
|
54 |
+
this.operation(function () {
|
55 |
+
for (var i = from.line; i <= to.line; i++) {
|
56 |
+
cmInstance.indentLine(i, "smart");
|
57 |
+
}
|
58 |
+
});
|
59 |
+
});
|
60 |
+
|
61 |
+
// Applies automatic formatting to the specified range
|
62 |
+
CodeMirror.defineExtension("autoFormatRange", function (from, to) {
|
63 |
+
var absStart = this.indexFromPos(from);
|
64 |
+
var absEnd = this.indexFromPos(to);
|
65 |
+
// Insert additional line breaks where necessary according to the
|
66 |
+
// mode's syntax
|
67 |
+
var res = this.getModeExt().autoFormatLineBreaks(this.getValue(), absStart, absEnd);
|
68 |
+
var cmInstance = this;
|
69 |
+
|
70 |
+
// Replace and auto-indent the range
|
71 |
+
this.operation(function () {
|
72 |
+
cmInstance.replaceRange(res, from, to);
|
73 |
+
var startLine = cmInstance.posFromIndex(absStart).line;
|
74 |
+
var endLine = cmInstance.posFromIndex(absStart + res.length).line;
|
75 |
+
for (var i = startLine; i <= endLine; i++) {
|
76 |
+
cmInstance.indentLine(i, "smart");
|
77 |
+
}
|
78 |
+
});
|
79 |
+
});
|
80 |
+
|
81 |
+
// Define extensions for a few modes
|
82 |
+
|
83 |
+
CodeMirror.modeExtensions["css"] = {
|
84 |
+
commentStart: "/*",
|
85 |
+
commentEnd: "*/",
|
86 |
+
wordWrapChars: [";", "\\{", "\\}"],
|
87 |
+
autoFormatLineBreaks: function (text, startPos, endPos) {
|
88 |
+
text = text.substring(startPos, endPos);
|
89 |
+
return text.replace(new RegExp("(;|\\{|\\})([^\r\n])", "g"), "$1\n$2");
|
90 |
+
}
|
91 |
+
};
|
92 |
+
|
93 |
+
CodeMirror.modeExtensions["javascript"] = {
|
94 |
+
commentStart: "/*",
|
95 |
+
commentEnd: "*/",
|
96 |
+
wordWrapChars: [";", "\\{", "\\}"],
|
97 |
+
|
98 |
+
getNonBreakableBlocks: function (text) {
|
99 |
+
var nonBreakableRegexes = [
|
100 |
+
new RegExp("for\\s*?\\(([\\s\\S]*?)\\)"),
|
101 |
+
new RegExp("'([\\s\\S]*?)('|$)"),
|
102 |
+
new RegExp("\"([\\s\\S]*?)(\"|$)"),
|
103 |
+
new RegExp("//.*([\r\n]|$)")
|
104 |
+
];
|
105 |
+
var nonBreakableBlocks = new Array();
|
106 |
+
for (var i = 0; i < nonBreakableRegexes.length; i++) {
|
107 |
+
var curPos = 0;
|
108 |
+
while (curPos < text.length) {
|
109 |
+
var m = text.substr(curPos).match(nonBreakableRegexes[i]);
|
110 |
+
if (m != null) {
|
111 |
+
nonBreakableBlocks.push({
|
112 |
+
start: curPos + m.index,
|
113 |
+
end: curPos + m.index + m[0].length
|
114 |
+
});
|
115 |
+
curPos += m.index + Math.max(1, m[0].length);
|
116 |
+
}
|
117 |
+
else { // No more matches
|
118 |
+
break;
|
119 |
+
}
|
120 |
+
}
|
121 |
+
}
|
122 |
+
nonBreakableBlocks.sort(function (a, b) {
|
123 |
+
return a.start - b.start;
|
124 |
+
});
|
125 |
+
|
126 |
+
return nonBreakableBlocks;
|
127 |
+
},
|
128 |
+
|
129 |
+
autoFormatLineBreaks: function (text, startPos, endPos) {
|
130 |
+
text = text.substring(startPos, endPos);
|
131 |
+
var curPos = 0;
|
132 |
+
var reLinesSplitter = new RegExp("(;|\\{|\\})([^\r\n])", "g");
|
133 |
+
var nonBreakableBlocks = this.getNonBreakableBlocks(text);
|
134 |
+
if (nonBreakableBlocks != null) {
|
135 |
+
var res = "";
|
136 |
+
for (var i = 0; i < nonBreakableBlocks.length; i++) {
|
137 |
+
if (nonBreakableBlocks[i].start > curPos) { // Break lines till the block
|
138 |
+
res += text.substring(curPos, nonBreakableBlocks[i].start).replace(reLinesSplitter, "$1\n$2");
|
139 |
+
curPos = nonBreakableBlocks[i].start;
|
140 |
+
}
|
141 |
+
if (nonBreakableBlocks[i].start <= curPos
|
142 |
+
&& nonBreakableBlocks[i].end >= curPos) { // Skip non-breakable block
|
143 |
+
res += text.substring(curPos, nonBreakableBlocks[i].end);
|
144 |
+
curPos = nonBreakableBlocks[i].end;
|
145 |
+
}
|
146 |
+
}
|
147 |
+
if (curPos < text.length - 1) {
|
148 |
+
res += text.substr(curPos).replace(reLinesSplitter, "$1\n$2");
|
149 |
+
}
|
150 |
+
return res;
|
151 |
+
}
|
152 |
+
else {
|
153 |
+
return text.replace(reLinesSplitter, "$1\n$2");
|
154 |
+
}
|
155 |
+
}
|
156 |
+
};
|
157 |
+
|
158 |
+
CodeMirror.modeExtensions["xml"] = {
|
159 |
+
commentStart: "<!--",
|
160 |
+
commentEnd: "-->",
|
161 |
+
wordWrapChars: [">"],
|
162 |
+
|
163 |
+
autoFormatLineBreaks: function (text, startPos, endPos) {
|
164 |
+
text = text.substring(startPos, endPos);
|
165 |
+
var lines = text.split("\n");
|
166 |
+
var reProcessedPortion = new RegExp("(^\\s*?<|^[^<]*?)(.+)(>\\s*?$|[^>]*?$)");
|
167 |
+
var reOpenBrackets = new RegExp("<", "g");
|
168 |
+
var reCloseBrackets = new RegExp("(>)([^\r\n])", "g");
|
169 |
+
for (var i = 0; i < lines.length; i++) {
|
170 |
+
var mToProcess = lines[i].match(reProcessedPortion);
|
171 |
+
if (mToProcess != null && mToProcess.length > 3) { // The line starts with whitespaces and ends with whitespaces
|
172 |
+
lines[i] = mToProcess[1]
|
173 |
+
+ mToProcess[2].replace(reOpenBrackets, "\n$&").replace(reCloseBrackets, "$1\n$2")
|
174 |
+
+ mToProcess[3];
|
175 |
+
continue;
|
176 |
+
}
|
177 |
+
}
|
178 |
+
|
179 |
+
return lines.join("\n");
|
180 |
+
}
|
181 |
+
};
|
182 |
+
|
183 |
+
CodeMirror.modeExtensions["htmlmixed"] = {
|
184 |
+
commentStart: "<!--",
|
185 |
+
commentEnd: "-->",
|
186 |
+
wordWrapChars: [">", ";", "\\{", "\\}"],
|
187 |
+
|
188 |
+
getModeInfos: function (text, absPos) {
|
189 |
+
var modeInfos = new Array();
|
190 |
+
modeInfos[0] =
|
191 |
+
{
|
192 |
+
pos: 0,
|
193 |
+
modeExt: CodeMirror.modeExtensions["xml"],
|
194 |
+
modeName: "xml"
|
195 |
+
};
|
196 |
+
|
197 |
+
var modeMatchers = new Array();
|
198 |
+
modeMatchers[0] =
|
199 |
+
{
|
200 |
+
regex: new RegExp("<style[^>]*>([\\s\\S]*?)(</style[^>]*>|$)", "i"),
|
201 |
+
modeExt: CodeMirror.modeExtensions["css"],
|
202 |
+
modeName: "css"
|
203 |
+
};
|
204 |
+
modeMatchers[1] =
|
205 |
+
{
|
206 |
+
regex: new RegExp("<script[^>]*>([\\s\\S]*?)(</script[^>]*>|$)", "i"),
|
207 |
+
modeExt: CodeMirror.modeExtensions["javascript"],
|
208 |
+
modeName: "javascript"
|
209 |
+
};
|
210 |
+
|
211 |
+
var lastCharPos = (typeof (absPos) !== "undefined" ? absPos : text.length - 1);
|
212 |
+
// Detect modes for the entire text
|
213 |
+
for (var i = 0; i < modeMatchers.length; i++) {
|
214 |
+
var curPos = 0;
|
215 |
+
while (curPos <= lastCharPos) {
|
216 |
+
var m = text.substr(curPos).match(modeMatchers[i].regex);
|
217 |
+
if (m != null) {
|
218 |
+
if (m.length > 1 && m[1].length > 0) {
|
219 |
+
// Push block begin pos
|
220 |
+
var blockBegin = curPos + m.index + m[0].indexOf(m[1]);
|
221 |
+
modeInfos.push(
|
222 |
+
{
|
223 |
+
pos: blockBegin,
|
224 |
+
modeExt: modeMatchers[i].modeExt,
|
225 |
+
modeName: modeMatchers[i].modeName
|
226 |
+
});
|
227 |
+
// Push block end pos
|
228 |
+
modeInfos.push(
|
229 |
+
{
|
230 |
+
pos: blockBegin + m[1].length,
|
231 |
+
modeExt: modeInfos[0].modeExt,
|
232 |
+
modeName: modeInfos[0].modeName
|
233 |
+
});
|
234 |
+
curPos += m.index + m[0].length;
|
235 |
+
continue;
|
236 |
+
}
|
237 |
+
else {
|
238 |
+
curPos += m.index + Math.max(m[0].length, 1);
|
239 |
+
}
|
240 |
+
}
|
241 |
+
else { // No more matches
|
242 |
+
break;
|
243 |
+
}
|
244 |
+
}
|
245 |
+
}
|
246 |
+
// Sort mode infos
|
247 |
+
modeInfos.sort(function sortModeInfo(a, b) {
|
248 |
+
return a.pos - b.pos;
|
249 |
+
});
|
250 |
+
|
251 |
+
return modeInfos;
|
252 |
+
},
|
253 |
+
|
254 |
+
autoFormatLineBreaks: function (text, startPos, endPos) {
|
255 |
+
var modeInfos = this.getModeInfos(text);
|
256 |
+
var reBlockStartsWithNewline = new RegExp("^\\s*?\n");
|
257 |
+
var reBlockEndsWithNewline = new RegExp("\n\\s*?$");
|
258 |
+
var res = "";
|
259 |
+
// Use modes info to break lines correspondingly
|
260 |
+
if (modeInfos.length > 1) { // Deal with multi-mode text
|
261 |
+
for (var i = 1; i <= modeInfos.length; i++) {
|
262 |
+
var selStart = modeInfos[i - 1].pos;
|
263 |
+
var selEnd = (i < modeInfos.length ? modeInfos[i].pos : endPos);
|
264 |
+
|
265 |
+
if (selStart >= endPos) { // The block starts later than the needed fragment
|
266 |
+
break;
|
267 |
+
}
|
268 |
+
if (selStart < startPos) {
|
269 |
+
if (selEnd <= startPos) { // The block starts earlier than the needed fragment
|
270 |
+
continue;
|
271 |
+
}
|
272 |
+
selStart = startPos;
|
273 |
+
}
|
274 |
+
if (selEnd > endPos) {
|
275 |
+
selEnd = endPos;
|
276 |
+
}
|
277 |
+
var textPortion = text.substring(selStart, selEnd);
|
278 |
+
if (modeInfos[i - 1].modeName != "xml") { // Starting a CSS or JavaScript block
|
279 |
+
if (!reBlockStartsWithNewline.test(textPortion)
|
280 |
+
&& selStart > 0) { // The block does not start with a line break
|
281 |
+
textPortion = "\n" + textPortion;
|
282 |
+
}
|
283 |
+
if (!reBlockEndsWithNewline.test(textPortion)
|
284 |
+
&& selEnd < text.length - 1) { // The block does not end with a line break
|
285 |
+
textPortion += "\n";
|
286 |
+
}
|
287 |
+
}
|
288 |
+
res += modeInfos[i - 1].modeExt.autoFormatLineBreaks(textPortion);
|
289 |
+
}
|
290 |
+
}
|
291 |
+
else { // Single-mode text
|
292 |
+
res = modeInfos[0].modeExt.autoFormatLineBreaks(text.substring(startPos, endPos));
|
293 |
+
}
|
294 |
+
|
295 |
+
return res;
|
296 |
+
}
|
297 |
+
};
|
js/layout/htmlmixed.js
CHANGED
@@ -1,85 +1,85 @@
|
|
1 |
-
CodeMirror.defineMode("htmlmixed", function(config, parserConfig) {
|
2 |
-
var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true});
|
3 |
-
var jsMode = CodeMirror.getMode(config, "javascript");
|
4 |
-
var cssMode = CodeMirror.getMode(config, "css");
|
5 |
-
|
6 |
-
function html(stream, state) {
|
7 |
-
var style = htmlMode.token(stream, state.htmlState);
|
8 |
-
if (style == "tag" && stream.current() == ">" && state.htmlState.context) {
|
9 |
-
if (/^script$/i.test(state.htmlState.context.tagName)) {
|
10 |
-
state.token = javascript;
|
11 |
-
state.localState = jsMode.startState(htmlMode.indent(state.htmlState, ""));
|
12 |
-
state.mode = "javascript";
|
13 |
-
}
|
14 |
-
else if (/^style$/i.test(state.htmlState.context.tagName)) {
|
15 |
-
state.token = css;
|
16 |
-
state.localState = cssMode.startState(htmlMode.indent(state.htmlState, ""));
|
17 |
-
state.mode = "css";
|
18 |
-
}
|
19 |
-
}
|
20 |
-
return style;
|
21 |
-
}
|
22 |
-
function maybeBackup(stream, pat, style) {
|
23 |
-
var cur = stream.current();
|
24 |
-
var close = cur.search(pat);
|
25 |
-
if (close > -1) stream.backUp(cur.length - close);
|
26 |
-
return style;
|
27 |
-
}
|
28 |
-
function javascript(stream, state) {
|
29 |
-
if (stream.match(/^<\/\s*script\s*>/i, false)) {
|
30 |
-
state.token = html;
|
31 |
-
state.localState = null;
|
32 |
-
state.mode = "html";
|
33 |
-
return html(stream, state);
|
34 |
-
}
|
35 |
-
return maybeBackup(stream, /<\/\s*script\s*>/,
|
36 |
-
jsMode.token(stream, state.localState));
|
37 |
-
}
|
38 |
-
function css(stream, state) {
|
39 |
-
if (stream.match(/^<\/\s*style\s*>/i, false)) {
|
40 |
-
state.token = html;
|
41 |
-
state.localState = null;
|
42 |
-
state.mode = "html";
|
43 |
-
return html(stream, state);
|
44 |
-
}
|
45 |
-
return maybeBackup(stream, /<\/\s*style\s*>/,
|
46 |
-
cssMode.token(stream, state.localState));
|
47 |
-
}
|
48 |
-
|
49 |
-
return {
|
50 |
-
startState: function() {
|
51 |
-
var state = htmlMode.startState();
|
52 |
-
return {token: html, localState: null, mode: "html", htmlState: state};
|
53 |
-
},
|
54 |
-
|
55 |
-
copyState: function(state) {
|
56 |
-
if (state.localState)
|
57 |
-
var local = CodeMirror.copyState(state.token == css ? cssMode : jsMode, state.localState);
|
58 |
-
return {token: state.token, localState: local, mode: state.mode,
|
59 |
-
htmlState: CodeMirror.copyState(htmlMode, state.htmlState)};
|
60 |
-
},
|
61 |
-
|
62 |
-
token: function(stream, state) {
|
63 |
-
return state.token(stream, state);
|
64 |
-
},
|
65 |
-
|
66 |
-
indent: function(state, textAfter) {
|
67 |
-
if (state.token == html || /^\s*<\//.test(textAfter))
|
68 |
-
return htmlMode.indent(state.htmlState, textAfter);
|
69 |
-
else if (state.token == javascript)
|
70 |
-
return jsMode.indent(state.localState, textAfter);
|
71 |
-
else
|
72 |
-
return cssMode.indent(state.localState, textAfter);
|
73 |
-
},
|
74 |
-
|
75 |
-
compareStates: function(a, b) {
|
76 |
-
if (a.mode != b.mode) return false;
|
77 |
-
if (a.localState) return CodeMirror.Pass;
|
78 |
-
return htmlMode.compareStates(a.htmlState, b.htmlState);
|
79 |
-
},
|
80 |
-
|
81 |
-
electricChars: "/{}:"
|
82 |
-
}
|
83 |
-
}, "xml", "javascript", "css");
|
84 |
-
|
85 |
-
CodeMirror.defineMIME("text/html", "htmlmixed");
|
1 |
+
CodeMirror.defineMode("htmlmixed", function(config, parserConfig) {
|
2 |
+
var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true});
|
3 |
+
var jsMode = CodeMirror.getMode(config, "javascript");
|
4 |
+
var cssMode = CodeMirror.getMode(config, "css");
|
5 |
+
|
6 |
+
function html(stream, state) {
|
7 |
+
var style = htmlMode.token(stream, state.htmlState);
|
8 |
+
if (style == "tag" && stream.current() == ">" && state.htmlState.context) {
|
9 |
+
if (/^script$/i.test(state.htmlState.context.tagName)) {
|
10 |
+
state.token = javascript;
|
11 |
+
state.localState = jsMode.startState(htmlMode.indent(state.htmlState, ""));
|
12 |
+
state.mode = "javascript";
|
13 |
+
}
|
14 |
+
else if (/^style$/i.test(state.htmlState.context.tagName)) {
|
15 |
+
state.token = css;
|
16 |
+
state.localState = cssMode.startState(htmlMode.indent(state.htmlState, ""));
|
17 |
+
state.mode = "css";
|
18 |
+
}
|
19 |
+
}
|
20 |
+
return style;
|
21 |
+
}
|
22 |
+
function maybeBackup(stream, pat, style) {
|
23 |
+
var cur = stream.current();
|
24 |
+
var close = cur.search(pat);
|
25 |
+
if (close > -1) stream.backUp(cur.length - close);
|
26 |
+
return style;
|
27 |
+
}
|
28 |
+
function javascript(stream, state) {
|
29 |
+
if (stream.match(/^<\/\s*script\s*>/i, false)) {
|
30 |
+
state.token = html;
|
31 |
+
state.localState = null;
|
32 |
+
state.mode = "html";
|
33 |
+
return html(stream, state);
|
34 |
+
}
|
35 |
+
return maybeBackup(stream, /<\/\s*script\s*>/,
|
36 |
+
jsMode.token(stream, state.localState));
|
37 |
+
}
|
38 |
+
function css(stream, state) {
|
39 |
+
if (stream.match(/^<\/\s*style\s*>/i, false)) {
|
40 |
+
state.token = html;
|
41 |
+
state.localState = null;
|
42 |
+
state.mode = "html";
|
43 |
+
return html(stream, state);
|
44 |
+
}
|
45 |
+
return maybeBackup(stream, /<\/\s*style\s*>/,
|
46 |
+
cssMode.token(stream, state.localState));
|
47 |
+
}
|
48 |
+
|
49 |
+
return {
|
50 |
+
startState: function() {
|
51 |
+
var state = htmlMode.startState();
|
52 |
+
return {token: html, localState: null, mode: "html", htmlState: state};
|
53 |
+
},
|
54 |
+
|
55 |
+
copyState: function(state) {
|
56 |
+
if (state.localState)
|
57 |
+
var local = CodeMirror.copyState(state.token == css ? cssMode : jsMode, state.localState);
|
58 |
+
return {token: state.token, localState: local, mode: state.mode,
|
59 |
+
htmlState: CodeMirror.copyState(htmlMode, state.htmlState)};
|
60 |
+
},
|
61 |
+
|
62 |
+
token: function(stream, state) {
|
63 |
+
return state.token(stream, state);
|
64 |
+
},
|
65 |
+
|
66 |
+
indent: function(state, textAfter) {
|
67 |
+
if (state.token == html || /^\s*<\//.test(textAfter))
|
68 |
+
return htmlMode.indent(state.htmlState, textAfter);
|
69 |
+
else if (state.token == javascript)
|
70 |
+
return jsMode.indent(state.localState, textAfter);
|
71 |
+
else
|
72 |
+
return cssMode.indent(state.localState, textAfter);
|
73 |
+
},
|
74 |
+
|
75 |
+
compareStates: function(a, b) {
|
76 |
+
if (a.mode != b.mode) return false;
|
77 |
+
if (a.localState) return CodeMirror.Pass;
|
78 |
+
return htmlMode.compareStates(a.htmlState, b.htmlState);
|
79 |
+
},
|
80 |
+
|
81 |
+
electricChars: "/{}:"
|
82 |
+
}
|
83 |
+
}, "xml", "javascript", "css");
|
84 |
+
|
85 |
+
CodeMirror.defineMIME("text/html", "htmlmixed");
|
js/layout/javascript.js
CHANGED
@@ -1,361 +1,361 @@
|
|
1 |
-
CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
2 |
-
var indentUnit = config.indentUnit;
|
3 |
-
var jsonMode = parserConfig.json;
|
4 |
-
|
5 |
-
// Tokenizer
|
6 |
-
|
7 |
-
var keywords = function(){
|
8 |
-
function kw(type) {return {type: type, style: "keyword"};}
|
9 |
-
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c");
|
10 |
-
var operator = kw("operator"), atom = {type: "atom", style: "atom"};
|
11 |
-
return {
|
12 |
-
"if": A, "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
|
13 |
-
"return": C, "break": C, "continue": C, "new": C, "delete": C, "throw": C,
|
14 |
-
"var": kw("var"), "const": kw("var"), "let": kw("var"),
|
15 |
-
"function": kw("function"), "catch": kw("catch"),
|
16 |
-
"for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
|
17 |
-
"in": operator, "typeof": operator, "instanceof": operator,
|
18 |
-
"true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom
|
19 |
-
};
|
20 |
-
}();
|
21 |
-
|
22 |
-
var isOperatorChar = /[+\-*&%=<>!?|]/;
|
23 |
-
|
24 |
-
function chain(stream, state, f) {
|
25 |
-
state.tokenize = f;
|
26 |
-
return f(stream, state);
|
27 |
-
}
|
28 |
-
|
29 |
-
function nextUntilUnescaped(stream, end) {
|
30 |
-
var escaped = false, next;
|
31 |
-
while ((next = stream.next()) != null) {
|
32 |
-
if (next == end && !escaped)
|
33 |
-
return false;
|
34 |
-
escaped = !escaped && next == "\\";
|
35 |
-
}
|
36 |
-
return escaped;
|
37 |
-
}
|
38 |
-
|
39 |
-
// Used as scratch variables to communicate multiple values without
|
40 |
-
// consing up tons of objects.
|
41 |
-
var type, content;
|
42 |
-
function ret(tp, style, cont) {
|
43 |
-
type = tp; content = cont;
|
44 |
-
return style;
|
45 |
-
}
|
46 |
-
|
47 |
-
function jsTokenBase(stream, state) {
|
48 |
-
var ch = stream.next();
|
49 |
-
if (ch == '"' || ch == "'")
|
50 |
-
return chain(stream, state, jsTokenString(ch));
|
51 |
-
else if (/[\[\]{}\(\),;\:\.]/.test(ch))
|
52 |
-
return ret(ch);
|
53 |
-
else if (ch == "0" && stream.eat(/x/i)) {
|
54 |
-
stream.eatWhile(/[\da-f]/i);
|
55 |
-
return ret("number", "number");
|
56 |
-
}
|
57 |
-
else if (/\d/.test(ch) || ch == "-" && stream.eat(/\d/)) {
|
58 |
-
stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);
|
59 |
-
return ret("number", "number");
|
60 |
-
}
|
61 |
-
else if (ch == "/") {
|
62 |
-
if (stream.eat("*")) {
|
63 |
-
return chain(stream, state, jsTokenComment);
|
64 |
-
}
|
65 |
-
else if (stream.eat("/")) {
|
66 |
-
stream.skipToEnd();
|
67 |
-
return ret("comment", "comment");
|
68 |
-
}
|
69 |
-
else if (state.reAllowed) {
|
70 |
-
nextUntilUnescaped(stream, "/");
|
71 |
-
stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla
|
72 |
-
return ret("regexp", "string-2");
|
73 |
-
}
|
74 |
-
else {
|
75 |
-
stream.eatWhile(isOperatorChar);
|
76 |
-
return ret("operator", null, stream.current());
|
77 |
-
}
|
78 |
-
}
|
79 |
-
else if (ch == "#") {
|
80 |
-
stream.skipToEnd();
|
81 |
-
return ret("error", "error");
|
82 |
-
}
|
83 |
-
else if (isOperatorChar.test(ch)) {
|
84 |
-
stream.eatWhile(isOperatorChar);
|
85 |
-
return ret("operator", null, stream.current());
|
86 |
-
}
|
87 |
-
else {
|
88 |
-
stream.eatWhile(/[\w\$_]/);
|
89 |
-
var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word];
|
90 |
-
return (known && state.kwAllowed) ? ret(known.type, known.style, word) :
|
91 |
-
ret("variable", "variable", word);
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
function jsTokenString(quote) {
|
96 |
-
return function(stream, state) {
|
97 |
-
if (!nextUntilUnescaped(stream, quote))
|
98 |
-
state.tokenize = jsTokenBase;
|
99 |
-
return ret("string", "string");
|
100 |
-
};
|
101 |
-
}
|
102 |
-
|
103 |
-
function jsTokenComment(stream, state) {
|
104 |
-
var maybeEnd = false, ch;
|
105 |
-
while (ch = stream.next()) {
|
106 |
-
if (ch == "/" && maybeEnd) {
|
107 |
-
state.tokenize = jsTokenBase;
|
108 |
-
break;
|
109 |
-
}
|
110 |
-
maybeEnd = (ch == "*");
|
111 |
-
}
|
112 |
-
return ret("comment", "comment");
|
113 |
-
}
|
114 |
-
|
115 |
-
// Parser
|
116 |
-
|
117 |
-
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true};
|
118 |
-
|
119 |
-
function JSLexical(indented, column, type, align, prev, info) {
|
120 |
-
this.indented = indented;
|
121 |
-
this.column = column;
|
122 |
-
this.type = type;
|
123 |
-
this.prev = prev;
|
124 |
-
this.info = info;
|
125 |
-
if (align != null) this.align = align;
|
126 |
-
}
|
127 |
-
|
128 |
-
function inScope(state, varname) {
|
129 |
-
for (var v = state.localVars; v; v = v.next)
|
130 |
-
if (v.name == varname) return true;
|
131 |
-
}
|
132 |
-
|
133 |
-
function parseJS(state, style, type, content, stream) {
|
134 |
-
var cc = state.cc;
|
135 |
-
// Communicate our context to the combinators.
|
136 |
-
// (Less wasteful than consing up a hundred closures on every call.)
|
137 |
-
cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc;
|
138 |
-
|
139 |
-
if (!state.lexical.hasOwnProperty("align"))
|
140 |
-
state.lexical.align = true;
|
141 |
-
|
142 |
-
while(true) {
|
143 |
-
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
144 |
-
if (combinator(type, content)) {
|
145 |
-
while(cc.length && cc[cc.length - 1].lex)
|
146 |
-
cc.pop()();
|
147 |
-
if (cx.marked) return cx.marked;
|
148 |
-
if (type == "variable" && inScope(state, content)) return "variable-2";
|
149 |
-
return style;
|
150 |
-
}
|
151 |
-
}
|
152 |
-
}
|
153 |
-
|
154 |
-
// Combinator utils
|
155 |
-
|
156 |
-
var cx = {state: null, column: null, marked: null, cc: null};
|
157 |
-
function pass() {
|
158 |
-
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
159 |
-
}
|
160 |
-
function cont() {
|
161 |
-
pass.apply(null, arguments);
|
162 |
-
return true;
|
163 |
-
}
|
164 |
-
function register(varname) {
|
165 |
-
var state = cx.state;
|
166 |
-
if (state.context) {
|
167 |
-
cx.marked = "def";
|
168 |
-
for (var v = state.localVars; v; v = v.next)
|
169 |
-
if (v.name == varname) return;
|
170 |
-
state.localVars = {name: varname, next: state.localVars};
|
171 |
-
}
|
172 |
-
}
|
173 |
-
|
174 |
-
// Combinators
|
175 |
-
|
176 |
-
var defaultVars = {name: "this", next: {name: "arguments"}};
|
177 |
-
function pushcontext() {
|
178 |
-
if (!cx.state.context) cx.state.localVars = defaultVars;
|
179 |
-
cx.state.context = {prev: cx.state.context, vars: cx.state.localVars};
|
180 |
-
}
|
181 |
-
function popcontext() {
|
182 |
-
cx.state.localVars = cx.state.context.vars;
|
183 |
-
cx.state.context = cx.state.context.prev;
|
184 |
-
}
|
185 |
-
function pushlex(type, info) {
|
186 |
-
var result = function() {
|
187 |
-
var state = cx.state;
|
188 |
-
state.lexical = new JSLexical(state.indented, cx.stream.column(), type, null, state.lexical, info)
|
189 |
-
};
|
190 |
-
result.lex = true;
|
191 |
-
return result;
|
192 |
-
}
|
193 |
-
function poplex() {
|
194 |
-
var state = cx.state;
|
195 |
-
if (state.lexical.prev) {
|
196 |
-
if (state.lexical.type == ")")
|
197 |
-
state.indented = state.lexical.indented;
|
198 |
-
state.lexical = state.lexical.prev;
|
199 |
-
}
|
200 |
-
}
|
201 |
-
poplex.lex = true;
|
202 |
-
|
203 |
-
function expect(wanted) {
|
204 |
-
return function expecting(type) {
|
205 |
-
if (type == wanted) return cont();
|
206 |
-
else if (wanted == ";") return pass();
|
207 |
-
else return cont(arguments.callee);
|
208 |
-
};
|
209 |
-
}
|
210 |
-
|
211 |
-
function statement(type) {
|
212 |
-
if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex);
|
213 |
-
if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex);
|
214 |
-
if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
|
215 |
-
if (type == "{") return cont(pushlex("}"), block, poplex);
|
216 |
-
if (type == ";") return cont();
|
217 |
-
if (type == "function") return cont(functiondef);
|
218 |
-
if (type == "for") return cont(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"),
|
219 |
-
poplex, statement, poplex);
|
220 |
-
if (type == "variable") return cont(pushlex("stat"), maybelabel);
|
221 |
-
if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"),
|
222 |
-
block, poplex, poplex);
|
223 |
-
if (type == "case") return cont(expression, expect(":"));
|
224 |
-
if (type == "default") return cont(expect(":"));
|
225 |
-
if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"),
|
226 |
-
statement, poplex, popcontext);
|
227 |
-
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
228 |
-
}
|
229 |
-
function expression(type) {
|
230 |
-
if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator);
|
231 |
-
if (type == "function") return cont(functiondef);
|
232 |
-
if (type == "keyword c") return cont(maybeexpression);
|
233 |
-
if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator);
|
234 |
-
if (type == "operator") return cont(expression);
|
235 |
-
if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator);
|
236 |
-
if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);
|
237 |
-
return cont();
|
238 |
-
}
|
239 |
-
function maybeexpression(type) {
|
240 |
-
if (type.match(/[;\}\)\],]/)) return pass();
|
241 |
-
return pass(expression);
|
242 |
-
}
|
243 |
-
|
244 |
-
function maybeoperator(type, value) {
|
245 |
-
if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);
|
246 |
-
if (type == "operator" || type == ":") return cont(expression);
|
247 |
-
if (type == ";") return;
|
248 |
-
if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator);
|
249 |
-
if (type == ".") return cont(property, maybeoperator);
|
250 |
-
if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
|
251 |
-
}
|
252 |
-
function maybelabel(type) {
|
253 |
-
if (type == ":") return cont(poplex, statement);
|
254 |
-
return pass(maybeoperator, expect(";"), poplex);
|
255 |
-
}
|
256 |
-
function property(type) {
|
257 |
-
if (type == "variable") {cx.marked = "property"; return cont();}
|
258 |
-
}
|
259 |
-
function objprop(type) {
|
260 |
-
if (type == "variable") cx.marked = "property";
|
261 |
-
if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression);
|
262 |
-
}
|
263 |
-
function commasep(what, end) {
|
264 |
-
function proceed(type) {
|
265 |
-
if (type == ",") return cont(what, proceed);
|
266 |
-
if (type == end) return cont();
|
267 |
-
return cont(expect(end));
|
268 |
-
}
|
269 |
-
return function commaSeparated(type) {
|
270 |
-
if (type == end) return cont();
|
271 |
-
else return pass(what, proceed);
|
272 |
-
};
|
273 |
-
}
|
274 |
-
function block(type) {
|
275 |
-
if (type == "}") return cont();
|
276 |
-
return pass(statement, block);
|
277 |
-
}
|
278 |
-
function vardef1(type, value) {
|
279 |
-
if (type == "variable"){register(value); return cont(vardef2);}
|
280 |
-
return cont();
|
281 |
-
}
|
282 |
-
function vardef2(type, value) {
|
283 |
-
if (value == "=") return cont(expression, vardef2);
|
284 |
-
if (type == ",") return cont(vardef1);
|
285 |
-
}
|
286 |
-
function forspec1(type) {
|
287 |
-
if (type == "var") return cont(vardef1, forspec2);
|
288 |
-
if (type == ";") return pass(forspec2);
|
289 |
-
if (type == "variable") return cont(formaybein);
|
290 |
-
return pass(forspec2);
|
291 |
-
}
|
292 |
-
function formaybein(type, value) {
|
293 |
-
if (value == "in") return cont(expression);
|
294 |
-
return cont(maybeoperator, forspec2);
|
295 |
-
}
|
296 |
-
function forspec2(type, value) {
|
297 |
-
if (type == ";") return cont(forspec3);
|
298 |
-
if (value == "in") return cont(expression);
|
299 |
-
return cont(expression, expect(";"), forspec3);
|
300 |
-
}
|
301 |
-
function forspec3(type) {
|
302 |
-
if (type != ")") cont(expression);
|
303 |
-
}
|
304 |
-
function functiondef(type, value) {
|
305 |
-
if (type == "variable") {register(value); return cont(functiondef);}
|
306 |
-
if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext);
|
307 |
-
}
|
308 |
-
function funarg(type, value) {
|
309 |
-
if (type == "variable") {register(value); return cont();}
|
310 |
-
}
|
311 |
-
|
312 |
-
// Interface
|
313 |
-
|
314 |
-
return {
|
315 |
-
startState: function(basecolumn) {
|
316 |
-
return {
|
317 |
-
tokenize: jsTokenBase,
|
318 |
-
reAllowed: true,
|
319 |
-
kwAllowed: true,
|
320 |
-
cc: [],
|
321 |
-
lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
|
322 |
-
localVars: parserConfig.localVars,
|
323 |
-
context: parserConfig.localVars && {vars: parserConfig.localVars},
|
324 |
-
indented: 0
|
325 |
-
};
|
326 |
-
},
|
327 |
-
|
328 |
-
token: function(stream, state) {
|
329 |
-
if (stream.sol()) {
|
330 |
-
if (!state.lexical.hasOwnProperty("align"))
|
331 |
-
state.lexical.align = false;
|
332 |
-
state.indented = stream.indentation();
|
333 |
-
}
|
334 |
-
if (stream.eatSpace()) return null;
|
335 |
-
var style = state.tokenize(stream, state);
|
336 |
-
if (type == "comment") return style;
|
337 |
-
state.reAllowed = !!(type == "operator" || type == "keyword c" || type.match(/^[\[{}\(,;:]$/));
|
338 |
-
state.kwAllowed = type != '.';
|
339 |
-
return parseJS(state, style, type, content, stream);
|
340 |
-
},
|
341 |
-
|
342 |
-
indent: function(state, textAfter) {
|
343 |
-
if (state.tokenize != jsTokenBase) return 0;
|
344 |
-
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical;
|
345 |
-
if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev;
|
346 |
-
var type = lexical.type, closing = firstChar == type;
|
347 |
-
if (type == "vardef") return lexical.indented + 4;
|
348 |
-
else if (type == "form" && firstChar == "{") return lexical.indented;
|
349 |
-
else if (type == "stat" || type == "form") return lexical.indented + indentUnit;
|
350 |
-
else if (lexical.info == "switch" && !closing)
|
351 |
-
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
|
352 |
-
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
353 |
-
else return lexical.indented + (closing ? 0 : indentUnit);
|
354 |
-
},
|
355 |
-
|
356 |
-
electricChars: ":{}"
|
357 |
-
};
|
358 |
-
});
|
359 |
-
|
360 |
-
CodeMirror.defineMIME("text/javascript", "javascript");
|
361 |
-
CodeMirror.defineMIME("application/json", {name: "javascript", json: true});
|
1 |
+
CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
2 |
+
var indentUnit = config.indentUnit;
|
3 |
+
var jsonMode = parserConfig.json;
|
4 |
+
|
5 |
+
// Tokenizer
|
6 |
+
|
7 |
+
var keywords = function(){
|
8 |
+
function kw(type) {return {type: type, style: "keyword"};}
|
9 |
+
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c");
|
10 |
+
var operator = kw("operator"), atom = {type: "atom", style: "atom"};
|
11 |
+
return {
|
12 |
+
"if": A, "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
|
13 |
+
"return": C, "break": C, "continue": C, "new": C, "delete": C, "throw": C,
|
14 |
+
"var": kw("var"), "const": kw("var"), "let": kw("var"),
|
15 |
+
"function": kw("function"), "catch": kw("catch"),
|
16 |
+
"for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
|
17 |
+
"in": operator, "typeof": operator, "instanceof": operator,
|
18 |
+
"true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom
|
19 |
+
};
|
20 |
+
}();
|
21 |
+
|
22 |
+
var isOperatorChar = /[+\-*&%=<>!?|]/;
|
23 |
+
|
24 |
+
function chain(stream, state, f) {
|
25 |
+
state.tokenize = f;
|
26 |
+
return f(stream, state);
|
27 |
+
}
|
28 |
+
|
29 |
+
function nextUntilUnescaped(stream, end) {
|
30 |
+
var escaped = false, next;
|
31 |
+
while ((next = stream.next()) != null) {
|
32 |
+
if (next == end && !escaped)
|
33 |
+
return false;
|
34 |
+
escaped = !escaped && next == "\\";
|
35 |
+
}
|
36 |
+
return escaped;
|
37 |
+
}
|
38 |
+
|
39 |
+
// Used as scratch variables to communicate multiple values without
|
40 |
+
// consing up tons of objects.
|
41 |
+
var type, content;
|
42 |
+
function ret(tp, style, cont) {
|
43 |
+
type = tp; content = cont;
|
44 |
+
return style;
|
45 |
+
}
|
46 |
+
|
47 |
+
function jsTokenBase(stream, state) {
|
48 |
+
var ch = stream.next();
|
49 |
+
if (ch == '"' || ch == "'")
|
50 |
+
return chain(stream, state, jsTokenString(ch));
|
51 |
+
else if (/[\[\]{}\(\),;\:\.]/.test(ch))
|
52 |
+
return ret(ch);
|
53 |
+
else if (ch == "0" && stream.eat(/x/i)) {
|
54 |
+
stream.eatWhile(/[\da-f]/i);
|
55 |
+
return ret("number", "number");
|
56 |
+
}
|
57 |
+
else if (/\d/.test(ch) || ch == "-" && stream.eat(/\d/)) {
|
58 |
+
stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);
|
59 |
+
return ret("number", "number");
|
60 |
+
}
|
61 |
+
else if (ch == "/") {
|
62 |
+
if (stream.eat("*")) {
|
63 |
+
return chain(stream, state, jsTokenComment);
|
64 |
+
}
|
65 |
+
else if (stream.eat("/")) {
|
66 |
+
stream.skipToEnd();
|
67 |
+
return ret("comment", "comment");
|
68 |
+
}
|
69 |
+
else if (state.reAllowed) {
|
70 |
+
nextUntilUnescaped(stream, "/");
|
71 |
+
stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla
|
72 |
+
return ret("regexp", "string-2");
|
73 |
+
}
|
74 |
+
else {
|
75 |
+
stream.eatWhile(isOperatorChar);
|
76 |
+
return ret("operator", null, stream.current());
|
77 |
+
}
|
78 |
+
}
|
79 |
+
else if (ch == "#") {
|
80 |
+
stream.skipToEnd();
|
81 |
+
return ret("error", "error");
|
82 |
+
}
|
83 |
+
else if (isOperatorChar.test(ch)) {
|
84 |
+
stream.eatWhile(isOperatorChar);
|
85 |
+
return ret("operator", null, stream.current());
|
86 |
+
}
|
87 |
+
else {
|
88 |
+
stream.eatWhile(/[\w\$_]/);
|
89 |
+
var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word];
|
90 |
+
return (known && state.kwAllowed) ? ret(known.type, known.style, word) :
|
91 |
+
ret("variable", "variable", word);
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
function jsTokenString(quote) {
|
96 |
+
return function(stream, state) {
|
97 |
+
if (!nextUntilUnescaped(stream, quote))
|
98 |
+
state.tokenize = jsTokenBase;
|
99 |
+
return ret("string", "string");
|
100 |
+
};
|
101 |
+
}
|
102 |
+
|
103 |
+
function jsTokenComment(stream, state) {
|
104 |
+
var maybeEnd = false, ch;
|
105 |
+
while (ch = stream.next()) {
|
106 |
+
if (ch == "/" && maybeEnd) {
|
107 |
+
state.tokenize = jsTokenBase;
|
108 |
+
break;
|
109 |
+
}
|
110 |
+
maybeEnd = (ch == "*");
|
111 |
+
}
|
112 |
+
return ret("comment", "comment");
|
113 |
+
}
|
114 |
+
|
115 |
+
// Parser
|
116 |
+
|
117 |
+
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true};
|
118 |
+
|
119 |
+
function JSLexical(indented, column, type, align, prev, info) {
|
120 |
+
this.indented = indented;
|
121 |
+
this.column = column;
|
122 |
+
this.type = type;
|
123 |
+
this.prev = prev;
|
124 |
+
this.info = info;
|
125 |
+
if (align != null) this.align = align;
|
126 |
+
}
|
127 |
+
|
128 |
+
function inScope(state, varname) {
|
129 |
+
for (var v = state.localVars; v; v = v.next)
|
130 |
+
if (v.name == varname) return true;
|
131 |
+
}
|
132 |
+
|
133 |
+
function parseJS(state, style, type, content, stream) {
|
134 |
+
var cc = state.cc;
|
135 |
+
// Communicate our context to the combinators.
|
136 |
+
// (Less wasteful than consing up a hundred closures on every call.)
|
137 |
+
cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc;
|
138 |
+
|
139 |
+
if (!state.lexical.hasOwnProperty("align"))
|
140 |
+
state.lexical.align = true;
|
141 |
+
|
142 |
+
while(true) {
|
143 |
+
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
144 |
+
if (combinator(type, content)) {
|
145 |
+
while(cc.length && cc[cc.length - 1].lex)
|
146 |
+
cc.pop()();
|
147 |
+
if (cx.marked) return cx.marked;
|
148 |
+
if (type == "variable" && inScope(state, content)) return "variable-2";
|
149 |
+
return style;
|
150 |
+
}
|
151 |
+
}
|
152 |
+
}
|
153 |
+
|
154 |
+
// Combinator utils
|
155 |
+
|
156 |
+
var cx = {state: null, column: null, marked: null, cc: null};
|
157 |
+
function pass() {
|
158 |
+
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
159 |
+
}
|
160 |
+
function cont() {
|
161 |
+
pass.apply(null, arguments);
|
162 |
+
return true;
|
163 |
+
}
|
164 |
+
function register(varname) {
|
165 |
+
var state = cx.state;
|
166 |
+
if (state.context) {
|
167 |
+
cx.marked = "def";
|
168 |
+
for (var v = state.localVars; v; v = v.next)
|
169 |
+
if (v.name == varname) return;
|
170 |
+
state.localVars = {name: varname, next: state.localVars};
|
171 |
+
}
|
172 |
+
}
|
173 |
+
|
174 |
+
// Combinators
|
175 |
+
|
176 |
+
var defaultVars = {name: "this", next: {name: "arguments"}};
|
177 |
+
function pushcontext() {
|
178 |
+
if (!cx.state.context) cx.state.localVars = defaultVars;
|
179 |
+
cx.state.context = {prev: cx.state.context, vars: cx.state.localVars};
|
180 |
+
}
|
181 |
+
function popcontext() {
|
182 |
+
cx.state.localVars = cx.state.context.vars;
|
183 |
+
cx.state.context = cx.state.context.prev;
|
184 |
+
}
|
185 |
+
function pushlex(type, info) {
|
186 |
+
var result = function() {
|
187 |
+
var state = cx.state;
|
188 |
+
state.lexical = new JSLexical(state.indented, cx.stream.column(), type, null, state.lexical, info)
|
189 |
+
};
|
190 |
+
result.lex = true;
|
191 |
+
return result;
|
192 |
+
}
|
193 |
+
function poplex() {
|
194 |
+
var state = cx.state;
|
195 |
+
if (state.lexical.prev) {
|
196 |
+
if (state.lexical.type == ")")
|
197 |
+
state.indented = state.lexical.indented;
|
198 |
+
state.lexical = state.lexical.prev;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
poplex.lex = true;
|
202 |
+
|
203 |
+
function expect(wanted) {
|
204 |
+
return function expecting(type) {
|
205 |
+
if (type == wanted) return cont();
|
206 |
+
else if (wanted == ";") return pass();
|
207 |
+
else return cont(arguments.callee);
|
208 |
+
};
|
209 |
+
}
|
210 |
+
|
211 |
+
function statement(type) {
|
212 |
+
if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex);
|
213 |
+
if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex);
|
214 |
+
if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
|
215 |
+
if (type == "{") return cont(pushlex("}"), block, poplex);
|
216 |
+
if (type == ";") return cont();
|
217 |
+
if (type == "function") return cont(functiondef);
|
218 |
+
if (type == "for") return cont(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"),
|
219 |
+
poplex, statement, poplex);
|
220 |
+
if (type == "variable") return cont(pushlex("stat"), maybelabel);
|
221 |
+
if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"),
|
222 |
+
block, poplex, poplex);
|
223 |
+
if (type == "case") return cont(expression, expect(":"));
|
224 |
+
if (type == "default") return cont(expect(":"));
|
225 |
+
if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"),
|
226 |
+
statement, poplex, popcontext);
|
227 |
+
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
228 |
+
}
|
229 |
+
function expression(type) {
|
230 |
+
if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator);
|
231 |
+
if (type == "function") return cont(functiondef);
|
232 |
+
if (type == "keyword c") return cont(maybeexpression);
|
233 |
+
if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator);
|
234 |
+
if (type == "operator") return cont(expression);
|
235 |
+
if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator);
|
236 |
+
if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);
|
237 |
+
return cont();
|
238 |
+
}
|
239 |
+
function maybeexpression(type) {
|
240 |
+
if (type.match(/[;\}\)\],]/)) return pass();
|
241 |
+
return pass(expression);
|
242 |
+
}
|
243 |
+
|
244 |
+
function maybeoperator(type, value) {
|
245 |
+
if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);
|
246 |
+
if (type == "operator" || type == ":") return cont(expression);
|
247 |
+
if (type == ";") return;
|
248 |
+
if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator);
|
249 |
+
if (type == ".") return cont(property, maybeoperator);
|
250 |
+
if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
|
251 |
+
}
|
252 |
+
function maybelabel(type) {
|
253 |
+
if (type == ":") return cont(poplex, statement);
|
254 |
+
return pass(maybeoperator, expect(";"), poplex);
|
255 |
+
}
|
256 |
+
function property(type) {
|
257 |
+
if (type == "variable") {cx.marked = "property"; return cont();}
|
258 |
+
}
|
259 |
+
function objprop(type) {
|
260 |
+
if (type == "variable") cx.marked = "property";
|
261 |
+
if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression);
|
262 |
+
}
|
263 |
+
function commasep(what, end) {
|
264 |
+
function proceed(type) {
|
265 |
+
if (type == ",") return cont(what, proceed);
|
266 |
+
if (type == end) return cont();
|
267 |
+
return cont(expect(end));
|
268 |
+
}
|
269 |
+
return function commaSeparated(type) {
|
270 |
+
if (type == end) return cont();
|
271 |
+
else return pass(what, proceed);
|
272 |
+
};
|
273 |
+
}
|
274 |
+
function block(type) {
|
275 |
+
if (type == "}") return cont();
|
276 |
+
return pass(statement, block);
|
277 |
+
}
|
278 |
+
function vardef1(type, value) {
|
279 |
+
if (type == "variable"){register(value); return cont(vardef2);}
|
280 |
+
return cont();
|
281 |
+
}
|
282 |
+
function vardef2(type, value) {
|
283 |
+
if (value == "=") return cont(expression, vardef2);
|
284 |
+
if (type == ",") return cont(vardef1);
|
285 |
+
}
|
286 |
+
function forspec1(type) {
|
287 |
+
if (type == "var") return cont(vardef1, forspec2);
|
288 |
+
if (type == ";") return pass(forspec2);
|
289 |
+
if (type == "variable") return cont(formaybein);
|
290 |
+
return pass(forspec2);
|
291 |
+
}
|
292 |
+
function formaybein(type, value) {
|
293 |
+
if (value == "in") return cont(expression);
|
294 |
+
return cont(maybeoperator, forspec2);
|
295 |
+
}
|
296 |
+
function forspec2(type, value) {
|
297 |
+
if (type == ";") return cont(forspec3);
|
298 |
+
if (value == "in") return cont(expression);
|
299 |
+
return cont(expression, expect(";"), forspec3);
|
300 |
+
}
|
301 |
+
function forspec3(type) {
|
302 |
+
if (type != ")") cont(expression);
|
303 |
+
}
|
304 |
+
function functiondef(type, value) {
|
305 |
+
if (type == "variable") {register(value); return cont(functiondef);}
|
306 |
+
if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext);
|
307 |
+
}
|
308 |
+
function funarg(type, value) {
|
309 |
+
if (type == "variable") {register(value); return cont();}
|
310 |
+
}
|
311 |
+
|
312 |
+
// Interface
|
313 |
+
|
314 |
+
return {
|
315 |
+
startState: function(basecolumn) {
|
316 |
+
return {
|
317 |
+
tokenize: jsTokenBase,
|
318 |
+
reAllowed: true,
|
319 |
+
kwAllowed: true,
|
320 |
+
cc: [],
|
321 |
+
lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
|
322 |
+
localVars: parserConfig.localVars,
|
323 |
+
context: parserConfig.localVars && {vars: parserConfig.localVars},
|
324 |
+
indented: 0
|
325 |
+
};
|
326 |
+
},
|
327 |
+
|
328 |
+
token: function(stream, state) {
|
329 |
+
if (stream.sol()) {
|
330 |
+
if (!state.lexical.hasOwnProperty("align"))
|
331 |
+
state.lexical.align = false;
|
332 |
+
state.indented = stream.indentation();
|
333 |
+
}
|
334 |
+
if (stream.eatSpace()) return null;
|
335 |
+
var style = state.tokenize(stream, state);
|
336 |
+
if (type == "comment") return style;
|
337 |
+
state.reAllowed = !!(type == "operator" || type == "keyword c" || type.match(/^[\[{}\(,;:]$/));
|
338 |
+
state.kwAllowed = type != '.';
|
339 |
+
return parseJS(state, style, type, content, stream);
|
340 |
+
},
|
341 |
+
|
342 |
+
indent: function(state, textAfter) {
|
343 |
+
if (state.tokenize != jsTokenBase) return 0;
|
344 |
+
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical;
|
345 |
+
if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev;
|
346 |
+
var type = lexical.type, closing = firstChar == type;
|
347 |
+
if (type == "vardef") return lexical.indented + 4;
|
348 |
+
else if (type == "form" && firstChar == "{") return lexical.indented;
|
349 |
+
else if (type == "stat" || type == "form") return lexical.indented + indentUnit;
|
350 |
+
else if (lexical.info == "switch" && !closing)
|
351 |
+
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
|
352 |
+
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
353 |
+
else return lexical.indented + (closing ? 0 : indentUnit);
|
354 |
+
},
|
355 |
+
|
356 |
+
electricChars: ":{}"
|
357 |
+
};
|
358 |
+
});
|
359 |
+
|
360 |
+
CodeMirror.defineMIME("text/javascript", "javascript");
|
361 |
+
CodeMirror.defineMIME("application/json", {name: "javascript", json: true});
|
js/layout/php.js
CHANGED
@@ -1,150 +1,150 @@
|
|
1 |
-
(function() {
|
2 |
-
function keywords(str) {
|
3 |
-
var obj = {}, words = str.split(" ");
|
4 |
-
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
5 |
-
return obj;
|
6 |
-
}
|
7 |
-
function heredoc(delim) {
|
8 |
-
return function(stream, state) {
|
9 |
-
if (stream.match(delim)) state.tokenize = null;
|
10 |
-
else stream.skipToEnd();
|
11 |
-
return "string";
|
12 |
-
}
|
13 |
-
}
|
14 |
-
var phpConfig = {
|
15 |
-
name: "clike",
|
16 |
-
keywords: keywords("abstract and array as break case catch class clone const continue declare default " +
|
17 |
-
"do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final " +
|
18 |
-
"for foreach function global goto if implements interface instanceof namespace " +
|
19 |
-
"new or private protected public static switch throw trait try use var while xor " +
|
20 |
-
"die echo empty exit eval include include_once isset list require require_once return " +
|
21 |
-
"print unset __halt_compiler self static parent"),
|
22 |
-
blockKeywords: keywords("catch do else elseif for foreach if switch try while"),
|
23 |
-
atoms: keywords("true false null TRUE FALSE NULL"),
|
24 |
-
multiLineStrings: true,
|
25 |
-
hooks: {
|
26 |
-
"$": function(stream, state) {
|
27 |
-
stream.eatWhile(/[\w\$_]/);
|
28 |
-
return "variable-2";
|
29 |
-
},
|
30 |
-
"<": function(stream, state) {
|
31 |
-
if (stream.match(/<</)) {
|
32 |
-
stream.eatWhile(/[\w\.]/);
|
33 |
-
state.tokenize = heredoc(stream.current().slice(3));
|
34 |
-
return state.tokenize(stream, state);
|
35 |
-
}
|
36 |
-
return false;
|
37 |
-
},
|
38 |
-
"#": function(stream, state) {
|
39 |
-
while (!stream.eol() && !stream.match("?>", false)) stream.next();
|
40 |
-
return "comment";
|
41 |
-
},
|
42 |
-
"/": function(stream, state) {
|
43 |
-
if (stream.eat("/")) {
|
44 |
-
while (!stream.eol() && !stream.match("?>", false)) stream.next();
|
45 |
-
return "comment";
|
46 |
-
}
|
47 |
-
return false;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
};
|
51 |
-
|
52 |
-
CodeMirror.defineMode("php", function(config, parserConfig) {
|
53 |
-
var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true});
|
54 |
-
var jsMode = CodeMirror.getMode(config, "javascript");
|
55 |
-
var cssMode = CodeMirror.getMode(config, "css");
|
56 |
-
var phpMode = CodeMirror.getMode(config, phpConfig);
|
57 |
-
|
58 |
-
function dispatch(stream, state) { // TODO open PHP inside text/css
|
59 |
-
var isPHP = state.mode == "php";
|
60 |
-
if (stream.sol() && state.pending != '"') state.pending = null;
|
61 |
-
if (state.curMode == htmlMode) {
|
62 |
-
if (stream.match(/^<\?\w*/)) {
|
63 |
-
state.curMode = phpMode;
|
64 |
-
state.curState = state.php;
|
65 |
-
state.curClose = "?>";
|
66 |
-
state.mode = "php";
|
67 |
-
return "meta";
|
68 |
-
}
|
69 |
-
if (state.pending == '"') {
|
70 |
-
while (!stream.eol() && stream.next() != '"') {}
|
71 |
-
var style = "string";
|
72 |
-
} else if (state.pending && stream.pos < state.pending.end) {
|
73 |
-
stream.pos = state.pending.end;
|
74 |
-
var style = state.pending.style;
|
75 |
-
} else {
|
76 |
-
var style = htmlMode.token(stream, state.curState);
|
77 |
-
}
|
78 |
-
state.pending = null;
|
79 |
-
var cur = stream.current(), openPHP = cur.search(/<\?/);
|
80 |
-
if (openPHP != -1) {
|
81 |
-
if (style == "string" && /\"$/.test(cur) && !/\?>/.test(cur)) state.pending = '"';
|
82 |
-
else state.pending = {end: stream.pos, style: style};
|
83 |
-
stream.backUp(cur.length - openPHP);
|
84 |
-
} else if (style == "tag" && stream.current() == ">" && state.curState.context) {
|
85 |
-
if (/^script$/i.test(state.curState.context.tagName)) {
|
86 |
-
state.curMode = jsMode;
|
87 |
-
state.curState = jsMode.startState(htmlMode.indent(state.curState, ""));
|
88 |
-
state.curClose = /^<\/\s*script\s*>/i;
|
89 |
-
state.mode = "javascript";
|
90 |
-
}
|
91 |
-
else if (/^style$/i.test(state.curState.context.tagName)) {
|
92 |
-
state.curMode = cssMode;
|
93 |
-
state.curState = cssMode.startState(htmlMode.indent(state.curState, ""));
|
94 |
-
state.curClose = /^<\/\s*style\s*>/i;
|
95 |
-
state.mode = "css";
|
96 |
-
}
|
97 |
-
}
|
98 |
-
return style;
|
99 |
-
} else if ((!isPHP || state.php.tokenize == null) &&
|
100 |
-
stream.match(state.curClose, isPHP)) {
|
101 |
-
state.curMode = htmlMode;
|
102 |
-
state.curState = state.html;
|
103 |
-
state.curClose = null;
|
104 |
-
state.mode = "html";
|
105 |
-
if (isPHP) return "meta";
|
106 |
-
else return dispatch(stream, state);
|
107 |
-
} else {
|
108 |
-
return state.curMode.token(stream, state.curState);
|
109 |
-
}
|
110 |
-
}
|
111 |
-
|
112 |
-
return {
|
113 |
-
startState: function() {
|
114 |
-
var html = htmlMode.startState();
|
115 |
-
return {html: html,
|
116 |
-
php: phpMode.startState(),
|
117 |
-
curMode: parserConfig.startOpen ? phpMode : htmlMode,
|
118 |
-
curState: parserConfig.startOpen ? phpMode.startState() : html,
|
119 |
-
curClose: parserConfig.startOpen ? /^\?>/ : null,
|
120 |
-
mode: parserConfig.startOpen ? "php" : "html",
|
121 |
-
pending: null}
|
122 |
-
},
|
123 |
-
|
124 |
-
copyState: function(state) {
|
125 |
-
var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
|
126 |
-
php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
|
127 |
-
if (state.curState == html) cur = htmlNew;
|
128 |
-
else if (state.curState == php) cur = phpNew;
|
129 |
-
else cur = CodeMirror.copyState(state.curMode, state.curState);
|
130 |
-
return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur,
|
131 |
-
curClose: state.curClose, mode: state.mode,
|
132 |
-
pending: state.pending};
|
133 |
-
},
|
134 |
-
|
135 |
-
token: dispatch,
|
136 |
-
|
137 |
-
indent: function(state, textAfter) {
|
138 |
-
if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) ||
|
139 |
-
(state.curMode == phpMode && /^\?>/.test(textAfter)))
|
140 |
-
return htmlMode.indent(state.html, textAfter);
|
141 |
-
return state.curMode.indent(state.curState, textAfter);
|
142 |
-
},
|
143 |
-
|
144 |
-
electricChars: "/{}:"
|
145 |
-
}
|
146 |
-
}, "xml", "clike", "javascript", "css");
|
147 |
-
CodeMirror.defineMIME("application/x-httpd-php", "php");
|
148 |
-
CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
|
149 |
-
CodeMirror.defineMIME("text/x-php", phpConfig);
|
150 |
-
})();
|
1 |
+
(function() {
|
2 |
+
function keywords(str) {
|
3 |
+
var obj = {}, words = str.split(" ");
|
4 |
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
5 |
+
return obj;
|
6 |
+
}
|
7 |
+
function heredoc(delim) {
|
8 |
+
return function(stream, state) {
|
9 |
+
if (stream.match(delim)) state.tokenize = null;
|
10 |
+
else stream.skipToEnd();
|
11 |
+
return "string";
|
12 |
+
}
|
13 |
+
}
|
14 |
+
var phpConfig = {
|
15 |
+
name: "clike",
|
16 |
+
keywords: keywords("abstract and array as break case catch class clone const continue declare default " +
|
17 |
+
"do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final " +
|
18 |
+
"for foreach function global goto if implements interface instanceof namespace " +
|
19 |
+
"new or private protected public static switch throw trait try use var while xor " +
|
20 |
+
"die echo empty exit eval include include_once isset list require require_once return " +
|
21 |
+
"print unset __halt_compiler self static parent"),
|
22 |
+
blockKeywords: keywords("catch do else elseif for foreach if switch try while"),
|
23 |
+
atoms: keywords("true false null TRUE FALSE NULL"),
|
24 |
+
multiLineStrings: true,
|
25 |
+
hooks: {
|
26 |
+
"$": function(stream, state) {
|
27 |
+
stream.eatWhile(/[\w\$_]/);
|
28 |
+
return "variable-2";
|
29 |
+
},
|
30 |
+
"<": function(stream, state) {
|
31 |
+
if (stream.match(/<</)) {
|
32 |
+
stream.eatWhile(/[\w\.]/);
|
33 |
+
state.tokenize = heredoc(stream.current().slice(3));
|
34 |
+
return state.tokenize(stream, state);
|
35 |
+
}
|
36 |
+
return false;
|
37 |
+
},
|
38 |
+
"#": function(stream, state) {
|
39 |
+
while (!stream.eol() && !stream.match("?>", false)) stream.next();
|
40 |
+
return "comment";
|
41 |
+
},
|
42 |
+
"/": function(stream, state) {
|
43 |
+
if (stream.eat("/")) {
|
44 |
+
while (!stream.eol() && !stream.match("?>", false)) stream.next();
|
45 |
+
return "comment";
|
46 |
+
}
|
47 |
+
return false;
|
48 |
+
}
|
49 |
+
}
|
50 |
+
};
|
51 |
+
|
52 |
+
CodeMirror.defineMode("php", function(config, parserConfig) {
|
53 |
+
var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true});
|
54 |
+
var jsMode = CodeMirror.getMode(config, "javascript");
|
55 |
+
var cssMode = CodeMirror.getMode(config, "css");
|
56 |
+
var phpMode = CodeMirror.getMode(config, phpConfig);
|
57 |
+
|
58 |
+
function dispatch(stream, state) { // TODO open PHP inside text/css
|
59 |
+
var isPHP = state.mode == "php";
|
60 |
+
if (stream.sol() && state.pending != '"') state.pending = null;
|
61 |
+
if (state.curMode == htmlMode) {
|
62 |
+
if (stream.match(/^<\?\w*/)) {
|
63 |
+
state.curMode = phpMode;
|
64 |
+
state.curState = state.php;
|
65 |
+
state.curClose = "?>";
|
66 |
+
state.mode = "php";
|
67 |
+
return "meta";
|
68 |
+
}
|
69 |
+
if (state.pending == '"') {
|
70 |
+
while (!stream.eol() && stream.next() != '"') {}
|
71 |
+
var style = "string";
|
72 |
+
} else if (state.pending && stream.pos < state.pending.end) {
|
73 |
+
stream.pos = state.pending.end;
|
74 |
+
var style = state.pending.style;
|
75 |
+
} else {
|
76 |
+
var style = htmlMode.token(stream, state.curState);
|
77 |
+
}
|
78 |
+
state.pending = null;
|
79 |
+
var cur = stream.current(), openPHP = cur.search(/<\?/);
|
80 |
+
if (openPHP != -1) {
|
81 |
+
if (style == "string" && /\"$/.test(cur) && !/\?>/.test(cur)) state.pending = '"';
|
82 |
+
else state.pending = {end: stream.pos, style: style};
|
83 |
+
stream.backUp(cur.length - openPHP);
|
84 |
+
} else if (style == "tag" && stream.current() == ">" && state.curState.context) {
|
85 |
+
if (/^script$/i.test(state.curState.context.tagName)) {
|
86 |
+
state.curMode = jsMode;
|
87 |
+
state.curState = jsMode.startState(htmlMode.indent(state.curState, ""));
|
88 |
+
state.curClose = /^<\/\s*script\s*>/i;
|
89 |
+
state.mode = "javascript";
|
90 |
+
}
|
91 |
+
else if (/^style$/i.test(state.curState.context.tagName)) {
|
92 |
+
state.curMode = cssMode;
|
93 |
+
state.curState = cssMode.startState(htmlMode.indent(state.curState, ""));
|
94 |
+
state.curClose = /^<\/\s*style\s*>/i;
|
95 |
+
state.mode = "css";
|
96 |
+
}
|
97 |
+
}
|
98 |
+
return style;
|
99 |
+
} else if ((!isPHP || state.php.tokenize == null) &&
|
100 |
+
stream.match(state.curClose, isPHP)) {
|
101 |
+
state.curMode = htmlMode;
|
102 |
+
state.curState = state.html;
|
103 |
+
state.curClose = null;
|
104 |
+
state.mode = "html";
|
105 |
+
if (isPHP) return "meta";
|
106 |
+
else return dispatch(stream, state);
|
107 |
+
} else {
|
108 |
+
return state.curMode.token(stream, state.curState);
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
return {
|
113 |
+
startState: function() {
|
114 |
+
var html = htmlMode.startState();
|
115 |
+
return {html: html,
|
116 |
+
php: phpMode.startState(),
|
117 |
+
curMode: parserConfig.startOpen ? phpMode : htmlMode,
|
118 |
+
curState: parserConfig.startOpen ? phpMode.startState() : html,
|
119 |
+
curClose: parserConfig.startOpen ? /^\?>/ : null,
|
120 |
+
mode: parserConfig.startOpen ? "php" : "html",
|
121 |
+
pending: null}
|
122 |
+
},
|
123 |
+
|
124 |
+
copyState: function(state) {
|
125 |
+
var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
|
126 |
+
php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
|
127 |
+
if (state.curState == html) cur = htmlNew;
|
128 |
+
else if (state.curState == php) cur = phpNew;
|
129 |
+
else cur = CodeMirror.copyState(state.curMode, state.curState);
|
130 |
+
return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur,
|
131 |
+
curClose: state.curClose, mode: state.mode,
|
132 |
+
pending: state.pending};
|
133 |
+
},
|
134 |
+
|
135 |
+
token: dispatch,
|
136 |
+
|
137 |
+
indent: function(state, textAfter) {
|
138 |
+
if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) ||
|
139 |
+
(state.curMode == phpMode && /^\?>/.test(textAfter)))
|
140 |
+
return htmlMode.indent(state.html, textAfter);
|
141 |
+
return state.curMode.indent(state.curState, textAfter);
|
142 |
+
},
|
143 |
+
|
144 |
+
electricChars: "/{}:"
|
145 |
+
}
|
146 |
+
}, "xml", "clike", "javascript", "css");
|
147 |
+
CodeMirror.defineMIME("application/x-httpd-php", "php");
|
148 |
+
CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
|
149 |
+
CodeMirror.defineMIME("text/x-php", phpConfig);
|
150 |
+
})();
|
js/layout/xml.js
CHANGED
@@ -1,325 +1,325 @@
|
|
1 |
-
CodeMirror.defineMode("xml", function(config, parserConfig) {
|
2 |
-
var indentUnit = config.indentUnit;
|
3 |
-
var Kludges = parserConfig.htmlMode ? {
|
4 |
-
autoSelfClosers: {'area': true, 'base': true, 'br': true, 'col': true, 'command': true,
|
5 |
-
'embed': true, 'frame': true, 'hr': true, 'img': true, 'input': true,
|
6 |
-
'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true,
|
7 |
-
'track': true, 'wbr': true},
|
8 |
-
implicitlyClosed: {'dd': true, 'li': true, 'optgroup': true, 'option': true, 'p': true,
|
9 |
-
'rp': true, 'rt': true, 'tbody': true, 'td': true, 'tfoot': true,
|
10 |
-
'th': true, 'tr': true},
|
11 |
-
contextGrabbers: {
|
12 |
-
'dd': {'dd': true, 'dt': true},
|
13 |
-
'dt': {'dd': true, 'dt': true},
|
14 |
-
'li': {'li': true},
|
15 |
-
'option': {'option': true, 'optgroup': true},
|
16 |
-
'optgroup': {'optgroup': true},
|
17 |
-
'p': {'address': true, 'article': true, 'aside': true, 'blockquote': true, 'dir': true,
|
18 |
-
'div': true, 'dl': true, 'fieldset': true, 'footer': true, 'form': true,
|
19 |
-
'h1': true, 'h2': true, 'h3': true, 'h4': true, 'h5': true, 'h6': true,
|
20 |
-
'header': true, 'hgroup': true, 'hr': true, 'menu': true, 'nav': true, 'ol': true,
|
21 |
-
'p': true, 'pre': true, 'section': true, 'table': true, 'ul': true},
|
22 |
-
'rp': {'rp': true, 'rt': true},
|
23 |
-
'rt': {'rp': true, 'rt': true},
|
24 |
-
'tbody': {'tbody': true, 'tfoot': true},
|
25 |
-
'td': {'td': true, 'th': true},
|
26 |
-
'tfoot': {'tbody': true},
|
27 |
-
'th': {'td': true, 'th': true},
|
28 |
-
'thead': {'tbody': true, 'tfoot': true},
|
29 |
-
'tr': {'tr': true}
|
30 |
-
},
|
31 |
-
doNotIndent: {"pre": true},
|
32 |
-
allowUnquoted: true,
|
33 |
-
allowMissing: false
|
34 |
-
} : {
|
35 |
-
autoSelfClosers: {},
|
36 |
-
implicitlyClosed: {},
|
37 |
-
contextGrabbers: {},
|
38 |
-
doNotIndent: {},
|
39 |
-
allowUnquoted: false,
|
40 |
-
allowMissing: false
|
41 |
-
};
|
42 |
-
var alignCDATA = parserConfig.alignCDATA;
|
43 |
-
|
44 |
-
// Return variables for tokenizers
|
45 |
-
var tagName, type;
|
46 |
-
|
47 |
-
function inText(stream, state) {
|
48 |
-
function chain(parser) {
|
49 |
-
state.tokenize = parser;
|
50 |
-
return parser(stream, state);
|
51 |
-
}
|
52 |
-
|
53 |
-
var ch = stream.next();
|
54 |
-
if (ch == "<") {
|
55 |
-
if (stream.eat("!")) {
|
56 |
-
if (stream.eat("[")) {
|
57 |
-
if (stream.match("CDATA[")) return chain(inBlock("atom", "]]>"));
|
58 |
-
else return null;
|
59 |
-
}
|
60 |
-
else if (stream.match("--")) return chain(inBlock("comment", "-->"));
|
61 |
-
else if (stream.match("DOCTYPE", true, true)) {
|
62 |
-
stream.eatWhile(/[\w\._\-]/);
|
63 |
-
return chain(doctype(1));
|
64 |
-
}
|
65 |
-
else return null;
|
66 |
-
}
|
67 |
-
else if (stream.eat("?")) {
|
68 |
-
stream.eatWhile(/[\w\._\-]/);
|
69 |
-
state.tokenize = inBlock("meta", "?>");
|
70 |
-
return "meta";
|
71 |
-
}
|
72 |
-
else {
|
73 |
-
type = stream.eat("/") ? "closeTag" : "openTag";
|
74 |
-
stream.eatSpace();
|
75 |
-
tagName = "";
|
76 |
-
var c;
|
77 |
-
while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c;
|
78 |
-
state.tokenize = inTag;
|
79 |
-
return "tag";
|
80 |
-
}
|
81 |
-
}
|
82 |
-
else if (ch == "&") {
|
83 |
-
var ok;
|
84 |
-
if (stream.eat("#")) {
|
85 |
-
if (stream.eat("x")) {
|
86 |
-
ok = stream.eatWhile(/[a-fA-F\d]/) && stream.eat(";");
|
87 |
-
} else {
|
88 |
-
ok = stream.eatWhile(/[\d]/) && stream.eat(";");
|
89 |
-
}
|
90 |
-
} else {
|
91 |
-
ok = stream.eatWhile(/[\w\.\-:]/) && stream.eat(";");
|
92 |
-
}
|
93 |
-
return ok ? "atom" : "error";
|
94 |
-
}
|
95 |
-
else {
|
96 |
-
stream.eatWhile(/[^&<]/);
|
97 |
-
return null;
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
function inTag(stream, state) {
|
102 |
-
var ch = stream.next();
|
103 |
-
if (ch == ">" || (ch == "/" && stream.eat(">"))) {
|
104 |
-
state.tokenize = inText;
|
105 |
-
type = ch == ">" ? "endTag" : "selfcloseTag";
|
106 |
-
return "tag";
|
107 |
-
}
|
108 |
-
else if (ch == "=") {
|
109 |
-
type = "equals";
|
110 |
-
return null;
|
111 |
-
}
|
112 |
-
else if (/[\'\"]/.test(ch)) {
|
113 |
-
state.tokenize = inAttribute(ch);
|
114 |
-
return state.tokenize(stream, state);
|
115 |
-
}
|
116 |
-
else {
|
117 |
-
stream.eatWhile(/[^\s\u00a0=<>\"\'\/?]/);
|
118 |
-
return "word";
|
119 |
-
}
|
120 |
-
}
|
121 |
-
|
122 |
-
function inAttribute(quote) {
|
123 |
-
return function(stream, state) {
|
124 |
-
while (!stream.eol()) {
|
125 |
-
if (stream.next() == quote) {
|
126 |
-
state.tokenize = inTag;
|
127 |
-
break;
|
128 |
-
}
|
129 |
-
}
|
130 |
-
return "string";
|
131 |
-
};
|
132 |
-
}
|
133 |
-
|
134 |
-
function inBlock(style, terminator) {
|
135 |
-
return function(stream, state) {
|
136 |
-
while (!stream.eol()) {
|
137 |
-
if (stream.match(terminator)) {
|
138 |
-
state.tokenize = inText;
|
139 |
-
break;
|
140 |
-
}
|
141 |
-
stream.next();
|
142 |
-
}
|
143 |
-
return style;
|
144 |
-
};
|
145 |
-
}
|
146 |
-
function doctype(depth) {
|
147 |
-
return function(stream, state) {
|
148 |
-
var ch;
|
149 |
-
while ((ch = stream.next()) != null) {
|
150 |
-
if (ch == "<") {
|
151 |
-
state.tokenize = doctype(depth + 1);
|
152 |
-
return state.tokenize(stream, state);
|
153 |
-
} else if (ch == ">") {
|
154 |
-
if (depth == 1) {
|
155 |
-
state.tokenize = inText;
|
156 |
-
break;
|
157 |
-
} else {
|
158 |
-
state.tokenize = doctype(depth - 1);
|
159 |
-
return state.tokenize(stream, state);
|
160 |
-
}
|
161 |
-
}
|
162 |
-
}
|
163 |
-
return "meta";
|
164 |
-
};
|
165 |
-
}
|
166 |
-
|
167 |
-
var curState, setStyle;
|
168 |
-
function pass() {
|
169 |
-
for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]);
|
170 |
-
}
|
171 |
-
function cont() {
|
172 |
-
pass.apply(null, arguments);
|
173 |
-
return true;
|
174 |
-
}
|
175 |
-
|
176 |
-
function pushContext(tagName, startOfLine) {
|
177 |
-
var noIndent = Kludges.doNotIndent.hasOwnProperty(tagName) || (curState.context && curState.context.noIndent);
|
178 |
-
curState.context = {
|
179 |
-
prev: curState.context,
|
180 |
-
tagName: tagName,
|
181 |
-
indent: curState.indented,
|
182 |
-
startOfLine: startOfLine,
|
183 |
-
noIndent: noIndent
|
184 |
-
};
|
185 |
-
}
|
186 |
-
function popContext() {
|
187 |
-
if (curState.context) curState.context = curState.context.prev;
|
188 |
-
}
|
189 |
-
|
190 |
-
function element(type) {
|
191 |
-
if (type == "openTag") {
|
192 |
-
curState.tagName = tagName;
|
193 |
-
return cont(attributes, endtag(curState.startOfLine));
|
194 |
-
} else if (type == "closeTag") {
|
195 |
-
var err = false;
|
196 |
-
if (curState.context) {
|
197 |
-
if (curState.context.tagName != tagName) {
|
198 |
-
if (Kludges.implicitlyClosed.hasOwnProperty(curState.context.tagName.toLowerCase())) {
|
199 |
-
popContext();
|
200 |
-
}
|
201 |
-
err = !curState.context || curState.context.tagName != tagName;
|
202 |
-
}
|
203 |
-
} else {
|
204 |
-
err = true;
|
205 |
-
}
|
206 |
-
if (err) setStyle = "error";
|
207 |
-
return cont(endclosetag(err));
|
208 |
-
}
|
209 |
-
return cont();
|
210 |
-
}
|
211 |
-
function endtag(startOfLine) {
|
212 |
-
return function(type) {
|
213 |
-
if (type == "selfcloseTag" ||
|
214 |
-
(type == "endTag" && Kludges.autoSelfClosers.hasOwnProperty(curState.tagName.toLowerCase()))) {
|
215 |
-
maybePopContext(curState.tagName.toLowerCase());
|
216 |
-
return cont();
|
217 |
-
}
|
218 |
-
if (type == "endTag") {
|
219 |
-
maybePopContext(curState.tagName.toLowerCase());
|
220 |
-
pushContext(curState.tagName, startOfLine);
|
221 |
-
return cont();
|
222 |
-
}
|
223 |
-
return cont();
|
224 |
-
};
|
225 |
-
}
|
226 |
-
function endclosetag(err) {
|
227 |
-
return function(type) {
|
228 |
-
if (err) setStyle = "error";
|
229 |
-
if (type == "endTag") { popContext(); return cont(); }
|
230 |
-
setStyle = "error";
|
231 |
-
return cont(arguments.callee);
|
232 |
-
}
|
233 |
-
}
|
234 |
-
function maybePopContext(nextTagName) {
|
235 |
-
var parentTagName;
|
236 |
-
while (true) {
|
237 |
-
if (!curState.context) {
|
238 |
-
return;
|
239 |
-
}
|
240 |
-
parentTagName = curState.context.tagName.toLowerCase();
|
241 |
-
if (!Kludges.contextGrabbers.hasOwnProperty(parentTagName) ||
|
242 |
-
!Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)) {
|
243 |
-
return;
|
244 |
-
}
|
245 |
-
popContext();
|
246 |
-
}
|
247 |
-
}
|
248 |
-
|
249 |
-
function attributes(type) {
|
250 |
-
if (type == "word") {setStyle = "attribute"; return cont(attribute, attributes);}
|
251 |
-
if (type == "endTag" || type == "selfcloseTag") return pass();
|
252 |
-
setStyle = "error";
|
253 |
-
return cont(attributes);
|
254 |
-
}
|
255 |
-
function attribute(type) {
|
256 |
-
if (type == "equals") return cont(attvalue, attributes);
|
257 |
-
if (!Kludges.allowMissing) setStyle = "error";
|
258 |
-
return (type == "endTag" || type == "selfcloseTag") ? pass() : cont();
|
259 |
-
}
|
260 |
-
function attvalue(type) {
|
261 |
-
if (type == "string") return cont(attvaluemaybe);
|
262 |
-
if (type == "word" && Kludges.allowUnquoted) {setStyle = "string"; return cont();}
|
263 |
-
setStyle = "error";
|
264 |
-
return (type == "endTag" || type == "selfCloseTag") ? pass() : cont();
|
265 |
-
}
|
266 |
-
function attvaluemaybe(type) {
|
267 |
-
if (type == "string") return cont(attvaluemaybe);
|
268 |
-
else return pass();
|
269 |
-
}
|
270 |
-
|
271 |
-
return {
|
272 |
-
startState: function() {
|
273 |
-
return {tokenize: inText, cc: [], indented: 0, startOfLine: true, tagName: null, context: null};
|
274 |
-
},
|
275 |
-
|
276 |
-
token: function(stream, state) {
|
277 |
-
if (stream.sol()) {
|
278 |
-
state.startOfLine = true;
|
279 |
-
state.indented = stream.indentation();
|
280 |
-
}
|
281 |
-
if (stream.eatSpace()) return null;
|
282 |
-
|
283 |
-
setStyle = type = tagName = null;
|
284 |
-
var style = state.tokenize(stream, state);
|
285 |
-
state.type = type;
|
286 |
-
if ((style || type) && style != "comment") {
|
287 |
-
curState = state;
|
288 |
-
while (true) {
|
289 |
-
var comb = state.cc.pop() || element;
|
290 |
-
if (comb(type || style)) break;
|
291 |
-
}
|
292 |
-
}
|
293 |
-
state.startOfLine = false;
|
294 |
-
return setStyle || style;
|
295 |
-
},
|
296 |
-
|
297 |
-
indent: function(state, textAfter, fullLine) {
|
298 |
-
var context = state.context;
|
299 |
-
if ((state.tokenize != inTag && state.tokenize != inText) ||
|
300 |
-
context && context.noIndent)
|
301 |
-
return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0;
|
302 |
-
if (alignCDATA && /<!\[CDATA\[/.test(textAfter)) return 0;
|
303 |
-
if (context && /^<\//.test(textAfter))
|
304 |
-
context = context.prev;
|
305 |
-
while (context && !context.startOfLine)
|
306 |
-
context = context.prev;
|
307 |
-
if (context) return context.indent + indentUnit;
|
308 |
-
else return 0;
|
309 |
-
},
|
310 |
-
|
311 |
-
compareStates: function(a, b) {
|
312 |
-
if (a.indented != b.indented || a.tokenize != b.tokenize) return false;
|
313 |
-
for (var ca = a.context, cb = b.context; ; ca = ca.prev, cb = cb.prev) {
|
314 |
-
if (!ca || !cb) return ca == cb;
|
315 |
-
if (ca.tagName != cb.tagName) return false;
|
316 |
-
}
|
317 |
-
},
|
318 |
-
|
319 |
-
electricChars: "/"
|
320 |
-
};
|
321 |
-
});
|
322 |
-
|
323 |
-
CodeMirror.defineMIME("application/xml", "xml");
|
324 |
-
if (!CodeMirror.mimeModes.hasOwnProperty("text/html"))
|
325 |
-
CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true});
|
1 |
+
CodeMirror.defineMode("xml", function(config, parserConfig) {
|
2 |
+
var indentUnit = config.indentUnit;
|
3 |
+
var Kludges = parserConfig.htmlMode ? {
|
4 |
+
autoSelfClosers: {'area': true, 'base': true, 'br': true, 'col': true, 'command': true,
|
5 |
+
'embed': true, 'frame': true, 'hr': true, 'img': true, 'input': true,
|
6 |
+
'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true,
|
7 |
+
'track': true, 'wbr': true},
|
8 |
+
implicitlyClosed: {'dd': true, 'li': true, 'optgroup': true, 'option': true, 'p': true,
|
9 |
+
'rp': true, 'rt': true, 'tbody': true, 'td': true, 'tfoot': true,
|
10 |
+
'th': true, 'tr': true},
|
11 |
+
contextGrabbers: {
|
12 |
+
'dd': {'dd': true, 'dt': true},
|
13 |
+
'dt': {'dd': true, 'dt': true},
|
14 |
+
'li': {'li': true},
|
15 |
+
'option': {'option': true, 'optgroup': true},
|
16 |
+
'optgroup': {'optgroup': true},
|
17 |
+
'p': {'address': true, 'article': true, 'aside': true, 'blockquote': true, 'dir': true,
|
18 |
+
'div': true, 'dl': true, 'fieldset': true, 'footer': true, 'form': true,
|
19 |
+
'h1': true, 'h2': true, 'h3': true, 'h4': true, 'h5': true, 'h6': true,
|
20 |
+
'header': true, 'hgroup': true, 'hr': true, 'menu': true, 'nav': true, 'ol': true,
|
21 |
+
'p': true, 'pre': true, 'section': true, 'table': true, 'ul': true},
|
22 |
+
'rp': {'rp': true, 'rt': true},
|
23 |
+
'rt': {'rp': true, 'rt': true},
|
24 |
+
'tbody': {'tbody': true, 'tfoot': true},
|
25 |
+
'td': {'td': true, 'th': true},
|
26 |
+
'tfoot': {'tbody': true},
|
27 |
+
'th': {'td': true, 'th': true},
|
28 |
+
'thead': {'tbody': true, 'tfoot': true},
|
29 |
+
'tr': {'tr': true}
|
30 |
+
},
|
31 |
+
doNotIndent: {"pre": true},
|
32 |
+
allowUnquoted: true,
|
33 |
+
allowMissing: false
|
34 |
+
} : {
|
35 |
+
autoSelfClosers: {},
|
36 |
+
implicitlyClosed: {},
|
37 |
+
contextGrabbers: {},
|
38 |
+
doNotIndent: {},
|
39 |
+
allowUnquoted: false,
|
40 |
+
allowMissing: false
|
41 |
+
};
|
42 |
+
var alignCDATA = parserConfig.alignCDATA;
|
43 |
+
|
44 |
+
// Return variables for tokenizers
|
45 |
+
var tagName, type;
|
46 |
+
|
47 |
+
function inText(stream, state) {
|
48 |
+
function chain(parser) {
|
49 |
+
state.tokenize = parser;
|
50 |
+
return parser(stream, state);
|
51 |
+
}
|
52 |
+
|
53 |
+
var ch = stream.next();
|
54 |
+
if (ch == "<") {
|
55 |
+
if (stream.eat("!")) {
|
56 |
+
if (stream.eat("[")) {
|
57 |
+
if (stream.match("CDATA[")) return chain(inBlock("atom", "]]>"));
|
58 |
+
else return null;
|
59 |
+
}
|
60 |
+
else if (stream.match("--")) return chain(inBlock("comment", "-->"));
|
61 |
+
else if (stream.match("DOCTYPE", true, true)) {
|
62 |
+
stream.eatWhile(/[\w\._\-]/);
|
63 |
+
return chain(doctype(1));
|
64 |
+
}
|
65 |
+
else return null;
|
66 |
+
}
|
67 |
+
else if (stream.eat("?")) {
|
68 |
+
stream.eatWhile(/[\w\._\-]/);
|
69 |
+
state.tokenize = inBlock("meta", "?>");
|
70 |
+
return "meta";
|
71 |
+
}
|
72 |
+
else {
|
73 |
+
type = stream.eat("/") ? "closeTag" : "openTag";
|
74 |
+
stream.eatSpace();
|
75 |
+
tagName = "";
|
76 |
+
var c;
|
77 |
+
while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c;
|
78 |
+
state.tokenize = inTag;
|
79 |
+
return "tag";
|
80 |
+
}
|
81 |
+
}
|
82 |
+
else if (ch == "&") {
|
83 |
+
var ok;
|
84 |
+
if (stream.eat("#")) {
|
85 |
+
if (stream.eat("x")) {
|
86 |
+
ok = stream.eatWhile(/[a-fA-F\d]/) && stream.eat(";");
|
87 |
+
} else {
|
88 |
+
ok = stream.eatWhile(/[\d]/) && stream.eat(";");
|
89 |
+
}
|
90 |
+
} else {
|
91 |
+
ok = stream.eatWhile(/[\w\.\-:]/) && stream.eat(";");
|
92 |
+
}
|
93 |
+
return ok ? "atom" : "error";
|
94 |
+
}
|
95 |
+
else {
|
96 |
+
stream.eatWhile(/[^&<]/);
|
97 |
+
return null;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
function inTag(stream, state) {
|
102 |
+
var ch = stream.next();
|
103 |
+
if (ch == ">" || (ch == "/" && stream.eat(">"))) {
|
104 |
+
state.tokenize = inText;
|
105 |
+
type = ch == ">" ? "endTag" : "selfcloseTag";
|
106 |
+
return "tag";
|
107 |
+
}
|
108 |
+
else if (ch == "=") {
|
109 |
+
type = "equals";
|
110 |
+
return null;
|
111 |
+
}
|
112 |
+
else if (/[\'\"]/.test(ch)) {
|
113 |
+
state.tokenize = inAttribute(ch);
|
114 |
+
return state.tokenize(stream, state);
|
115 |
+
}
|
116 |
+
else {
|
117 |
+
stream.eatWhile(/[^\s\u00a0=<>\"\'\/?]/);
|
118 |
+
return "word";
|
119 |
+
}
|
120 |
+
}
|
121 |
+
|
122 |
+
function inAttribute(quote) {
|
123 |
+
return function(stream, state) {
|
124 |
+
while (!stream.eol()) {
|
125 |
+
if (stream.next() == quote) {
|
126 |
+
state.tokenize = inTag;
|
127 |
+
break;
|
128 |
+
}
|
129 |
+
}
|
130 |
+
return "string";
|
131 |
+
};
|
132 |
+
}
|
133 |
+
|
134 |
+
function inBlock(style, terminator) {
|
135 |
+
return function(stream, state) {
|
136 |
+
while (!stream.eol()) {
|
137 |
+
if (stream.match(terminator)) {
|
138 |
+
state.tokenize = inText;
|
139 |
+
break;
|
140 |
+
}
|
141 |
+
stream.next();
|
142 |
+
}
|
143 |
+
return style;
|
144 |
+
};
|
145 |
+
}
|
146 |
+
function doctype(depth) {
|
147 |
+
return function(stream, state) {
|
148 |
+
var ch;
|
149 |
+
while ((ch = stream.next()) != null) {
|
150 |
+
if (ch == "<") {
|
151 |
+
state.tokenize = doctype(depth + 1);
|
152 |
+
return state.tokenize(stream, state);
|
153 |
+
} else if (ch == ">") {
|
154 |
+
if (depth == 1) {
|
155 |
+
state.tokenize = inText;
|
156 |
+
break;
|
157 |
+
} else {
|
158 |
+
state.tokenize = doctype(depth - 1);
|
159 |
+
return state.tokenize(stream, state);
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
return "meta";
|
164 |
+
};
|
165 |
+
}
|
166 |
+
|
167 |
+
var curState, setStyle;
|
168 |
+
function pass() {
|
169 |
+
for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]);
|
170 |
+
}
|
171 |
+
function cont() {
|
172 |
+
pass.apply(null, arguments);
|
173 |
+
return true;
|
174 |
+
}
|
175 |
+
|
176 |
+
function pushContext(tagName, startOfLine) {
|
177 |
+
var noIndent = Kludges.doNotIndent.hasOwnProperty(tagName) || (curState.context && curState.context.noIndent);
|
178 |
+
curState.context = {
|
179 |
+
prev: curState.context,
|
180 |
+
tagName: tagName,
|
181 |
+
indent: curState.indented,
|
182 |
+
startOfLine: startOfLine,
|
183 |
+
noIndent: noIndent
|
184 |
+
};
|
185 |
+
}
|
186 |
+
function popContext() {
|
187 |
+
if (curState.context) curState.context = curState.context.prev;
|
188 |
+
}
|
189 |
+
|
190 |
+
function element(type) {
|
191 |
+
if (type == "openTag") {
|
192 |
+
curState.tagName = tagName;
|
193 |
+
return cont(attributes, endtag(curState.startOfLine));
|
194 |
+
} else if (type == "closeTag") {
|
195 |
+
var err = false;
|
196 |
+
if (curState.context) {
|
197 |
+
if (curState.context.tagName != tagName) {
|
198 |
+
if (Kludges.implicitlyClosed.hasOwnProperty(curState.context.tagName.toLowerCase())) {
|
199 |
+
popContext();
|
200 |
+
}
|
201 |
+
err = !curState.context || curState.context.tagName != tagName;
|
202 |
+
}
|
203 |
+
} else {
|
204 |
+
err = true;
|
205 |
+
}
|
206 |
+
if (err) setStyle = "error";
|
207 |
+
return cont(endclosetag(err));
|
208 |
+
}
|
209 |
+
return cont();
|
210 |
+
}
|
211 |
+
function endtag(startOfLine) {
|
212 |
+
return function(type) {
|
213 |
+
if (type == "selfcloseTag" ||
|
214 |
+
(type == "endTag" && Kludges.autoSelfClosers.hasOwnProperty(curState.tagName.toLowerCase()))) {
|
215 |
+
maybePopContext(curState.tagName.toLowerCase());
|
216 |
+
return cont();
|
217 |
+
}
|
218 |
+
if (type == "endTag") {
|
219 |
+
maybePopContext(curState.tagName.toLowerCase());
|
220 |
+
pushContext(curState.tagName, startOfLine);
|
221 |
+
return cont();
|
222 |
+
}
|
223 |
+
return cont();
|
224 |
+
};
|
225 |
+
}
|
226 |
+
function endclosetag(err) {
|
227 |
+
return function(type) {
|
228 |
+
if (err) setStyle = "error";
|
229 |
+
if (type == "endTag") { popContext(); return cont(); }
|
230 |
+
setStyle = "error";
|
231 |
+
return cont(arguments.callee);
|
232 |
+
}
|
233 |
+
}
|
234 |
+
function maybePopContext(nextTagName) {
|
235 |
+
var parentTagName;
|
236 |
+
while (true) {
|
237 |
+
if (!curState.context) {
|
238 |
+
return;
|
239 |
+
}
|
240 |
+
parentTagName = curState.context.tagName.toLowerCase();
|
241 |
+
if (!Kludges.contextGrabbers.hasOwnProperty(parentTagName) ||
|
242 |
+
!Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)) {
|
243 |
+
return;
|
244 |
+
}
|
245 |
+
popContext();
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
function attributes(type) {
|
250 |
+
if (type == "word") {setStyle = "attribute"; return cont(attribute, attributes);}
|
251 |
+
if (type == "endTag" || type == "selfcloseTag") return pass();
|
252 |
+
setStyle = "error";
|
253 |
+
return cont(attributes);
|
254 |
+
}
|
255 |
+
function attribute(type) {
|
256 |
+
if (type == "equals") return cont(attvalue, attributes);
|
257 |
+
if (!Kludges.allowMissing) setStyle = "error";
|
258 |
+
return (type == "endTag" || type == "selfcloseTag") ? pass() : cont();
|
259 |
+
}
|
260 |
+
function attvalue(type) {
|
261 |
+
if (type == "string") return cont(attvaluemaybe);
|
262 |
+
if (type == "word" && Kludges.allowUnquoted) {setStyle = "string"; return cont();}
|
263 |
+
setStyle = "error";
|
264 |
+
return (type == "endTag" || type == "selfCloseTag") ? pass() : cont();
|
265 |
+
}
|
266 |
+
function attvaluemaybe(type) {
|
267 |
+
if (type == "string") return cont(attvaluemaybe);
|
268 |
+
else return pass();
|
269 |
+
}
|
270 |
+
|
271 |
+
return {
|
272 |
+
startState: function() {
|
273 |
+
return {tokenize: inText, cc: [], indented: 0, startOfLine: true, tagName: null, context: null};
|
274 |
+
},
|
275 |
+
|
276 |
+
token: function(stream, state) {
|
277 |
+
if (stream.sol()) {
|
278 |
+
state.startOfLine = true;
|
279 |
+
state.indented = stream.indentation();
|
280 |
+
}
|
281 |
+
if (stream.eatSpace()) return null;
|
282 |
+
|
283 |
+
setStyle = type = tagName = null;
|
284 |
+
var style = state.tokenize(stream, state);
|
285 |
+
state.type = type;
|
286 |
+
if ((style || type) && style != "comment") {
|
287 |
+
curState = state;
|
288 |
+
while (true) {
|
289 |
+
var comb = state.cc.pop() || element;
|
290 |
+
if (comb(type || style)) break;
|
291 |
+
}
|
292 |
+
}
|
293 |
+
state.startOfLine = false;
|
294 |
+
return setStyle || style;
|
295 |
+
},
|
296 |
+
|
297 |
+
indent: function(state, textAfter, fullLine) {
|
298 |
+
var context = state.context;
|
299 |
+
if ((state.tokenize != inTag && state.tokenize != inText) ||
|
300 |
+
context && context.noIndent)
|
301 |
+
return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0;
|
302 |
+
if (alignCDATA && /<!\[CDATA\[/.test(textAfter)) return 0;
|
303 |
+
if (context && /^<\//.test(textAfter))
|
304 |
+
context = context.prev;
|
305 |
+
while (context && !context.startOfLine)
|
306 |
+
context = context.prev;
|
307 |
+
if (context) return context.indent + indentUnit;
|
308 |
+
else return 0;
|
309 |
+
},
|
310 |
+
|
311 |
+
compareStates: function(a, b) {
|
312 |
+
if (a.indented != b.indented || a.tokenize != b.tokenize) return false;
|
313 |
+
for (var ca = a.context, cb = b.context; ; ca = ca.prev, cb = cb.prev) {
|
314 |
+
if (!ca || !cb) return ca == cb;
|
315 |
+
if (ca.tagName != cb.tagName) return false;
|
316 |
+
}
|
317 |
+
},
|
318 |
+
|
319 |
+
electricChars: "/"
|
320 |
+
};
|
321 |
+
});
|
322 |
+
|
323 |
+
CodeMirror.defineMIME("application/xml", "xml");
|
324 |
+
if (!CodeMirror.mimeModes.hasOwnProperty("text/html"))
|
325 |
+
CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true});
|
languages/contact_form_maker-af.po
CHANGED
@@ -1,2167 +1,2167 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_builder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2015-04-30 12:21+0300\n"
|
6 |
-
"PO-Revision-Date: 2015-04-30 12:22+0300\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: af\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: C:\\wamp\\www\\wordpress2\\wp-content\\plugins\\contact-"
|
15 |
-
"form-builder\n"
|
16 |
-
"X-Generator: Poedit 1.6.9\n"
|
17 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress2\\wp-content\\plugins"
|
18 |
-
"\\contact-form-builder\n"
|
19 |
-
|
20 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
21 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:449
|
22 |
-
msgid "Alabama"
|
23 |
-
msgstr ""
|
24 |
-
|
25 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
26 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:450
|
27 |
-
msgid "Alaska"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
31 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:451
|
32 |
-
msgid "Arizona"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
36 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:452
|
37 |
-
msgid "Arkansas"
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
41 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:453
|
42 |
-
msgid "California"
|
43 |
-
msgstr ""
|
44 |
-
|
45 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
46 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:454
|
47 |
-
msgid "Colorado"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
51 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:455
|
52 |
-
msgid "Connecticut"
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
56 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:456
|
57 |
-
msgid "Delaware"
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
61 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:458
|
62 |
-
msgid "Florida"
|
63 |
-
msgstr ""
|
64 |
-
|
65 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
66 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
67 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:318
|
68 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:459
|
69 |
-
msgid "Georgia"
|
70 |
-
msgstr ""
|
71 |
-
|
72 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
73 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:460
|
74 |
-
msgid "Hawaii"
|
75 |
-
msgstr ""
|
76 |
-
|
77 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
78 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:461
|
79 |
-
msgid "Idaho"
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
83 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:462
|
84 |
-
msgid "Illinois"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
88 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:463
|
89 |
-
msgid "Indiana"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
93 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:464
|
94 |
-
msgid "Iowa"
|
95 |
-
msgstr ""
|
96 |
-
|
97 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
98 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:465
|
99 |
-
msgid "Kansas"
|
100 |
-
msgstr ""
|
101 |
-
|
102 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
103 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:466
|
104 |
-
msgid "Kentucky"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
108 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:467
|
109 |
-
msgid "Louisiana"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
113 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:468
|
114 |
-
msgid "Maine"
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
118 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:469
|
119 |
-
msgid "Maryland"
|
120 |
-
msgstr ""
|
121 |
-
|
122 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
123 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:470
|
124 |
-
msgid "Massachusetts"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
128 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:471
|
129 |
-
msgid "Michigan"
|
130 |
-
msgstr ""
|
131 |
-
|
132 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
133 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:472
|
134 |
-
msgid "Minnesota"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
138 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:473
|
139 |
-
msgid "Mississippi"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
143 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:474
|
144 |
-
msgid "Missouri"
|
145 |
-
msgstr ""
|
146 |
-
|
147 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
148 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:475
|
149 |
-
msgid "Montana"
|
150 |
-
msgstr ""
|
151 |
-
|
152 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
153 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:476
|
154 |
-
msgid "Nebraska"
|
155 |
-
msgstr ""
|
156 |
-
|
157 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
158 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:477
|
159 |
-
msgid "Nevada"
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
163 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:478
|
164 |
-
msgid "New Hampshire"
|
165 |
-
msgstr ""
|
166 |
-
|
167 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
168 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:479
|
169 |
-
msgid "New Jersey"
|
170 |
-
msgstr ""
|
171 |
-
|
172 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
173 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:480
|
174 |
-
msgid "New Mexico"
|
175 |
-
msgstr ""
|
176 |
-
|
177 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
178 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:481
|
179 |
-
msgid "New York"
|
180 |
-
msgstr ""
|
181 |
-
|
182 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
183 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:482
|
184 |
-
msgid "North Carolina"
|
185 |
-
msgstr ""
|
186 |
-
|
187 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
188 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:483
|
189 |
-
msgid "North Dakota"
|
190 |
-
msgstr ""
|
191 |
-
|
192 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
193 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:484
|
194 |
-
msgid "Ohio"
|
195 |
-
msgstr ""
|
196 |
-
|
197 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
198 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:485
|
199 |
-
msgid "Oklahoma"
|
200 |
-
msgstr ""
|
201 |
-
|
202 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
203 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:486
|
204 |
-
msgid "Oregon"
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
208 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:487
|
209 |
-
msgid "Pennsylvania"
|
210 |
-
msgstr ""
|
211 |
-
|
212 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
213 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:488
|
214 |
-
msgid "Rhode Island"
|
215 |
-
msgstr ""
|
216 |
-
|
217 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
218 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:489
|
219 |
-
msgid "South Carolina"
|
220 |
-
msgstr ""
|
221 |
-
|
222 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
223 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:490
|
224 |
-
msgid "South Dakota"
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
228 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:491
|
229 |
-
msgid "Tennessee"
|
230 |
-
msgstr ""
|
231 |
-
|
232 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
233 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:492
|
234 |
-
msgid "Texas"
|
235 |
-
msgstr ""
|
236 |
-
|
237 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
238 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:493
|
239 |
-
msgid "Utah"
|
240 |
-
msgstr ""
|
241 |
-
|
242 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
243 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:494
|
244 |
-
msgid "Vermont"
|
245 |
-
msgstr ""
|
246 |
-
|
247 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
248 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:495
|
249 |
-
msgid "Virginia"
|
250 |
-
msgstr ""
|
251 |
-
|
252 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
253 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:496
|
254 |
-
msgid "Washington"
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
258 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:497
|
259 |
-
msgid "West Virginia"
|
260 |
-
msgstr ""
|
261 |
-
|
262 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
263 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:498
|
264 |
-
msgid "Wisconsin"
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
268 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:499
|
269 |
-
msgid "Wyoming"
|
270 |
-
msgstr ""
|
271 |
-
|
272 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
273 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:255
|
274 |
-
msgid "Afghanistan"
|
275 |
-
msgstr ""
|
276 |
-
|
277 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
278 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:256
|
279 |
-
msgid "Albania"
|
280 |
-
msgstr ""
|
281 |
-
|
282 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
283 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:257
|
284 |
-
msgid "Algeria"
|
285 |
-
msgstr ""
|
286 |
-
|
287 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
288 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:258
|
289 |
-
msgid "Andorra"
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
293 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:259
|
294 |
-
msgid "Angola"
|
295 |
-
msgstr ""
|
296 |
-
|
297 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
298 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:260
|
299 |
-
msgid "Antigua and Barbuda"
|
300 |
-
msgstr ""
|
301 |
-
|
302 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
303 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:261
|
304 |
-
msgid "Argentina"
|
305 |
-
msgstr ""
|
306 |
-
|
307 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
308 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:262
|
309 |
-
msgid "Armenia"
|
310 |
-
msgstr ""
|
311 |
-
|
312 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
313 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:263
|
314 |
-
msgid "Australia"
|
315 |
-
msgstr ""
|
316 |
-
|
317 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
318 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:264
|
319 |
-
msgid "Austria"
|
320 |
-
msgstr ""
|
321 |
-
|
322 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
323 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:265
|
324 |
-
msgid "Azerbaijan"
|
325 |
-
msgstr ""
|
326 |
-
|
327 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
328 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:266
|
329 |
-
msgid "Bahamas"
|
330 |
-
msgstr ""
|
331 |
-
|
332 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
333 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:267
|
334 |
-
msgid "Bahrain"
|
335 |
-
msgstr ""
|
336 |
-
|
337 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
338 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:268
|
339 |
-
msgid "Bangladesh"
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
343 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:269
|
344 |
-
msgid "Barbados"
|
345 |
-
msgstr ""
|
346 |
-
|
347 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
348 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:270
|
349 |
-
msgid "Belarus"
|
350 |
-
msgstr ""
|
351 |
-
|
352 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
353 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:271
|
354 |
-
msgid "Belgium"
|
355 |
-
msgstr ""
|
356 |
-
|
357 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
358 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:272
|
359 |
-
msgid "Belize"
|
360 |
-
msgstr ""
|
361 |
-
|
362 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
363 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:273
|
364 |
-
msgid "Benin"
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
368 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:274
|
369 |
-
msgid "Bhutan"
|
370 |
-
msgstr ""
|
371 |
-
|
372 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
373 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:275
|
374 |
-
msgid "Bolivia"
|
375 |
-
msgstr ""
|
376 |
-
|
377 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
378 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:276
|
379 |
-
msgid "Bosnia and Herzegovina"
|
380 |
-
msgstr ""
|
381 |
-
|
382 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
383 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:277
|
384 |
-
msgid "Botswana"
|
385 |
-
msgstr ""
|
386 |
-
|
387 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
388 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:278
|
389 |
-
msgid "Brazil"
|
390 |
-
msgstr ""
|
391 |
-
|
392 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
393 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:279
|
394 |
-
msgid "Brunei"
|
395 |
-
msgstr ""
|
396 |
-
|
397 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
398 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:280
|
399 |
-
msgid "Bulgaria"
|
400 |
-
msgstr ""
|
401 |
-
|
402 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
403 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:281
|
404 |
-
msgid "Burkina Faso"
|
405 |
-
msgstr ""
|
406 |
-
|
407 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
408 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:282
|
409 |
-
msgid "Burundi"
|
410 |
-
msgstr ""
|
411 |
-
|
412 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
413 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:283
|
414 |
-
msgid "Cambodia"
|
415 |
-
msgstr ""
|
416 |
-
|
417 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
418 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:284
|
419 |
-
msgid "Cameroon"
|
420 |
-
msgstr ""
|
421 |
-
|
422 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
423 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:285
|
424 |
-
msgid "Canada"
|
425 |
-
msgstr ""
|
426 |
-
|
427 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
428 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:286
|
429 |
-
msgid "Cape Verde"
|
430 |
-
msgstr ""
|
431 |
-
|
432 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
433 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:287
|
434 |
-
msgid "Central African Republic"
|
435 |
-
msgstr ""
|
436 |
-
|
437 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
438 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:288
|
439 |
-
msgid "Chad"
|
440 |
-
msgstr ""
|
441 |
-
|
442 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
443 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:289
|
444 |
-
msgid "Chile"
|
445 |
-
msgstr ""
|
446 |
-
|
447 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
448 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:290
|
449 |
-
msgid "China"
|
450 |
-
msgstr ""
|
451 |
-
|
452 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
453 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:291
|
454 |
-
msgid "Colombi"
|
455 |
-
msgstr ""
|
456 |
-
|
457 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
458 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:292
|
459 |
-
msgid "Comoros"
|
460 |
-
msgstr ""
|
461 |
-
|
462 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
463 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:293
|
464 |
-
msgid "Congo (Brazzaville)"
|
465 |
-
msgstr ""
|
466 |
-
|
467 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
468 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:294
|
469 |
-
msgid "Congo"
|
470 |
-
msgstr ""
|
471 |
-
|
472 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
473 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:295
|
474 |
-
msgid "Costa Rica"
|
475 |
-
msgstr ""
|
476 |
-
|
477 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
478 |
-
msgid "Cote d\\'Ivoire"
|
479 |
-
msgstr ""
|
480 |
-
|
481 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
482 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:297
|
483 |
-
msgid "Croatia"
|
484 |
-
msgstr ""
|
485 |
-
|
486 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
487 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:298
|
488 |
-
msgid "Cuba"
|
489 |
-
msgstr ""
|
490 |
-
|
491 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
492 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:299
|
493 |
-
msgid "Cyprus"
|
494 |
-
msgstr ""
|
495 |
-
|
496 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
497 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:300
|
498 |
-
msgid "Czech Republic"
|
499 |
-
msgstr ""
|
500 |
-
|
501 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
502 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:301
|
503 |
-
msgid "Denmark"
|
504 |
-
msgstr ""
|
505 |
-
|
506 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
507 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:302
|
508 |
-
msgid "Djibouti"
|
509 |
-
msgstr ""
|
510 |
-
|
511 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
512 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:303
|
513 |
-
msgid "Dominica"
|
514 |
-
msgstr ""
|
515 |
-
|
516 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
517 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:304
|
518 |
-
msgid "Dominican Republic"
|
519 |
-
msgstr ""
|
520 |
-
|
521 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
522 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:305
|
523 |
-
msgid "East Timor (Timor Timur)"
|
524 |
-
msgstr ""
|
525 |
-
|
526 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
527 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:306
|
528 |
-
msgid "Ecuador"
|
529 |
-
msgstr ""
|
530 |
-
|
531 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
532 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:307
|
533 |
-
msgid "Egypt"
|
534 |
-
msgstr ""
|
535 |
-
|
536 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
537 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:308
|
538 |
-
msgid "El Salvador"
|
539 |
-
msgstr ""
|
540 |
-
|
541 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
542 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:309
|
543 |
-
msgid "Equatorial Guinea"
|
544 |
-
msgstr ""
|
545 |
-
|
546 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
547 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:310
|
548 |
-
msgid "Eritrea"
|
549 |
-
msgstr ""
|
550 |
-
|
551 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
552 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:311
|
553 |
-
msgid "Estonia"
|
554 |
-
msgstr ""
|
555 |
-
|
556 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
557 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:312
|
558 |
-
msgid "Ethiopia"
|
559 |
-
msgstr ""
|
560 |
-
|
561 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
562 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:313
|
563 |
-
msgid "Fiji"
|
564 |
-
msgstr ""
|
565 |
-
|
566 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
567 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:314
|
568 |
-
msgid "Finland"
|
569 |
-
msgstr ""
|
570 |
-
|
571 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
572 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:315
|
573 |
-
msgid "France"
|
574 |
-
msgstr ""
|
575 |
-
|
576 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
577 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:316
|
578 |
-
msgid "Gabon"
|
579 |
-
msgstr ""
|
580 |
-
|
581 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
582 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:317
|
583 |
-
msgid "Gambia, The"
|
584 |
-
msgstr ""
|
585 |
-
|
586 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
587 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:319
|
588 |
-
msgid "Germany"
|
589 |
-
msgstr ""
|
590 |
-
|
591 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
592 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:320
|
593 |
-
msgid "Ghana"
|
594 |
-
msgstr ""
|
595 |
-
|
596 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
597 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:321
|
598 |
-
msgid "Greece"
|
599 |
-
msgstr ""
|
600 |
-
|
601 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
602 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:322
|
603 |
-
msgid "Grenada"
|
604 |
-
msgstr ""
|
605 |
-
|
606 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
607 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:323
|
608 |
-
msgid "Guatemala"
|
609 |
-
msgstr ""
|
610 |
-
|
611 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
612 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:324
|
613 |
-
msgid "Guinea"
|
614 |
-
msgstr ""
|
615 |
-
|
616 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
617 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:325
|
618 |
-
msgid "Guinea-Bissau"
|
619 |
-
msgstr ""
|
620 |
-
|
621 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
622 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:326
|
623 |
-
msgid "Guyana"
|
624 |
-
msgstr ""
|
625 |
-
|
626 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
627 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:327
|
628 |
-
msgid "Haiti"
|
629 |
-
msgstr ""
|
630 |
-
|
631 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
632 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:328
|
633 |
-
msgid "Honduras"
|
634 |
-
msgstr ""
|
635 |
-
|
636 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
637 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:329
|
638 |
-
msgid "Hungary"
|
639 |
-
msgstr ""
|
640 |
-
|
641 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
642 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:330
|
643 |
-
msgid "Iceland"
|
644 |
-
msgstr ""
|
645 |
-
|
646 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
647 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:331
|
648 |
-
msgid "India"
|
649 |
-
msgstr ""
|
650 |
-
|
651 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
652 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:332
|
653 |
-
msgid "Indonesia"
|
654 |
-
msgstr ""
|
655 |
-
|
656 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
657 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:333
|
658 |
-
msgid "Iran"
|
659 |
-
msgstr ""
|
660 |
-
|
661 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
662 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:334
|
663 |
-
msgid "Iraq"
|
664 |
-
msgstr ""
|
665 |
-
|
666 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
667 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:335
|
668 |
-
msgid "Ireland"
|
669 |
-
msgstr ""
|
670 |
-
|
671 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
672 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:336
|
673 |
-
msgid "Israel"
|
674 |
-
msgstr ""
|
675 |
-
|
676 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
677 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:337
|
678 |
-
msgid "Italy"
|
679 |
-
msgstr ""
|
680 |
-
|
681 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
682 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:338
|
683 |
-
msgid "Jamaica"
|
684 |
-
msgstr ""
|
685 |
-
|
686 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
687 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:339
|
688 |
-
msgid "Japan"
|
689 |
-
msgstr ""
|
690 |
-
|
691 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
692 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:340
|
693 |
-
msgid "Jordan"
|
694 |
-
msgstr ""
|
695 |
-
|
696 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
697 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:341
|
698 |
-
msgid "Kazakhstan"
|
699 |
-
msgstr ""
|
700 |
-
|
701 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
702 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:342
|
703 |
-
msgid "Kenya"
|
704 |
-
msgstr ""
|
705 |
-
|
706 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
707 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:343
|
708 |
-
msgid "Kiribati"
|
709 |
-
msgstr ""
|
710 |
-
|
711 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
712 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:344
|
713 |
-
msgid "Korea, North"
|
714 |
-
msgstr ""
|
715 |
-
|
716 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
717 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:345
|
718 |
-
msgid "Korea, South"
|
719 |
-
msgstr ""
|
720 |
-
|
721 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
722 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:346
|
723 |
-
msgid "Kuwait"
|
724 |
-
msgstr ""
|
725 |
-
|
726 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
727 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:347
|
728 |
-
msgid "Kyrgyzstan"
|
729 |
-
msgstr ""
|
730 |
-
|
731 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
732 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:348
|
733 |
-
msgid "Laos"
|
734 |
-
msgstr ""
|
735 |
-
|
736 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
737 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:349
|
738 |
-
msgid "Latvia"
|
739 |
-
msgstr ""
|
740 |
-
|
741 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
742 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:350
|
743 |
-
msgid "Lebanon"
|
744 |
-
msgstr ""
|
745 |
-
|
746 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
747 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:351
|
748 |
-
msgid "Lesotho"
|
749 |
-
msgstr ""
|
750 |
-
|
751 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
752 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:352
|
753 |
-
msgid "Liberia"
|
754 |
-
msgstr ""
|
755 |
-
|
756 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
757 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:353
|
758 |
-
msgid "Libya"
|
759 |
-
msgstr ""
|
760 |
-
|
761 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
762 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:354
|
763 |
-
msgid "Liechtenstein"
|
764 |
-
msgstr ""
|
765 |
-
|
766 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
767 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:355
|
768 |
-
msgid "Lithuania"
|
769 |
-
msgstr ""
|
770 |
-
|
771 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
772 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:356
|
773 |
-
msgid "Luxembourg"
|
774 |
-
msgstr ""
|
775 |
-
|
776 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
777 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:357
|
778 |
-
msgid "Macedonia"
|
779 |
-
msgstr ""
|
780 |
-
|
781 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
782 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:358
|
783 |
-
msgid "Madagascar"
|
784 |
-
msgstr ""
|
785 |
-
|
786 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
787 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:359
|
788 |
-
msgid "Malawi"
|
789 |
-
msgstr ""
|
790 |
-
|
791 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
792 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:360
|
793 |
-
msgid "Malaysia"
|
794 |
-
msgstr ""
|
795 |
-
|
796 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
797 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:361
|
798 |
-
msgid "Maldives"
|
799 |
-
msgstr ""
|
800 |
-
|
801 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
802 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:362
|
803 |
-
msgid "Mali"
|
804 |
-
msgstr ""
|
805 |
-
|
806 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
807 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:363
|
808 |
-
msgid "Malta"
|
809 |
-
msgstr ""
|
810 |
-
|
811 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
812 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:364
|
813 |
-
msgid "Marshall Islands"
|
814 |
-
msgstr ""
|
815 |
-
|
816 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
817 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:365
|
818 |
-
msgid "Mauritania"
|
819 |
-
msgstr ""
|
820 |
-
|
821 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
822 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:366
|
823 |
-
msgid "Mauritius"
|
824 |
-
msgstr ""
|
825 |
-
|
826 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
827 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:367
|
828 |
-
msgid "Mexico"
|
829 |
-
msgstr ""
|
830 |
-
|
831 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
832 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:368
|
833 |
-
msgid "Micronesia"
|
834 |
-
msgstr ""
|
835 |
-
|
836 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
837 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:369
|
838 |
-
msgid "Moldova"
|
839 |
-
msgstr ""
|
840 |
-
|
841 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
842 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:370
|
843 |
-
msgid "Monaco"
|
844 |
-
msgstr ""
|
845 |
-
|
846 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
847 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:371
|
848 |
-
msgid "Mongolia"
|
849 |
-
msgstr ""
|
850 |
-
|
851 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
852 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:372
|
853 |
-
msgid "Morocco"
|
854 |
-
msgstr ""
|
855 |
-
|
856 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
857 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:373
|
858 |
-
msgid "Mozambique"
|
859 |
-
msgstr ""
|
860 |
-
|
861 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
862 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:374
|
863 |
-
msgid "Myanmar"
|
864 |
-
msgstr ""
|
865 |
-
|
866 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
867 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:375
|
868 |
-
msgid "Namibia"
|
869 |
-
msgstr ""
|
870 |
-
|
871 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
872 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:376
|
873 |
-
msgid "Nauru"
|
874 |
-
msgstr ""
|
875 |
-
|
876 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
877 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:377
|
878 |
-
msgid "Nepa"
|
879 |
-
msgstr ""
|
880 |
-
|
881 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
882 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:378
|
883 |
-
msgid "Netherlands"
|
884 |
-
msgstr ""
|
885 |
-
|
886 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
887 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:379
|
888 |
-
msgid "New Zealand"
|
889 |
-
msgstr ""
|
890 |
-
|
891 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
892 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:380
|
893 |
-
msgid "Nicaragua"
|
894 |
-
msgstr ""
|
895 |
-
|
896 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
897 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:381
|
898 |
-
msgid "Niger"
|
899 |
-
msgstr ""
|
900 |
-
|
901 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
902 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:382
|
903 |
-
msgid "Nigeria"
|
904 |
-
msgstr ""
|
905 |
-
|
906 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
907 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:383
|
908 |
-
msgid "Norway"
|
909 |
-
msgstr ""
|
910 |
-
|
911 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
912 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:384
|
913 |
-
msgid "Oman"
|
914 |
-
msgstr ""
|
915 |
-
|
916 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
917 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:385
|
918 |
-
msgid "Pakistan"
|
919 |
-
msgstr ""
|
920 |
-
|
921 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
922 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:386
|
923 |
-
msgid "Palau"
|
924 |
-
msgstr ""
|
925 |
-
|
926 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
927 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:387
|
928 |
-
msgid "Panama"
|
929 |
-
msgstr ""
|
930 |
-
|
931 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
932 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:388
|
933 |
-
msgid "Papua New Guinea"
|
934 |
-
msgstr ""
|
935 |
-
|
936 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
937 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:389
|
938 |
-
msgid "Paraguay"
|
939 |
-
msgstr ""
|
940 |
-
|
941 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
942 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:390
|
943 |
-
msgid "Peru"
|
944 |
-
msgstr ""
|
945 |
-
|
946 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
947 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:391
|
948 |
-
msgid "Philippines"
|
949 |
-
msgstr ""
|
950 |
-
|
951 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
952 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:392
|
953 |
-
msgid "Poland"
|
954 |
-
msgstr ""
|
955 |
-
|
956 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
957 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:393
|
958 |
-
msgid "Portugal"
|
959 |
-
msgstr ""
|
960 |
-
|
961 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
962 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:394
|
963 |
-
msgid "Qatar"
|
964 |
-
msgstr ""
|
965 |
-
|
966 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
967 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:395
|
968 |
-
msgid "Romania"
|
969 |
-
msgstr ""
|
970 |
-
|
971 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
972 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:396
|
973 |
-
msgid "Russia"
|
974 |
-
msgstr ""
|
975 |
-
|
976 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
977 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:397
|
978 |
-
msgid "Rwanda"
|
979 |
-
msgstr ""
|
980 |
-
|
981 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
982 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:398
|
983 |
-
msgid "Saint Kitts and Nevis"
|
984 |
-
msgstr ""
|
985 |
-
|
986 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
987 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:399
|
988 |
-
msgid "Saint Lucia"
|
989 |
-
msgstr ""
|
990 |
-
|
991 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
992 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:400
|
993 |
-
msgid "Saint Vincent"
|
994 |
-
msgstr ""
|
995 |
-
|
996 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
997 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:401
|
998 |
-
msgid "Samoa"
|
999 |
-
msgstr ""
|
1000 |
-
|
1001 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1002 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:402
|
1003 |
-
msgid "San Marino"
|
1004 |
-
msgstr ""
|
1005 |
-
|
1006 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1007 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:403
|
1008 |
-
msgid "Sao Tome and Principe"
|
1009 |
-
msgstr ""
|
1010 |
-
|
1011 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1012 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:404
|
1013 |
-
msgid "Saudi Arabia"
|
1014 |
-
msgstr ""
|
1015 |
-
|
1016 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1017 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:405
|
1018 |
-
msgid "Senegal"
|
1019 |
-
msgstr ""
|
1020 |
-
|
1021 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1022 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:406
|
1023 |
-
msgid "Serbia and Montenegro"
|
1024 |
-
msgstr ""
|
1025 |
-
|
1026 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1027 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:407
|
1028 |
-
msgid "Seychelles"
|
1029 |
-
msgstr ""
|
1030 |
-
|
1031 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1032 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:408
|
1033 |
-
msgid "Sierra Leone"
|
1034 |
-
msgstr ""
|
1035 |
-
|
1036 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1037 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:409
|
1038 |
-
msgid "Singapore"
|
1039 |
-
msgstr ""
|
1040 |
-
|
1041 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1042 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:410
|
1043 |
-
msgid "Slovakia"
|
1044 |
-
msgstr ""
|
1045 |
-
|
1046 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1047 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:411
|
1048 |
-
msgid "Slovenia"
|
1049 |
-
msgstr ""
|
1050 |
-
|
1051 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1052 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:412
|
1053 |
-
msgid "Solomon Islands"
|
1054 |
-
msgstr ""
|
1055 |
-
|
1056 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1057 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:413
|
1058 |
-
msgid "Somalia"
|
1059 |
-
msgstr ""
|
1060 |
-
|
1061 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1062 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:414
|
1063 |
-
msgid "South Africa"
|
1064 |
-
msgstr ""
|
1065 |
-
|
1066 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1067 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:415
|
1068 |
-
msgid "Spain"
|
1069 |
-
msgstr ""
|
1070 |
-
|
1071 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1072 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:416
|
1073 |
-
msgid "Sri Lanka"
|
1074 |
-
msgstr ""
|
1075 |
-
|
1076 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1077 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:417
|
1078 |
-
msgid "Sudan"
|
1079 |
-
msgstr ""
|
1080 |
-
|
1081 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1082 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:418
|
1083 |
-
msgid "Suriname"
|
1084 |
-
msgstr ""
|
1085 |
-
|
1086 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1087 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:419
|
1088 |
-
msgid "Swaziland"
|
1089 |
-
msgstr ""
|
1090 |
-
|
1091 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1092 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:420
|
1093 |
-
msgid "Sweden"
|
1094 |
-
msgstr ""
|
1095 |
-
|
1096 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1097 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:421
|
1098 |
-
msgid "Switzerland"
|
1099 |
-
msgstr ""
|
1100 |
-
|
1101 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1102 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:422
|
1103 |
-
msgid "Syria"
|
1104 |
-
msgstr ""
|
1105 |
-
|
1106 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1107 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:423
|
1108 |
-
msgid "Taiwan"
|
1109 |
-
msgstr ""
|
1110 |
-
|
1111 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1112 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:424
|
1113 |
-
msgid "Tajikistan"
|
1114 |
-
msgstr ""
|
1115 |
-
|
1116 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1117 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:425
|
1118 |
-
msgid "Tanzania"
|
1119 |
-
msgstr ""
|
1120 |
-
|
1121 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1122 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:426
|
1123 |
-
msgid "Thailand"
|
1124 |
-
msgstr ""
|
1125 |
-
|
1126 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1127 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:427
|
1128 |
-
msgid "Togo"
|
1129 |
-
msgstr ""
|
1130 |
-
|
1131 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1132 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:428
|
1133 |
-
msgid "Tonga"
|
1134 |
-
msgstr ""
|
1135 |
-
|
1136 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1137 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:429
|
1138 |
-
msgid "Trinidad and Tobago"
|
1139 |
-
msgstr ""
|
1140 |
-
|
1141 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1142 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:430
|
1143 |
-
msgid "Tunisia"
|
1144 |
-
msgstr ""
|
1145 |
-
|
1146 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1147 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:431
|
1148 |
-
msgid "Turkey"
|
1149 |
-
msgstr ""
|
1150 |
-
|
1151 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1152 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:432
|
1153 |
-
msgid "Turkmenistan"
|
1154 |
-
msgstr ""
|
1155 |
-
|
1156 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1157 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:433
|
1158 |
-
msgid "Tuvalu"
|
1159 |
-
msgstr ""
|
1160 |
-
|
1161 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1162 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:434
|
1163 |
-
msgid "Uganda"
|
1164 |
-
msgstr ""
|
1165 |
-
|
1166 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1167 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:435
|
1168 |
-
msgid "Ukraine"
|
1169 |
-
msgstr ""
|
1170 |
-
|
1171 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1172 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:436
|
1173 |
-
msgid "United Arab Emirates"
|
1174 |
-
msgstr ""
|
1175 |
-
|
1176 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1177 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:437
|
1178 |
-
msgid "United Kingdom"
|
1179 |
-
msgstr ""
|
1180 |
-
|
1181 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1182 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:438
|
1183 |
-
msgid "United States"
|
1184 |
-
msgstr ""
|
1185 |
-
|
1186 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1187 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:439
|
1188 |
-
msgid "Uruguay"
|
1189 |
-
msgstr ""
|
1190 |
-
|
1191 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1192 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:440
|
1193 |
-
msgid "Uzbekistan"
|
1194 |
-
msgstr ""
|
1195 |
-
|
1196 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1197 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:441
|
1198 |
-
msgid "Vanuatu"
|
1199 |
-
msgstr ""
|
1200 |
-
|
1201 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1202 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:442
|
1203 |
-
msgid "Vatican City"
|
1204 |
-
msgstr ""
|
1205 |
-
|
1206 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1207 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:443
|
1208 |
-
msgid "Venezuela"
|
1209 |
-
msgstr ""
|
1210 |
-
|
1211 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1212 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:444
|
1213 |
-
msgid "Vietnam"
|
1214 |
-
msgstr ""
|
1215 |
-
|
1216 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1217 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:445
|
1218 |
-
msgid "Yemen"
|
1219 |
-
msgstr ""
|
1220 |
-
|
1221 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1222 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:446
|
1223 |
-
msgid "Zambia"
|
1224 |
-
msgstr ""
|
1225 |
-
|
1226 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1227 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1228 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1229 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1230 |
-
msgid "Move the field to the left"
|
1231 |
-
msgstr ""
|
1232 |
-
|
1233 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1234 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1235 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1236 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1237 |
-
msgid "Move the field up"
|
1238 |
-
msgstr ""
|
1239 |
-
|
1240 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1241 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1242 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1243 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1244 |
-
msgid "Move the field down"
|
1245 |
-
msgstr ""
|
1246 |
-
|
1247 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1248 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1249 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1250 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1251 |
-
msgid "Move the field to the right"
|
1252 |
-
msgstr ""
|
1253 |
-
|
1254 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1255 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:655
|
1256 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1257 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1258 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1259 |
-
msgid "Edit the field"
|
1260 |
-
msgstr ""
|
1261 |
-
|
1262 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1263 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:655
|
1264 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1265 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1266 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1267 |
-
msgid "Disable the field"
|
1268 |
-
msgstr ""
|
1269 |
-
|
1270 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:220
|
1271 |
-
msgid "Street Address"
|
1272 |
-
msgstr "Straatadres"
|
1273 |
-
|
1274 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:223
|
1275 |
-
msgid "Street Address Line 2"
|
1276 |
-
msgstr "Straatadres Line 2"
|
1277 |
-
|
1278 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:226
|
1279 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:76
|
1280 |
-
msgid "City"
|
1281 |
-
msgstr "stad"
|
1282 |
-
|
1283 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:229
|
1284 |
-
msgid "State / Province / Region"
|
1285 |
-
msgstr "Staat / provinsie / streek"
|
1286 |
-
|
1287 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:232
|
1288 |
-
msgid "Postal / Zip Code"
|
1289 |
-
msgstr "Poskode / zipcode"
|
1290 |
-
|
1291 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:235
|
1292 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:70
|
1293 |
-
msgid "Country"
|
1294 |
-
msgstr "land"
|
1295 |
-
|
1296 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:575
|
1297 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:832
|
1298 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:841
|
1299 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:885
|
1300 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:66
|
1301 |
-
msgid "Yes"
|
1302 |
-
msgstr ""
|
1303 |
-
|
1304 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:575
|
1305 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:833
|
1306 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:842
|
1307 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:886
|
1308 |
-
msgid "No"
|
1309 |
-
msgstr ""
|
1310 |
-
|
1311 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:36
|
1312 |
-
msgid "This section allows you to block IPs."
|
1313 |
-
msgstr ""
|
1314 |
-
|
1315 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:37
|
1316 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:37
|
1317 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:396
|
1318 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:779
|
1319 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:166
|
1320 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:37
|
1321 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:157
|
1322 |
-
msgid "Read More in User Manual"
|
1323 |
-
msgstr ""
|
1324 |
-
|
1325 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:42
|
1326 |
-
msgid "Blocked IPs"
|
1327 |
-
msgstr ""
|
1328 |
-
|
1329 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:44
|
1330 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:43
|
1331 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:795
|
1332 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1461
|
1333 |
-
msgid "Save"
|
1334 |
-
msgstr ""
|
1335 |
-
|
1336 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:45
|
1337 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:77
|
1338 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:114
|
1339 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:83
|
1340 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:125
|
1341 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:230
|
1342 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:260
|
1343 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:371
|
1344 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:85
|
1345 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:132
|
1346 |
-
msgid "Delete"
|
1347 |
-
msgstr ""
|
1348 |
-
|
1349 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:76
|
1350 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:109
|
1351 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:77
|
1352 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:120
|
1353 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:84
|
1354 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:127
|
1355 |
-
msgid "Edit"
|
1356 |
-
msgstr ""
|
1357 |
-
|
1358 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:87
|
1359 |
-
msgid "Add IP"
|
1360 |
-
msgstr ""
|
1361 |
-
|
1362 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:30
|
1363 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:46
|
1364 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:43
|
1365 |
-
msgid "Contact Form Builder"
|
1366 |
-
msgstr ""
|
1367 |
-
|
1368 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:60
|
1369 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:63
|
1370 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:180
|
1371 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewWidget.php:62
|
1372 |
-
msgid "Select a Form"
|
1373 |
-
msgstr ""
|
1374 |
-
|
1375 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:46
|
1376 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:806
|
1377 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1462
|
1378 |
-
msgid "Apply"
|
1379 |
-
msgstr ""
|
1380 |
-
|
1381 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:50
|
1382 |
-
msgid "Save as New"
|
1383 |
-
msgstr ""
|
1384 |
-
|
1385 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:51
|
1386 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:212
|
1387 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:127
|
1388 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:290
|
1389 |
-
msgid "Reset"
|
1390 |
-
msgstr ""
|
1391 |
-
|
1392 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:52
|
1393 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:807
|
1394 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1463
|
1395 |
-
msgid "Cancel"
|
1396 |
-
msgstr ""
|
1397 |
-
|
1398 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:57
|
1399 |
-
#, fuzzy
|
1400 |
-
msgid "Theme title"
|
1401 |
-
msgstr "titel"
|
1402 |
-
|
1403 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:73
|
1404 |
-
#, fuzzy
|
1405 |
-
msgid "CountryCode"
|
1406 |
-
msgstr "land"
|
1407 |
-
|
1408 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:79
|
1409 |
-
msgid "Timezone"
|
1410 |
-
msgstr ""
|
1411 |
-
|
1412 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:82
|
1413 |
-
msgid "Latitude"
|
1414 |
-
msgstr ""
|
1415 |
-
|
1416 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:85
|
1417 |
-
msgid "Longitude"
|
1418 |
-
msgstr ""
|
1419 |
-
|
1420 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerSubmits.php:70
|
1421 |
-
msgid "Date"
|
1422 |
-
msgstr ""
|
1423 |
-
|
1424 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:36
|
1425 |
-
msgid "This section allows you to edit forms"
|
1426 |
-
msgstr ""
|
1427 |
-
|
1428 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:38
|
1429 |
-
msgid ""
|
1430 |
-
"There is no possibility of adding new form fields, whereas you can edit, "
|
1431 |
-
"enable/disable the current fields included in each form"
|
1432 |
-
msgstr ""
|
1433 |
-
|
1434 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:65
|
1435 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:75
|
1436 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:171
|
1437 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewWidget.php:58
|
1438 |
-
msgid "Title"
|
1439 |
-
msgstr "titel"
|
1440 |
-
|
1441 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:72
|
1442 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:904
|
1443 |
-
msgid "Email to send submissions to"
|
1444 |
-
msgstr ""
|
1445 |
-
|
1446 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:74
|
1447 |
-
msgid "Shortcode"
|
1448 |
-
msgstr ""
|
1449 |
-
|
1450 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:76
|
1451 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:114
|
1452 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:860
|
1453 |
-
msgid "Preview"
|
1454 |
-
msgstr ""
|
1455 |
-
|
1456 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:177
|
1457 |
-
msgid "Please wait while page loading"
|
1458 |
-
msgstr ""
|
1459 |
-
|
1460 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:395
|
1461 |
-
msgid "This section allows you to enable/disable fields in your form"
|
1462 |
-
msgstr ""
|
1463 |
-
|
1464 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:418
|
1465 |
-
msgid "Contact"
|
1466 |
-
msgstr ""
|
1467 |
-
|
1468 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:418
|
1469 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:486
|
1470 |
-
msgid "Form"
|
1471 |
-
msgstr ""
|
1472 |
-
|
1473 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:418
|
1474 |
-
msgid "Builder"
|
1475 |
-
msgstr ""
|
1476 |
-
|
1477 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:422
|
1478 |
-
msgid "Form title"
|
1479 |
-
msgstr ""
|
1480 |
-
|
1481 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:488
|
1482 |
-
msgid "Saving"
|
1483 |
-
msgstr ""
|
1484 |
-
|
1485 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:778
|
1486 |
-
msgid "This section allows you to edit form options"
|
1487 |
-
msgstr ""
|
1488 |
-
|
1489 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:813
|
1490 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:825
|
1491 |
-
msgid "General Options"
|
1492 |
-
msgstr ""
|
1493 |
-
|
1494 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:816
|
1495 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:878
|
1496 |
-
msgid "Email Options"
|
1497 |
-
msgstr ""
|
1498 |
-
|
1499 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:819
|
1500 |
-
msgid "Actions after Submission"
|
1501 |
-
msgstr ""
|
1502 |
-
|
1503 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:829
|
1504 |
-
msgid "Published"
|
1505 |
-
msgstr ""
|
1506 |
-
|
1507 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:838
|
1508 |
-
msgid "Save data(to database)"
|
1509 |
-
msgstr ""
|
1510 |
-
|
1511 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:847
|
1512 |
-
msgid "Theme"
|
1513 |
-
msgstr ""
|
1514 |
-
|
1515 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:859
|
1516 |
-
msgid "Form Preview"
|
1517 |
-
msgstr ""
|
1518 |
-
|
1519 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:862
|
1520 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:863
|
1521 |
-
msgid "Edit CSS"
|
1522 |
-
msgstr ""
|
1523 |
-
|
1524 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:869
|
1525 |
-
msgid "Required fields mark"
|
1526 |
-
msgstr ""
|
1527 |
-
|
1528 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:882
|
1529 |
-
msgid "Send E-mail"
|
1530 |
-
msgstr ""
|
1531 |
-
|
1532 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:891
|
1533 |
-
msgid "Mailer"
|
1534 |
-
msgstr ""
|
1535 |
-
|
1536 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:900
|
1537 |
-
msgid "Email to Administrator"
|
1538 |
-
msgstr ""
|
1539 |
-
|
1540 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:911
|
1541 |
-
msgid "Add more emails"
|
1542 |
-
msgstr ""
|
1543 |
-
|
1544 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:921
|
1545 |
-
msgid "Delete Email"
|
1546 |
-
msgstr ""
|
1547 |
-
|
1548 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:932
|
1549 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1142
|
1550 |
-
msgid "Email From"
|
1551 |
-
msgstr ""
|
1552 |
-
|
1553 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:955
|
1554 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1017
|
1555 |
-
msgid "other"
|
1556 |
-
msgstr ""
|
1557 |
-
|
1558 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:956
|
1559 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1018
|
1560 |
-
msgid "Other"
|
1561 |
-
msgstr ""
|
1562 |
-
|
1563 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:963
|
1564 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1150
|
1565 |
-
#, fuzzy
|
1566 |
-
msgid "From Name"
|
1567 |
-
msgstr "Van "
|
1568 |
-
|
1569 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:994
|
1570 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1181
|
1571 |
-
msgid "Reply to"
|
1572 |
-
msgstr ""
|
1573 |
-
|
1574 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:994
|
1575 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1181
|
1576 |
-
msgid "if different from 'Email From'"
|
1577 |
-
msgstr ""
|
1578 |
-
|
1579 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1041
|
1580 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1205
|
1581 |
-
msgid "Subject"
|
1582 |
-
msgstr ""
|
1583 |
-
|
1584 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1072
|
1585 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1236
|
1586 |
-
msgid "Mode"
|
1587 |
-
msgstr ""
|
1588 |
-
|
1589 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1076
|
1590 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1240
|
1591 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1348
|
1592 |
-
msgid "Text"
|
1593 |
-
msgstr ""
|
1594 |
-
|
1595 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1081
|
1596 |
-
msgid "Custom Text in Email For Administrator"
|
1597 |
-
msgstr ""
|
1598 |
-
|
1599 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1097
|
1600 |
-
msgid "All fields list"
|
1601 |
-
msgstr ""
|
1602 |
-
|
1603 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1114
|
1604 |
-
msgid "Email to User"
|
1605 |
-
msgstr ""
|
1606 |
-
|
1607 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1118
|
1608 |
-
msgid "Send to"
|
1609 |
-
msgstr ""
|
1610 |
-
|
1611 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1125
|
1612 |
-
msgid "There is no email field"
|
1613 |
-
msgstr ""
|
1614 |
-
|
1615 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1245
|
1616 |
-
msgid "Custom Text in Email For User"
|
1617 |
-
msgstr ""
|
1618 |
-
|
1619 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1279
|
1620 |
-
msgid "Actions after submission"
|
1621 |
-
msgstr ""
|
1622 |
-
|
1623 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1283
|
1624 |
-
msgid "Action type"
|
1625 |
-
msgstr ""
|
1626 |
-
|
1627 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1286
|
1628 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1295
|
1629 |
-
msgid "Stay on Form"
|
1630 |
-
msgstr ""
|
1631 |
-
|
1632 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1287
|
1633 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1303
|
1634 |
-
msgid "Post"
|
1635 |
-
msgstr ""
|
1636 |
-
|
1637 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1288
|
1638 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1325
|
1639 |
-
msgid "Page"
|
1640 |
-
msgstr ""
|
1641 |
-
|
1642 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1289
|
1643 |
-
msgid "Custom Text"
|
1644 |
-
msgstr ""
|
1645 |
-
|
1646 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1307
|
1647 |
-
msgid "Select Post"
|
1648 |
-
msgstr ""
|
1649 |
-
|
1650 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1329
|
1651 |
-
msgid "Select Page"
|
1652 |
-
msgstr ""
|
1653 |
-
|
1654 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1424
|
1655 |
-
msgid "Uncheck the Auto-Generate Layout box"
|
1656 |
-
msgstr ""
|
1657 |
-
|
1658 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1465
|
1659 |
-
msgid "Description"
|
1660 |
-
msgstr ""
|
1661 |
-
|
1662 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1466
|
1663 |
-
msgid ""
|
1664 |
-
"To customize the layout of the form fields uncheck the Auto-Generate Layout "
|
1665 |
-
"box and edit the HTML"
|
1666 |
-
msgstr ""
|
1667 |
-
|
1668 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1467
|
1669 |
-
msgid ""
|
1670 |
-
"You can change positioning, add in-line styles and etc. Click on the "
|
1671 |
-
"provided buttons to add the corresponding field"
|
1672 |
-
msgstr ""
|
1673 |
-
|
1674 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1467
|
1675 |
-
msgid "This will add the following line"
|
1676 |
-
msgstr ""
|
1677 |
-
|
1678 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1469
|
1679 |
-
msgid "is used to set a row"
|
1680 |
-
msgstr ""
|
1681 |
-
|
1682 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1470
|
1683 |
-
msgid ""
|
1684 |
-
"To return to the default settings you should check Auto-Generate Layout box"
|
1685 |
-
msgstr ""
|
1686 |
-
|
1687 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1471
|
1688 |
-
msgid "Notice"
|
1689 |
-
msgstr ""
|
1690 |
-
|
1691 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1472
|
1692 |
-
msgid ""
|
1693 |
-
"Make sure not to publish the same field twice. This will cause "
|
1694 |
-
"malfunctioning of the form"
|
1695 |
-
msgstr ""
|
1696 |
-
|
1697 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1474
|
1698 |
-
msgid "Auto Generate Layout"
|
1699 |
-
msgstr ""
|
1700 |
-
|
1701 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1492
|
1702 |
-
msgid "Apply Source Formatting"
|
1703 |
-
msgstr ""
|
1704 |
-
|
1705 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1492
|
1706 |
-
msgid "ctrl-enter"
|
1707 |
-
msgstr ""
|
1708 |
-
|
1709 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:143
|
1710 |
-
msgid "Select Columns"
|
1711 |
-
msgstr ""
|
1712 |
-
|
1713 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:144
|
1714 |
-
msgid "All"
|
1715 |
-
msgstr ""
|
1716 |
-
|
1717 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:160
|
1718 |
-
msgid "Done"
|
1719 |
-
msgstr ""
|
1720 |
-
|
1721 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:165
|
1722 |
-
msgid "This section allows you to view form submissions"
|
1723 |
-
msgstr ""
|
1724 |
-
|
1725 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:195
|
1726 |
-
msgid "Entries"
|
1727 |
-
msgstr ""
|
1728 |
-
|
1729 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:196
|
1730 |
-
msgid "Views"
|
1731 |
-
msgstr ""
|
1732 |
-
|
1733 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:197
|
1734 |
-
msgid "Conversion Rate"
|
1735 |
-
msgstr ""
|
1736 |
-
|
1737 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:202
|
1738 |
-
msgid "Export to"
|
1739 |
-
msgstr ""
|
1740 |
-
|
1741 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:210
|
1742 |
-
msgid "Search by fields"
|
1743 |
-
msgstr ""
|
1744 |
-
|
1745 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:211
|
1746 |
-
msgid "Go"
|
1747 |
-
msgstr ""
|
1748 |
-
|
1749 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:219
|
1750 |
-
msgid "Add/Remove Columns"
|
1751 |
-
msgstr ""
|
1752 |
-
|
1753 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:223
|
1754 |
-
msgid "Block IP"
|
1755 |
-
msgstr ""
|
1756 |
-
|
1757 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:224
|
1758 |
-
msgid "Unblock IP"
|
1759 |
-
msgstr ""
|
1760 |
-
|
1761 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:265
|
1762 |
-
msgid "Submit date"
|
1763 |
-
msgstr ""
|
1764 |
-
|
1765 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:273
|
1766 |
-
msgid "Submitter's IP"
|
1767 |
-
msgstr ""
|
1768 |
-
|
1769 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:303
|
1770 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:459
|
1771 |
-
msgid "From"
|
1772 |
-
msgstr "Van "
|
1773 |
-
|
1774 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:312
|
1775 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:462
|
1776 |
-
msgid "To"
|
1777 |
-
msgstr "Toc"
|
1778 |
-
|
1779 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:432
|
1780 |
-
msgid "Statistics"
|
1781 |
-
msgstr ""
|
1782 |
-
|
1783 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:436
|
1784 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:440
|
1785 |
-
msgid "Select a Field"
|
1786 |
-
msgstr ""
|
1787 |
-
|
1788 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:456
|
1789 |
-
msgid "Select a Date"
|
1790 |
-
msgstr ""
|
1791 |
-
|
1792 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:466
|
1793 |
-
msgid "Show"
|
1794 |
-
msgstr ""
|
1795 |
-
|
1796 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:498
|
1797 |
-
msgid "Please select the field"
|
1798 |
-
msgstr ""
|
1799 |
-
|
1800 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:541
|
1801 |
-
msgid "Choices"
|
1802 |
-
msgstr ""
|
1803 |
-
|
1804 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:542
|
1805 |
-
msgid "Percentage"
|
1806 |
-
msgstr ""
|
1807 |
-
|
1808 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:543
|
1809 |
-
#, fuzzy
|
1810 |
-
msgid "Count"
|
1811 |
-
msgstr "land"
|
1812 |
-
|
1813 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:567
|
1814 |
-
msgid "Unanswered"
|
1815 |
-
msgstr ""
|
1816 |
-
|
1817 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:574
|
1818 |
-
msgid "Total"
|
1819 |
-
msgstr ""
|
1820 |
-
|
1821 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:36
|
1822 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:156
|
1823 |
-
msgid "This section allows you to edit form themes"
|
1824 |
-
msgstr ""
|
1825 |
-
|
1826 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:43
|
1827 |
-
msgid "Themes"
|
1828 |
-
msgstr ""
|
1829 |
-
|
1830 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:45
|
1831 |
-
msgid "Add new"
|
1832 |
-
msgstr ""
|
1833 |
-
|
1834 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:82
|
1835 |
-
msgid "Default"
|
1836 |
-
msgstr ""
|
1837 |
-
|
1838 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:33
|
1839 |
-
msgid "Uninstall Contact Form Builder"
|
1840 |
-
msgstr ""
|
1841 |
-
|
1842 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:35
|
1843 |
-
msgid ""
|
1844 |
-
"Deactivating Contact Form Builder plugin does not remove any data that may "
|
1845 |
-
"have been created, such as the Forms and the Submissions. To completely "
|
1846 |
-
"remove this plugin, you can uninstall it here"
|
1847 |
-
msgstr ""
|
1848 |
-
|
1849 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:38
|
1850 |
-
msgid "WARNING"
|
1851 |
-
msgstr ""
|
1852 |
-
|
1853 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:39
|
1854 |
-
msgid ""
|
1855 |
-
"Once uninstalled, this cannot be undone. You should use a Database Backup "
|
1856 |
-
"plugin of WordPress to back up all the data first"
|
1857 |
-
msgstr ""
|
1858 |
-
|
1859 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:42
|
1860 |
-
msgid "The following WordPress Options/Tables will be DELETED"
|
1861 |
-
msgstr ""
|
1862 |
-
|
1863 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:47
|
1864 |
-
msgid "Database Tables"
|
1865 |
-
msgstr ""
|
1866 |
-
|
1867 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:63
|
1868 |
-
msgid "Do you really want to uninstall Conatct Form Builder"
|
1869 |
-
msgstr ""
|
1870 |
-
|
1871 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:66
|
1872 |
-
msgid "yes"
|
1873 |
-
msgstr ""
|
1874 |
-
|
1875 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:69
|
1876 |
-
msgid "UNINSTALL"
|
1877 |
-
msgstr ""
|
1878 |
-
|
1879 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:94
|
1880 |
-
msgid "The following Database Tables succesfully deleted"
|
1881 |
-
msgstr ""
|
1882 |
-
|
1883 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:102
|
1884 |
-
msgid "Uninstall Conact Form Builder"
|
1885 |
-
msgstr ""
|
1886 |
-
|
1887 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:103
|
1888 |
-
msgid "Click Here"
|
1889 |
-
msgstr ""
|
1890 |
-
|
1891 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:103
|
1892 |
-
msgid ""
|
1893 |
-
"To Finish the Uninstallation and Contact Form Builder will be Deactivated "
|
1894 |
-
"Automatically"
|
1895 |
-
msgstr ""
|
1896 |
-
|
1897 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewWidget.php:60
|
1898 |
-
msgid "Select a form"
|
1899 |
-
msgstr ""
|
1900 |
-
|
1901 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:247
|
1902 |
-
msgid "Only letters, numbers, hyphens and underscores are allowed."
|
1903 |
-
msgstr ""
|
1904 |
-
|
1905 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:248
|
1906 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:545
|
1907 |
-
msgid "The name of the attribute is required."
|
1908 |
-
msgstr ""
|
1909 |
-
|
1910 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:249
|
1911 |
-
msgid ""
|
1912 |
-
"Sorry, you cannot add a style attribute here. Use \"Class name\" instead."
|
1913 |
-
msgstr ""
|
1914 |
-
|
1915 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:250
|
1916 |
-
msgid "The name of the attribute cannot be a number."
|
1917 |
-
msgstr ""
|
1918 |
-
|
1919 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:251
|
1920 |
-
msgid "The name of the attribute cannot contain a space."
|
1921 |
-
msgstr ""
|
1922 |
-
|
1923 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:252
|
1924 |
-
msgid "Sorry, the labels must be unique."
|
1925 |
-
msgstr ""
|
1926 |
-
|
1927 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:253
|
1928 |
-
#, fuzzy
|
1929 |
-
msgid "The field label is required."
|
1930 |
-
msgstr "veld is nodig."
|
1931 |
-
|
1932 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:254
|
1933 |
-
msgid "Please select an element to add."
|
1934 |
-
msgstr ""
|
1935 |
-
|
1936 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:296
|
1937 |
-
msgid "Cote d'Ivoire"
|
1938 |
-
msgstr ""
|
1939 |
-
|
1940 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:447
|
1941 |
-
msgid "Zimbabwe"
|
1942 |
-
msgstr ""
|
1943 |
-
|
1944 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:457
|
1945 |
-
msgid "District Of Columbia"
|
1946 |
-
msgstr ""
|
1947 |
-
|
1948 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:511
|
1949 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:548
|
1950 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:751
|
1951 |
-
msgid "This is not a valid email address."
|
1952 |
-
msgstr "Dit is nie 'n geldige e-pos adres."
|
1953 |
-
|
1954 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:544
|
1955 |
-
msgid "The theme must have a title."
|
1956 |
-
msgstr ""
|
1957 |
-
|
1958 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:46
|
1959 |
-
msgid "Item Succesfully Saved."
|
1960 |
-
msgstr ""
|
1961 |
-
|
1962 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:47
|
1963 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:59
|
1964 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:71
|
1965 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:83
|
1966 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:89
|
1967 |
-
msgid "updated"
|
1968 |
-
msgstr ""
|
1969 |
-
|
1970 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:52
|
1971 |
-
msgid "Error. Please install plugin again."
|
1972 |
-
msgstr ""
|
1973 |
-
|
1974 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:53
|
1975 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:58
|
1976 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:65
|
1977 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:77
|
1978 |
-
msgid "error"
|
1979 |
-
msgstr ""
|
1980 |
-
|
1981 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:64
|
1982 |
-
msgid "You can't delete default theme"
|
1983 |
-
msgstr ""
|
1984 |
-
|
1985 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:70
|
1986 |
-
msgid "Items Succesfully Deleted."
|
1987 |
-
msgstr ""
|
1988 |
-
|
1989 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:76
|
1990 |
-
msgid "You must select at least one item."
|
1991 |
-
msgstr ""
|
1992 |
-
|
1993 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:82
|
1994 |
-
msgid "The item is successfully set as default."
|
1995 |
-
msgstr ""
|
1996 |
-
|
1997 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:88
|
1998 |
-
msgid "Options Succesfully Saved."
|
1999 |
-
msgstr ""
|
2000 |
-
|
2001 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:126
|
2002 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:289
|
2003 |
-
#, fuzzy
|
2004 |
-
msgid "Search"
|
2005 |
-
msgstr "maart"
|
2006 |
-
|
2007 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:222
|
2008 |
-
msgid "Blocked"
|
2009 |
-
msgstr ""
|
2010 |
-
|
2011 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:246
|
2012 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:384
|
2013 |
-
msgid "Go to the first page"
|
2014 |
-
msgstr ""
|
2015 |
-
|
2016 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:247
|
2017 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:385
|
2018 |
-
msgid "Go to the previous page"
|
2019 |
-
msgstr ""
|
2020 |
-
|
2021 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:250
|
2022 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:388
|
2023 |
-
msgid "Go to the page"
|
2024 |
-
msgstr ""
|
2025 |
-
|
2026 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:251
|
2027 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:389
|
2028 |
-
msgid "of"
|
2029 |
-
msgstr ""
|
2030 |
-
|
2031 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:256
|
2032 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:394
|
2033 |
-
msgid "Go to the next page"
|
2034 |
-
msgstr ""
|
2035 |
-
|
2036 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:257
|
2037 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:395
|
2038 |
-
msgid "Go to the last page"
|
2039 |
-
msgstr ""
|
2040 |
-
|
2041 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:80
|
2042 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:95
|
2043 |
-
msgid "Error, incorrect Security code."
|
2044 |
-
msgstr "Fout, verkeerde veiligheid kode."
|
2045 |
-
|
2046 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:107
|
2047 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
2048 |
-
msgstr "Your ip is blacklisted. Please contact the website administrator."
|
2049 |
-
|
2050 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:280
|
2051 |
-
#, php-format
|
2052 |
-
msgid ""
|
2053 |
-
"This field %s requires a unique entry and this value was already submitted."
|
2054 |
-
msgstr ""
|
2055 |
-
"Hierdie veld %s vereis 'n unieke inskrywing en hierdie waarde is reeds "
|
2056 |
-
"ingedien."
|
2057 |
-
|
2058 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:311
|
2059 |
-
msgid "Nothing was submitted."
|
2060 |
-
msgstr "Niks is voorgelê nie."
|
2061 |
-
|
2062 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:739
|
2063 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:752
|
2064 |
-
msgid "Your form was successfully submitted."
|
2065 |
-
msgstr "Jou vorm is gestuur."
|
2066 |
-
|
2067 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:747
|
2068 |
-
msgid "Error, email was not sent."
|
2069 |
-
msgstr "Fout, e-pos is nie gestuur nie."
|
2070 |
-
|
2071 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:204
|
2072 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:243
|
2073 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:285
|
2074 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:325
|
2075 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:367
|
2076 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:416
|
2077 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:478
|
2078 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:570
|
2079 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:582
|
2080 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:679
|
2081 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:738
|
2082 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:821
|
2083 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:893
|
2084 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:956
|
2085 |
-
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:991
|
2086 |
-
msgid "field is required."
|
2087 |
-
msgstr "veld is nodig."
|
2088 |
-
|
2089 |
-
#~ msgid "January"
|
2090 |
-
#~ msgstr "januarie"
|
2091 |
-
|
2092 |
-
#~ msgid "February"
|
2093 |
-
#~ msgstr "februarie"
|
2094 |
-
|
2095 |
-
#~ msgid "April"
|
2096 |
-
#~ msgstr "april"
|
2097 |
-
|
2098 |
-
#~ msgid "May"
|
2099 |
-
#~ msgstr "mei"
|
2100 |
-
|
2101 |
-
#~ msgid "June"
|
2102 |
-
#~ msgstr "junie"
|
2103 |
-
|
2104 |
-
#~ msgid "July"
|
2105 |
-
#~ msgstr "julie"
|
2106 |
-
|
2107 |
-
#~ msgid "August"
|
2108 |
-
#~ msgstr "augustus"
|
2109 |
-
|
2110 |
-
#~ msgid "September"
|
2111 |
-
#~ msgstr "september"
|
2112 |
-
|
2113 |
-
#~ msgid "October"
|
2114 |
-
#~ msgstr "oktober"
|
2115 |
-
|
2116 |
-
#~ msgid "November"
|
2117 |
-
#~ msgstr "november"
|
2118 |
-
|
2119 |
-
#~ msgid "December"
|
2120 |
-
#~ msgstr "desember"
|
2121 |
-
|
2122 |
-
#~ msgid "Quantity"
|
2123 |
-
#~ msgstr "Hoeveelheid "
|
2124 |
-
|
2125 |
-
#~ msgid "The file exceeds the allowed size of"
|
2126 |
-
#~ msgstr "Die lêer oorskry die toelaatbare grootte van"
|
2127 |
-
|
2128 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
2129 |
-
#~ msgstr ""
|
2130 |
-
#~ "Jammer, jy is nie toegelaat om hierdie tipe van die lêer op te laai."
|
2131 |
-
|
2132 |
-
#~ msgid "Error, file cannot be moved."
|
2133 |
-
#~ msgstr "Fout, kan die lêer nie verskuif word nie."
|
2134 |
-
|
2135 |
-
#, fuzzy
|
2136 |
-
#~ msgid "Error, file destination does not exist."
|
2137 |
-
#~ msgstr "Fout, e-pos is nie gestuur nie."
|
2138 |
-
|
2139 |
-
#~ msgid "The"
|
2140 |
-
#~ msgstr "die "
|
2141 |
-
|
2142 |
-
#~ msgid "value must be between"
|
2143 |
-
#~ msgstr "waarde moet tussen "
|
2144 |
-
|
2145 |
-
#~ msgid "Your score should be less than"
|
2146 |
-
#~ msgstr "Jou telling moet minder wees as "
|
2147 |
-
|
2148 |
-
#~ msgid "First"
|
2149 |
-
#~ msgstr "eerste"
|
2150 |
-
|
2151 |
-
#~ msgid "Last"
|
2152 |
-
#~ msgstr "laaste"
|
2153 |
-
|
2154 |
-
#~ msgid "Middle"
|
2155 |
-
#~ msgstr "middel"
|
2156 |
-
|
2157 |
-
#~ msgid "Area Code"
|
2158 |
-
#~ msgstr "Area Kode"
|
2159 |
-
|
2160 |
-
#~ msgid "Phone Number"
|
2161 |
-
#~ msgstr "Telefoonnommer"
|
2162 |
-
|
2163 |
-
#~ msgid "Dollars"
|
2164 |
-
#~ msgstr "dollars "
|
2165 |
-
|
2166 |
-
#~ msgid "Cents"
|
2167 |
-
#~ msgstr "sent "
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_builder\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2015-04-30 12:21+0300\n"
|
6 |
+
"PO-Revision-Date: 2015-04-30 12:22+0300\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: af\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: C:\\wamp\\www\\wordpress2\\wp-content\\plugins\\contact-"
|
15 |
+
"form-builder\n"
|
16 |
+
"X-Generator: Poedit 1.6.9\n"
|
17 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress2\\wp-content\\plugins"
|
18 |
+
"\\contact-form-builder\n"
|
19 |
+
|
20 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
21 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:449
|
22 |
+
msgid "Alabama"
|
23 |
+
msgstr ""
|
24 |
+
|
25 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
26 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:450
|
27 |
+
msgid "Alaska"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
31 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:451
|
32 |
+
msgid "Arizona"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
36 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:452
|
37 |
+
msgid "Arkansas"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
41 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:453
|
42 |
+
msgid "California"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
46 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:454
|
47 |
+
msgid "Colorado"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
51 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:455
|
52 |
+
msgid "Connecticut"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
56 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:456
|
57 |
+
msgid "Delaware"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
61 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:458
|
62 |
+
msgid "Florida"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
66 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
67 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:318
|
68 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:459
|
69 |
+
msgid "Georgia"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
73 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:460
|
74 |
+
msgid "Hawaii"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
78 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:461
|
79 |
+
msgid "Idaho"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
83 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:462
|
84 |
+
msgid "Illinois"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
88 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:463
|
89 |
+
msgid "Indiana"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
93 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:464
|
94 |
+
msgid "Iowa"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
98 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:465
|
99 |
+
msgid "Kansas"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
103 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:466
|
104 |
+
msgid "Kentucky"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
108 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:467
|
109 |
+
msgid "Louisiana"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
113 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:468
|
114 |
+
msgid "Maine"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
118 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:469
|
119 |
+
msgid "Maryland"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
123 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:470
|
124 |
+
msgid "Massachusetts"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
128 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:471
|
129 |
+
msgid "Michigan"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
133 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:472
|
134 |
+
msgid "Minnesota"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
138 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:473
|
139 |
+
msgid "Mississippi"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
143 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:474
|
144 |
+
msgid "Missouri"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
148 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:475
|
149 |
+
msgid "Montana"
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
153 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:476
|
154 |
+
msgid "Nebraska"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
158 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:477
|
159 |
+
msgid "Nevada"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
163 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:478
|
164 |
+
msgid "New Hampshire"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
168 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:479
|
169 |
+
msgid "New Jersey"
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
173 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:480
|
174 |
+
msgid "New Mexico"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
178 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:481
|
179 |
+
msgid "New York"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
183 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:482
|
184 |
+
msgid "North Carolina"
|
185 |
+
msgstr ""
|
186 |
+
|
187 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
188 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:483
|
189 |
+
msgid "North Dakota"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
193 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:484
|
194 |
+
msgid "Ohio"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
198 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:485
|
199 |
+
msgid "Oklahoma"
|
200 |
+
msgstr ""
|
201 |
+
|
202 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
203 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:486
|
204 |
+
msgid "Oregon"
|
205 |
+
msgstr ""
|
206 |
+
|
207 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
208 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:487
|
209 |
+
msgid "Pennsylvania"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
213 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:488
|
214 |
+
msgid "Rhode Island"
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
218 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:489
|
219 |
+
msgid "South Carolina"
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
223 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:490
|
224 |
+
msgid "South Dakota"
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
228 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:491
|
229 |
+
msgid "Tennessee"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
233 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:492
|
234 |
+
msgid "Texas"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
238 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:493
|
239 |
+
msgid "Utah"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
243 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:494
|
244 |
+
msgid "Vermont"
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
248 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:495
|
249 |
+
msgid "Virginia"
|
250 |
+
msgstr ""
|
251 |
+
|
252 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
253 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:496
|
254 |
+
msgid "Washington"
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
258 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:497
|
259 |
+
msgid "West Virginia"
|
260 |
+
msgstr ""
|
261 |
+
|
262 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
263 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:498
|
264 |
+
msgid "Wisconsin"
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:308
|
268 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:499
|
269 |
+
msgid "Wyoming"
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
273 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:255
|
274 |
+
msgid "Afghanistan"
|
275 |
+
msgstr ""
|
276 |
+
|
277 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
278 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:256
|
279 |
+
msgid "Albania"
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
283 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:257
|
284 |
+
msgid "Algeria"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
288 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:258
|
289 |
+
msgid "Andorra"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
293 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:259
|
294 |
+
msgid "Angola"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
298 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:260
|
299 |
+
msgid "Antigua and Barbuda"
|
300 |
+
msgstr ""
|
301 |
+
|
302 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
303 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:261
|
304 |
+
msgid "Argentina"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
308 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:262
|
309 |
+
msgid "Armenia"
|
310 |
+
msgstr ""
|
311 |
+
|
312 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
313 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:263
|
314 |
+
msgid "Australia"
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
318 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:264
|
319 |
+
msgid "Austria"
|
320 |
+
msgstr ""
|
321 |
+
|
322 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
323 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:265
|
324 |
+
msgid "Azerbaijan"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
328 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:266
|
329 |
+
msgid "Bahamas"
|
330 |
+
msgstr ""
|
331 |
+
|
332 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
333 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:267
|
334 |
+
msgid "Bahrain"
|
335 |
+
msgstr ""
|
336 |
+
|
337 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
338 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:268
|
339 |
+
msgid "Bangladesh"
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
343 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:269
|
344 |
+
msgid "Barbados"
|
345 |
+
msgstr ""
|
346 |
+
|
347 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
348 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:270
|
349 |
+
msgid "Belarus"
|
350 |
+
msgstr ""
|
351 |
+
|
352 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
353 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:271
|
354 |
+
msgid "Belgium"
|
355 |
+
msgstr ""
|
356 |
+
|
357 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
358 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:272
|
359 |
+
msgid "Belize"
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
363 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:273
|
364 |
+
msgid "Benin"
|
365 |
+
msgstr ""
|
366 |
+
|
367 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
368 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:274
|
369 |
+
msgid "Bhutan"
|
370 |
+
msgstr ""
|
371 |
+
|
372 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
373 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:275
|
374 |
+
msgid "Bolivia"
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
378 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:276
|
379 |
+
msgid "Bosnia and Herzegovina"
|
380 |
+
msgstr ""
|
381 |
+
|
382 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
383 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:277
|
384 |
+
msgid "Botswana"
|
385 |
+
msgstr ""
|
386 |
+
|
387 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
388 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:278
|
389 |
+
msgid "Brazil"
|
390 |
+
msgstr ""
|
391 |
+
|
392 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
393 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:279
|
394 |
+
msgid "Brunei"
|
395 |
+
msgstr ""
|
396 |
+
|
397 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
398 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:280
|
399 |
+
msgid "Bulgaria"
|
400 |
+
msgstr ""
|
401 |
+
|
402 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
403 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:281
|
404 |
+
msgid "Burkina Faso"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
408 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:282
|
409 |
+
msgid "Burundi"
|
410 |
+
msgstr ""
|
411 |
+
|
412 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
413 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:283
|
414 |
+
msgid "Cambodia"
|
415 |
+
msgstr ""
|
416 |
+
|
417 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
418 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:284
|
419 |
+
msgid "Cameroon"
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
423 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:285
|
424 |
+
msgid "Canada"
|
425 |
+
msgstr ""
|
426 |
+
|
427 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
428 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:286
|
429 |
+
msgid "Cape Verde"
|
430 |
+
msgstr ""
|
431 |
+
|
432 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
433 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:287
|
434 |
+
msgid "Central African Republic"
|
435 |
+
msgstr ""
|
436 |
+
|
437 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
438 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:288
|
439 |
+
msgid "Chad"
|
440 |
+
msgstr ""
|
441 |
+
|
442 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
443 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:289
|
444 |
+
msgid "Chile"
|
445 |
+
msgstr ""
|
446 |
+
|
447 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
448 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:290
|
449 |
+
msgid "China"
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
453 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:291
|
454 |
+
msgid "Colombi"
|
455 |
+
msgstr ""
|
456 |
+
|
457 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
458 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:292
|
459 |
+
msgid "Comoros"
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
463 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:293
|
464 |
+
msgid "Congo (Brazzaville)"
|
465 |
+
msgstr ""
|
466 |
+
|
467 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
468 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:294
|
469 |
+
msgid "Congo"
|
470 |
+
msgstr ""
|
471 |
+
|
472 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
473 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:295
|
474 |
+
msgid "Costa Rica"
|
475 |
+
msgstr ""
|
476 |
+
|
477 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
478 |
+
msgid "Cote d\\'Ivoire"
|
479 |
+
msgstr ""
|
480 |
+
|
481 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
482 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:297
|
483 |
+
msgid "Croatia"
|
484 |
+
msgstr ""
|
485 |
+
|
486 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
487 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:298
|
488 |
+
msgid "Cuba"
|
489 |
+
msgstr ""
|
490 |
+
|
491 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
492 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:299
|
493 |
+
msgid "Cyprus"
|
494 |
+
msgstr ""
|
495 |
+
|
496 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
497 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:300
|
498 |
+
msgid "Czech Republic"
|
499 |
+
msgstr ""
|
500 |
+
|
501 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
502 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:301
|
503 |
+
msgid "Denmark"
|
504 |
+
msgstr ""
|
505 |
+
|
506 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
507 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:302
|
508 |
+
msgid "Djibouti"
|
509 |
+
msgstr ""
|
510 |
+
|
511 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
512 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:303
|
513 |
+
msgid "Dominica"
|
514 |
+
msgstr ""
|
515 |
+
|
516 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
517 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:304
|
518 |
+
msgid "Dominican Republic"
|
519 |
+
msgstr ""
|
520 |
+
|
521 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
522 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:305
|
523 |
+
msgid "East Timor (Timor Timur)"
|
524 |
+
msgstr ""
|
525 |
+
|
526 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
527 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:306
|
528 |
+
msgid "Ecuador"
|
529 |
+
msgstr ""
|
530 |
+
|
531 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
532 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:307
|
533 |
+
msgid "Egypt"
|
534 |
+
msgstr ""
|
535 |
+
|
536 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
537 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:308
|
538 |
+
msgid "El Salvador"
|
539 |
+
msgstr ""
|
540 |
+
|
541 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
542 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:309
|
543 |
+
msgid "Equatorial Guinea"
|
544 |
+
msgstr ""
|
545 |
+
|
546 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
547 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:310
|
548 |
+
msgid "Eritrea"
|
549 |
+
msgstr ""
|
550 |
+
|
551 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
552 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:311
|
553 |
+
msgid "Estonia"
|
554 |
+
msgstr ""
|
555 |
+
|
556 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
557 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:312
|
558 |
+
msgid "Ethiopia"
|
559 |
+
msgstr ""
|
560 |
+
|
561 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
562 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:313
|
563 |
+
msgid "Fiji"
|
564 |
+
msgstr ""
|
565 |
+
|
566 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
567 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:314
|
568 |
+
msgid "Finland"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
572 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:315
|
573 |
+
msgid "France"
|
574 |
+
msgstr ""
|
575 |
+
|
576 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
577 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:316
|
578 |
+
msgid "Gabon"
|
579 |
+
msgstr ""
|
580 |
+
|
581 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
582 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:317
|
583 |
+
msgid "Gambia, The"
|
584 |
+
msgstr ""
|
585 |
+
|
586 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
587 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:319
|
588 |
+
msgid "Germany"
|
589 |
+
msgstr ""
|
590 |
+
|
591 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
592 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:320
|
593 |
+
msgid "Ghana"
|
594 |
+
msgstr ""
|
595 |
+
|
596 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
597 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:321
|
598 |
+
msgid "Greece"
|
599 |
+
msgstr ""
|
600 |
+
|
601 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
602 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:322
|
603 |
+
msgid "Grenada"
|
604 |
+
msgstr ""
|
605 |
+
|
606 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
607 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:323
|
608 |
+
msgid "Guatemala"
|
609 |
+
msgstr ""
|
610 |
+
|
611 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
612 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:324
|
613 |
+
msgid "Guinea"
|
614 |
+
msgstr ""
|
615 |
+
|
616 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
617 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:325
|
618 |
+
msgid "Guinea-Bissau"
|
619 |
+
msgstr ""
|
620 |
+
|
621 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
622 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:326
|
623 |
+
msgid "Guyana"
|
624 |
+
msgstr ""
|
625 |
+
|
626 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
627 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:327
|
628 |
+
msgid "Haiti"
|
629 |
+
msgstr ""
|
630 |
+
|
631 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
632 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:328
|
633 |
+
msgid "Honduras"
|
634 |
+
msgstr ""
|
635 |
+
|
636 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
637 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:329
|
638 |
+
msgid "Hungary"
|
639 |
+
msgstr ""
|
640 |
+
|
641 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
642 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:330
|
643 |
+
msgid "Iceland"
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
647 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:331
|
648 |
+
msgid "India"
|
649 |
+
msgstr ""
|
650 |
+
|
651 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
652 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:332
|
653 |
+
msgid "Indonesia"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
657 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:333
|
658 |
+
msgid "Iran"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
662 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:334
|
663 |
+
msgid "Iraq"
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
667 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:335
|
668 |
+
msgid "Ireland"
|
669 |
+
msgstr ""
|
670 |
+
|
671 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
672 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:336
|
673 |
+
msgid "Israel"
|
674 |
+
msgstr ""
|
675 |
+
|
676 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
677 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:337
|
678 |
+
msgid "Italy"
|
679 |
+
msgstr ""
|
680 |
+
|
681 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
682 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:338
|
683 |
+
msgid "Jamaica"
|
684 |
+
msgstr ""
|
685 |
+
|
686 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
687 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:339
|
688 |
+
msgid "Japan"
|
689 |
+
msgstr ""
|
690 |
+
|
691 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
692 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:340
|
693 |
+
msgid "Jordan"
|
694 |
+
msgstr ""
|
695 |
+
|
696 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
697 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:341
|
698 |
+
msgid "Kazakhstan"
|
699 |
+
msgstr ""
|
700 |
+
|
701 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
702 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:342
|
703 |
+
msgid "Kenya"
|
704 |
+
msgstr ""
|
705 |
+
|
706 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
707 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:343
|
708 |
+
msgid "Kiribati"
|
709 |
+
msgstr ""
|
710 |
+
|
711 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
712 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:344
|
713 |
+
msgid "Korea, North"
|
714 |
+
msgstr ""
|
715 |
+
|
716 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
717 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:345
|
718 |
+
msgid "Korea, South"
|
719 |
+
msgstr ""
|
720 |
+
|
721 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
722 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:346
|
723 |
+
msgid "Kuwait"
|
724 |
+
msgstr ""
|
725 |
+
|
726 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
727 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:347
|
728 |
+
msgid "Kyrgyzstan"
|
729 |
+
msgstr ""
|
730 |
+
|
731 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
732 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:348
|
733 |
+
msgid "Laos"
|
734 |
+
msgstr ""
|
735 |
+
|
736 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
737 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:349
|
738 |
+
msgid "Latvia"
|
739 |
+
msgstr ""
|
740 |
+
|
741 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
742 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:350
|
743 |
+
msgid "Lebanon"
|
744 |
+
msgstr ""
|
745 |
+
|
746 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
747 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:351
|
748 |
+
msgid "Lesotho"
|
749 |
+
msgstr ""
|
750 |
+
|
751 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
752 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:352
|
753 |
+
msgid "Liberia"
|
754 |
+
msgstr ""
|
755 |
+
|
756 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
757 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:353
|
758 |
+
msgid "Libya"
|
759 |
+
msgstr ""
|
760 |
+
|
761 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
762 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:354
|
763 |
+
msgid "Liechtenstein"
|
764 |
+
msgstr ""
|
765 |
+
|
766 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
767 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:355
|
768 |
+
msgid "Lithuania"
|
769 |
+
msgstr ""
|
770 |
+
|
771 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
772 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:356
|
773 |
+
msgid "Luxembourg"
|
774 |
+
msgstr ""
|
775 |
+
|
776 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
777 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:357
|
778 |
+
msgid "Macedonia"
|
779 |
+
msgstr ""
|
780 |
+
|
781 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
782 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:358
|
783 |
+
msgid "Madagascar"
|
784 |
+
msgstr ""
|
785 |
+
|
786 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
787 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:359
|
788 |
+
msgid "Malawi"
|
789 |
+
msgstr ""
|
790 |
+
|
791 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
792 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:360
|
793 |
+
msgid "Malaysia"
|
794 |
+
msgstr ""
|
795 |
+
|
796 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
797 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:361
|
798 |
+
msgid "Maldives"
|
799 |
+
msgstr ""
|
800 |
+
|
801 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
802 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:362
|
803 |
+
msgid "Mali"
|
804 |
+
msgstr ""
|
805 |
+
|
806 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
807 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:363
|
808 |
+
msgid "Malta"
|
809 |
+
msgstr ""
|
810 |
+
|
811 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
812 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:364
|
813 |
+
msgid "Marshall Islands"
|
814 |
+
msgstr ""
|
815 |
+
|
816 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
817 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:365
|
818 |
+
msgid "Mauritania"
|
819 |
+
msgstr ""
|
820 |
+
|
821 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
822 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:366
|
823 |
+
msgid "Mauritius"
|
824 |
+
msgstr ""
|
825 |
+
|
826 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
827 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:367
|
828 |
+
msgid "Mexico"
|
829 |
+
msgstr ""
|
830 |
+
|
831 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
832 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:368
|
833 |
+
msgid "Micronesia"
|
834 |
+
msgstr ""
|
835 |
+
|
836 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
837 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:369
|
838 |
+
msgid "Moldova"
|
839 |
+
msgstr ""
|
840 |
+
|
841 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
842 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:370
|
843 |
+
msgid "Monaco"
|
844 |
+
msgstr ""
|
845 |
+
|
846 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
847 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:371
|
848 |
+
msgid "Mongolia"
|
849 |
+
msgstr ""
|
850 |
+
|
851 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
852 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:372
|
853 |
+
msgid "Morocco"
|
854 |
+
msgstr ""
|
855 |
+
|
856 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
857 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:373
|
858 |
+
msgid "Mozambique"
|
859 |
+
msgstr ""
|
860 |
+
|
861 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
862 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:374
|
863 |
+
msgid "Myanmar"
|
864 |
+
msgstr ""
|
865 |
+
|
866 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
867 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:375
|
868 |
+
msgid "Namibia"
|
869 |
+
msgstr ""
|
870 |
+
|
871 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
872 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:376
|
873 |
+
msgid "Nauru"
|
874 |
+
msgstr ""
|
875 |
+
|
876 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
877 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:377
|
878 |
+
msgid "Nepa"
|
879 |
+
msgstr ""
|
880 |
+
|
881 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
882 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:378
|
883 |
+
msgid "Netherlands"
|
884 |
+
msgstr ""
|
885 |
+
|
886 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
887 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:379
|
888 |
+
msgid "New Zealand"
|
889 |
+
msgstr ""
|
890 |
+
|
891 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
892 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:380
|
893 |
+
msgid "Nicaragua"
|
894 |
+
msgstr ""
|
895 |
+
|
896 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
897 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:381
|
898 |
+
msgid "Niger"
|
899 |
+
msgstr ""
|
900 |
+
|
901 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
902 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:382
|
903 |
+
msgid "Nigeria"
|
904 |
+
msgstr ""
|
905 |
+
|
906 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
907 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:383
|
908 |
+
msgid "Norway"
|
909 |
+
msgstr ""
|
910 |
+
|
911 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
912 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:384
|
913 |
+
msgid "Oman"
|
914 |
+
msgstr ""
|
915 |
+
|
916 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
917 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:385
|
918 |
+
msgid "Pakistan"
|
919 |
+
msgstr ""
|
920 |
+
|
921 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
922 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:386
|
923 |
+
msgid "Palau"
|
924 |
+
msgstr ""
|
925 |
+
|
926 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
927 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:387
|
928 |
+
msgid "Panama"
|
929 |
+
msgstr ""
|
930 |
+
|
931 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
932 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:388
|
933 |
+
msgid "Papua New Guinea"
|
934 |
+
msgstr ""
|
935 |
+
|
936 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
937 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:389
|
938 |
+
msgid "Paraguay"
|
939 |
+
msgstr ""
|
940 |
+
|
941 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
942 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:390
|
943 |
+
msgid "Peru"
|
944 |
+
msgstr ""
|
945 |
+
|
946 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
947 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:391
|
948 |
+
msgid "Philippines"
|
949 |
+
msgstr ""
|
950 |
+
|
951 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
952 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:392
|
953 |
+
msgid "Poland"
|
954 |
+
msgstr ""
|
955 |
+
|
956 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
957 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:393
|
958 |
+
msgid "Portugal"
|
959 |
+
msgstr ""
|
960 |
+
|
961 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
962 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:394
|
963 |
+
msgid "Qatar"
|
964 |
+
msgstr ""
|
965 |
+
|
966 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
967 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:395
|
968 |
+
msgid "Romania"
|
969 |
+
msgstr ""
|
970 |
+
|
971 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
972 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:396
|
973 |
+
msgid "Russia"
|
974 |
+
msgstr ""
|
975 |
+
|
976 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
977 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:397
|
978 |
+
msgid "Rwanda"
|
979 |
+
msgstr ""
|
980 |
+
|
981 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
982 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:398
|
983 |
+
msgid "Saint Kitts and Nevis"
|
984 |
+
msgstr ""
|
985 |
+
|
986 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
987 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:399
|
988 |
+
msgid "Saint Lucia"
|
989 |
+
msgstr ""
|
990 |
+
|
991 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
992 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:400
|
993 |
+
msgid "Saint Vincent"
|
994 |
+
msgstr ""
|
995 |
+
|
996 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
997 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:401
|
998 |
+
msgid "Samoa"
|
999 |
+
msgstr ""
|
1000 |
+
|
1001 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1002 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:402
|
1003 |
+
msgid "San Marino"
|
1004 |
+
msgstr ""
|
1005 |
+
|
1006 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1007 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:403
|
1008 |
+
msgid "Sao Tome and Principe"
|
1009 |
+
msgstr ""
|
1010 |
+
|
1011 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1012 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:404
|
1013 |
+
msgid "Saudi Arabia"
|
1014 |
+
msgstr ""
|
1015 |
+
|
1016 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1017 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:405
|
1018 |
+
msgid "Senegal"
|
1019 |
+
msgstr ""
|
1020 |
+
|
1021 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1022 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:406
|
1023 |
+
msgid "Serbia and Montenegro"
|
1024 |
+
msgstr ""
|
1025 |
+
|
1026 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1027 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:407
|
1028 |
+
msgid "Seychelles"
|
1029 |
+
msgstr ""
|
1030 |
+
|
1031 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1032 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:408
|
1033 |
+
msgid "Sierra Leone"
|
1034 |
+
msgstr ""
|
1035 |
+
|
1036 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1037 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:409
|
1038 |
+
msgid "Singapore"
|
1039 |
+
msgstr ""
|
1040 |
+
|
1041 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1042 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:410
|
1043 |
+
msgid "Slovakia"
|
1044 |
+
msgstr ""
|
1045 |
+
|
1046 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1047 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:411
|
1048 |
+
msgid "Slovenia"
|
1049 |
+
msgstr ""
|
1050 |
+
|
1051 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1052 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:412
|
1053 |
+
msgid "Solomon Islands"
|
1054 |
+
msgstr ""
|
1055 |
+
|
1056 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1057 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:413
|
1058 |
+
msgid "Somalia"
|
1059 |
+
msgstr ""
|
1060 |
+
|
1061 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1062 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:414
|
1063 |
+
msgid "South Africa"
|
1064 |
+
msgstr ""
|
1065 |
+
|
1066 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1067 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:415
|
1068 |
+
msgid "Spain"
|
1069 |
+
msgstr ""
|
1070 |
+
|
1071 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1072 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:416
|
1073 |
+
msgid "Sri Lanka"
|
1074 |
+
msgstr ""
|
1075 |
+
|
1076 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1077 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:417
|
1078 |
+
msgid "Sudan"
|
1079 |
+
msgstr ""
|
1080 |
+
|
1081 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1082 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:418
|
1083 |
+
msgid "Suriname"
|
1084 |
+
msgstr ""
|
1085 |
+
|
1086 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1087 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:419
|
1088 |
+
msgid "Swaziland"
|
1089 |
+
msgstr ""
|
1090 |
+
|
1091 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1092 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:420
|
1093 |
+
msgid "Sweden"
|
1094 |
+
msgstr ""
|
1095 |
+
|
1096 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1097 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:421
|
1098 |
+
msgid "Switzerland"
|
1099 |
+
msgstr ""
|
1100 |
+
|
1101 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1102 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:422
|
1103 |
+
msgid "Syria"
|
1104 |
+
msgstr ""
|
1105 |
+
|
1106 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1107 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:423
|
1108 |
+
msgid "Taiwan"
|
1109 |
+
msgstr ""
|
1110 |
+
|
1111 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1112 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:424
|
1113 |
+
msgid "Tajikistan"
|
1114 |
+
msgstr ""
|
1115 |
+
|
1116 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1117 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:425
|
1118 |
+
msgid "Tanzania"
|
1119 |
+
msgstr ""
|
1120 |
+
|
1121 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1122 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:426
|
1123 |
+
msgid "Thailand"
|
1124 |
+
msgstr ""
|
1125 |
+
|
1126 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1127 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:427
|
1128 |
+
msgid "Togo"
|
1129 |
+
msgstr ""
|
1130 |
+
|
1131 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1132 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:428
|
1133 |
+
msgid "Tonga"
|
1134 |
+
msgstr ""
|
1135 |
+
|
1136 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1137 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:429
|
1138 |
+
msgid "Trinidad and Tobago"
|
1139 |
+
msgstr ""
|
1140 |
+
|
1141 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1142 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:430
|
1143 |
+
msgid "Tunisia"
|
1144 |
+
msgstr ""
|
1145 |
+
|
1146 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1147 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:431
|
1148 |
+
msgid "Turkey"
|
1149 |
+
msgstr ""
|
1150 |
+
|
1151 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1152 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:432
|
1153 |
+
msgid "Turkmenistan"
|
1154 |
+
msgstr ""
|
1155 |
+
|
1156 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1157 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:433
|
1158 |
+
msgid "Tuvalu"
|
1159 |
+
msgstr ""
|
1160 |
+
|
1161 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1162 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:434
|
1163 |
+
msgid "Uganda"
|
1164 |
+
msgstr ""
|
1165 |
+
|
1166 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1167 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:435
|
1168 |
+
msgid "Ukraine"
|
1169 |
+
msgstr ""
|
1170 |
+
|
1171 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1172 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:436
|
1173 |
+
msgid "United Arab Emirates"
|
1174 |
+
msgstr ""
|
1175 |
+
|
1176 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1177 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:437
|
1178 |
+
msgid "United Kingdom"
|
1179 |
+
msgstr ""
|
1180 |
+
|
1181 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1182 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:438
|
1183 |
+
msgid "United States"
|
1184 |
+
msgstr ""
|
1185 |
+
|
1186 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1187 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:439
|
1188 |
+
msgid "Uruguay"
|
1189 |
+
msgstr ""
|
1190 |
+
|
1191 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1192 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:440
|
1193 |
+
msgid "Uzbekistan"
|
1194 |
+
msgstr ""
|
1195 |
+
|
1196 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1197 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:441
|
1198 |
+
msgid "Vanuatu"
|
1199 |
+
msgstr ""
|
1200 |
+
|
1201 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1202 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:442
|
1203 |
+
msgid "Vatican City"
|
1204 |
+
msgstr ""
|
1205 |
+
|
1206 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1207 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:443
|
1208 |
+
msgid "Venezuela"
|
1209 |
+
msgstr ""
|
1210 |
+
|
1211 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1212 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:444
|
1213 |
+
msgid "Vietnam"
|
1214 |
+
msgstr ""
|
1215 |
+
|
1216 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1217 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:445
|
1218 |
+
msgid "Yemen"
|
1219 |
+
msgstr ""
|
1220 |
+
|
1221 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:320
|
1222 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:446
|
1223 |
+
msgid "Zambia"
|
1224 |
+
msgstr ""
|
1225 |
+
|
1226 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1227 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1228 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1229 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1230 |
+
msgid "Move the field to the left"
|
1231 |
+
msgstr ""
|
1232 |
+
|
1233 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1234 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1235 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1236 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1237 |
+
msgid "Move the field up"
|
1238 |
+
msgstr ""
|
1239 |
+
|
1240 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1241 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1242 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1243 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1244 |
+
msgid "Move the field down"
|
1245 |
+
msgstr ""
|
1246 |
+
|
1247 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1248 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1249 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1250 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1251 |
+
msgid "Move the field to the right"
|
1252 |
+
msgstr ""
|
1253 |
+
|
1254 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1255 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:655
|
1256 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1257 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1258 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1259 |
+
msgid "Edit the field"
|
1260 |
+
msgstr ""
|
1261 |
+
|
1262 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:651
|
1263 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:655
|
1264 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:660
|
1265 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:664
|
1266 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelManage_cfm.php:668
|
1267 |
+
msgid "Disable the field"
|
1268 |
+
msgstr ""
|
1269 |
+
|
1270 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:220
|
1271 |
+
msgid "Street Address"
|
1272 |
+
msgstr "Straatadres"
|
1273 |
+
|
1274 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:223
|
1275 |
+
msgid "Street Address Line 2"
|
1276 |
+
msgstr "Straatadres Line 2"
|
1277 |
+
|
1278 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:226
|
1279 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:76
|
1280 |
+
msgid "City"
|
1281 |
+
msgstr "stad"
|
1282 |
+
|
1283 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:229
|
1284 |
+
msgid "State / Province / Region"
|
1285 |
+
msgstr "Staat / provinsie / streek"
|
1286 |
+
|
1287 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:232
|
1288 |
+
msgid "Postal / Zip Code"
|
1289 |
+
msgstr "Poskode / zipcode"
|
1290 |
+
|
1291 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:235
|
1292 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:70
|
1293 |
+
msgid "Country"
|
1294 |
+
msgstr "land"
|
1295 |
+
|
1296 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:575
|
1297 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:832
|
1298 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:841
|
1299 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:885
|
1300 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:66
|
1301 |
+
msgid "Yes"
|
1302 |
+
msgstr ""
|
1303 |
+
|
1304 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/models/CFMModelSubmissions_cfm.php:575
|
1305 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:833
|
1306 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:842
|
1307 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:886
|
1308 |
+
msgid "No"
|
1309 |
+
msgstr ""
|
1310 |
+
|
1311 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:36
|
1312 |
+
msgid "This section allows you to block IPs."
|
1313 |
+
msgstr ""
|
1314 |
+
|
1315 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:37
|
1316 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:37
|
1317 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:396
|
1318 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:779
|
1319 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:166
|
1320 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:37
|
1321 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:157
|
1322 |
+
msgid "Read More in User Manual"
|
1323 |
+
msgstr ""
|
1324 |
+
|
1325 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:42
|
1326 |
+
msgid "Blocked IPs"
|
1327 |
+
msgstr ""
|
1328 |
+
|
1329 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:44
|
1330 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:43
|
1331 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:795
|
1332 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1461
|
1333 |
+
msgid "Save"
|
1334 |
+
msgstr ""
|
1335 |
+
|
1336 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:45
|
1337 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:77
|
1338 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:114
|
1339 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:83
|
1340 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:125
|
1341 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:230
|
1342 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:260
|
1343 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:371
|
1344 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:85
|
1345 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:132
|
1346 |
+
msgid "Delete"
|
1347 |
+
msgstr ""
|
1348 |
+
|
1349 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:76
|
1350 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:109
|
1351 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:77
|
1352 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:120
|
1353 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:84
|
1354 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:127
|
1355 |
+
msgid "Edit"
|
1356 |
+
msgstr ""
|
1357 |
+
|
1358 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewBlocked_ips_cfm.php:87
|
1359 |
+
msgid "Add IP"
|
1360 |
+
msgstr ""
|
1361 |
+
|
1362 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:30
|
1363 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:46
|
1364 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:43
|
1365 |
+
msgid "Contact Form Builder"
|
1366 |
+
msgstr ""
|
1367 |
+
|
1368 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:60
|
1369 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewCFMShortcode.php:63
|
1370 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:180
|
1371 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewWidget.php:62
|
1372 |
+
msgid "Select a Form"
|
1373 |
+
msgstr ""
|
1374 |
+
|
1375 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:46
|
1376 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:806
|
1377 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1462
|
1378 |
+
msgid "Apply"
|
1379 |
+
msgstr ""
|
1380 |
+
|
1381 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:50
|
1382 |
+
msgid "Save as New"
|
1383 |
+
msgstr ""
|
1384 |
+
|
1385 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:51
|
1386 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:212
|
1387 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:127
|
1388 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:290
|
1389 |
+
msgid "Reset"
|
1390 |
+
msgstr ""
|
1391 |
+
|
1392 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:52
|
1393 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:807
|
1394 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1463
|
1395 |
+
msgid "Cancel"
|
1396 |
+
msgstr ""
|
1397 |
+
|
1398 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerEditCSS.php:57
|
1399 |
+
#, fuzzy
|
1400 |
+
msgid "Theme title"
|
1401 |
+
msgstr "titel"
|
1402 |
+
|
1403 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:73
|
1404 |
+
#, fuzzy
|
1405 |
+
msgid "CountryCode"
|
1406 |
+
msgstr "land"
|
1407 |
+
|
1408 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:79
|
1409 |
+
msgid "Timezone"
|
1410 |
+
msgstr ""
|
1411 |
+
|
1412 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:82
|
1413 |
+
msgid "Latitude"
|
1414 |
+
msgstr ""
|
1415 |
+
|
1416 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerIPInfo.php:85
|
1417 |
+
msgid "Longitude"
|
1418 |
+
msgstr ""
|
1419 |
+
|
1420 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewContactFormMakerSubmits.php:70
|
1421 |
+
msgid "Date"
|
1422 |
+
msgstr ""
|
1423 |
+
|
1424 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:36
|
1425 |
+
msgid "This section allows you to edit forms"
|
1426 |
+
msgstr ""
|
1427 |
+
|
1428 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:38
|
1429 |
+
msgid ""
|
1430 |
+
"There is no possibility of adding new form fields, whereas you can edit, "
|
1431 |
+
"enable/disable the current fields included in each form"
|
1432 |
+
msgstr ""
|
1433 |
+
|
1434 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:65
|
1435 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:75
|
1436 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:171
|
1437 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewWidget.php:58
|
1438 |
+
msgid "Title"
|
1439 |
+
msgstr "titel"
|
1440 |
+
|
1441 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:72
|
1442 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:904
|
1443 |
+
msgid "Email to send submissions to"
|
1444 |
+
msgstr ""
|
1445 |
+
|
1446 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:74
|
1447 |
+
msgid "Shortcode"
|
1448 |
+
msgstr ""
|
1449 |
+
|
1450 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:76
|
1451 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:114
|
1452 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:860
|
1453 |
+
msgid "Preview"
|
1454 |
+
msgstr ""
|
1455 |
+
|
1456 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:177
|
1457 |
+
msgid "Please wait while page loading"
|
1458 |
+
msgstr ""
|
1459 |
+
|
1460 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:395
|
1461 |
+
msgid "This section allows you to enable/disable fields in your form"
|
1462 |
+
msgstr ""
|
1463 |
+
|
1464 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:418
|
1465 |
+
msgid "Contact"
|
1466 |
+
msgstr ""
|
1467 |
+
|
1468 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:418
|
1469 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:486
|
1470 |
+
msgid "Form"
|
1471 |
+
msgstr ""
|
1472 |
+
|
1473 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:418
|
1474 |
+
msgid "Builder"
|
1475 |
+
msgstr ""
|
1476 |
+
|
1477 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:422
|
1478 |
+
msgid "Form title"
|
1479 |
+
msgstr ""
|
1480 |
+
|
1481 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:488
|
1482 |
+
msgid "Saving"
|
1483 |
+
msgstr ""
|
1484 |
+
|
1485 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:778
|
1486 |
+
msgid "This section allows you to edit form options"
|
1487 |
+
msgstr ""
|
1488 |
+
|
1489 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:813
|
1490 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:825
|
1491 |
+
msgid "General Options"
|
1492 |
+
msgstr ""
|
1493 |
+
|
1494 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:816
|
1495 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:878
|
1496 |
+
msgid "Email Options"
|
1497 |
+
msgstr ""
|
1498 |
+
|
1499 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:819
|
1500 |
+
msgid "Actions after Submission"
|
1501 |
+
msgstr ""
|
1502 |
+
|
1503 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:829
|
1504 |
+
msgid "Published"
|
1505 |
+
msgstr ""
|
1506 |
+
|
1507 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:838
|
1508 |
+
msgid "Save data(to database)"
|
1509 |
+
msgstr ""
|
1510 |
+
|
1511 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:847
|
1512 |
+
msgid "Theme"
|
1513 |
+
msgstr ""
|
1514 |
+
|
1515 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:859
|
1516 |
+
msgid "Form Preview"
|
1517 |
+
msgstr ""
|
1518 |
+
|
1519 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:862
|
1520 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:863
|
1521 |
+
msgid "Edit CSS"
|
1522 |
+
msgstr ""
|
1523 |
+
|
1524 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:869
|
1525 |
+
msgid "Required fields mark"
|
1526 |
+
msgstr ""
|
1527 |
+
|
1528 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:882
|
1529 |
+
msgid "Send E-mail"
|
1530 |
+
msgstr ""
|
1531 |
+
|
1532 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:891
|
1533 |
+
msgid "Mailer"
|
1534 |
+
msgstr ""
|
1535 |
+
|
1536 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:900
|
1537 |
+
msgid "Email to Administrator"
|
1538 |
+
msgstr ""
|
1539 |
+
|
1540 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:911
|
1541 |
+
msgid "Add more emails"
|
1542 |
+
msgstr ""
|
1543 |
+
|
1544 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:921
|
1545 |
+
msgid "Delete Email"
|
1546 |
+
msgstr ""
|
1547 |
+
|
1548 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:932
|
1549 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1142
|
1550 |
+
msgid "Email From"
|
1551 |
+
msgstr ""
|
1552 |
+
|
1553 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:955
|
1554 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1017
|
1555 |
+
msgid "other"
|
1556 |
+
msgstr ""
|
1557 |
+
|
1558 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:956
|
1559 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1018
|
1560 |
+
msgid "Other"
|
1561 |
+
msgstr ""
|
1562 |
+
|
1563 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:963
|
1564 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1150
|
1565 |
+
#, fuzzy
|
1566 |
+
msgid "From Name"
|
1567 |
+
msgstr "Van "
|
1568 |
+
|
1569 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:994
|
1570 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1181
|
1571 |
+
msgid "Reply to"
|
1572 |
+
msgstr ""
|
1573 |
+
|
1574 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:994
|
1575 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1181
|
1576 |
+
msgid "if different from 'Email From'"
|
1577 |
+
msgstr ""
|
1578 |
+
|
1579 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1041
|
1580 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1205
|
1581 |
+
msgid "Subject"
|
1582 |
+
msgstr ""
|
1583 |
+
|
1584 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1072
|
1585 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1236
|
1586 |
+
msgid "Mode"
|
1587 |
+
msgstr ""
|
1588 |
+
|
1589 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1076
|
1590 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1240
|
1591 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1348
|
1592 |
+
msgid "Text"
|
1593 |
+
msgstr ""
|
1594 |
+
|
1595 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1081
|
1596 |
+
msgid "Custom Text in Email For Administrator"
|
1597 |
+
msgstr ""
|
1598 |
+
|
1599 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1097
|
1600 |
+
msgid "All fields list"
|
1601 |
+
msgstr ""
|
1602 |
+
|
1603 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1114
|
1604 |
+
msgid "Email to User"
|
1605 |
+
msgstr ""
|
1606 |
+
|
1607 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1118
|
1608 |
+
msgid "Send to"
|
1609 |
+
msgstr ""
|
1610 |
+
|
1611 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1125
|
1612 |
+
msgid "There is no email field"
|
1613 |
+
msgstr ""
|
1614 |
+
|
1615 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1245
|
1616 |
+
msgid "Custom Text in Email For User"
|
1617 |
+
msgstr ""
|
1618 |
+
|
1619 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1279
|
1620 |
+
msgid "Actions after submission"
|
1621 |
+
msgstr ""
|
1622 |
+
|
1623 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1283
|
1624 |
+
msgid "Action type"
|
1625 |
+
msgstr ""
|
1626 |
+
|
1627 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1286
|
1628 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1295
|
1629 |
+
msgid "Stay on Form"
|
1630 |
+
msgstr ""
|
1631 |
+
|
1632 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1287
|
1633 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1303
|
1634 |
+
msgid "Post"
|
1635 |
+
msgstr ""
|
1636 |
+
|
1637 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1288
|
1638 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1325
|
1639 |
+
msgid "Page"
|
1640 |
+
msgstr ""
|
1641 |
+
|
1642 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1289
|
1643 |
+
msgid "Custom Text"
|
1644 |
+
msgstr ""
|
1645 |
+
|
1646 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1307
|
1647 |
+
msgid "Select Post"
|
1648 |
+
msgstr ""
|
1649 |
+
|
1650 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1329
|
1651 |
+
msgid "Select Page"
|
1652 |
+
msgstr ""
|
1653 |
+
|
1654 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1424
|
1655 |
+
msgid "Uncheck the Auto-Generate Layout box"
|
1656 |
+
msgstr ""
|
1657 |
+
|
1658 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1465
|
1659 |
+
msgid "Description"
|
1660 |
+
msgstr ""
|
1661 |
+
|
1662 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1466
|
1663 |
+
msgid ""
|
1664 |
+
"To customize the layout of the form fields uncheck the Auto-Generate Layout "
|
1665 |
+
"box and edit the HTML"
|
1666 |
+
msgstr ""
|
1667 |
+
|
1668 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1467
|
1669 |
+
msgid ""
|
1670 |
+
"You can change positioning, add in-line styles and etc. Click on the "
|
1671 |
+
"provided buttons to add the corresponding field"
|
1672 |
+
msgstr ""
|
1673 |
+
|
1674 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1467
|
1675 |
+
msgid "This will add the following line"
|
1676 |
+
msgstr ""
|
1677 |
+
|
1678 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1469
|
1679 |
+
msgid "is used to set a row"
|
1680 |
+
msgstr ""
|
1681 |
+
|
1682 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1470
|
1683 |
+
msgid ""
|
1684 |
+
"To return to the default settings you should check Auto-Generate Layout box"
|
1685 |
+
msgstr ""
|
1686 |
+
|
1687 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1471
|
1688 |
+
msgid "Notice"
|
1689 |
+
msgstr ""
|
1690 |
+
|
1691 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1472
|
1692 |
+
msgid ""
|
1693 |
+
"Make sure not to publish the same field twice. This will cause "
|
1694 |
+
"malfunctioning of the form"
|
1695 |
+
msgstr ""
|
1696 |
+
|
1697 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1474
|
1698 |
+
msgid "Auto Generate Layout"
|
1699 |
+
msgstr ""
|
1700 |
+
|
1701 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1492
|
1702 |
+
msgid "Apply Source Formatting"
|
1703 |
+
msgstr ""
|
1704 |
+
|
1705 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewManage_cfm.php:1492
|
1706 |
+
msgid "ctrl-enter"
|
1707 |
+
msgstr ""
|
1708 |
+
|
1709 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:143
|
1710 |
+
msgid "Select Columns"
|
1711 |
+
msgstr ""
|
1712 |
+
|
1713 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:144
|
1714 |
+
msgid "All"
|
1715 |
+
msgstr ""
|
1716 |
+
|
1717 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:160
|
1718 |
+
msgid "Done"
|
1719 |
+
msgstr ""
|
1720 |
+
|
1721 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:165
|
1722 |
+
msgid "This section allows you to view form submissions"
|
1723 |
+
msgstr ""
|
1724 |
+
|
1725 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:195
|
1726 |
+
msgid "Entries"
|
1727 |
+
msgstr ""
|
1728 |
+
|
1729 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:196
|
1730 |
+
msgid "Views"
|
1731 |
+
msgstr ""
|
1732 |
+
|
1733 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:197
|
1734 |
+
msgid "Conversion Rate"
|
1735 |
+
msgstr ""
|
1736 |
+
|
1737 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:202
|
1738 |
+
msgid "Export to"
|
1739 |
+
msgstr ""
|
1740 |
+
|
1741 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:210
|
1742 |
+
msgid "Search by fields"
|
1743 |
+
msgstr ""
|
1744 |
+
|
1745 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:211
|
1746 |
+
msgid "Go"
|
1747 |
+
msgstr ""
|
1748 |
+
|
1749 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:219
|
1750 |
+
msgid "Add/Remove Columns"
|
1751 |
+
msgstr ""
|
1752 |
+
|
1753 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:223
|
1754 |
+
msgid "Block IP"
|
1755 |
+
msgstr ""
|
1756 |
+
|
1757 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:224
|
1758 |
+
msgid "Unblock IP"
|
1759 |
+
msgstr ""
|
1760 |
+
|
1761 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:265
|
1762 |
+
msgid "Submit date"
|
1763 |
+
msgstr ""
|
1764 |
+
|
1765 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:273
|
1766 |
+
msgid "Submitter's IP"
|
1767 |
+
msgstr ""
|
1768 |
+
|
1769 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:303
|
1770 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:459
|
1771 |
+
msgid "From"
|
1772 |
+
msgstr "Van "
|
1773 |
+
|
1774 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:312
|
1775 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:462
|
1776 |
+
msgid "To"
|
1777 |
+
msgstr "Toc"
|
1778 |
+
|
1779 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:432
|
1780 |
+
msgid "Statistics"
|
1781 |
+
msgstr ""
|
1782 |
+
|
1783 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:436
|
1784 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:440
|
1785 |
+
msgid "Select a Field"
|
1786 |
+
msgstr ""
|
1787 |
+
|
1788 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:456
|
1789 |
+
msgid "Select a Date"
|
1790 |
+
msgstr ""
|
1791 |
+
|
1792 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:466
|
1793 |
+
msgid "Show"
|
1794 |
+
msgstr ""
|
1795 |
+
|
1796 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:498
|
1797 |
+
msgid "Please select the field"
|
1798 |
+
msgstr ""
|
1799 |
+
|
1800 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:541
|
1801 |
+
msgid "Choices"
|
1802 |
+
msgstr ""
|
1803 |
+
|
1804 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:542
|
1805 |
+
msgid "Percentage"
|
1806 |
+
msgstr ""
|
1807 |
+
|
1808 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:543
|
1809 |
+
#, fuzzy
|
1810 |
+
msgid "Count"
|
1811 |
+
msgstr "land"
|
1812 |
+
|
1813 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:567
|
1814 |
+
msgid "Unanswered"
|
1815 |
+
msgstr ""
|
1816 |
+
|
1817 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewSubmissions_cfm.php:574
|
1818 |
+
msgid "Total"
|
1819 |
+
msgstr ""
|
1820 |
+
|
1821 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:36
|
1822 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:156
|
1823 |
+
msgid "This section allows you to edit form themes"
|
1824 |
+
msgstr ""
|
1825 |
+
|
1826 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:43
|
1827 |
+
msgid "Themes"
|
1828 |
+
msgstr ""
|
1829 |
+
|
1830 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:45
|
1831 |
+
msgid "Add new"
|
1832 |
+
msgstr ""
|
1833 |
+
|
1834 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewThemes_cfm.php:82
|
1835 |
+
msgid "Default"
|
1836 |
+
msgstr ""
|
1837 |
+
|
1838 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:33
|
1839 |
+
msgid "Uninstall Contact Form Builder"
|
1840 |
+
msgstr ""
|
1841 |
+
|
1842 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:35
|
1843 |
+
msgid ""
|
1844 |
+
"Deactivating Contact Form Builder plugin does not remove any data that may "
|
1845 |
+
"have been created, such as the Forms and the Submissions. To completely "
|
1846 |
+
"remove this plugin, you can uninstall it here"
|
1847 |
+
msgstr ""
|
1848 |
+
|
1849 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:38
|
1850 |
+
msgid "WARNING"
|
1851 |
+
msgstr ""
|
1852 |
+
|
1853 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:39
|
1854 |
+
msgid ""
|
1855 |
+
"Once uninstalled, this cannot be undone. You should use a Database Backup "
|
1856 |
+
"plugin of WordPress to back up all the data first"
|
1857 |
+
msgstr ""
|
1858 |
+
|
1859 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:42
|
1860 |
+
msgid "The following WordPress Options/Tables will be DELETED"
|
1861 |
+
msgstr ""
|
1862 |
+
|
1863 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:47
|
1864 |
+
msgid "Database Tables"
|
1865 |
+
msgstr ""
|
1866 |
+
|
1867 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:63
|
1868 |
+
msgid "Do you really want to uninstall Conatct Form Builder"
|
1869 |
+
msgstr ""
|
1870 |
+
|
1871 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:66
|
1872 |
+
msgid "yes"
|
1873 |
+
msgstr ""
|
1874 |
+
|
1875 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:69
|
1876 |
+
msgid "UNINSTALL"
|
1877 |
+
msgstr ""
|
1878 |
+
|
1879 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:94
|
1880 |
+
msgid "The following Database Tables succesfully deleted"
|
1881 |
+
msgstr ""
|
1882 |
+
|
1883 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:102
|
1884 |
+
msgid "Uninstall Conact Form Builder"
|
1885 |
+
msgstr ""
|
1886 |
+
|
1887 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:103
|
1888 |
+
msgid "Click Here"
|
1889 |
+
msgstr ""
|
1890 |
+
|
1891 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewUninstall_cfm.php:103
|
1892 |
+
msgid ""
|
1893 |
+
"To Finish the Uninstallation and Contact Form Builder will be Deactivated "
|
1894 |
+
"Automatically"
|
1895 |
+
msgstr ""
|
1896 |
+
|
1897 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/admin/views/CFMViewWidget.php:60
|
1898 |
+
msgid "Select a form"
|
1899 |
+
msgstr ""
|
1900 |
+
|
1901 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:247
|
1902 |
+
msgid "Only letters, numbers, hyphens and underscores are allowed."
|
1903 |
+
msgstr ""
|
1904 |
+
|
1905 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:248
|
1906 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:545
|
1907 |
+
msgid "The name of the attribute is required."
|
1908 |
+
msgstr ""
|
1909 |
+
|
1910 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:249
|
1911 |
+
msgid ""
|
1912 |
+
"Sorry, you cannot add a style attribute here. Use \"Class name\" instead."
|
1913 |
+
msgstr ""
|
1914 |
+
|
1915 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:250
|
1916 |
+
msgid "The name of the attribute cannot be a number."
|
1917 |
+
msgstr ""
|
1918 |
+
|
1919 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:251
|
1920 |
+
msgid "The name of the attribute cannot contain a space."
|
1921 |
+
msgstr ""
|
1922 |
+
|
1923 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:252
|
1924 |
+
msgid "Sorry, the labels must be unique."
|
1925 |
+
msgstr ""
|
1926 |
+
|
1927 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:253
|
1928 |
+
#, fuzzy
|
1929 |
+
msgid "The field label is required."
|
1930 |
+
msgstr "veld is nodig."
|
1931 |
+
|
1932 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:254
|
1933 |
+
msgid "Please select an element to add."
|
1934 |
+
msgstr ""
|
1935 |
+
|
1936 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:296
|
1937 |
+
msgid "Cote d'Ivoire"
|
1938 |
+
msgstr ""
|
1939 |
+
|
1940 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:447
|
1941 |
+
msgid "Zimbabwe"
|
1942 |
+
msgstr ""
|
1943 |
+
|
1944 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:457
|
1945 |
+
msgid "District Of Columbia"
|
1946 |
+
msgstr ""
|
1947 |
+
|
1948 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:511
|
1949 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:548
|
1950 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:751
|
1951 |
+
msgid "This is not a valid email address."
|
1952 |
+
msgstr "Dit is nie 'n geldige e-pos adres."
|
1953 |
+
|
1954 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/contact-form-builder.php:544
|
1955 |
+
msgid "The theme must have a title."
|
1956 |
+
msgstr ""
|
1957 |
+
|
1958 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:46
|
1959 |
+
msgid "Item Succesfully Saved."
|
1960 |
+
msgstr ""
|
1961 |
+
|
1962 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:47
|
1963 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:59
|
1964 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:71
|
1965 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:83
|
1966 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:89
|
1967 |
+
msgid "updated"
|
1968 |
+
msgstr ""
|
1969 |
+
|
1970 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:52
|
1971 |
+
msgid "Error. Please install plugin again."
|
1972 |
+
msgstr ""
|
1973 |
+
|
1974 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:53
|
1975 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:58
|
1976 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:65
|
1977 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:77
|
1978 |
+
msgid "error"
|
1979 |
+
msgstr ""
|
1980 |
+
|
1981 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:64
|
1982 |
+
msgid "You can't delete default theme"
|
1983 |
+
msgstr ""
|
1984 |
+
|
1985 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:70
|
1986 |
+
msgid "Items Succesfully Deleted."
|
1987 |
+
msgstr ""
|
1988 |
+
|
1989 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:76
|
1990 |
+
msgid "You must select at least one item."
|
1991 |
+
msgstr ""
|
1992 |
+
|
1993 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:82
|
1994 |
+
msgid "The item is successfully set as default."
|
1995 |
+
msgstr ""
|
1996 |
+
|
1997 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:88
|
1998 |
+
msgid "Options Succesfully Saved."
|
1999 |
+
msgstr ""
|
2000 |
+
|
2001 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:126
|
2002 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:289
|
2003 |
+
#, fuzzy
|
2004 |
+
msgid "Search"
|
2005 |
+
msgstr "maart"
|
2006 |
+
|
2007 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:222
|
2008 |
+
msgid "Blocked"
|
2009 |
+
msgstr ""
|
2010 |
+
|
2011 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:246
|
2012 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:384
|
2013 |
+
msgid "Go to the first page"
|
2014 |
+
msgstr ""
|
2015 |
+
|
2016 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:247
|
2017 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:385
|
2018 |
+
msgid "Go to the previous page"
|
2019 |
+
msgstr ""
|
2020 |
+
|
2021 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:250
|
2022 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:388
|
2023 |
+
msgid "Go to the page"
|
2024 |
+
msgstr ""
|
2025 |
+
|
2026 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:251
|
2027 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:389
|
2028 |
+
msgid "of"
|
2029 |
+
msgstr ""
|
2030 |
+
|
2031 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:256
|
2032 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:394
|
2033 |
+
msgid "Go to the next page"
|
2034 |
+
msgstr ""
|
2035 |
+
|
2036 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:257
|
2037 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/framework/WDW_CFM_Library.php:395
|
2038 |
+
msgid "Go to the last page"
|
2039 |
+
msgstr ""
|
2040 |
+
|
2041 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:80
|
2042 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:95
|
2043 |
+
msgid "Error, incorrect Security code."
|
2044 |
+
msgstr "Fout, verkeerde veiligheid kode."
|
2045 |
+
|
2046 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:107
|
2047 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
2048 |
+
msgstr "Your ip is blacklisted. Please contact the website administrator."
|
2049 |
+
|
2050 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:280
|
2051 |
+
#, php-format
|
2052 |
+
msgid ""
|
2053 |
+
"This field %s requires a unique entry and this value was already submitted."
|
2054 |
+
msgstr ""
|
2055 |
+
"Hierdie veld %s vereis 'n unieke inskrywing en hierdie waarde is reeds "
|
2056 |
+
"ingedien."
|
2057 |
+
|
2058 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:311
|
2059 |
+
msgid "Nothing was submitted."
|
2060 |
+
msgstr "Niks is voorgelê nie."
|
2061 |
+
|
2062 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:739
|
2063 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:752
|
2064 |
+
msgid "Your form was successfully submitted."
|
2065 |
+
msgstr "Jou vorm is gestuur."
|
2066 |
+
|
2067 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/models/CFMModelForm_maker.php:747
|
2068 |
+
msgid "Error, email was not sent."
|
2069 |
+
msgstr "Fout, e-pos is nie gestuur nie."
|
2070 |
+
|
2071 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:204
|
2072 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:243
|
2073 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:285
|
2074 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:325
|
2075 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:367
|
2076 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:416
|
2077 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:478
|
2078 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:570
|
2079 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:582
|
2080 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:679
|
2081 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:738
|
2082 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:821
|
2083 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:893
|
2084 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:956
|
2085 |
+
#: C:\wamp\www\wordpress2\wp-content\plugins\contact-form-builder/frontend/views/CFMViewForm_maker.php:991
|
2086 |
+
msgid "field is required."
|
2087 |
+
msgstr "veld is nodig."
|
2088 |
+
|
2089 |
+
#~ msgid "January"
|
2090 |
+
#~ msgstr "januarie"
|
2091 |
+
|
2092 |
+
#~ msgid "February"
|
2093 |
+
#~ msgstr "februarie"
|
2094 |
+
|
2095 |
+
#~ msgid "April"
|
2096 |
+
#~ msgstr "april"
|
2097 |
+
|
2098 |
+
#~ msgid "May"
|
2099 |
+
#~ msgstr "mei"
|
2100 |
+
|
2101 |
+
#~ msgid "June"
|
2102 |
+
#~ msgstr "junie"
|
2103 |
+
|
2104 |
+
#~ msgid "July"
|
2105 |
+
#~ msgstr "julie"
|
2106 |
+
|
2107 |
+
#~ msgid "August"
|
2108 |
+
#~ msgstr "augustus"
|
2109 |
+
|
2110 |
+
#~ msgid "September"
|
2111 |
+
#~ msgstr "september"
|
2112 |
+
|
2113 |
+
#~ msgid "October"
|
2114 |
+
#~ msgstr "oktober"
|
2115 |
+
|
2116 |
+
#~ msgid "November"
|
2117 |
+
#~ msgstr "november"
|
2118 |
+
|
2119 |
+
#~ msgid "December"
|
2120 |
+
#~ msgstr "desember"
|
2121 |
+
|
2122 |
+
#~ msgid "Quantity"
|
2123 |
+
#~ msgstr "Hoeveelheid "
|
2124 |
+
|
2125 |
+
#~ msgid "The file exceeds the allowed size of"
|
2126 |
+
#~ msgstr "Die lêer oorskry die toelaatbare grootte van"
|
2127 |
+
|
2128 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
2129 |
+
#~ msgstr ""
|
2130 |
+
#~ "Jammer, jy is nie toegelaat om hierdie tipe van die lêer op te laai."
|
2131 |
+
|
2132 |
+
#~ msgid "Error, file cannot be moved."
|
2133 |
+
#~ msgstr "Fout, kan die lêer nie verskuif word nie."
|
2134 |
+
|
2135 |
+
#, fuzzy
|
2136 |
+
#~ msgid "Error, file destination does not exist."
|
2137 |
+
#~ msgstr "Fout, e-pos is nie gestuur nie."
|
2138 |
+
|
2139 |
+
#~ msgid "The"
|
2140 |
+
#~ msgstr "die "
|
2141 |
+
|
2142 |
+
#~ msgid "value must be between"
|
2143 |
+
#~ msgstr "waarde moet tussen "
|
2144 |
+
|
2145 |
+
#~ msgid "Your score should be less than"
|
2146 |
+
#~ msgstr "Jou telling moet minder wees as "
|
2147 |
+
|
2148 |
+
#~ msgid "First"
|
2149 |
+
#~ msgstr "eerste"
|
2150 |
+
|
2151 |
+
#~ msgid "Last"
|
2152 |
+
#~ msgstr "laaste"
|
2153 |
+
|
2154 |
+
#~ msgid "Middle"
|
2155 |
+
#~ msgstr "middel"
|
2156 |
+
|
2157 |
+
#~ msgid "Area Code"
|
2158 |
+
#~ msgstr "Area Kode"
|
2159 |
+
|
2160 |
+
#~ msgid "Phone Number"
|
2161 |
+
#~ msgstr "Telefoonnommer"
|
2162 |
+
|
2163 |
+
#~ msgid "Dollars"
|
2164 |
+
#~ msgstr "dollars "
|
2165 |
+
|
2166 |
+
#~ msgid "Cents"
|
2167 |
+
#~ msgstr "sent "
|
languages/contact_form_maker-ar.po
CHANGED
@@ -1,178 +1,178 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:24+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:24+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: ar\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
#, fuzzy
|
22 |
-
msgid "Error, incorrect Security code."
|
23 |
-
msgstr "خطأ، غير صحيح رمز الحماية."
|
24 |
-
|
25 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
26 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
27 |
-
msgstr ""
|
28 |
-
"والقائمة السوداء الملكية الفكرية الخاصة بك. يرجى الاتصال بمسؤول الموقع. "
|
29 |
-
|
30 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
31 |
-
#, php-format
|
32 |
-
msgid ""
|
33 |
-
"This field %s requires a unique entry and this value was already submitted."
|
34 |
-
msgstr "هذا الحقل يتطلب٪ %s إدخال فريدة من نوعها، وقدم بالفعل هذه القيمة."
|
35 |
-
|
36 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
37 |
-
msgid "Nothing was submitted."
|
38 |
-
msgstr "وقدم شيئا."
|
39 |
-
|
40 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
41 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
42 |
-
msgid "Your form was successfully submitted."
|
43 |
-
msgstr "وقدم النموذج الخاص بك بنجاح."
|
44 |
-
|
45 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
46 |
-
msgid "Error, email was not sent."
|
47 |
-
msgstr "خطأ، لم يتم إرسال البريد الإلكتروني."
|
48 |
-
|
49 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
63 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
64 |
-
msgid "field is required."
|
65 |
-
msgstr "مطلوب الميدان."
|
66 |
-
|
67 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
68 |
-
msgid "This is not a valid email address."
|
69 |
-
msgstr "هذا ليس عنوان بريد إلكتروني صالح."
|
70 |
-
|
71 |
-
#~ msgid "Street Address"
|
72 |
-
#~ msgstr "عنوان الشارع"
|
73 |
-
|
74 |
-
#~ msgid "Street Address Line 2"
|
75 |
-
#~ msgstr "الشارع سطر العنوان 2"
|
76 |
-
|
77 |
-
#~ msgid "City"
|
78 |
-
#~ msgstr "مدينة"
|
79 |
-
|
80 |
-
#~ msgid "State / Province / Region"
|
81 |
-
#~ msgstr "الدولة / الإقليم / المنطقة"
|
82 |
-
|
83 |
-
#~ msgid "Postal / Zip Code"
|
84 |
-
#~ msgstr "البريدي / الرمز البريدي"
|
85 |
-
|
86 |
-
#~ msgid "Country"
|
87 |
-
#~ msgstr "بلد"
|
88 |
-
|
89 |
-
#~ msgid "January"
|
90 |
-
#~ msgstr "يناير"
|
91 |
-
|
92 |
-
#~ msgid "February"
|
93 |
-
#~ msgstr "فبراير"
|
94 |
-
|
95 |
-
#~ msgid "March"
|
96 |
-
#~ msgstr "مسيرة"
|
97 |
-
|
98 |
-
#~ msgid "April"
|
99 |
-
#~ msgstr "أبريل"
|
100 |
-
|
101 |
-
#~ msgid "May"
|
102 |
-
#~ msgstr "قد"
|
103 |
-
|
104 |
-
#~ msgid "June"
|
105 |
-
#~ msgstr "يونيو"
|
106 |
-
|
107 |
-
#~ msgid "July"
|
108 |
-
#~ msgstr "يوليو"
|
109 |
-
|
110 |
-
#~ msgid "August"
|
111 |
-
#~ msgstr "أغسطس"
|
112 |
-
|
113 |
-
#~ msgid "September"
|
114 |
-
#~ msgstr "سبتمبر"
|
115 |
-
|
116 |
-
#~ msgid "October"
|
117 |
-
#~ msgstr "أكتوبر"
|
118 |
-
|
119 |
-
#~ msgid "November"
|
120 |
-
#~ msgstr "نوفمبر"
|
121 |
-
|
122 |
-
#~ msgid "December"
|
123 |
-
#~ msgstr "ديسمبر"
|
124 |
-
|
125 |
-
#~ msgid "Quantity"
|
126 |
-
#~ msgstr "كمية "
|
127 |
-
|
128 |
-
#~ msgid "The file exceeds the allowed size of"
|
129 |
-
#~ msgstr "ملف يتجاوز حجم المسموح به من"
|
130 |
-
|
131 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
132 |
-
#~ msgstr "عذرا، لا يسمح لك لتحميل هذا النوع من الملفات."
|
133 |
-
|
134 |
-
#~ msgid "Error, file cannot be moved."
|
135 |
-
#~ msgstr "خطأ، لا يمكن أن يتم نقل ملف."
|
136 |
-
|
137 |
-
#, fuzzy
|
138 |
-
#~ msgid "Error, file destination does not exist."
|
139 |
-
#~ msgstr "خطأ، لم يتم إرسال البريد الإلكتروني."
|
140 |
-
|
141 |
-
#~ msgid "The"
|
142 |
-
#~ msgstr "ال "
|
143 |
-
|
144 |
-
#~ msgid "value must be between"
|
145 |
-
#~ msgstr "يجب أن تكون القيمة بين "
|
146 |
-
|
147 |
-
#~ msgid "Your score should be less than"
|
148 |
-
#~ msgstr "يجب أن تكون درجاتك أقل من "
|
149 |
-
|
150 |
-
#~ msgid "Title"
|
151 |
-
#~ msgstr "لقب"
|
152 |
-
|
153 |
-
#~ msgid "First"
|
154 |
-
#~ msgstr "الأول"
|
155 |
-
|
156 |
-
#~ msgid "Last"
|
157 |
-
#~ msgstr "آخر"
|
158 |
-
|
159 |
-
#~ msgid "Middle"
|
160 |
-
#~ msgstr "وسط"
|
161 |
-
|
162 |
-
#~ msgid "Area Code"
|
163 |
-
#~ msgstr "كود المنطقة"
|
164 |
-
|
165 |
-
#~ msgid "Phone Number"
|
166 |
-
#~ msgstr "رقم الهاتف"
|
167 |
-
|
168 |
-
#~ msgid "Dollars"
|
169 |
-
#~ msgstr "دولار"
|
170 |
-
|
171 |
-
#~ msgid "Cents"
|
172 |
-
#~ msgstr "سنتا "
|
173 |
-
|
174 |
-
#~ msgid "From"
|
175 |
-
#~ msgstr "من "
|
176 |
-
|
177 |
-
#~ msgid "To"
|
178 |
-
#~ msgstr "إلى"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:24+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:24+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: ar\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
#, fuzzy
|
22 |
+
msgid "Error, incorrect Security code."
|
23 |
+
msgstr "خطأ، غير صحيح رمز الحماية."
|
24 |
+
|
25 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
26 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
27 |
+
msgstr ""
|
28 |
+
"والقائمة السوداء الملكية الفكرية الخاصة بك. يرجى الاتصال بمسؤول الموقع. "
|
29 |
+
|
30 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
31 |
+
#, php-format
|
32 |
+
msgid ""
|
33 |
+
"This field %s requires a unique entry and this value was already submitted."
|
34 |
+
msgstr "هذا الحقل يتطلب٪ %s إدخال فريدة من نوعها، وقدم بالفعل هذه القيمة."
|
35 |
+
|
36 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
37 |
+
msgid "Nothing was submitted."
|
38 |
+
msgstr "وقدم شيئا."
|
39 |
+
|
40 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
41 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
42 |
+
msgid "Your form was successfully submitted."
|
43 |
+
msgstr "وقدم النموذج الخاص بك بنجاح."
|
44 |
+
|
45 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
46 |
+
msgid "Error, email was not sent."
|
47 |
+
msgstr "خطأ، لم يتم إرسال البريد الإلكتروني."
|
48 |
+
|
49 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
63 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
64 |
+
msgid "field is required."
|
65 |
+
msgstr "مطلوب الميدان."
|
66 |
+
|
67 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
68 |
+
msgid "This is not a valid email address."
|
69 |
+
msgstr "هذا ليس عنوان بريد إلكتروني صالح."
|
70 |
+
|
71 |
+
#~ msgid "Street Address"
|
72 |
+
#~ msgstr "عنوان الشارع"
|
73 |
+
|
74 |
+
#~ msgid "Street Address Line 2"
|
75 |
+
#~ msgstr "الشارع سطر العنوان 2"
|
76 |
+
|
77 |
+
#~ msgid "City"
|
78 |
+
#~ msgstr "مدينة"
|
79 |
+
|
80 |
+
#~ msgid "State / Province / Region"
|
81 |
+
#~ msgstr "الدولة / الإقليم / المنطقة"
|
82 |
+
|
83 |
+
#~ msgid "Postal / Zip Code"
|
84 |
+
#~ msgstr "البريدي / الرمز البريدي"
|
85 |
+
|
86 |
+
#~ msgid "Country"
|
87 |
+
#~ msgstr "بلد"
|
88 |
+
|
89 |
+
#~ msgid "January"
|
90 |
+
#~ msgstr "يناير"
|
91 |
+
|
92 |
+
#~ msgid "February"
|
93 |
+
#~ msgstr "فبراير"
|
94 |
+
|
95 |
+
#~ msgid "March"
|
96 |
+
#~ msgstr "مسيرة"
|
97 |
+
|
98 |
+
#~ msgid "April"
|
99 |
+
#~ msgstr "أبريل"
|
100 |
+
|
101 |
+
#~ msgid "May"
|
102 |
+
#~ msgstr "قد"
|
103 |
+
|
104 |
+
#~ msgid "June"
|
105 |
+
#~ msgstr "يونيو"
|
106 |
+
|
107 |
+
#~ msgid "July"
|
108 |
+
#~ msgstr "يوليو"
|
109 |
+
|
110 |
+
#~ msgid "August"
|
111 |
+
#~ msgstr "أغسطس"
|
112 |
+
|
113 |
+
#~ msgid "September"
|
114 |
+
#~ msgstr "سبتمبر"
|
115 |
+
|
116 |
+
#~ msgid "October"
|
117 |
+
#~ msgstr "أكتوبر"
|
118 |
+
|
119 |
+
#~ msgid "November"
|
120 |
+
#~ msgstr "نوفمبر"
|
121 |
+
|
122 |
+
#~ msgid "December"
|
123 |
+
#~ msgstr "ديسمبر"
|
124 |
+
|
125 |
+
#~ msgid "Quantity"
|
126 |
+
#~ msgstr "كمية "
|
127 |
+
|
128 |
+
#~ msgid "The file exceeds the allowed size of"
|
129 |
+
#~ msgstr "ملف يتجاوز حجم المسموح به من"
|
130 |
+
|
131 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
132 |
+
#~ msgstr "عذرا، لا يسمح لك لتحميل هذا النوع من الملفات."
|
133 |
+
|
134 |
+
#~ msgid "Error, file cannot be moved."
|
135 |
+
#~ msgstr "خطأ، لا يمكن أن يتم نقل ملف."
|
136 |
+
|
137 |
+
#, fuzzy
|
138 |
+
#~ msgid "Error, file destination does not exist."
|
139 |
+
#~ msgstr "خطأ، لم يتم إرسال البريد الإلكتروني."
|
140 |
+
|
141 |
+
#~ msgid "The"
|
142 |
+
#~ msgstr "ال "
|
143 |
+
|
144 |
+
#~ msgid "value must be between"
|
145 |
+
#~ msgstr "يجب أن تكون القيمة بين "
|
146 |
+
|
147 |
+
#~ msgid "Your score should be less than"
|
148 |
+
#~ msgstr "يجب أن تكون درجاتك أقل من "
|
149 |
+
|
150 |
+
#~ msgid "Title"
|
151 |
+
#~ msgstr "لقب"
|
152 |
+
|
153 |
+
#~ msgid "First"
|
154 |
+
#~ msgstr "الأول"
|
155 |
+
|
156 |
+
#~ msgid "Last"
|
157 |
+
#~ msgstr "آخر"
|
158 |
+
|
159 |
+
#~ msgid "Middle"
|
160 |
+
#~ msgstr "وسط"
|
161 |
+
|
162 |
+
#~ msgid "Area Code"
|
163 |
+
#~ msgstr "كود المنطقة"
|
164 |
+
|
165 |
+
#~ msgid "Phone Number"
|
166 |
+
#~ msgstr "رقم الهاتف"
|
167 |
+
|
168 |
+
#~ msgid "Dollars"
|
169 |
+
#~ msgstr "دولار"
|
170 |
+
|
171 |
+
#~ msgid "Cents"
|
172 |
+
#~ msgstr "سنتا "
|
173 |
+
|
174 |
+
#~ msgid "From"
|
175 |
+
#~ msgstr "من "
|
176 |
+
|
177 |
+
#~ msgid "To"
|
178 |
+
#~ msgstr "إلى"
|
languages/contact_form_maker-be_BY.po
CHANGED
@@ -1,176 +1,176 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:24+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:24+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: be\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Памылка, няслушны код бяспекі."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr ""
|
27 |
-
"Ваш IP занесены ў чорны спіс. Калі ласка, звярніцеся да адміністратара "
|
28 |
-
"сайта. "
|
29 |
-
|
30 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
31 |
-
#, php-format
|
32 |
-
msgid ""
|
33 |
-
"This field %s requires a unique entry and this value was already submitted."
|
34 |
-
msgstr ""
|
35 |
-
"Гэтае поле %s патрабуе унікальную запіс, і гэтая велічыня ўжо прадстаўлены."
|
36 |
-
|
37 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
38 |
-
msgid "Nothing was submitted."
|
39 |
-
msgstr "Нічога не было прадстаўлена."
|
40 |
-
|
41 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
42 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
43 |
-
msgid "Your form was successfully submitted."
|
44 |
-
msgstr "Ваша форма была паспяхова прадстаўлена."
|
45 |
-
|
46 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
47 |
-
msgid "Error, email was not sent."
|
48 |
-
msgstr "Памылка, адрас электроннай пошты не быў адпраўлены."
|
49 |
-
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
63 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
64 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
65 |
-
msgid "field is required."
|
66 |
-
msgstr "поле абавязкова для запаўнення."
|
67 |
-
|
68 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
69 |
-
msgid "This is not a valid email address."
|
70 |
-
msgstr "Гэта не адрас электроннай пошты."
|
71 |
-
|
72 |
-
#~ msgid "Street Address"
|
73 |
-
#~ msgstr "Адрас"
|
74 |
-
|
75 |
-
#~ msgid "Street Address Line 2"
|
76 |
-
#~ msgstr "Адрас радок 2"
|
77 |
-
|
78 |
-
#~ msgid "City"
|
79 |
-
#~ msgstr "Горад:"
|
80 |
-
|
81 |
-
#~ msgid "State / Province / Region"
|
82 |
-
#~ msgstr "Штат / Вобласць / рэгіён"
|
83 |
-
|
84 |
-
#~ msgid "Postal / Zip Code"
|
85 |
-
#~ msgstr "Паштовы / Індэкс"
|
86 |
-
|
87 |
-
#~ msgid "Country"
|
88 |
-
#~ msgstr "&Прымацаваць"
|
89 |
-
|
90 |
-
#~ msgid "January"
|
91 |
-
#~ msgstr "Студзень"
|
92 |
-
|
93 |
-
#~ msgid "February"
|
94 |
-
#~ msgstr "Люты"
|
95 |
-
|
96 |
-
#~ msgid "March"
|
97 |
-
#~ msgstr "Сакавік"
|
98 |
-
|
99 |
-
#~ msgid "April"
|
100 |
-
#~ msgstr "Красавік"
|
101 |
-
|
102 |
-
#~ msgid "May"
|
103 |
-
#~ msgstr "Травень"
|
104 |
-
|
105 |
-
#~ msgid "June"
|
106 |
-
#~ msgstr "Чэрвень"
|
107 |
-
|
108 |
-
#~ msgid "July"
|
109 |
-
#~ msgstr "Ліпень"
|
110 |
-
|
111 |
-
#~ msgid "August"
|
112 |
-
#~ msgstr "Жнівень"
|
113 |
-
|
114 |
-
#~ msgid "September"
|
115 |
-
#~ msgstr "Верасень"
|
116 |
-
|
117 |
-
#~ msgid "October"
|
118 |
-
#~ msgstr "Кастрычнік"
|
119 |
-
|
120 |
-
#~ msgid "November"
|
121 |
-
#~ msgstr "Лістапад"
|
122 |
-
|
123 |
-
#~ msgid "December"
|
124 |
-
#~ msgstr "Снежань"
|
125 |
-
|
126 |
-
#~ msgid "Quantity"
|
127 |
-
#~ msgstr "Колькасць"
|
128 |
-
|
129 |
-
#~ msgid "The file exceeds the allowed size of"
|
130 |
-
#~ msgstr "Размовы перавышае дапушчальны памер"
|
131 |
-
|
132 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
133 |
-
#~ msgstr "На жаль, вы не можаце загрузіць гэты тып файла."
|
134 |
-
|
135 |
-
#~ msgid "Error, file cannot be moved."
|
136 |
-
#~ msgstr "Памылка, файл не можа быць перамешчаны."
|
137 |
-
|
138 |
-
#, fuzzy
|
139 |
-
#~ msgid "Error, file destination does not exist."
|
140 |
-
#~ msgstr "Памылка, адрас электроннай пошты не быў адпраўлены."
|
141 |
-
|
142 |
-
#~ msgid "value must be between"
|
143 |
-
#~ msgstr "значэнне павінна быць паміж "
|
144 |
-
|
145 |
-
#~ msgid "Your score should be less than"
|
146 |
-
#~ msgstr "Ваша ацэнка павінна быць не менш за "
|
147 |
-
|
148 |
-
#~ msgid "Title"
|
149 |
-
#~ msgstr "Назва"
|
150 |
-
|
151 |
-
#~ msgid "First"
|
152 |
-
#~ msgstr "Першы"
|
153 |
-
|
154 |
-
#~ msgid "Last"
|
155 |
-
#~ msgstr "Апошнія"
|
156 |
-
|
157 |
-
#~ msgid "Middle"
|
158 |
-
#~ msgstr "Сярэдзіна"
|
159 |
-
|
160 |
-
#~ msgid "Area Code"
|
161 |
-
#~ msgstr "Код зоны"
|
162 |
-
|
163 |
-
#~ msgid "Phone Number"
|
164 |
-
#~ msgstr "Нумар"
|
165 |
-
|
166 |
-
#~ msgid "Dollars"
|
167 |
-
#~ msgstr "даляры "
|
168 |
-
|
169 |
-
#~ msgid "Cents"
|
170 |
-
#~ msgstr "цэнтаў "
|
171 |
-
|
172 |
-
#~ msgid "From"
|
173 |
-
#~ msgstr "Ад"
|
174 |
-
|
175 |
-
#~ msgid "To"
|
176 |
-
#~ msgstr "Для"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:24+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:24+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: be\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Памылка, няслушны код бяспекі."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr ""
|
27 |
+
"Ваш IP занесены ў чорны спіс. Калі ласка, звярніцеся да адміністратара "
|
28 |
+
"сайта. "
|
29 |
+
|
30 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
31 |
+
#, php-format
|
32 |
+
msgid ""
|
33 |
+
"This field %s requires a unique entry and this value was already submitted."
|
34 |
+
msgstr ""
|
35 |
+
"Гэтае поле %s патрабуе унікальную запіс, і гэтая велічыня ўжо прадстаўлены."
|
36 |
+
|
37 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
38 |
+
msgid "Nothing was submitted."
|
39 |
+
msgstr "Нічога не было прадстаўлена."
|
40 |
+
|
41 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
42 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
43 |
+
msgid "Your form was successfully submitted."
|
44 |
+
msgstr "Ваша форма была паспяхова прадстаўлена."
|
45 |
+
|
46 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
47 |
+
msgid "Error, email was not sent."
|
48 |
+
msgstr "Памылка, адрас электроннай пошты не быў адпраўлены."
|
49 |
+
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
63 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
64 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
65 |
+
msgid "field is required."
|
66 |
+
msgstr "поле абавязкова для запаўнення."
|
67 |
+
|
68 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
69 |
+
msgid "This is not a valid email address."
|
70 |
+
msgstr "Гэта не адрас электроннай пошты."
|
71 |
+
|
72 |
+
#~ msgid "Street Address"
|
73 |
+
#~ msgstr "Адрас"
|
74 |
+
|
75 |
+
#~ msgid "Street Address Line 2"
|
76 |
+
#~ msgstr "Адрас радок 2"
|
77 |
+
|
78 |
+
#~ msgid "City"
|
79 |
+
#~ msgstr "Горад:"
|
80 |
+
|
81 |
+
#~ msgid "State / Province / Region"
|
82 |
+
#~ msgstr "Штат / Вобласць / рэгіён"
|
83 |
+
|
84 |
+
#~ msgid "Postal / Zip Code"
|
85 |
+
#~ msgstr "Паштовы / Індэкс"
|
86 |
+
|
87 |
+
#~ msgid "Country"
|
88 |
+
#~ msgstr "&Прымацаваць"
|
89 |
+
|
90 |
+
#~ msgid "January"
|
91 |
+
#~ msgstr "Студзень"
|
92 |
+
|
93 |
+
#~ msgid "February"
|
94 |
+
#~ msgstr "Люты"
|
95 |
+
|
96 |
+
#~ msgid "March"
|
97 |
+
#~ msgstr "Сакавік"
|
98 |
+
|
99 |
+
#~ msgid "April"
|
100 |
+
#~ msgstr "Красавік"
|
101 |
+
|
102 |
+
#~ msgid "May"
|
103 |
+
#~ msgstr "Травень"
|
104 |
+
|
105 |
+
#~ msgid "June"
|
106 |
+
#~ msgstr "Чэрвень"
|
107 |
+
|
108 |
+
#~ msgid "July"
|
109 |
+
#~ msgstr "Ліпень"
|
110 |
+
|
111 |
+
#~ msgid "August"
|
112 |
+
#~ msgstr "Жнівень"
|
113 |
+
|
114 |
+
#~ msgid "September"
|
115 |
+
#~ msgstr "Верасень"
|
116 |
+
|
117 |
+
#~ msgid "October"
|
118 |
+
#~ msgstr "Кастрычнік"
|
119 |
+
|
120 |
+
#~ msgid "November"
|
121 |
+
#~ msgstr "Лістапад"
|
122 |
+
|
123 |
+
#~ msgid "December"
|
124 |
+
#~ msgstr "Снежань"
|
125 |
+
|
126 |
+
#~ msgid "Quantity"
|
127 |
+
#~ msgstr "Колькасць"
|
128 |
+
|
129 |
+
#~ msgid "The file exceeds the allowed size of"
|
130 |
+
#~ msgstr "Размовы перавышае дапушчальны памер"
|
131 |
+
|
132 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
133 |
+
#~ msgstr "На жаль, вы не можаце загрузіць гэты тып файла."
|
134 |
+
|
135 |
+
#~ msgid "Error, file cannot be moved."
|
136 |
+
#~ msgstr "Памылка, файл не можа быць перамешчаны."
|
137 |
+
|
138 |
+
#, fuzzy
|
139 |
+
#~ msgid "Error, file destination does not exist."
|
140 |
+
#~ msgstr "Памылка, адрас электроннай пошты не быў адпраўлены."
|
141 |
+
|
142 |
+
#~ msgid "value must be between"
|
143 |
+
#~ msgstr "значэнне павінна быць паміж "
|
144 |
+
|
145 |
+
#~ msgid "Your score should be less than"
|
146 |
+
#~ msgstr "Ваша ацэнка павінна быць не менш за "
|
147 |
+
|
148 |
+
#~ msgid "Title"
|
149 |
+
#~ msgstr "Назва"
|
150 |
+
|
151 |
+
#~ msgid "First"
|
152 |
+
#~ msgstr "Першы"
|
153 |
+
|
154 |
+
#~ msgid "Last"
|
155 |
+
#~ msgstr "Апошнія"
|
156 |
+
|
157 |
+
#~ msgid "Middle"
|
158 |
+
#~ msgstr "Сярэдзіна"
|
159 |
+
|
160 |
+
#~ msgid "Area Code"
|
161 |
+
#~ msgstr "Код зоны"
|
162 |
+
|
163 |
+
#~ msgid "Phone Number"
|
164 |
+
#~ msgstr "Нумар"
|
165 |
+
|
166 |
+
#~ msgid "Dollars"
|
167 |
+
#~ msgstr "даляры "
|
168 |
+
|
169 |
+
#~ msgid "Cents"
|
170 |
+
#~ msgstr "цэнтаў "
|
171 |
+
|
172 |
+
#~ msgid "From"
|
173 |
+
#~ msgstr "Ад"
|
174 |
+
|
175 |
+
#~ msgid "To"
|
176 |
+
#~ msgstr "Для"
|
languages/contact_form_maker-bg_BG.po
CHANGED
@@ -1,177 +1,177 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:25+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:25+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: bg\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Грешка, неправилно Код за сигурност."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr "Вашият IP е черна. Моля, свържете се с администратора на сайта. "
|
27 |
-
|
28 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
-
#, php-format
|
30 |
-
msgid ""
|
31 |
-
"This field %s requires a unique entry and this value was already submitted."
|
32 |
-
msgstr ""
|
33 |
-
"Това поле %s изисква уникален влизане и тази стойност вече е изпратена."
|
34 |
-
|
35 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
-
msgid "Nothing was submitted."
|
37 |
-
msgstr "Нищо не беше представен."
|
38 |
-
|
39 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
-
msgid "Your form was successfully submitted."
|
42 |
-
msgstr "Вашият форма е успешно изпратена."
|
43 |
-
|
44 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
-
msgid "Error, email was not sent."
|
46 |
-
msgstr "Грешка, електронна поща не е изпратено."
|
47 |
-
|
48 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
-
msgid "field is required."
|
64 |
-
msgstr "Полето е задължително."
|
65 |
-
|
66 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
-
msgid "This is not a valid email address."
|
68 |
-
msgstr "Това не е валиден имейл адрес."
|
69 |
-
|
70 |
-
#~ msgid "Street Address"
|
71 |
-
#~ msgstr "Улица"
|
72 |
-
|
73 |
-
#~ msgid "Street Address Line 2"
|
74 |
-
#~ msgstr "Адрес Ред 2"
|
75 |
-
|
76 |
-
#~ msgid "City"
|
77 |
-
#~ msgstr "Sofia"
|
78 |
-
|
79 |
-
#~ msgid "State / Province / Region"
|
80 |
-
#~ msgstr "Щат / Провинция / Регион"
|
81 |
-
|
82 |
-
#~ msgid "Postal / Zip Code"
|
83 |
-
#~ msgstr "Пощенски / Zip код"
|
84 |
-
|
85 |
-
#~ msgid "Country"
|
86 |
-
#~ msgstr "Държава"
|
87 |
-
|
88 |
-
#~ msgid "January"
|
89 |
-
#~ msgstr "януари"
|
90 |
-
|
91 |
-
#~ msgid "February"
|
92 |
-
#~ msgstr "февруари"
|
93 |
-
|
94 |
-
#~ msgid "March"
|
95 |
-
#~ msgstr "март"
|
96 |
-
|
97 |
-
#~ msgid "April"
|
98 |
-
#~ msgstr "април"
|
99 |
-
|
100 |
-
#~ msgid "May"
|
101 |
-
#~ msgstr "Май"
|
102 |
-
|
103 |
-
#~ msgid "June"
|
104 |
-
#~ msgstr "юни"
|
105 |
-
|
106 |
-
#~ msgid "July"
|
107 |
-
#~ msgstr "юли"
|
108 |
-
|
109 |
-
#~ msgid "August"
|
110 |
-
#~ msgstr "август"
|
111 |
-
|
112 |
-
#~ msgid "September"
|
113 |
-
#~ msgstr "септември"
|
114 |
-
|
115 |
-
#~ msgid "October"
|
116 |
-
#~ msgstr "октомври"
|
117 |
-
|
118 |
-
#~ msgid "November"
|
119 |
-
#~ msgstr "ноември"
|
120 |
-
|
121 |
-
#~ msgid "December"
|
122 |
-
#~ msgstr "декември"
|
123 |
-
|
124 |
-
#~ msgid "Quantity"
|
125 |
-
#~ msgstr "количество "
|
126 |
-
|
127 |
-
#~ msgid "The file exceeds the allowed size of"
|
128 |
-
#~ msgstr "Файлът превишава допустимия размер на"
|
129 |
-
|
130 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
-
#~ msgstr "За съжаление, не е позволено да се качите на този тип файл."
|
132 |
-
|
133 |
-
#~ msgid "Error, file cannot be moved."
|
134 |
-
#~ msgstr "Грешка, файлът не може да бъде преместен."
|
135 |
-
|
136 |
-
#, fuzzy
|
137 |
-
#~ msgid "Error, file destination does not exist."
|
138 |
-
#~ msgstr "Грешка, електронна поща не е изпратено."
|
139 |
-
|
140 |
-
#~ msgid "The"
|
141 |
-
#~ msgstr "The "
|
142 |
-
|
143 |
-
#~ msgid "value must be between"
|
144 |
-
#~ msgstr "стойност трябва да бъде между "
|
145 |
-
|
146 |
-
#~ msgid "Your score should be less than"
|
147 |
-
#~ msgstr "Вашият резултат трябва да бъде по-малко от "
|
148 |
-
|
149 |
-
#~ msgid "Title"
|
150 |
-
#~ msgstr "Наименование"
|
151 |
-
|
152 |
-
#~ msgid "First"
|
153 |
-
#~ msgstr "Първа"
|
154 |
-
|
155 |
-
#~ msgid "Last"
|
156 |
-
#~ msgstr "Дата на последния одит. "
|
157 |
-
|
158 |
-
#~ msgid "Middle"
|
159 |
-
#~ msgstr "Среден"
|
160 |
-
|
161 |
-
#~ msgid "Area Code"
|
162 |
-
#~ msgstr "Регионалния код"
|
163 |
-
|
164 |
-
#~ msgid "Phone Number"
|
165 |
-
#~ msgstr "Телефонен номер"
|
166 |
-
|
167 |
-
#~ msgid "Dollars"
|
168 |
-
#~ msgstr "Dollars "
|
169 |
-
|
170 |
-
#~ msgid "Cents"
|
171 |
-
#~ msgstr "Cents "
|
172 |
-
|
173 |
-
#~ msgid "From"
|
174 |
-
#~ msgstr "от "
|
175 |
-
|
176 |
-
#~ msgid "To"
|
177 |
-
#~ msgstr "за"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:25+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:25+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: bg\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Грешка, неправилно Код за сигурност."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr "Вашият IP е черна. Моля, свържете се с администратора на сайта. "
|
27 |
+
|
28 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
+
#, php-format
|
30 |
+
msgid ""
|
31 |
+
"This field %s requires a unique entry and this value was already submitted."
|
32 |
+
msgstr ""
|
33 |
+
"Това поле %s изисква уникален влизане и тази стойност вече е изпратена."
|
34 |
+
|
35 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
+
msgid "Nothing was submitted."
|
37 |
+
msgstr "Нищо не беше представен."
|
38 |
+
|
39 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
+
msgid "Your form was successfully submitted."
|
42 |
+
msgstr "Вашият форма е успешно изпратена."
|
43 |
+
|
44 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
+
msgid "Error, email was not sent."
|
46 |
+
msgstr "Грешка, електронна поща не е изпратено."
|
47 |
+
|
48 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
+
msgid "field is required."
|
64 |
+
msgstr "Полето е задължително."
|
65 |
+
|
66 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
+
msgid "This is not a valid email address."
|
68 |
+
msgstr "Това не е валиден имейл адрес."
|
69 |
+
|
70 |
+
#~ msgid "Street Address"
|
71 |
+
#~ msgstr "Улица"
|
72 |
+
|
73 |
+
#~ msgid "Street Address Line 2"
|
74 |
+
#~ msgstr "Адрес Ред 2"
|
75 |
+
|
76 |
+
#~ msgid "City"
|
77 |
+
#~ msgstr "Sofia"
|
78 |
+
|
79 |
+
#~ msgid "State / Province / Region"
|
80 |
+
#~ msgstr "Щат / Провинция / Регион"
|
81 |
+
|
82 |
+
#~ msgid "Postal / Zip Code"
|
83 |
+
#~ msgstr "Пощенски / Zip код"
|
84 |
+
|
85 |
+
#~ msgid "Country"
|
86 |
+
#~ msgstr "Държава"
|
87 |
+
|
88 |
+
#~ msgid "January"
|
89 |
+
#~ msgstr "януари"
|
90 |
+
|
91 |
+
#~ msgid "February"
|
92 |
+
#~ msgstr "февруари"
|
93 |
+
|
94 |
+
#~ msgid "March"
|
95 |
+
#~ msgstr "март"
|
96 |
+
|
97 |
+
#~ msgid "April"
|
98 |
+
#~ msgstr "април"
|
99 |
+
|
100 |
+
#~ msgid "May"
|
101 |
+
#~ msgstr "Май"
|
102 |
+
|
103 |
+
#~ msgid "June"
|
104 |
+
#~ msgstr "юни"
|
105 |
+
|
106 |
+
#~ msgid "July"
|
107 |
+
#~ msgstr "юли"
|
108 |
+
|
109 |
+
#~ msgid "August"
|
110 |
+
#~ msgstr "август"
|
111 |
+
|
112 |
+
#~ msgid "September"
|
113 |
+
#~ msgstr "септември"
|
114 |
+
|
115 |
+
#~ msgid "October"
|
116 |
+
#~ msgstr "октомври"
|
117 |
+
|
118 |
+
#~ msgid "November"
|
119 |
+
#~ msgstr "ноември"
|
120 |
+
|
121 |
+
#~ msgid "December"
|
122 |
+
#~ msgstr "декември"
|
123 |
+
|
124 |
+
#~ msgid "Quantity"
|
125 |
+
#~ msgstr "количество "
|
126 |
+
|
127 |
+
#~ msgid "The file exceeds the allowed size of"
|
128 |
+
#~ msgstr "Файлът превишава допустимия размер на"
|
129 |
+
|
130 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
+
#~ msgstr "За съжаление, не е позволено да се качите на този тип файл."
|
132 |
+
|
133 |
+
#~ msgid "Error, file cannot be moved."
|
134 |
+
#~ msgstr "Грешка, файлът не може да бъде преместен."
|
135 |
+
|
136 |
+
#, fuzzy
|
137 |
+
#~ msgid "Error, file destination does not exist."
|
138 |
+
#~ msgstr "Грешка, електронна поща не е изпратено."
|
139 |
+
|
140 |
+
#~ msgid "The"
|
141 |
+
#~ msgstr "The "
|
142 |
+
|
143 |
+
#~ msgid "value must be between"
|
144 |
+
#~ msgstr "стойност трябва да бъде между "
|
145 |
+
|
146 |
+
#~ msgid "Your score should be less than"
|
147 |
+
#~ msgstr "Вашият резултат трябва да бъде по-малко от "
|
148 |
+
|
149 |
+
#~ msgid "Title"
|
150 |
+
#~ msgstr "Наименование"
|
151 |
+
|
152 |
+
#~ msgid "First"
|
153 |
+
#~ msgstr "Първа"
|
154 |
+
|
155 |
+
#~ msgid "Last"
|
156 |
+
#~ msgstr "Дата на последния одит. "
|
157 |
+
|
158 |
+
#~ msgid "Middle"
|
159 |
+
#~ msgstr "Среден"
|
160 |
+
|
161 |
+
#~ msgid "Area Code"
|
162 |
+
#~ msgstr "Регионалния код"
|
163 |
+
|
164 |
+
#~ msgid "Phone Number"
|
165 |
+
#~ msgstr "Телефонен номер"
|
166 |
+
|
167 |
+
#~ msgid "Dollars"
|
168 |
+
#~ msgstr "Dollars "
|
169 |
+
|
170 |
+
#~ msgid "Cents"
|
171 |
+
#~ msgstr "Cents "
|
172 |
+
|
173 |
+
#~ msgid "From"
|
174 |
+
#~ msgstr "от "
|
175 |
+
|
176 |
+
#~ msgid "To"
|
177 |
+
#~ msgstr "за"
|
languages/contact_form_maker-ca.po
CHANGED
@@ -1,180 +1,180 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:25+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:25+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: ca\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Error, el codi de seguretat incorrecte."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr ""
|
27 |
-
"La seva ip és la llista negra. Si us plau, poseu-vos en contacte amb "
|
28 |
-
"l'administrador del lloc web. "
|
29 |
-
|
30 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
31 |
-
#, php-format
|
32 |
-
msgid ""
|
33 |
-
"This field %s requires a unique entry and this value was already submitted."
|
34 |
-
msgstr ""
|
35 |
-
"Aquest camp %s requereix d'una entrada única i aquest valor ja s'havia "
|
36 |
-
"presentat."
|
37 |
-
|
38 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
39 |
-
msgid "Nothing was submitted."
|
40 |
-
msgstr "Res es va presentar."
|
41 |
-
|
42 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
43 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
44 |
-
msgid "Your form was successfully submitted."
|
45 |
-
msgstr "El formulari s'ha enviat correctament."
|
46 |
-
|
47 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
48 |
-
msgid "Error, email was not sent."
|
49 |
-
msgstr "Error, el correu electrònic no va ser enviat."
|
50 |
-
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
63 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
64 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
65 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
66 |
-
msgid "field is required."
|
67 |
-
msgstr "camp és obligatori."
|
68 |
-
|
69 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
70 |
-
msgid "This is not a valid email address."
|
71 |
-
msgstr "Això no és una adreça de correu electrònic vàlida."
|
72 |
-
|
73 |
-
#~ msgid "Street Address"
|
74 |
-
#~ msgstr "Adreça de carrer"
|
75 |
-
|
76 |
-
#~ msgid "Street Address Line 2"
|
77 |
-
#~ msgstr "Carrer Adreça 2"
|
78 |
-
|
79 |
-
#~ msgid "City"
|
80 |
-
#~ msgstr "NomDistingit"
|
81 |
-
|
82 |
-
#~ msgid "State / Province / Region"
|
83 |
-
#~ msgstr "Estat / Província / Regió"
|
84 |
-
|
85 |
-
#~ msgid "Postal / Zip Code"
|
86 |
-
#~ msgstr "Postal / Codi Postal"
|
87 |
-
|
88 |
-
#~ msgid "Country"
|
89 |
-
#~ msgstr "País "
|
90 |
-
|
91 |
-
#~ msgid "January"
|
92 |
-
#~ msgstr "Gener"
|
93 |
-
|
94 |
-
#~ msgid "February"
|
95 |
-
#~ msgstr "Febrer"
|
96 |
-
|
97 |
-
#~ msgid "March"
|
98 |
-
#~ msgstr "Març"
|
99 |
-
|
100 |
-
#~ msgid "April"
|
101 |
-
#~ msgstr "Abril"
|
102 |
-
|
103 |
-
#~ msgid "May"
|
104 |
-
#~ msgstr "Mai"
|
105 |
-
|
106 |
-
#~ msgid "June"
|
107 |
-
#~ msgstr "Juny"
|
108 |
-
|
109 |
-
#~ msgid "July"
|
110 |
-
#~ msgstr "Juliol"
|
111 |
-
|
112 |
-
#~ msgid "August"
|
113 |
-
#~ msgstr "Agost"
|
114 |
-
|
115 |
-
#~ msgid "September"
|
116 |
-
#~ msgstr "Setembre"
|
117 |
-
|
118 |
-
#~ msgid "October"
|
119 |
-
#~ msgstr "Octubre"
|
120 |
-
|
121 |
-
#~ msgid "November"
|
122 |
-
#~ msgstr "Novembre"
|
123 |
-
|
124 |
-
#~ msgid "December"
|
125 |
-
#~ msgstr "Desembre"
|
126 |
-
|
127 |
-
#~ msgid "Quantity"
|
128 |
-
#~ msgstr "quantitat "
|
129 |
-
|
130 |
-
#~ msgid "The file exceeds the allowed size of"
|
131 |
-
#~ msgstr "L'arxiu supera la grandària permès de"
|
132 |
-
|
133 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
134 |
-
#~ msgstr "Ho sentim, no estan autoritzats a pujar aquest tipus de fitxer."
|
135 |
-
|
136 |
-
#~ msgid "Error, file cannot be moved."
|
137 |
-
#~ msgstr "Error, l'arxiu no es pot moure."
|
138 |
-
|
139 |
-
#, fuzzy
|
140 |
-
#~ msgid "Error, file destination does not exist."
|
141 |
-
#~ msgstr "Error, el correu electrònic no va ser enviat."
|
142 |
-
|
143 |
-
#~ msgid "The"
|
144 |
-
#~ msgstr "la "
|
145 |
-
|
146 |
-
#~ msgid "value must be between"
|
147 |
-
#~ msgstr "valor ha d'estar entre "
|
148 |
-
|
149 |
-
#~ msgid "Your score should be less than"
|
150 |
-
#~ msgstr "La seva puntuació ha de ser inferior a "
|
151 |
-
|
152 |
-
#~ msgid "Title"
|
153 |
-
#~ msgstr "Títol"
|
154 |
-
|
155 |
-
#~ msgid "First"
|
156 |
-
#~ msgstr "Primer"
|
157 |
-
|
158 |
-
#~ msgid "Last"
|
159 |
-
#~ msgstr "Últim"
|
160 |
-
|
161 |
-
#~ msgid "Middle"
|
162 |
-
#~ msgstr "Mitjà"
|
163 |
-
|
164 |
-
#~ msgid "Area Code"
|
165 |
-
#~ msgstr "Codi d'àrea"
|
166 |
-
|
167 |
-
#~ msgid "Phone Number"
|
168 |
-
#~ msgstr "Número de telèfon"
|
169 |
-
|
170 |
-
#~ msgid "Dollars"
|
171 |
-
#~ msgstr "dòlars "
|
172 |
-
|
173 |
-
#~ msgid "Cents"
|
174 |
-
#~ msgstr "cents "
|
175 |
-
|
176 |
-
#~ msgid "From"
|
177 |
-
#~ msgstr "des "
|
178 |
-
|
179 |
-
#~ msgid "To"
|
180 |
-
#~ msgstr "A"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:25+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:25+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: ca\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Error, el codi de seguretat incorrecte."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr ""
|
27 |
+
"La seva ip és la llista negra. Si us plau, poseu-vos en contacte amb "
|
28 |
+
"l'administrador del lloc web. "
|
29 |
+
|
30 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
31 |
+
#, php-format
|
32 |
+
msgid ""
|
33 |
+
"This field %s requires a unique entry and this value was already submitted."
|
34 |
+
msgstr ""
|
35 |
+
"Aquest camp %s requereix d'una entrada única i aquest valor ja s'havia "
|
36 |
+
"presentat."
|
37 |
+
|
38 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
39 |
+
msgid "Nothing was submitted."
|
40 |
+
msgstr "Res es va presentar."
|
41 |
+
|
42 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
43 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
44 |
+
msgid "Your form was successfully submitted."
|
45 |
+
msgstr "El formulari s'ha enviat correctament."
|
46 |
+
|
47 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
48 |
+
msgid "Error, email was not sent."
|
49 |
+
msgstr "Error, el correu electrònic no va ser enviat."
|
50 |
+
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
63 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
64 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
65 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
66 |
+
msgid "field is required."
|
67 |
+
msgstr "camp és obligatori."
|
68 |
+
|
69 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
70 |
+
msgid "This is not a valid email address."
|
71 |
+
msgstr "Això no és una adreça de correu electrònic vàlida."
|
72 |
+
|
73 |
+
#~ msgid "Street Address"
|
74 |
+
#~ msgstr "Adreça de carrer"
|
75 |
+
|
76 |
+
#~ msgid "Street Address Line 2"
|
77 |
+
#~ msgstr "Carrer Adreça 2"
|
78 |
+
|
79 |
+
#~ msgid "City"
|
80 |
+
#~ msgstr "NomDistingit"
|
81 |
+
|
82 |
+
#~ msgid "State / Province / Region"
|
83 |
+
#~ msgstr "Estat / Província / Regió"
|
84 |
+
|
85 |
+
#~ msgid "Postal / Zip Code"
|
86 |
+
#~ msgstr "Postal / Codi Postal"
|
87 |
+
|
88 |
+
#~ msgid "Country"
|
89 |
+
#~ msgstr "País "
|
90 |
+
|
91 |
+
#~ msgid "January"
|
92 |
+
#~ msgstr "Gener"
|
93 |
+
|
94 |
+
#~ msgid "February"
|
95 |
+
#~ msgstr "Febrer"
|
96 |
+
|
97 |
+
#~ msgid "March"
|
98 |
+
#~ msgstr "Març"
|
99 |
+
|
100 |
+
#~ msgid "April"
|
101 |
+
#~ msgstr "Abril"
|
102 |
+
|
103 |
+
#~ msgid "May"
|
104 |
+
#~ msgstr "Mai"
|
105 |
+
|
106 |
+
#~ msgid "June"
|
107 |
+
#~ msgstr "Juny"
|
108 |
+
|
109 |
+
#~ msgid "July"
|
110 |
+
#~ msgstr "Juliol"
|
111 |
+
|
112 |
+
#~ msgid "August"
|
113 |
+
#~ msgstr "Agost"
|
114 |
+
|
115 |
+
#~ msgid "September"
|
116 |
+
#~ msgstr "Setembre"
|
117 |
+
|
118 |
+
#~ msgid "October"
|
119 |
+
#~ msgstr "Octubre"
|
120 |
+
|
121 |
+
#~ msgid "November"
|
122 |
+
#~ msgstr "Novembre"
|
123 |
+
|
124 |
+
#~ msgid "December"
|
125 |
+
#~ msgstr "Desembre"
|
126 |
+
|
127 |
+
#~ msgid "Quantity"
|
128 |
+
#~ msgstr "quantitat "
|
129 |
+
|
130 |
+
#~ msgid "The file exceeds the allowed size of"
|
131 |
+
#~ msgstr "L'arxiu supera la grandària permès de"
|
132 |
+
|
133 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
134 |
+
#~ msgstr "Ho sentim, no estan autoritzats a pujar aquest tipus de fitxer."
|
135 |
+
|
136 |
+
#~ msgid "Error, file cannot be moved."
|
137 |
+
#~ msgstr "Error, l'arxiu no es pot moure."
|
138 |
+
|
139 |
+
#, fuzzy
|
140 |
+
#~ msgid "Error, file destination does not exist."
|
141 |
+
#~ msgstr "Error, el correu electrònic no va ser enviat."
|
142 |
+
|
143 |
+
#~ msgid "The"
|
144 |
+
#~ msgstr "la "
|
145 |
+
|
146 |
+
#~ msgid "value must be between"
|
147 |
+
#~ msgstr "valor ha d'estar entre "
|
148 |
+
|
149 |
+
#~ msgid "Your score should be less than"
|
150 |
+
#~ msgstr "La seva puntuació ha de ser inferior a "
|
151 |
+
|
152 |
+
#~ msgid "Title"
|
153 |
+
#~ msgstr "Títol"
|
154 |
+
|
155 |
+
#~ msgid "First"
|
156 |
+
#~ msgstr "Primer"
|
157 |
+
|
158 |
+
#~ msgid "Last"
|
159 |
+
#~ msgstr "Últim"
|
160 |
+
|
161 |
+
#~ msgid "Middle"
|
162 |
+
#~ msgstr "Mitjà"
|
163 |
+
|
164 |
+
#~ msgid "Area Code"
|
165 |
+
#~ msgstr "Codi d'àrea"
|
166 |
+
|
167 |
+
#~ msgid "Phone Number"
|
168 |
+
#~ msgstr "Número de telèfon"
|
169 |
+
|
170 |
+
#~ msgid "Dollars"
|
171 |
+
#~ msgstr "dòlars "
|
172 |
+
|
173 |
+
#~ msgid "Cents"
|
174 |
+
#~ msgstr "cents "
|
175 |
+
|
176 |
+
#~ msgid "From"
|
177 |
+
#~ msgstr "des "
|
178 |
+
|
179 |
+
#~ msgid "To"
|
180 |
+
#~ msgstr "A"
|
languages/contact_form_maker-cs_CZ.po
CHANGED
@@ -1,177 +1,177 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:25+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:25+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: cs\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Chyba, nesprávný bezpečnostní kód."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr "Vaše IP je na černé listině. Prosím, obraťte se na správce webu. "
|
27 |
-
|
28 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
-
#, php-format
|
30 |
-
msgid ""
|
31 |
-
"This field %s requires a unique entry and this value was already submitted."
|
32 |
-
msgstr ""
|
33 |
-
"Toto pole %s vyžaduje jedinečný přístup a tato hodnota byla již podána."
|
34 |
-
|
35 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
-
msgid "Nothing was submitted."
|
37 |
-
msgstr "Nic byl předložen."
|
38 |
-
|
39 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
-
msgid "Your form was successfully submitted."
|
42 |
-
msgstr "Váš formulář byl úspěšně odeslán."
|
43 |
-
|
44 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
-
msgid "Error, email was not sent."
|
46 |
-
msgstr "Chyba, byl e-mail neposlal."
|
47 |
-
|
48 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
-
msgid "field is required."
|
64 |
-
msgstr "pole je povinné."
|
65 |
-
|
66 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
-
msgid "This is not a valid email address."
|
68 |
-
msgstr "Toto není platná e-mailová adresa."
|
69 |
-
|
70 |
-
#~ msgid "Street Address"
|
71 |
-
#~ msgstr "Ulice"
|
72 |
-
|
73 |
-
#~ msgid "Street Address Line 2"
|
74 |
-
#~ msgstr "Ulice řádek 2"
|
75 |
-
|
76 |
-
#~ msgid "City"
|
77 |
-
#~ msgstr "Město"
|
78 |
-
|
79 |
-
#~ msgid "State / Province / Region"
|
80 |
-
#~ msgstr "Stát / provincie / Region"
|
81 |
-
|
82 |
-
#~ msgid "Postal / Zip Code"
|
83 |
-
#~ msgstr "Poštovní / PSČ"
|
84 |
-
|
85 |
-
#~ msgid "Country"
|
86 |
-
#~ msgstr "Země"
|
87 |
-
|
88 |
-
#~ msgid "January"
|
89 |
-
#~ msgstr "Leden"
|
90 |
-
|
91 |
-
#~ msgid "February"
|
92 |
-
#~ msgstr "Únor"
|
93 |
-
|
94 |
-
#~ msgid "March"
|
95 |
-
#~ msgstr "Březen"
|
96 |
-
|
97 |
-
#~ msgid "April"
|
98 |
-
#~ msgstr "Duben"
|
99 |
-
|
100 |
-
#~ msgid "May"
|
101 |
-
#~ msgstr "Květen"
|
102 |
-
|
103 |
-
#~ msgid "June"
|
104 |
-
#~ msgstr "Červen"
|
105 |
-
|
106 |
-
#~ msgid "July"
|
107 |
-
#~ msgstr "Červenec"
|
108 |
-
|
109 |
-
#~ msgid "August"
|
110 |
-
#~ msgstr "Srpen"
|
111 |
-
|
112 |
-
#~ msgid "September"
|
113 |
-
#~ msgstr "Září"
|
114 |
-
|
115 |
-
#~ msgid "October"
|
116 |
-
#~ msgstr "Říjen"
|
117 |
-
|
118 |
-
#~ msgid "November"
|
119 |
-
#~ msgstr "Listopad"
|
120 |
-
|
121 |
-
#~ msgid "December"
|
122 |
-
#~ msgstr "Prosinec"
|
123 |
-
|
124 |
-
#~ msgid "Quantity"
|
125 |
-
#~ msgstr "množství "
|
126 |
-
|
127 |
-
#~ msgid "The file exceeds the allowed size of"
|
128 |
-
#~ msgstr "Souboru přesáhne povolenou velikost"
|
129 |
-
|
130 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
-
#~ msgstr "Je nám líto, ale nemáte možnost nahrát tento typ souboru."
|
132 |
-
|
133 |
-
#~ msgid "Error, file cannot be moved."
|
134 |
-
#~ msgstr "Chyba může soubor nelze přesunout."
|
135 |
-
|
136 |
-
#, fuzzy
|
137 |
-
#~ msgid "Error, file destination does not exist."
|
138 |
-
#~ msgstr "Chyba, byl e-mail neposlal."
|
139 |
-
|
140 |
-
#~ msgid "The"
|
141 |
-
#~ msgstr "The"
|
142 |
-
|
143 |
-
#~ msgid "value must be between"
|
144 |
-
#~ msgstr "hodnota musí být mezi "
|
145 |
-
|
146 |
-
#~ msgid "Your score should be less than"
|
147 |
-
#~ msgstr "Vaše skóre by měla být menší než "
|
148 |
-
|
149 |
-
#~ msgid "Title"
|
150 |
-
#~ msgstr "Název"
|
151 |
-
|
152 |
-
#~ msgid "First"
|
153 |
-
#~ msgstr "Za prvé"
|
154 |
-
|
155 |
-
#~ msgid "Last"
|
156 |
-
#~ msgstr "Poslední"
|
157 |
-
|
158 |
-
#~ msgid "Middle"
|
159 |
-
#~ msgstr "na střed"
|
160 |
-
|
161 |
-
#~ msgid "Area Code"
|
162 |
-
#~ msgstr "Kód oblasti"
|
163 |
-
|
164 |
-
#~ msgid "Phone Number"
|
165 |
-
#~ msgstr "Telefonní číslo"
|
166 |
-
|
167 |
-
#~ msgid "Dollars"
|
168 |
-
#~ msgstr "dolarů "
|
169 |
-
|
170 |
-
#~ msgid "Cents"
|
171 |
-
#~ msgstr "centů "
|
172 |
-
|
173 |
-
#~ msgid "From"
|
174 |
-
#~ msgstr "od "
|
175 |
-
|
176 |
-
#~ msgid "To"
|
177 |
-
#~ msgstr "na"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:25+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:25+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: cs\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Chyba, nesprávný bezpečnostní kód."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr "Vaše IP je na černé listině. Prosím, obraťte se na správce webu. "
|
27 |
+
|
28 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
+
#, php-format
|
30 |
+
msgid ""
|
31 |
+
"This field %s requires a unique entry and this value was already submitted."
|
32 |
+
msgstr ""
|
33 |
+
"Toto pole %s vyžaduje jedinečný přístup a tato hodnota byla již podána."
|
34 |
+
|
35 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
+
msgid "Nothing was submitted."
|
37 |
+
msgstr "Nic byl předložen."
|
38 |
+
|
39 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
+
msgid "Your form was successfully submitted."
|
42 |
+
msgstr "Váš formulář byl úspěšně odeslán."
|
43 |
+
|
44 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
+
msgid "Error, email was not sent."
|
46 |
+
msgstr "Chyba, byl e-mail neposlal."
|
47 |
+
|
48 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
+
msgid "field is required."
|
64 |
+
msgstr "pole je povinné."
|
65 |
+
|
66 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
+
msgid "This is not a valid email address."
|
68 |
+
msgstr "Toto není platná e-mailová adresa."
|
69 |
+
|
70 |
+
#~ msgid "Street Address"
|
71 |
+
#~ msgstr "Ulice"
|
72 |
+
|
73 |
+
#~ msgid "Street Address Line 2"
|
74 |
+
#~ msgstr "Ulice řádek 2"
|
75 |
+
|
76 |
+
#~ msgid "City"
|
77 |
+
#~ msgstr "Město"
|
78 |
+
|
79 |
+
#~ msgid "State / Province / Region"
|
80 |
+
#~ msgstr "Stát / provincie / Region"
|
81 |
+
|
82 |
+
#~ msgid "Postal / Zip Code"
|
83 |
+
#~ msgstr "Poštovní / PSČ"
|
84 |
+
|
85 |
+
#~ msgid "Country"
|
86 |
+
#~ msgstr "Země"
|
87 |
+
|
88 |
+
#~ msgid "January"
|
89 |
+
#~ msgstr "Leden"
|
90 |
+
|
91 |
+
#~ msgid "February"
|
92 |
+
#~ msgstr "Únor"
|
93 |
+
|
94 |
+
#~ msgid "March"
|
95 |
+
#~ msgstr "Březen"
|
96 |
+
|
97 |
+
#~ msgid "April"
|
98 |
+
#~ msgstr "Duben"
|
99 |
+
|
100 |
+
#~ msgid "May"
|
101 |
+
#~ msgstr "Květen"
|
102 |
+
|
103 |
+
#~ msgid "June"
|
104 |
+
#~ msgstr "Červen"
|
105 |
+
|
106 |
+
#~ msgid "July"
|
107 |
+
#~ msgstr "Červenec"
|
108 |
+
|
109 |
+
#~ msgid "August"
|
110 |
+
#~ msgstr "Srpen"
|
111 |
+
|
112 |
+
#~ msgid "September"
|
113 |
+
#~ msgstr "Září"
|
114 |
+
|
115 |
+
#~ msgid "October"
|
116 |
+
#~ msgstr "Říjen"
|
117 |
+
|
118 |
+
#~ msgid "November"
|
119 |
+
#~ msgstr "Listopad"
|
120 |
+
|
121 |
+
#~ msgid "December"
|
122 |
+
#~ msgstr "Prosinec"
|
123 |
+
|
124 |
+
#~ msgid "Quantity"
|
125 |
+
#~ msgstr "množství "
|
126 |
+
|
127 |
+
#~ msgid "The file exceeds the allowed size of"
|
128 |
+
#~ msgstr "Souboru přesáhne povolenou velikost"
|
129 |
+
|
130 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
+
#~ msgstr "Je nám líto, ale nemáte možnost nahrát tento typ souboru."
|
132 |
+
|
133 |
+
#~ msgid "Error, file cannot be moved."
|
134 |
+
#~ msgstr "Chyba může soubor nelze přesunout."
|
135 |
+
|
136 |
+
#, fuzzy
|
137 |
+
#~ msgid "Error, file destination does not exist."
|
138 |
+
#~ msgstr "Chyba, byl e-mail neposlal."
|
139 |
+
|
140 |
+
#~ msgid "The"
|
141 |
+
#~ msgstr "The"
|
142 |
+
|
143 |
+
#~ msgid "value must be between"
|
144 |
+
#~ msgstr "hodnota musí být mezi "
|
145 |
+
|
146 |
+
#~ msgid "Your score should be less than"
|
147 |
+
#~ msgstr "Vaše skóre by měla být menší než "
|
148 |
+
|
149 |
+
#~ msgid "Title"
|
150 |
+
#~ msgstr "Název"
|
151 |
+
|
152 |
+
#~ msgid "First"
|
153 |
+
#~ msgstr "Za prvé"
|
154 |
+
|
155 |
+
#~ msgid "Last"
|
156 |
+
#~ msgstr "Poslední"
|
157 |
+
|
158 |
+
#~ msgid "Middle"
|
159 |
+
#~ msgstr "na střed"
|
160 |
+
|
161 |
+
#~ msgid "Area Code"
|
162 |
+
#~ msgstr "Kód oblasti"
|
163 |
+
|
164 |
+
#~ msgid "Phone Number"
|
165 |
+
#~ msgstr "Telefonní číslo"
|
166 |
+
|
167 |
+
#~ msgid "Dollars"
|
168 |
+
#~ msgstr "dolarů "
|
169 |
+
|
170 |
+
#~ msgid "Cents"
|
171 |
+
#~ msgstr "centů "
|
172 |
+
|
173 |
+
#~ msgid "From"
|
174 |
+
#~ msgstr "od "
|
175 |
+
|
176 |
+
#~ msgid "To"
|
177 |
+
#~ msgstr "na"
|
languages/contact_form_maker-da_DK.po
CHANGED
@@ -1,177 +1,177 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:26+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:26+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: da\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Fejl, forkert sikkerhedskode kode."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr "Din IP er sortlistet. Kontakt venligst hjemmesiden administrator. "
|
27 |
-
|
28 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
-
#, php-format
|
30 |
-
msgid ""
|
31 |
-
"This field %s requires a unique entry and this value was already submitted."
|
32 |
-
msgstr ""
|
33 |
-
"Dette felt %s kræver en unik indgang, og denne værdi var allerede indsendt."
|
34 |
-
|
35 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
-
msgid "Nothing was submitted."
|
37 |
-
msgstr "Intet blev fremlagt."
|
38 |
-
|
39 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
-
msgid "Your form was successfully submitted."
|
42 |
-
msgstr "Din formular blev succesfuldt sendt."
|
43 |
-
|
44 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
-
msgid "Error, email was not sent."
|
46 |
-
msgstr "Fejl, blev e-mailen ikke sendt."
|
47 |
-
|
48 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
-
msgid "field is required."
|
64 |
-
msgstr "felt er påkrævet."
|
65 |
-
|
66 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
-
msgid "This is not a valid email address."
|
68 |
-
msgstr "Dette er ikke en gyldig e-mail-adresse."
|
69 |
-
|
70 |
-
#~ msgid "Street Address"
|
71 |
-
#~ msgstr "Gade"
|
72 |
-
|
73 |
-
#~ msgid "Street Address Line 2"
|
74 |
-
#~ msgstr "Gade Linje 2"
|
75 |
-
|
76 |
-
#~ msgid "City"
|
77 |
-
#~ msgstr "By"
|
78 |
-
|
79 |
-
#~ msgid "State / Province / Region"
|
80 |
-
#~ msgstr "Stat / provins / region"
|
81 |
-
|
82 |
-
#~ msgid "Postal / Zip Code"
|
83 |
-
#~ msgstr "Postal / Zip Code"
|
84 |
-
|
85 |
-
#~ msgid "Country"
|
86 |
-
#~ msgstr "Land"
|
87 |
-
|
88 |
-
#~ msgid "January"
|
89 |
-
#~ msgstr "Januar"
|
90 |
-
|
91 |
-
#~ msgid "February"
|
92 |
-
#~ msgstr "Februar"
|
93 |
-
|
94 |
-
#~ msgid "March"
|
95 |
-
#~ msgstr "Marts"
|
96 |
-
|
97 |
-
#~ msgid "April"
|
98 |
-
#~ msgstr "April"
|
99 |
-
|
100 |
-
#~ msgid "May"
|
101 |
-
#~ msgstr "Maj"
|
102 |
-
|
103 |
-
#~ msgid "June"
|
104 |
-
#~ msgstr "Juni"
|
105 |
-
|
106 |
-
#~ msgid "July"
|
107 |
-
#~ msgstr "Juli"
|
108 |
-
|
109 |
-
#~ msgid "August"
|
110 |
-
#~ msgstr "August"
|
111 |
-
|
112 |
-
#~ msgid "September"
|
113 |
-
#~ msgstr "September"
|
114 |
-
|
115 |
-
#~ msgid "October"
|
116 |
-
#~ msgstr "Oktober"
|
117 |
-
|
118 |
-
#~ msgid "November"
|
119 |
-
#~ msgstr "November"
|
120 |
-
|
121 |
-
#~ msgid "December"
|
122 |
-
#~ msgstr "December"
|
123 |
-
|
124 |
-
#~ msgid "Quantity"
|
125 |
-
#~ msgstr "mængde "
|
126 |
-
|
127 |
-
#~ msgid "The file exceeds the allowed size of"
|
128 |
-
#~ msgstr "Filen overskrider den tilladte størrelse"
|
129 |
-
|
130 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
-
#~ msgstr "Du har desværre ikke tilladelse til at uploade denne type fil."
|
132 |
-
|
133 |
-
#~ msgid "Error, file cannot be moved."
|
134 |
-
#~ msgstr "Fejl, kan filen ikke kan flyttes."
|
135 |
-
|
136 |
-
#, fuzzy
|
137 |
-
#~ msgid "Error, file destination does not exist."
|
138 |
-
#~ msgstr "Fejl, blev e-mailen ikke sendt."
|
139 |
-
|
140 |
-
#~ msgid "The"
|
141 |
-
#~ msgstr "den "
|
142 |
-
|
143 |
-
#~ msgid "value must be between"
|
144 |
-
#~ msgstr "værdi skal være mellem "
|
145 |
-
|
146 |
-
#~ msgid "Your score should be less than"
|
147 |
-
#~ msgstr "Din score skal være mindre end "
|
148 |
-
|
149 |
-
#~ msgid "Title"
|
150 |
-
#~ msgstr "Titel"
|
151 |
-
|
152 |
-
#~ msgid "First"
|
153 |
-
#~ msgstr "Første"
|
154 |
-
|
155 |
-
#~ msgid "Last"
|
156 |
-
#~ msgstr "Sidste"
|
157 |
-
|
158 |
-
#~ msgid "Middle"
|
159 |
-
#~ msgstr "Mellemøsten"
|
160 |
-
|
161 |
-
#~ msgid "Area Code"
|
162 |
-
#~ msgstr "Områdekode"
|
163 |
-
|
164 |
-
#~ msgid "Phone Number"
|
165 |
-
#~ msgstr "telefonnummer. "
|
166 |
-
|
167 |
-
#~ msgid "Dollars"
|
168 |
-
#~ msgstr "dollars "
|
169 |
-
|
170 |
-
#~ msgid "Cents"
|
171 |
-
#~ msgstr "cents"
|
172 |
-
|
173 |
-
#~ msgid "From"
|
174 |
-
#~ msgstr "fra "
|
175 |
-
|
176 |
-
#~ msgid "To"
|
177 |
-
#~ msgstr "til"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:26+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:26+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: da\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Fejl, forkert sikkerhedskode kode."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr "Din IP er sortlistet. Kontakt venligst hjemmesiden administrator. "
|
27 |
+
|
28 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
+
#, php-format
|
30 |
+
msgid ""
|
31 |
+
"This field %s requires a unique entry and this value was already submitted."
|
32 |
+
msgstr ""
|
33 |
+
"Dette felt %s kræver en unik indgang, og denne værdi var allerede indsendt."
|
34 |
+
|
35 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
+
msgid "Nothing was submitted."
|
37 |
+
msgstr "Intet blev fremlagt."
|
38 |
+
|
39 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
+
msgid "Your form was successfully submitted."
|
42 |
+
msgstr "Din formular blev succesfuldt sendt."
|
43 |
+
|
44 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
+
msgid "Error, email was not sent."
|
46 |
+
msgstr "Fejl, blev e-mailen ikke sendt."
|
47 |
+
|
48 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
+
msgid "field is required."
|
64 |
+
msgstr "felt er påkrævet."
|
65 |
+
|
66 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
+
msgid "This is not a valid email address."
|
68 |
+
msgstr "Dette er ikke en gyldig e-mail-adresse."
|
69 |
+
|
70 |
+
#~ msgid "Street Address"
|
71 |
+
#~ msgstr "Gade"
|
72 |
+
|
73 |
+
#~ msgid "Street Address Line 2"
|
74 |
+
#~ msgstr "Gade Linje 2"
|
75 |
+
|
76 |
+
#~ msgid "City"
|
77 |
+
#~ msgstr "By"
|
78 |
+
|
79 |
+
#~ msgid "State / Province / Region"
|
80 |
+
#~ msgstr "Stat / provins / region"
|
81 |
+
|
82 |
+
#~ msgid "Postal / Zip Code"
|
83 |
+
#~ msgstr "Postal / Zip Code"
|
84 |
+
|
85 |
+
#~ msgid "Country"
|
86 |
+
#~ msgstr "Land"
|
87 |
+
|
88 |
+
#~ msgid "January"
|
89 |
+
#~ msgstr "Januar"
|
90 |
+
|
91 |
+
#~ msgid "February"
|
92 |
+
#~ msgstr "Februar"
|
93 |
+
|
94 |
+
#~ msgid "March"
|
95 |
+
#~ msgstr "Marts"
|
96 |
+
|
97 |
+
#~ msgid "April"
|
98 |
+
#~ msgstr "April"
|
99 |
+
|
100 |
+
#~ msgid "May"
|
101 |
+
#~ msgstr "Maj"
|
102 |
+
|
103 |
+
#~ msgid "June"
|
104 |
+
#~ msgstr "Juni"
|
105 |
+
|
106 |
+
#~ msgid "July"
|
107 |
+
#~ msgstr "Juli"
|
108 |
+
|
109 |
+
#~ msgid "August"
|
110 |
+
#~ msgstr "August"
|
111 |
+
|
112 |
+
#~ msgid "September"
|
113 |
+
#~ msgstr "September"
|
114 |
+
|
115 |
+
#~ msgid "October"
|
116 |
+
#~ msgstr "Oktober"
|
117 |
+
|
118 |
+
#~ msgid "November"
|
119 |
+
#~ msgstr "November"
|
120 |
+
|
121 |
+
#~ msgid "December"
|
122 |
+
#~ msgstr "December"
|
123 |
+
|
124 |
+
#~ msgid "Quantity"
|
125 |
+
#~ msgstr "mængde "
|
126 |
+
|
127 |
+
#~ msgid "The file exceeds the allowed size of"
|
128 |
+
#~ msgstr "Filen overskrider den tilladte størrelse"
|
129 |
+
|
130 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
+
#~ msgstr "Du har desværre ikke tilladelse til at uploade denne type fil."
|
132 |
+
|
133 |
+
#~ msgid "Error, file cannot be moved."
|
134 |
+
#~ msgstr "Fejl, kan filen ikke kan flyttes."
|
135 |
+
|
136 |
+
#, fuzzy
|
137 |
+
#~ msgid "Error, file destination does not exist."
|
138 |
+
#~ msgstr "Fejl, blev e-mailen ikke sendt."
|
139 |
+
|
140 |
+
#~ msgid "The"
|
141 |
+
#~ msgstr "den "
|
142 |
+
|
143 |
+
#~ msgid "value must be between"
|
144 |
+
#~ msgstr "værdi skal være mellem "
|
145 |
+
|
146 |
+
#~ msgid "Your score should be less than"
|
147 |
+
#~ msgstr "Din score skal være mindre end "
|
148 |
+
|
149 |
+
#~ msgid "Title"
|
150 |
+
#~ msgstr "Titel"
|
151 |
+
|
152 |
+
#~ msgid "First"
|
153 |
+
#~ msgstr "Første"
|
154 |
+
|
155 |
+
#~ msgid "Last"
|
156 |
+
#~ msgstr "Sidste"
|
157 |
+
|
158 |
+
#~ msgid "Middle"
|
159 |
+
#~ msgstr "Mellemøsten"
|
160 |
+
|
161 |
+
#~ msgid "Area Code"
|
162 |
+
#~ msgstr "Områdekode"
|
163 |
+
|
164 |
+
#~ msgid "Phone Number"
|
165 |
+
#~ msgstr "telefonnummer. "
|
166 |
+
|
167 |
+
#~ msgid "Dollars"
|
168 |
+
#~ msgstr "dollars "
|
169 |
+
|
170 |
+
#~ msgid "Cents"
|
171 |
+
#~ msgstr "cents"
|
172 |
+
|
173 |
+
#~ msgid "From"
|
174 |
+
#~ msgstr "fra "
|
175 |
+
|
176 |
+
#~ msgid "To"
|
177 |
+
#~ msgstr "til"
|
languages/contact_form_maker-en_US.po
CHANGED
@@ -1,176 +1,176 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:19+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:19+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: el\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Error, incorrect Security code."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr "Your ip is blacklisted. Please contact the website administrator."
|
27 |
-
|
28 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
-
#, php-format
|
30 |
-
msgid ""
|
31 |
-
"This field %s requires a unique entry and this value was already submitted."
|
32 |
-
msgstr ""
|
33 |
-
"This field %s requires a unique entry and this value was already submitted."
|
34 |
-
|
35 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
-
msgid "Nothing was submitted."
|
37 |
-
msgstr "Nothing was submitted."
|
38 |
-
|
39 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
-
msgid "Your form was successfully submitted."
|
42 |
-
msgstr "Your form was successfully submitted."
|
43 |
-
|
44 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
-
msgid "Error, email was not sent."
|
46 |
-
msgstr "Error, email was not sent."
|
47 |
-
|
48 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
-
msgid "field is required."
|
64 |
-
msgstr "field is required."
|
65 |
-
|
66 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
-
msgid "This is not a valid email address."
|
68 |
-
msgstr "This is not a valid email address."
|
69 |
-
|
70 |
-
#~ msgid "Street Address"
|
71 |
-
#~ msgstr "Street Address"
|
72 |
-
|
73 |
-
#~ msgid "Street Address Line 2"
|
74 |
-
#~ msgstr "Street Address Line 2"
|
75 |
-
|
76 |
-
#~ msgid "City"
|
77 |
-
#~ msgstr "City"
|
78 |
-
|
79 |
-
#~ msgid "State / Province / Region"
|
80 |
-
#~ msgstr "State / Province / Region"
|
81 |
-
|
82 |
-
#~ msgid "Postal / Zip Code"
|
83 |
-
#~ msgstr "Postal / Zip Code"
|
84 |
-
|
85 |
-
#~ msgid "Country"
|
86 |
-
#~ msgstr "Country"
|
87 |
-
|
88 |
-
#~ msgid "January"
|
89 |
-
#~ msgstr "January"
|
90 |
-
|
91 |
-
#~ msgid "February"
|
92 |
-
#~ msgstr "February"
|
93 |
-
|
94 |
-
#~ msgid "March"
|
95 |
-
#~ msgstr "March"
|
96 |
-
|
97 |
-
#~ msgid "April"
|
98 |
-
#~ msgstr "April"
|
99 |
-
|
100 |
-
#~ msgid "May"
|
101 |
-
#~ msgstr "May"
|
102 |
-
|
103 |
-
#~ msgid "June"
|
104 |
-
#~ msgstr "June"
|
105 |
-
|
106 |
-
#~ msgid "July"
|
107 |
-
#~ msgstr "July"
|
108 |
-
|
109 |
-
#~ msgid "August"
|
110 |
-
#~ msgstr "August"
|
111 |
-
|
112 |
-
#~ msgid "September"
|
113 |
-
#~ msgstr "September"
|
114 |
-
|
115 |
-
#~ msgid "October"
|
116 |
-
#~ msgstr "October"
|
117 |
-
|
118 |
-
#~ msgid "November"
|
119 |
-
#~ msgstr "November"
|
120 |
-
|
121 |
-
#~ msgid "December"
|
122 |
-
#~ msgstr "December"
|
123 |
-
|
124 |
-
#~ msgid "Quantity"
|
125 |
-
#~ msgstr "Quantity"
|
126 |
-
|
127 |
-
#~ msgid "The file exceeds the allowed size of"
|
128 |
-
#~ msgstr "The file exceeds the allowed size of"
|
129 |
-
|
130 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
-
#~ msgstr "Sorry, you are not allowed to upload this type of file."
|
132 |
-
|
133 |
-
#~ msgid "Error, file cannot be moved."
|
134 |
-
#~ msgstr "Error, file cannot be moved."
|
135 |
-
|
136 |
-
#~ msgid "Error, file destination does not exist."
|
137 |
-
#~ msgstr "Error, file destination does not exist."
|
138 |
-
|
139 |
-
#~ msgid "The"
|
140 |
-
#~ msgstr "The"
|
141 |
-
|
142 |
-
#~ msgid "value must be between"
|
143 |
-
#~ msgstr "value must be between"
|
144 |
-
|
145 |
-
#~ msgid "Your score should be less than"
|
146 |
-
#~ msgstr "Your score should be less than"
|
147 |
-
|
148 |
-
#~ msgid "Title"
|
149 |
-
#~ msgstr "Title"
|
150 |
-
|
151 |
-
#~ msgid "First"
|
152 |
-
#~ msgstr "First"
|
153 |
-
|
154 |
-
#~ msgid "Last"
|
155 |
-
#~ msgstr "Last"
|
156 |
-
|
157 |
-
#~ msgid "Middle"
|
158 |
-
#~ msgstr "Middle"
|
159 |
-
|
160 |
-
#~ msgid "Area Code"
|
161 |
-
#~ msgstr "Area Code"
|
162 |
-
|
163 |
-
#~ msgid "Phone Number"
|
164 |
-
#~ msgstr "Phone Number"
|
165 |
-
|
166 |
-
#~ msgid "Dollars"
|
167 |
-
#~ msgstr "Dollars"
|
168 |
-
|
169 |
-
#~ msgid "Cents"
|
170 |
-
#~ msgstr "Cents"
|
171 |
-
|
172 |
-
#~ msgid "From"
|
173 |
-
#~ msgstr "From"
|
174 |
-
|
175 |
-
#~ msgid "To"
|
176 |
-
#~ msgstr "To"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:19+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:19+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: el\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Error, incorrect Security code."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr "Your ip is blacklisted. Please contact the website administrator."
|
27 |
+
|
28 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
+
#, php-format
|
30 |
+
msgid ""
|
31 |
+
"This field %s requires a unique entry and this value was already submitted."
|
32 |
+
msgstr ""
|
33 |
+
"This field %s requires a unique entry and this value was already submitted."
|
34 |
+
|
35 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
+
msgid "Nothing was submitted."
|
37 |
+
msgstr "Nothing was submitted."
|
38 |
+
|
39 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
+
msgid "Your form was successfully submitted."
|
42 |
+
msgstr "Your form was successfully submitted."
|
43 |
+
|
44 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
+
msgid "Error, email was not sent."
|
46 |
+
msgstr "Error, email was not sent."
|
47 |
+
|
48 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
+
msgid "field is required."
|
64 |
+
msgstr "field is required."
|
65 |
+
|
66 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
+
msgid "This is not a valid email address."
|
68 |
+
msgstr "This is not a valid email address."
|
69 |
+
|
70 |
+
#~ msgid "Street Address"
|
71 |
+
#~ msgstr "Street Address"
|
72 |
+
|
73 |
+
#~ msgid "Street Address Line 2"
|
74 |
+
#~ msgstr "Street Address Line 2"
|
75 |
+
|
76 |
+
#~ msgid "City"
|
77 |
+
#~ msgstr "City"
|
78 |
+
|
79 |
+
#~ msgid "State / Province / Region"
|
80 |
+
#~ msgstr "State / Province / Region"
|
81 |
+
|
82 |
+
#~ msgid "Postal / Zip Code"
|
83 |
+
#~ msgstr "Postal / Zip Code"
|
84 |
+
|
85 |
+
#~ msgid "Country"
|
86 |
+
#~ msgstr "Country"
|
87 |
+
|
88 |
+
#~ msgid "January"
|
89 |
+
#~ msgstr "January"
|
90 |
+
|
91 |
+
#~ msgid "February"
|
92 |
+
#~ msgstr "February"
|
93 |
+
|
94 |
+
#~ msgid "March"
|
95 |
+
#~ msgstr "March"
|
96 |
+
|
97 |
+
#~ msgid "April"
|
98 |
+
#~ msgstr "April"
|
99 |
+
|
100 |
+
#~ msgid "May"
|
101 |
+
#~ msgstr "May"
|
102 |
+
|
103 |
+
#~ msgid "June"
|
104 |
+
#~ msgstr "June"
|
105 |
+
|
106 |
+
#~ msgid "July"
|
107 |
+
#~ msgstr "July"
|
108 |
+
|
109 |
+
#~ msgid "August"
|
110 |
+
#~ msgstr "August"
|
111 |
+
|
112 |
+
#~ msgid "September"
|
113 |
+
#~ msgstr "September"
|
114 |
+
|
115 |
+
#~ msgid "October"
|
116 |
+
#~ msgstr "October"
|
117 |
+
|
118 |
+
#~ msgid "November"
|
119 |
+
#~ msgstr "November"
|
120 |
+
|
121 |
+
#~ msgid "December"
|
122 |
+
#~ msgstr "December"
|
123 |
+
|
124 |
+
#~ msgid "Quantity"
|
125 |
+
#~ msgstr "Quantity"
|
126 |
+
|
127 |
+
#~ msgid "The file exceeds the allowed size of"
|
128 |
+
#~ msgstr "The file exceeds the allowed size of"
|
129 |
+
|
130 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
+
#~ msgstr "Sorry, you are not allowed to upload this type of file."
|
132 |
+
|
133 |
+
#~ msgid "Error, file cannot be moved."
|
134 |
+
#~ msgstr "Error, file cannot be moved."
|
135 |
+
|
136 |
+
#~ msgid "Error, file destination does not exist."
|
137 |
+
#~ msgstr "Error, file destination does not exist."
|
138 |
+
|
139 |
+
#~ msgid "The"
|
140 |
+
#~ msgstr "The"
|
141 |
+
|
142 |
+
#~ msgid "value must be between"
|
143 |
+
#~ msgstr "value must be between"
|
144 |
+
|
145 |
+
#~ msgid "Your score should be less than"
|
146 |
+
#~ msgstr "Your score should be less than"
|
147 |
+
|
148 |
+
#~ msgid "Title"
|
149 |
+
#~ msgstr "Title"
|
150 |
+
|
151 |
+
#~ msgid "First"
|
152 |
+
#~ msgstr "First"
|
153 |
+
|
154 |
+
#~ msgid "Last"
|
155 |
+
#~ msgstr "Last"
|
156 |
+
|
157 |
+
#~ msgid "Middle"
|
158 |
+
#~ msgstr "Middle"
|
159 |
+
|
160 |
+
#~ msgid "Area Code"
|
161 |
+
#~ msgstr "Area Code"
|
162 |
+
|
163 |
+
#~ msgid "Phone Number"
|
164 |
+
#~ msgstr "Phone Number"
|
165 |
+
|
166 |
+
#~ msgid "Dollars"
|
167 |
+
#~ msgstr "Dollars"
|
168 |
+
|
169 |
+
#~ msgid "Cents"
|
170 |
+
#~ msgstr "Cents"
|
171 |
+
|
172 |
+
#~ msgid "From"
|
173 |
+
#~ msgstr "From"
|
174 |
+
|
175 |
+
#~ msgid "To"
|
176 |
+
#~ msgstr "To"
|
languages/contact_form_maker-eo_EO.po
CHANGED
@@ -1,177 +1,177 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:27+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:27+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: eo\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Eraro, malĝusta Sekureca kodo."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr "Via IP estas lerta nigra. Bonvolu kontakti la retejo administranto. "
|
27 |
-
|
28 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
-
#, php-format
|
30 |
-
msgid ""
|
31 |
-
"This field %s requires a unique entry and this value was already submitted."
|
32 |
-
msgstr ""
|
33 |
-
"Ĉi tiu kampo %s postulas unika eniro kaj ĉi tiu valoro estis jam donita."
|
34 |
-
|
35 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
-
msgid "Nothing was submitted."
|
37 |
-
msgstr "Nenio donita."
|
38 |
-
|
39 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
-
msgid "Your form was successfully submitted."
|
42 |
-
msgstr "Via aspekto estis sukcese afiŝita."
|
43 |
-
|
44 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
-
msgid "Error, email was not sent."
|
46 |
-
msgstr "Eraro, retpoŝto ne estis sendita."
|
47 |
-
|
48 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
-
msgid "field is required."
|
64 |
-
msgstr "kampo estas bezonata."
|
65 |
-
|
66 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
-
msgid "This is not a valid email address."
|
68 |
-
msgstr "Tio ne estas valida retadreso."
|
69 |
-
|
70 |
-
#~ msgid "Street Address"
|
71 |
-
#~ msgstr "Strato Adreso"
|
72 |
-
|
73 |
-
#~ msgid "Street Address Line 2"
|
74 |
-
#~ msgstr "Strato Adreso Linio 2"
|
75 |
-
|
76 |
-
#~ msgid "City"
|
77 |
-
#~ msgstr "Urbo"
|
78 |
-
|
79 |
-
#~ msgid "State / Province / Region"
|
80 |
-
#~ msgstr "Ŝtato / Provinco / Regiono"
|
81 |
-
|
82 |
-
#~ msgid "Postal / Zip Code"
|
83 |
-
#~ msgstr "Bildkarto / Poŝtkodo"
|
84 |
-
|
85 |
-
#~ msgid "Country"
|
86 |
-
#~ msgstr "Lando"
|
87 |
-
|
88 |
-
#~ msgid "January"
|
89 |
-
#~ msgstr "Januaro"
|
90 |
-
|
91 |
-
#~ msgid "February"
|
92 |
-
#~ msgstr "Februaro"
|
93 |
-
|
94 |
-
#~ msgid "March"
|
95 |
-
#~ msgstr "Marto"
|
96 |
-
|
97 |
-
#~ msgid "April"
|
98 |
-
#~ msgstr "Aprilo"
|
99 |
-
|
100 |
-
#~ msgid "May"
|
101 |
-
#~ msgstr "Majo"
|
102 |
-
|
103 |
-
#~ msgid "June"
|
104 |
-
#~ msgstr "Junio"
|
105 |
-
|
106 |
-
#~ msgid "July"
|
107 |
-
#~ msgstr "Julio"
|
108 |
-
|
109 |
-
#~ msgid "August"
|
110 |
-
#~ msgstr "Aŭgusto"
|
111 |
-
|
112 |
-
#~ msgid "September"
|
113 |
-
#~ msgstr "Septembro"
|
114 |
-
|
115 |
-
#~ msgid "October"
|
116 |
-
#~ msgstr "Oktobro"
|
117 |
-
|
118 |
-
#~ msgid "November"
|
119 |
-
#~ msgstr "Novembro"
|
120 |
-
|
121 |
-
#~ msgid "December"
|
122 |
-
#~ msgstr "Decembro"
|
123 |
-
|
124 |
-
#~ msgid "Quantity"
|
125 |
-
#~ msgstr "kvanto "
|
126 |
-
|
127 |
-
#~ msgid "The file exceeds the allowed size of"
|
128 |
-
#~ msgstr "La dosiero superas la permesita grandeco de"
|
129 |
-
|
130 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
-
#~ msgstr "Pardonu, vi ne rajtas alŝuti tiajn dosierojn."
|
132 |
-
|
133 |
-
#~ msgid "Error, file cannot be moved."
|
134 |
-
#~ msgstr "Eraro, dosiero ne povas esti movita."
|
135 |
-
|
136 |
-
#, fuzzy
|
137 |
-
#~ msgid "Error, file destination does not exist."
|
138 |
-
#~ msgstr "Eraro, retpoŝto ne estis sendita."
|
139 |
-
|
140 |
-
#~ msgid "The"
|
141 |
-
#~ msgstr "la "
|
142 |
-
|
143 |
-
#~ msgid "value must be between"
|
144 |
-
#~ msgstr "valoro devas esti inter "
|
145 |
-
|
146 |
-
#~ msgid "Your score should be less than"
|
147 |
-
#~ msgstr "Viaj partituro devus esti malpli ol "
|
148 |
-
|
149 |
-
#~ msgid "Title"
|
150 |
-
#~ msgstr "Titolo"
|
151 |
-
|
152 |
-
#~ msgid "First"
|
153 |
-
#~ msgstr "Unua"
|
154 |
-
|
155 |
-
#~ msgid "Last"
|
156 |
-
#~ msgstr "Lasta"
|
157 |
-
|
158 |
-
#~ msgid "Middle"
|
159 |
-
#~ msgstr "Meza"
|
160 |
-
|
161 |
-
#~ msgid "Area Code"
|
162 |
-
#~ msgstr "Areo Kodo"
|
163 |
-
|
164 |
-
#~ msgid "Phone Number"
|
165 |
-
#~ msgstr "Phone Number"
|
166 |
-
|
167 |
-
#~ msgid "Dollars"
|
168 |
-
#~ msgstr "dolaroj "
|
169 |
-
|
170 |
-
#~ msgid "Cents"
|
171 |
-
#~ msgstr "cendojn "
|
172 |
-
|
173 |
-
#~ msgid "From"
|
174 |
-
#~ msgstr "From "
|
175 |
-
|
176 |
-
#~ msgid "To"
|
177 |
-
#~ msgstr "al"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:27+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:27+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: eo\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Eraro, malĝusta Sekureca kodo."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr "Via IP estas lerta nigra. Bonvolu kontakti la retejo administranto. "
|
27 |
+
|
28 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
+
#, php-format
|
30 |
+
msgid ""
|
31 |
+
"This field %s requires a unique entry and this value was already submitted."
|
32 |
+
msgstr ""
|
33 |
+
"Ĉi tiu kampo %s postulas unika eniro kaj ĉi tiu valoro estis jam donita."
|
34 |
+
|
35 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
36 |
+
msgid "Nothing was submitted."
|
37 |
+
msgstr "Nenio donita."
|
38 |
+
|
39 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
40 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
41 |
+
msgid "Your form was successfully submitted."
|
42 |
+
msgstr "Via aspekto estis sukcese afiŝita."
|
43 |
+
|
44 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
45 |
+
msgid "Error, email was not sent."
|
46 |
+
msgstr "Eraro, retpoŝto ne estis sendita."
|
47 |
+
|
48 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
49 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
62 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
63 |
+
msgid "field is required."
|
64 |
+
msgstr "kampo estas bezonata."
|
65 |
+
|
66 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:747
|
67 |
+
msgid "This is not a valid email address."
|
68 |
+
msgstr "Tio ne estas valida retadreso."
|
69 |
+
|
70 |
+
#~ msgid "Street Address"
|
71 |
+
#~ msgstr "Strato Adreso"
|
72 |
+
|
73 |
+
#~ msgid "Street Address Line 2"
|
74 |
+
#~ msgstr "Strato Adreso Linio 2"
|
75 |
+
|
76 |
+
#~ msgid "City"
|
77 |
+
#~ msgstr "Urbo"
|
78 |
+
|
79 |
+
#~ msgid "State / Province / Region"
|
80 |
+
#~ msgstr "Ŝtato / Provinco / Regiono"
|
81 |
+
|
82 |
+
#~ msgid "Postal / Zip Code"
|
83 |
+
#~ msgstr "Bildkarto / Poŝtkodo"
|
84 |
+
|
85 |
+
#~ msgid "Country"
|
86 |
+
#~ msgstr "Lando"
|
87 |
+
|
88 |
+
#~ msgid "January"
|
89 |
+
#~ msgstr "Januaro"
|
90 |
+
|
91 |
+
#~ msgid "February"
|
92 |
+
#~ msgstr "Februaro"
|
93 |
+
|
94 |
+
#~ msgid "March"
|
95 |
+
#~ msgstr "Marto"
|
96 |
+
|
97 |
+
#~ msgid "April"
|
98 |
+
#~ msgstr "Aprilo"
|
99 |
+
|
100 |
+
#~ msgid "May"
|
101 |
+
#~ msgstr "Majo"
|
102 |
+
|
103 |
+
#~ msgid "June"
|
104 |
+
#~ msgstr "Junio"
|
105 |
+
|
106 |
+
#~ msgid "July"
|
107 |
+
#~ msgstr "Julio"
|
108 |
+
|
109 |
+
#~ msgid "August"
|
110 |
+
#~ msgstr "Aŭgusto"
|
111 |
+
|
112 |
+
#~ msgid "September"
|
113 |
+
#~ msgstr "Septembro"
|
114 |
+
|
115 |
+
#~ msgid "October"
|
116 |
+
#~ msgstr "Oktobro"
|
117 |
+
|
118 |
+
#~ msgid "November"
|
119 |
+
#~ msgstr "Novembro"
|
120 |
+
|
121 |
+
#~ msgid "December"
|
122 |
+
#~ msgstr "Decembro"
|
123 |
+
|
124 |
+
#~ msgid "Quantity"
|
125 |
+
#~ msgstr "kvanto "
|
126 |
+
|
127 |
+
#~ msgid "The file exceeds the allowed size of"
|
128 |
+
#~ msgstr "La dosiero superas la permesita grandeco de"
|
129 |
+
|
130 |
+
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
131 |
+
#~ msgstr "Pardonu, vi ne rajtas alŝuti tiajn dosierojn."
|
132 |
+
|
133 |
+
#~ msgid "Error, file cannot be moved."
|
134 |
+
#~ msgstr "Eraro, dosiero ne povas esti movita."
|
135 |
+
|
136 |
+
#, fuzzy
|
137 |
+
#~ msgid "Error, file destination does not exist."
|
138 |
+
#~ msgstr "Eraro, retpoŝto ne estis sendita."
|
139 |
+
|
140 |
+
#~ msgid "The"
|
141 |
+
#~ msgstr "la "
|
142 |
+
|
143 |
+
#~ msgid "value must be between"
|
144 |
+
#~ msgstr "valoro devas esti inter "
|
145 |
+
|
146 |
+
#~ msgid "Your score should be less than"
|
147 |
+
#~ msgstr "Viaj partituro devus esti malpli ol "
|
148 |
+
|
149 |
+
#~ msgid "Title"
|
150 |
+
#~ msgstr "Titolo"
|
151 |
+
|
152 |
+
#~ msgid "First"
|
153 |
+
#~ msgstr "Unua"
|
154 |
+
|
155 |
+
#~ msgid "Last"
|
156 |
+
#~ msgstr "Lasta"
|
157 |
+
|
158 |
+
#~ msgid "Middle"
|
159 |
+
#~ msgstr "Meza"
|
160 |
+
|
161 |
+
#~ msgid "Area Code"
|
162 |
+
#~ msgstr "Areo Kodo"
|
163 |
+
|
164 |
+
#~ msgid "Phone Number"
|
165 |
+
#~ msgstr "Phone Number"
|
166 |
+
|
167 |
+
#~ msgid "Dollars"
|
168 |
+
#~ msgstr "dolaroj "
|
169 |
+
|
170 |
+
#~ msgid "Cents"
|
171 |
+
#~ msgstr "cendojn "
|
172 |
+
|
173 |
+
#~ msgid "From"
|
174 |
+
#~ msgstr "From "
|
175 |
+
|
176 |
+
#~ msgid "To"
|
177 |
+
#~ msgstr "al"
|
languages/contact_form_maker-et.po
CHANGED
@@ -1,176 +1,176 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: contact_form_maker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-06-19 10:27+0400\n"
|
6 |
-
"PO-Revision-Date: 2014-06-19 10:27+0400\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: et\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.5.4\n"
|
16 |
-
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
-
"\\contact-forms\n"
|
18 |
-
|
19 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
-
msgid "Error, incorrect Security code."
|
22 |
-
msgstr "Viga, vale turvakoodi."
|
23 |
-
|
24 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
-
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
-
msgstr "Teie IP on mustas nimekirjas. Palun võta ühendust veebilehe haldaja. "
|
27 |
-
|
28 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
-
#, php-format
|
30 |
-
msgid ""
|
31 |
-
"This field %s requires a unique entry and this value was already submitted."
|
32 |
-
msgstr "Sellel väljal %s nõuab portaali ja selle väärtus oli juba esitatud."
|
33 |
-
|
34 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
35 |
-
msgid "Nothing was submitted."
|
36 |
-
msgstr "Miski ei esitatud."
|
37 |
-
|
38 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
39 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
40 |
-
msgid "Your form was successfully submitted."
|
41 |
-
msgstr "Teie vorm on edukalt esitatud."
|
42 |
-
|
43 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
44 |
-
msgid "Error, email was not sent."
|
45 |
-
msgstr "Viga, elektronposti ei saadetud."
|
46 |
-
|
47 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
48 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
49 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
50 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
51 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
52 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
53 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
54 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
55 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
56 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
57 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
58 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
59 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
60 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
61 |
-
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
62 |
-
msgid "field is required."
|
63 |
-
msgstr "valdkonnas on vaja."
|
64 |
-
|
65 |
-
#: C:\wamp\www\wordpress3.5\wp-
|
66 |
-
msgid "This is not a valid email address."
|
67 |
-
msgstr "See ei ole kehtiv e-posti aadress."
|
68 |
-
|
69 |
-
#~ msgid "Street Address"
|
70 |
-
#~ msgstr "Tänav"
|
71 |
-
|
72 |
-
#~ msgid "Street Address Line 2"
|
73 |
-
#~ msgstr "Tänav Line 2"
|
74 |
-
|
75 |
-
#~ msgid "City"
|
76 |
-
#~ msgstr "Linn"
|
77 |
-
|
78 |
-
#~ msgid "State / Province / Region"
|
79 |
-
#~ msgstr "State / Province / Region"
|
80 |
-
|
81 |
-
#~ msgid "Postal / Zip Code"
|
82 |
-
#~ msgstr "Postal / Postiindeks"
|
83 |
-
|
84 |
-
#~ msgid "Country"
|
85 |
-
#~ msgstr "Riik"
|
86 |
-
|
87 |
-
#~ msgid "January"
|
88 |
-
#~ msgstr "Jaanuar"
|
89 |
-
|
90 |
-
#~ msgid "February"
|
91 |
-
#~ msgstr "Veebruar"
|
92 |
-
|
93 |
-
#~ msgid "March"
|
94 |
-
#~ msgstr "Märts"
|
95 |
-
|
96 |
-
#~ msgid "April"
|
97 |
-
#~ msgstr "Aprill"
|
98 |
-
|
99 |
-
#~ msgid "May"
|
100 |
-
#~ msgstr "Mai"
|
101 |
-
|
102 |
-
#~ msgid "June"
|
103 |
-
#~ msgstr "Juuni"
|
104 |
-
|
105 |
-
#~ msgid "July"
|
106 |
-
#~ msgstr "Juuli"
|
107 |
-
|
108 |
-
#~ msgid "August"
|
109 |
-
#~ msgstr "August"
|
110 |
-
|
111 |
-
#~ msgid "September"
|
112 |
-
#~ msgstr "September"
|
113 |
-
|
114 |
-
#~ msgid "October"
|
115 |
-
#~ msgstr "Oktoober"
|
116 |
-
|
117 |
-
#~ msgid "November"
|
118 |
-
#~ msgstr "November"
|
119 |
-
|
120 |
-
#~ msgid "December"
|
121 |
-
#~ msgstr "Detsember"
|
122 |
-
|
123 |
-
#~ msgid "Quantity"
|
124 |
-
#~ msgstr "Kogus "
|
125 |
-
|
126 |
-
#~ msgid "The file exceeds the allowed size of"
|
127 |
-
#~ msgstr "Fail ületab lubatud suuruse"
|
128 |
-
|
129 |
-
#~ msgid "Sorry, you are not allowed to upload this type of file."
|
130 |
-
#~ msgstr "Vabandust, teil ei ole lubatud üles laadida seda tüüpi faili."
|
131 |
-
|
132 |
-
#~ msgid "Error, file cannot be moved."
|
133 |
-
#~ msgstr "Viga, faili ei saa liigutada."
|
134 |
-
|
135 |
-
#, fuzzy
|
136 |
-
#~ msgid "Error, file destination does not exist."
|
137 |
-
#~ msgstr "Viga, elektronposti ei saadetud."
|
138 |
-
|
139 |
-
#~ msgid "The"
|
140 |
-
#~ msgstr "The"
|
141 |
-
|
142 |
-
#~ msgid "value must be between"
|
143 |
-
#~ msgstr "väärtus peab olema vahemikus "
|
144 |
-
|
145 |
-
#~ msgid "Your score should be less than"
|
146 |
-
#~ msgstr "Sinu tulemus peaks olema väiksem kui "
|
147 |
-
|
148 |
-
#~ msgid "Title"
|
149 |
-
#~ msgstr "*{title}*"
|
150 |
-
|
151 |
-
#~ msgid "First"
|
152 |
-
#~ msgstr "Esimene"
|
153 |
-
|
154 |
-
#~ msgid "Last"
|
155 |
-
#~ msgstr "Viimane"
|
156 |
-
|
157 |
-
#~ msgid "Middle"
|
158 |
-
#~ msgstr "Kesk-"
|
159 |
-
|
160 |
-
#~ msgid "Area Code"
|
161 |
-
#~ msgstr "Area Code"
|
162 |
-
|
163 |
-
#~ msgid "Phone Number"
|
164 |
-
#~ msgstr "Telefoninumber"
|
165 |
-
|
166 |
-
#~ msgid "Dollars"
|
167 |
-
#~ msgstr "Dollars "
|
168 |
-
|
169 |
-
#~ msgid "Cents"
|
170 |
-
#~ msgstr "senti "
|
171 |
-
|
172 |
-
#~ msgid "From"
|
173 |
-
#~ msgstr "pärit "
|
174 |
-
|
175 |
-
#~ msgid "To"
|
176 |
-
#~ msgstr "kuni"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: contact_form_maker\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-19 10:27+0400\n"
|
6 |
+
"PO-Revision-Date: 2014-06-19 10:27+0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: et\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
|
17 |
+
"\\contact-forms\n"
|
18 |
+
|
19 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:78
|
20 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:93
|
21 |
+
msgid "Error, incorrect Security code."
|
22 |
+
msgstr "Viga, vale turvakoodi."
|
23 |
+
|
24 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:105
|
25 |
+
msgid "Your ip is blacklisted. Please contact the website administrator."
|
26 |
+
msgstr "Teie IP on mustas nimekirjas. Palun võta ühendust veebilehe haldaja. "
|
27 |
+
|
28 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:277
|
29 |
+
#, php-format
|
30 |
+
msgid ""
|
31 |
+
"This field %s requires a unique entry and this value was already submitted."
|
32 |
+
msgstr "Sellel väljal %s nõuab portaali ja selle väärtus oli juba esitatud."
|
33 |
+
|
34 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:308
|
35 |
+
msgid "Nothing was submitted."
|
36 |
+
msgstr "Miski ei esitatud."
|
37 |
+
|
38 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:870
|
39 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:883
|
40 |
+
msgid "Your form was successfully submitted."
|
41 |
+
msgstr "Teie vorm on edukalt esitatud."
|
42 |
+
|
43 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/models/CFMModelForm_maker.php:878
|
44 |
+
msgid "Error, email was not sent."
|
45 |
+
msgstr "Viga, elektronposti ei saadetud."
|
46 |
+
|
47 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:201
|
48 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:240
|
49 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:282
|
50 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:322
|
51 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:364
|
52 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:413
|
53 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:474
|
54 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:566
|
55 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:578
|
56 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:675
|
57 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:734
|
58 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:822
|
59 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:898
|
60 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:961
|
61 |
+
#: C:\wamp\www\wordpress3.5\wp-content\plugins\contact-forms/frontend/views/CFMViewForm_maker.php:996
|
62 |
+
msgid "field is required."
|
63 |
+
msgstr "valdkonnas on vaja."
|
64 |
+
|
65 |
+
#: C:\wamp\www\wordpress3.5\wp-conte
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|