Version Description
- Clear caching when updating styling settings
- Add frm_field_div_classes hook
- Remove deprecated safe_mode check
- Warning added for invalid height/padding styling combination
- Pro Features *
- Added several new graph types and options
- Prevent repeating field value duplication when saving drafts
- Add migration to remove duplicated repeating section data
- Show child forms in CSV export options
- Allow 2 decimal places for max file size
- Fix frm-stats y=""
- Allow time fields to be used in calculations
- Add a Country label option for Address fields
- Remove a few graph filters
- Make sure address fields display error messages
- Make sure category fields keep value when saving a draft
- Other bug fixes
Download this release
Release Info
Developer | sswells |
Plugin | Formidable Forms – Form Builder for WordPress |
Version | 2.02.05 |
Comparing to | |
See all releases |
Code changes from version 2.02.04 to 2.02.05
- classes/controllers/FrmXMLController.php +4 -7
- classes/helpers/FrmAppHelper.php +10 -6
- classes/helpers/FrmEntriesHelper.php +7 -1
- classes/helpers/FrmFieldsHelper.php +41 -68
- classes/models/FrmDb.php +114 -28
- classes/models/FrmField.php +1 -1
- classes/models/FrmStyle.php +16 -1
- classes/views/xml/import_form.php +2 -0
- formidable.php +1 -1
- js/formidable.js +69 -17
- js/formidable.min.js +78 -77
- js/formidable_admin.js +37 -3
- js/formidable_admin_global.js +14 -13
- languages/formidable-da_DK.mo +0 -0
- languages/formidable-da_DK.po +666 -637
- languages/formidable-de_DE.mo +0 -0
- languages/formidable-de_DE.po +756 -2420
- languages/formidable-es_ES.mo +0 -0
- languages/formidable-es_ES.po +657 -628
- languages/formidable-fr_FR.mo +0 -0
- languages/formidable-fr_FR.po +668 -642
- languages/formidable-it_IT.mo +0 -0
- languages/formidable-it_IT.po +653 -624
- languages/formidable-nl_NL.mo +0 -0
- languages/formidable-nl_NL.po +654 -623
- languages/formidable-pl_PL.mo +0 -0
- languages/formidable-pl_PL.po +628 -579
classes/controllers/FrmXMLController.php
CHANGED
@@ -50,7 +50,6 @@ class FrmXMLController {
|
|
50 |
|
51 |
public static function form( $errors = array(), $message = '' ) {
|
52 |
$where = array(
|
53 |
-
'parent_form_id' => array( null, 0 ),
|
54 |
'status' => array( null, '', 'published' ),
|
55 |
);
|
56 |
$forms = FrmForm::getAll( $where, 'name' );
|
@@ -289,12 +288,10 @@ class FrmXMLController {
|
|
289 |
$fid = FrmAppHelper::get_param( 'fid', '', 'get', 'sanitize_text_field' );
|
290 |
}
|
291 |
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
ini_set('memory_limit', '256M');
|
297 |
-
}
|
298 |
}
|
299 |
|
300 |
global $wpdb;
|
50 |
|
51 |
public static function form( $errors = array(), $message = '' ) {
|
52 |
$where = array(
|
|
|
53 |
'status' => array( null, '', 'published' ),
|
54 |
);
|
55 |
$forms = FrmForm::getAll( $where, 'name' );
|
288 |
$fid = FrmAppHelper::get_param( 'fid', '', 'get', 'sanitize_text_field' );
|
289 |
}
|
290 |
|
291 |
+
set_time_limit(0); //Remove time limit to execute this function
|
292 |
+
$mem_limit = str_replace('M', '', ini_get('memory_limit'));
|
293 |
+
if ( (int) $mem_limit < 256 ) {
|
294 |
+
ini_set('memory_limit', '256M');
|
|
|
|
|
295 |
}
|
296 |
|
297 |
global $wpdb;
|
classes/helpers/FrmAppHelper.php
CHANGED
@@ -5,12 +5,12 @@ if ( ! defined('ABSPATH') ) {
|
|
5 |
|
6 |
class FrmAppHelper {
|
7 |
public static $db_version = 32; //version of the database we are moving to
|
8 |
-
public static $pro_db_version =
|
9 |
|
10 |
/**
|
11 |
* @since 2.0
|
12 |
*/
|
13 |
-
public static $plug_version = '2.02.
|
14 |
|
15 |
/**
|
16 |
* @since 1.07.02
|
@@ -439,6 +439,9 @@ class FrmAppHelper {
|
|
439 |
|
440 |
if ( 'get_posts' == $type ) {
|
441 |
$results = get_posts($query);
|
|
|
|
|
|
|
442 |
} else {
|
443 |
global $wpdb;
|
444 |
$results = $wpdb->{$type}($query);
|
@@ -477,10 +480,10 @@ class FrmAppHelper {
|
|
477 |
* @since 2.0
|
478 |
* @param string $cache_key
|
479 |
*/
|
480 |
-
public static function delete_cache_and_transient( $cache_key ) {
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
|
485 |
/**
|
486 |
* Delete all caching in a single group
|
@@ -1746,6 +1749,7 @@ class FrmAppHelper {
|
|
1746 |
'default_conf' => __( 'The entered values do not match', 'formidable' ),
|
1747 |
'enter_email' => __( 'Enter Email', 'formidable' ),
|
1748 |
'confirm_email' => __( 'Confirm Email', 'formidable' ),
|
|
|
1749 |
'enter_password' => __( 'Enter Password', 'formidable' ),
|
1750 |
'confirm_password' => __( 'Confirm Password', 'formidable' ),
|
1751 |
'import_complete' => __( 'Import Complete', 'formidable' ),
|
5 |
|
6 |
class FrmAppHelper {
|
7 |
public static $db_version = 32; //version of the database we are moving to
|
8 |
+
public static $pro_db_version = 37;
|
9 |
|
10 |
/**
|
11 |
* @since 2.0
|
12 |
*/
|
13 |
+
public static $plug_version = '2.02.05';
|
14 |
|
15 |
/**
|
16 |
* @since 1.07.02
|
439 |
|
440 |
if ( 'get_posts' == $type ) {
|
441 |
$results = get_posts($query);
|
442 |
+
} else if ( 'get_associative_results' == $type ) {
|
443 |
+
global $wpdb;
|
444 |
+
$results = $wpdb->get_results( $query, OBJECT_K );
|
445 |
} else {
|
446 |
global $wpdb;
|
447 |
$results = $wpdb->{$type}($query);
|
480 |
* @since 2.0
|
481 |
* @param string $cache_key
|
482 |
*/
|
483 |
+
public static function delete_cache_and_transient( $cache_key, $group = 'default' ) {
|
484 |
+
delete_transient($cache_key);
|
485 |
+
wp_cache_delete( $cache_key, $group );
|
486 |
+
}
|
487 |
|
488 |
/**
|
489 |
* Delete all caching in a single group
|
1749 |
'default_conf' => __( 'The entered values do not match', 'formidable' ),
|
1750 |
'enter_email' => __( 'Enter Email', 'formidable' ),
|
1751 |
'confirm_email' => __( 'Confirm Email', 'formidable' ),
|
1752 |
+
'css_invalid_size' => __( 'In certain browsers (e.g. Firefox) text will not display correctly if the field height is too small relative to the field padding and text size. Please increase your field height or decrease your field padding.', 'formidable' ),
|
1753 |
'enter_password' => __( 'Enter Password', 'formidable' ),
|
1754 |
'confirm_password' => __( 'Confirm Password', 'formidable' ),
|
1755 |
'import_complete' => __( 'Import Complete', 'formidable' ),
|
classes/helpers/FrmEntriesHelper.php
CHANGED
@@ -104,7 +104,13 @@ class FrmEntriesHelper {
|
|
104 |
self::get_posted_value( $field, $new_value, $args );
|
105 |
} else if ( FrmField::is_option_true( $field, 'clear_on_focus' ) ) {
|
106 |
// If clear on focus is selected, the value should be blank (unless it was posted, of course)
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
|
110 |
if ( ! is_array( $new_value ) ) {
|
104 |
self::get_posted_value( $field, $new_value, $args );
|
105 |
} else if ( FrmField::is_option_true( $field, 'clear_on_focus' ) ) {
|
106 |
// If clear on focus is selected, the value should be blank (unless it was posted, of course)
|
107 |
+
|
108 |
+
// TODO: move to Pro
|
109 |
+
if ( 'address' == $field->type && isset( $new_value['country'] ) ) {
|
110 |
+
$new_value = array( 'country' => $new_value['country'] );
|
111 |
+
} else {
|
112 |
+
$new_value = '';
|
113 |
+
}
|
114 |
}
|
115 |
|
116 |
if ( ! is_array( $new_value ) ) {
|
classes/helpers/FrmFieldsHelper.php
CHANGED
@@ -278,14 +278,7 @@ DEFAULT_HTML;
|
|
278 |
//replace [field_name]
|
279 |
$html = str_replace('[field_name]', $field['name'], $html);
|
280 |
|
281 |
-
|
282 |
-
$error_class = isset( $errors[ 'field' . $field_id ] ) ? ' frm_blank_field' : '';
|
283 |
-
self::get_more_field_classes( $error_class, $field, $field_id, $html );
|
284 |
-
if ( $field['type'] == 'html' && strpos( $html, '[error_class]' ) === false ) {
|
285 |
-
// there is no error_class shortcode to use for addign fields
|
286 |
-
$html = str_replace( 'class="frm_form_field', 'class="frm_form_field ' . $error_class, $html );
|
287 |
-
}
|
288 |
-
$html = str_replace('[error_class]', $error_class, $html);
|
289 |
|
290 |
//replace [entry_key]
|
291 |
$entry_key = FrmAppHelper::simple_get( 'entry', 'sanitize_title' );
|
@@ -357,75 +350,55 @@ DEFAULT_HTML;
|
|
357 |
}
|
358 |
|
359 |
/**
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
// add a class for repeating/embedded fields
|
372 |
-
$error_class .= ' frm_field_' . $field['id'] . '_container';
|
373 |
-
}
|
374 |
-
|
375 |
-
// Add class to embedded form field
|
376 |
-
if ( $field['type'] == 'form' ) {
|
377 |
-
$error_class .= ' frm_embed_form_container';
|
378 |
-
}
|
379 |
-
|
380 |
-
// Add class to HTML field
|
381 |
-
if ( $field['type'] == 'html' ) {
|
382 |
-
$error_class .= ' frm_html_container';
|
383 |
-
}
|
384 |
-
|
385 |
-
//Add classes to inline confirmation field (if it doesn't already have classes set)
|
386 |
-
if ( isset( $field['conf_field'] ) && $field['conf_field'] == 'inline' && ! $field['classes'] ) {
|
387 |
-
$error_class .= ' frm_first frm_half';
|
388 |
-
}
|
389 |
-
|
390 |
-
//Add class if field includes other option
|
391 |
-
if ( isset( $field['other'] ) && true == $field['other'] ) {
|
392 |
-
$error_class .= ' frm_other_container';
|
393 |
-
}
|
394 |
-
|
395 |
-
// Add class to Dynamic fields
|
396 |
-
if ( $field['type'] == 'data' ) {
|
397 |
-
$error_class .= ' frm_dynamic_' . $field['data_type'] . '_container';
|
398 |
-
}
|
399 |
|
400 |
-
|
401 |
-
|
402 |
-
$
|
403 |
}
|
|
|
|
|
404 |
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
|
413 |
-
|
414 |
-
|
415 |
-
global $frm_vars;
|
416 |
-
if ( isset( $frm_vars['show_fields'] ) && ! empty( $frm_vars['show_fields'] ) && ! in_array( $field['id'], $frm_vars['show_fields'] ) && ! in_array( $field['field_key'], $frm_vars['show_fields'] ) ) {
|
417 |
-
$error_class .= ' frm_hidden';
|
418 |
-
}
|
419 |
-
}
|
420 |
-
}
|
421 |
|
422 |
-
//
|
423 |
if ( ! empty( $field['classes'] ) ) {
|
424 |
if ( ! strpos( $html, 'frm_form_field ') ) {
|
425 |
-
$
|
426 |
}
|
427 |
-
$
|
428 |
}
|
|
|
|
|
|
|
|
|
|
|
429 |
}
|
430 |
|
431 |
public static function remove_inline_conditions( $no_vars, $code, $replace_with, &$html ) {
|
278 |
//replace [field_name]
|
279 |
$html = str_replace('[field_name]', $field['name'], $html);
|
280 |
|
281 |
+
self::add_field_div_classes( $field_id, $field, $errors, $html );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
|
283 |
//replace [entry_key]
|
284 |
$entry_key = FrmAppHelper::simple_get( 'entry', 'sanitize_title' );
|
350 |
}
|
351 |
|
352 |
/**
|
353 |
+
* Add classes to a field div
|
354 |
+
*
|
355 |
+
* @since 2.02.05
|
356 |
+
*
|
357 |
+
* @param string $field_id
|
358 |
+
* @param array $field
|
359 |
+
* @param array $errors
|
360 |
+
* @param string $html
|
361 |
+
*/
|
362 |
+
private static function add_field_div_classes( $field_id, $field, $errors, &$html ) {
|
363 |
+
$classes = self::get_field_div_classes( $field_id, $field, $errors, $html );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
364 |
|
365 |
+
if ( $field['type'] == 'html' && strpos( $html, '[error_class]' ) === false ) {
|
366 |
+
// there is no error_class shortcode for HTML fields
|
367 |
+
$html = str_replace( 'class="frm_form_field', 'class="frm_form_field ' . $classes, $html );
|
368 |
}
|
369 |
+
$html = str_replace( '[error_class]', $classes, $html );
|
370 |
+
}
|
371 |
|
372 |
+
/**
|
373 |
+
* Get the classes for a field div
|
374 |
+
*
|
375 |
+
* @since 2.02.05
|
376 |
+
*
|
377 |
+
* @param string $field_id
|
378 |
+
* @param array $field
|
379 |
+
* @param array $errors
|
380 |
+
* @param string $html
|
381 |
+
* @return string $classes
|
382 |
+
*/
|
383 |
+
private static function get_field_div_classes( $field_id, $field, $errors, $html ) {
|
384 |
+
// Add error class
|
385 |
+
$classes = isset( $errors[ 'field' . $field_id ] ) ? ' frm_blank_field' : '';
|
386 |
|
387 |
+
// Add label position class
|
388 |
+
$classes .= ' frm_' . $field['label'] . '_container';
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
|
390 |
+
// Add CSS layout classes
|
391 |
if ( ! empty( $field['classes'] ) ) {
|
392 |
if ( ! strpos( $html, 'frm_form_field ') ) {
|
393 |
+
$classes .= ' frm_form_field';
|
394 |
}
|
395 |
+
$classes .= ' ' . $field['classes'];
|
396 |
}
|
397 |
+
|
398 |
+
// Get additional classes
|
399 |
+
$classes = apply_filters( 'frm_field_div_classes', $classes, $field, array( 'field_id' => $field_id ) );
|
400 |
+
|
401 |
+
return $classes;
|
402 |
}
|
403 |
|
404 |
public static function remove_inline_conditions( $no_vars, $code, $replace_with, &$html ) {
|
classes/models/FrmDb.php
CHANGED
@@ -159,6 +159,7 @@ class FrmDb {
|
|
159 |
|
160 |
/**
|
161 |
* @param integer $frm_db_version
|
|
|
162 |
*/
|
163 |
private function migrate_data( $frm_db_version, $old_db_version ) {
|
164 |
$migrations = array( 4, 6, 11, 16, 17, 23, 25 );
|
@@ -172,6 +173,9 @@ class FrmDb {
|
|
172 |
|
173 |
/**
|
174 |
* Change array into format $wpdb->prepare can use
|
|
|
|
|
|
|
175 |
*/
|
176 |
public static function get_where_clause_and_values( &$args, $starts_with = ' WHERE ' ) {
|
177 |
if ( empty($args) ) {
|
@@ -192,8 +196,10 @@ class FrmDb {
|
|
192 |
}
|
193 |
|
194 |
/**
|
|
|
195 |
* @param string $base_where
|
196 |
* @param string $where
|
|
|
197 |
*/
|
198 |
public static function parse_where_from_array( $args, $base_where, &$where, &$values ) {
|
199 |
$condition = ' AND';
|
@@ -225,7 +231,9 @@ class FrmDb {
|
|
225 |
|
226 |
/**
|
227 |
* @param string $key
|
|
|
228 |
* @param string $where
|
|
|
229 |
*/
|
230 |
private static function interpret_array_to_sql( $key, $value, &$where, &$values ) {
|
231 |
$key = trim( $key );
|
@@ -289,38 +297,54 @@ class FrmDb {
|
|
289 |
$where .= '=';
|
290 |
}
|
291 |
|
292 |
-
|
|
|
293 |
$values[] = $value;
|
294 |
}
|
295 |
}
|
296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
/**
|
298 |
* @param string $table
|
|
|
|
|
|
|
299 |
*/
|
300 |
public static function get_count( $table, $where = array(), $args = array() ) {
|
301 |
$count = self::get_var( $table, $where, 'COUNT(*)', $args );
|
302 |
return $count;
|
303 |
}
|
304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
public static function get_var( $table, $where = array(), $field = 'id', $args = array(), $limit = '', $type = 'var' ) {
|
306 |
$group = '';
|
307 |
self::get_group_and_table_name( $table, $group );
|
308 |
self::convert_options_to_array( $args, '', $limit );
|
309 |
|
310 |
-
$query =
|
311 |
-
if ( is_array( $where ) || empty( $where ) ) {
|
312 |
-
// only separate into array values and query string if is array
|
313 |
-
self::get_where_clause_and_values( $where );
|
314 |
-
global $wpdb;
|
315 |
-
$query = $wpdb->prepare( $query . $where['where'] . ' ' . implode( ' ', $args ), $where['values'] );
|
316 |
-
} else {
|
317 |
-
/**
|
318 |
-
* Allow the $where to be prepared before we recieve it here.
|
319 |
-
* This is a fallback for reverse compatability, but is not recommended
|
320 |
-
*/
|
321 |
-
_deprecated_argument( 'where', '2.0', __( 'Use the query in an array format so it can be properly prepared.', 'formidable' ) );
|
322 |
-
$query .= $where . ' ' . implode( ' ', $args );
|
323 |
-
}
|
324 |
|
325 |
$cache_key = str_replace( array( ' ', ',' ), '_', trim( implode( '_', FrmAppHelper::array_flatten( $where ) ) . implode( '_', $args ) . $field . '_' . $type, ' WHERE' ) );
|
326 |
$results = FrmAppHelper::check_cache( $cache_key, $group, $query, 'get_' . $type );
|
@@ -330,6 +354,10 @@ class FrmDb {
|
|
330 |
/**
|
331 |
* @param string $table
|
332 |
* @param array $where
|
|
|
|
|
|
|
|
|
333 |
*/
|
334 |
public static function get_col( $table, $where = array(), $field = 'id', $args = array(), $limit = '' ) {
|
335 |
return self::get_var( $table, $where, $field, $args, $limit, 'col' );
|
@@ -338,29 +366,25 @@ class FrmDb {
|
|
338 |
/**
|
339 |
* @since 2.0
|
340 |
* @param string $table
|
|
|
|
|
|
|
|
|
341 |
*/
|
342 |
public static function get_row( $table, $where = array(), $fields = '*', $args = array() ) {
|
343 |
$args['limit'] = 1;
|
344 |
return self::get_var( $table, $where, $fields, $args, '', 'row' );
|
345 |
}
|
346 |
|
347 |
-
/**
|
348 |
-
* @param string $table
|
349 |
-
*/
|
350 |
-
public static function get_one_record( $table, $args = array(), $fields = '*', $order_by = '' ) {
|
351 |
-
_deprecated_function( __FUNCTION__, '2.0', 'FrmDb::get_row' );
|
352 |
-
return self::get_var( $table, $args, $fields, array( 'order_by' => $order_by, 'limit' => 1 ), '', 'row' );
|
353 |
-
}
|
354 |
-
|
355 |
-
public static function get_records( $table, $args = array(), $order_by = '', $limit = '', $fields = '*' ) {
|
356 |
-
_deprecated_function( __FUNCTION__, '2.0', 'FrmDb::get_results' );
|
357 |
-
return self::get_results( $table, $args, $fields, compact('order_by', 'limit') );
|
358 |
-
}
|
359 |
-
|
360 |
/**
|
361 |
* Prepare a key/value array before DB call
|
|
|
362 |
* @since 2.0
|
363 |
* @param string $table
|
|
|
|
|
|
|
|
|
364 |
*/
|
365 |
public static function get_results( $table, $where = array(), $fields = '*', $args = array() ) {
|
366 |
return self::get_var( $table, $where, $fields, $args, '', 'results' );
|
@@ -370,6 +394,7 @@ class FrmDb {
|
|
370 |
* Check for like, not like, in, not in, =, !=, >, <, <=, >=
|
371 |
* Return a value to append to the where array key
|
372 |
*
|
|
|
373 |
* @return string
|
374 |
*/
|
375 |
public static function append_where_is( $where_is ) {
|
@@ -462,6 +487,57 @@ class FrmDb {
|
|
462 |
}
|
463 |
}
|
464 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
465 |
public function uninstall() {
|
466 |
if ( ! current_user_can( 'administrator' ) ) {
|
467 |
$frm_settings = FrmAppHelper::get_settings();
|
@@ -733,4 +809,14 @@ DEFAULT_HTML;
|
|
733 |
$wpdb->update( $this->entries, array( 'user_id' => $user_id->meta_value ), array( 'id' => $user_id->item_id ) );
|
734 |
}
|
735 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
}
|
159 |
|
160 |
/**
|
161 |
* @param integer $frm_db_version
|
162 |
+
* @param int $old_db_version
|
163 |
*/
|
164 |
private function migrate_data( $frm_db_version, $old_db_version ) {
|
165 |
$migrations = array( 4, 6, 11, 16, 17, 23, 25 );
|
173 |
|
174 |
/**
|
175 |
* Change array into format $wpdb->prepare can use
|
176 |
+
*
|
177 |
+
* @param array $args
|
178 |
+
* @param string $starts_with
|
179 |
*/
|
180 |
public static function get_where_clause_and_values( &$args, $starts_with = ' WHERE ' ) {
|
181 |
if ( empty($args) ) {
|
196 |
}
|
197 |
|
198 |
/**
|
199 |
+
* @param array $args
|
200 |
* @param string $base_where
|
201 |
* @param string $where
|
202 |
+
* @param array $values
|
203 |
*/
|
204 |
public static function parse_where_from_array( $args, $base_where, &$where, &$values ) {
|
205 |
$condition = ' AND';
|
231 |
|
232 |
/**
|
233 |
* @param string $key
|
234 |
+
* @param string|array $value
|
235 |
* @param string $where
|
236 |
+
* @param array $values
|
237 |
*/
|
238 |
private static function interpret_array_to_sql( $key, $value, &$where, &$values ) {
|
239 |
$key = trim( $key );
|
297 |
$where .= '=';
|
298 |
}
|
299 |
|
300 |
+
self::add_query_placeholder( $key, $value, $where );
|
301 |
+
|
302 |
$values[] = $value;
|
303 |
}
|
304 |
}
|
305 |
|
306 |
+
/**
|
307 |
+
* Add %d, or %s to query
|
308 |
+
*
|
309 |
+
* @since 2.02.05
|
310 |
+
* @param string $key
|
311 |
+
* @param int|string $value
|
312 |
+
* @param string $where
|
313 |
+
*/
|
314 |
+
private static function add_query_placeholder( $key, $value, &$where ) {
|
315 |
+
if ( is_numeric( $value ) && strpos( $key, 'meta_value' ) === false ) {
|
316 |
+
$where .= '%d';
|
317 |
+
} else {
|
318 |
+
$where .= '%s';
|
319 |
+
}
|
320 |
+
}
|
321 |
+
|
322 |
/**
|
323 |
* @param string $table
|
324 |
+
* @param array $where
|
325 |
+
* @param array $args
|
326 |
+
* @return int
|
327 |
*/
|
328 |
public static function get_count( $table, $where = array(), $args = array() ) {
|
329 |
$count = self::get_var( $table, $where, 'COUNT(*)', $args );
|
330 |
return $count;
|
331 |
}
|
332 |
|
333 |
+
/**
|
334 |
+
* @param string $table
|
335 |
+
* @param array $where
|
336 |
+
* @param string $field
|
337 |
+
* @param array $args
|
338 |
+
* @param string $limit
|
339 |
+
* @param string $type
|
340 |
+
* @return array|null|string|object
|
341 |
+
*/
|
342 |
public static function get_var( $table, $where = array(), $field = 'id', $args = array(), $limit = '', $type = 'var' ) {
|
343 |
$group = '';
|
344 |
self::get_group_and_table_name( $table, $group );
|
345 |
self::convert_options_to_array( $args, '', $limit );
|
346 |
|
347 |
+
$query = self::generate_query_string_from_pieces( $field, $table, $where, $args );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
|
349 |
$cache_key = str_replace( array( ' ', ',' ), '_', trim( implode( '_', FrmAppHelper::array_flatten( $where ) ) . implode( '_', $args ) . $field . '_' . $type, ' WHERE' ) );
|
350 |
$results = FrmAppHelper::check_cache( $cache_key, $group, $query, 'get_' . $type );
|
354 |
/**
|
355 |
* @param string $table
|
356 |
* @param array $where
|
357 |
+
* @param string $field
|
358 |
+
* @param array $args
|
359 |
+
* @param string $limit
|
360 |
+
* @return mixed
|
361 |
*/
|
362 |
public static function get_col( $table, $where = array(), $field = 'id', $args = array(), $limit = '' ) {
|
363 |
return self::get_var( $table, $where, $field, $args, $limit, 'col' );
|
366 |
/**
|
367 |
* @since 2.0
|
368 |
* @param string $table
|
369 |
+
* @param array $where
|
370 |
+
* @param string $fields
|
371 |
+
* @param array $args
|
372 |
+
* @return mixed
|
373 |
*/
|
374 |
public static function get_row( $table, $where = array(), $fields = '*', $args = array() ) {
|
375 |
$args['limit'] = 1;
|
376 |
return self::get_var( $table, $where, $fields, $args, '', 'row' );
|
377 |
}
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
/**
|
380 |
* Prepare a key/value array before DB call
|
381 |
+
*
|
382 |
* @since 2.0
|
383 |
* @param string $table
|
384 |
+
* @param array $where
|
385 |
+
* @param string $fields
|
386 |
+
* @param array $args
|
387 |
+
* @return mixed
|
388 |
*/
|
389 |
public static function get_results( $table, $where = array(), $fields = '*', $args = array() ) {
|
390 |
return self::get_var( $table, $where, $fields, $args, '', 'results' );
|
394 |
* Check for like, not like, in, not in, =, !=, >, <, <=, >=
|
395 |
* Return a value to append to the where array key
|
396 |
*
|
397 |
+
* @param string $where_is
|
398 |
* @return string
|
399 |
*/
|
400 |
public static function append_where_is( $where_is ) {
|
487 |
}
|
488 |
}
|
489 |
|
490 |
+
/**
|
491 |
+
* Get the associative array results for the given columns, table, and where query
|
492 |
+
*
|
493 |
+
* @since 2.02.05
|
494 |
+
* @param string $columns
|
495 |
+
* @param string $table
|
496 |
+
* @param array $where
|
497 |
+
* @return mixed
|
498 |
+
*/
|
499 |
+
public static function get_associative_array_results( $columns, $table, $where ) {
|
500 |
+
$group = '';
|
501 |
+
self::get_group_and_table_name( $table, $group );
|
502 |
+
|
503 |
+
$query = self::generate_query_string_from_pieces( $columns, $table, $where );
|
504 |
+
|
505 |
+
$cache_key = str_replace( array( ' ', ',' ), '_', trim( implode( '_', FrmAppHelper::array_flatten( $where ) ) . $columns . '_results_ARRAY_A' , ' WHERE' ) );
|
506 |
+
$results = FrmAppHelper::check_cache( $cache_key, $group, $query, 'get_associative_results' );
|
507 |
+
|
508 |
+
return $results;
|
509 |
+
}
|
510 |
+
|
511 |
+
/**
|
512 |
+
* Combine the pieces of a query to form a full, prepared query
|
513 |
+
*
|
514 |
+
* @since 2.02.05
|
515 |
+
*
|
516 |
+
* @param string $columns
|
517 |
+
* @param string $table
|
518 |
+
* @param mixed $where
|
519 |
+
* @param array $args
|
520 |
+
* @return string
|
521 |
+
*/
|
522 |
+
private static function generate_query_string_from_pieces( $columns, $table, $where, $args = array() ) {
|
523 |
+
$query = 'SELECT ' . $columns . ' FROM ' . $table;
|
524 |
+
|
525 |
+
if ( is_array( $where ) || empty( $where ) ) {
|
526 |
+
self::get_where_clause_and_values( $where );
|
527 |
+
global $wpdb;
|
528 |
+
$query = $wpdb->prepare( $query . $where['where'] . ' ' . implode( ' ', $args ), $where['values'] );
|
529 |
+
} else {
|
530 |
+
/**
|
531 |
+
* Allow the $where to be prepared before we recieve it here.
|
532 |
+
* This is a fallback for reverse compatability, but is not recommended
|
533 |
+
*/
|
534 |
+
_deprecated_argument( 'where', '2.0', __( 'Use the query in an array format so it can be properly prepared.', 'formidable' ) );
|
535 |
+
$query .= $where . ' ' . implode( ' ', $args );
|
536 |
+
}
|
537 |
+
|
538 |
+
return $query;
|
539 |
+
}
|
540 |
+
|
541 |
public function uninstall() {
|
542 |
if ( ! current_user_can( 'administrator' ) ) {
|
543 |
$frm_settings = FrmAppHelper::get_settings();
|
809 |
$wpdb->update( $this->entries, array( 'user_id' => $user_id->meta_value ), array( 'id' => $user_id->item_id ) );
|
810 |
}
|
811 |
}
|
812 |
+
|
813 |
+
public static function get_one_record( $table, $args = array(), $fields = '*', $order_by = '' ) {
|
814 |
+
_deprecated_function( __FUNCTION__, '2.0', 'FrmDb::get_row' );
|
815 |
+
return self::get_var( $table, $args, $fields, array( 'order_by' => $order_by, 'limit' => 1 ), '', 'row' );
|
816 |
+
}
|
817 |
+
|
818 |
+
public static function get_records( $table, $args = array(), $order_by = '', $limit = '', $fields = '*' ) {
|
819 |
+
_deprecated_function( __FUNCTION__, '2.0', 'FrmDb::get_results' );
|
820 |
+
return self::get_results( $table, $args, $fields, compact('order_by', 'limit') );
|
821 |
+
}
|
822 |
}
|
classes/models/FrmField.php
CHANGED
@@ -395,7 +395,7 @@ class FrmField {
|
|
395 |
}
|
396 |
|
397 |
public static function include_sub_fields( &$results, $inc_embed, $type = 'all' ) {
|
398 |
-
if ( 'include' != $inc_embed ) {
|
399 |
return;
|
400 |
}
|
401 |
|
395 |
}
|
396 |
|
397 |
public static function include_sub_fields( &$results, $inc_embed, $type = 'all' ) {
|
398 |
+
if ( 'include' != $inc_embed || empty( $results ) ) {
|
399 |
return;
|
400 |
}
|
401 |
|
classes/models/FrmStyle.php
CHANGED
@@ -109,6 +109,8 @@ class FrmStyle {
|
|
109 |
return;
|
110 |
}
|
111 |
|
|
|
|
|
112 |
$css = $this->get_css_content( $filename );
|
113 |
|
114 |
$create_file = new FrmCreateFile( array( 'folder_name' => 'formidable/css', 'file_name' => 'formidablepro.css' ) );
|
@@ -116,7 +118,6 @@ class FrmStyle {
|
|
116 |
|
117 |
update_option('frmpro_css', $css);
|
118 |
|
119 |
-
delete_transient('frmpro_css');
|
120 |
set_transient('frmpro_css', $css);
|
121 |
}
|
122 |
|
@@ -134,6 +135,20 @@ class FrmStyle {
|
|
134 |
return $css;
|
135 |
}
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
public function destroy( $id ) {
|
138 |
return wp_delete_post($id);
|
139 |
}
|
109 |
return;
|
110 |
}
|
111 |
|
112 |
+
$this->clear_cache();
|
113 |
+
|
114 |
$css = $this->get_css_content( $filename );
|
115 |
|
116 |
$create_file = new FrmCreateFile( array( 'folder_name' => 'formidable/css', 'file_name' => 'formidablepro.css' ) );
|
118 |
|
119 |
update_option('frmpro_css', $css);
|
120 |
|
|
|
121 |
set_transient('frmpro_css', $css);
|
122 |
}
|
123 |
|
135 |
return $css;
|
136 |
}
|
137 |
|
138 |
+
private function clear_cache() {
|
139 |
+
$default_post_atts = array(
|
140 |
+
'post_type' => FrmStylesController::$post_type,
|
141 |
+
'post_status' => 'publish',
|
142 |
+
'numberposts' => 99,
|
143 |
+
'orderby' => 'title',
|
144 |
+
'order' => 'ASC',
|
145 |
+
);
|
146 |
+
|
147 |
+
FrmAppHelper::delete_cache_and_transient( serialize( $default_post_atts ), 'frm_styles' );
|
148 |
+
FrmAppHelper::cache_delete_group( 'frm_styles' );
|
149 |
+
FrmAppHelper::delete_cache_and_transient( 'frmpro_css' );
|
150 |
+
}
|
151 |
+
|
152 |
public function destroy( $id ) {
|
153 |
return wp_delete_post($id);
|
154 |
}
|
classes/views/xml/import_form.php
CHANGED
@@ -88,6 +88,8 @@
|
|
88 |
echo ' ' . __( '(default template)', 'formidable' );
|
89 |
} else if ( $form->is_template ) {
|
90 |
echo ' ' . __( '(template)', 'formidable' );
|
|
|
|
|
91 |
}
|
92 |
?></option>
|
93 |
<?php
|
88 |
echo ' ' . __( '(default template)', 'formidable' );
|
89 |
} else if ( $form->is_template ) {
|
90 |
echo ' ' . __( '(template)', 'formidable' );
|
91 |
+
} else if ( $form->parent_form_id ) {
|
92 |
+
echo ' ' . __( '(child)', 'formidable' );
|
93 |
}
|
94 |
?></option>
|
95 |
<?php
|
formidable.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Formidable
|
4 |
Description: Quickly and easily create drag-and-drop forms
|
5 |
-
Version: 2.02.
|
6 |
Plugin URI: http://formidablepro.com/
|
7 |
Author URI: http://strategy11.com
|
8 |
Author: Strategy11
|
2 |
/*
|
3 |
Plugin Name: Formidable
|
4 |
Description: Quickly and easily create drag-and-drop forms
|
5 |
+
Version: 2.02.05
|
6 |
Plugin URI: http://formidablepro.com/
|
7 |
Author URI: http://strategy11.com
|
8 |
Author: Strategy11
|
js/formidable.js
CHANGED
@@ -875,8 +875,8 @@ function frmFrontFormJS(){
|
|
875 |
return false;
|
876 |
}
|
877 |
|
878 |
-
|
879 |
-
|
880 |
|
881 |
return d.indexOf( c ) != -1;
|
882 |
},
|
@@ -886,8 +886,8 @@ function frmFrontFormJS(){
|
|
886 |
return true;
|
887 |
}
|
888 |
|
889 |
-
|
890 |
-
|
891 |
|
892 |
return d.indexOf( c ) == -1;
|
893 |
}
|
@@ -925,6 +925,26 @@ function frmFrontFormJS(){
|
|
925 |
return b;
|
926 |
}
|
927 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
928 |
|
929 |
function prepareValueForLikeComparison( val ) {
|
930 |
if ( typeof val === 'string' ) {
|
@@ -2449,10 +2469,10 @@ function frmFrontFormJS(){
|
|
2449 |
}
|
2450 |
|
2451 |
function getCallForField( field, all_calcs ) {
|
2452 |
-
if ( field.thisField.type == 'checkbox' || field.thisField.type == '
|
2453 |
-
field.thisFieldCall = field.thisFieldCall +':checked,
|
2454 |
-
} else if ( field.thisField.type == '
|
2455 |
-
field.thisFieldCall = field.
|
2456 |
} else if ( field.thisField.type == 'textarea' ) {
|
2457 |
field.thisFieldCall = field.thisFieldCall + ',textarea'+ all_calcs.fieldKeys[field.thisFieldId];
|
2458 |
}
|
@@ -3252,19 +3272,15 @@ function frmFrontFormJS(){
|
|
3252 |
|
3253 |
/* Google Tables */
|
3254 |
|
3255 |
-
function
|
3256 |
for ( var num = 0; num < graphs.length; num++ ) {
|
3257 |
-
|
3258 |
}
|
3259 |
}
|
3260 |
|
3261 |
-
function
|
3262 |
google.load('visualization', '1.0', {'packages':[type], 'callback': function(){
|
3263 |
-
|
3264 |
-
compileGoogleTable( opts );
|
3265 |
-
} else {
|
3266 |
-
compileGraph( opts );
|
3267 |
-
}
|
3268 |
}});
|
3269 |
}
|
3270 |
|
@@ -3370,6 +3386,38 @@ function frmFrontFormJS(){
|
|
3370 |
chart.draw( data, opts.graphOpts );
|
3371 |
}
|
3372 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3373 |
function getGraphType(field){
|
3374 |
var type = 'string';
|
3375 |
if ( field.type == 'number' ){
|
@@ -4121,7 +4169,11 @@ function frmFrontFormJS(){
|
|
4121 |
var packages = Object.keys( graphs );
|
4122 |
//google.load('visualization', '1.0', {'packages':packages});
|
4123 |
for ( var i = 0; i < packages.length; i++ ) {
|
4124 |
-
|
|
|
|
|
|
|
|
|
4125 |
}
|
4126 |
} else {
|
4127 |
setTimeout( frmFrontForm.loadGoogle, 30 );
|
875 |
return false;
|
876 |
}
|
877 |
|
878 |
+
c = prepareLogicValueForLikeComparison( c );
|
879 |
+
d = prepareEnteredValueForLikeComparison( c, d );
|
880 |
|
881 |
return d.indexOf( c ) != -1;
|
882 |
},
|
886 |
return true;
|
887 |
}
|
888 |
|
889 |
+
c = prepareLogicValueForLikeComparison( c );
|
890 |
+
d = prepareEnteredValueForLikeComparison( c, d );
|
891 |
|
892 |
return d.indexOf( c ) == -1;
|
893 |
}
|
925 |
return b;
|
926 |
}
|
927 |
|
928 |
+
function prepareLogicValueForLikeComparison( val ) {
|
929 |
+
return prepareValueForLikeComparison( val );
|
930 |
+
}
|
931 |
+
|
932 |
+
function prepareEnteredValueForLikeComparison( logicValue, enteredValue ) {
|
933 |
+
enteredValue = prepareValueForLikeComparison( enteredValue );
|
934 |
+
|
935 |
+
var currentValue = '';
|
936 |
+
if ( jQuery.isArray(enteredValue) ) {
|
937 |
+
for ( var i = 0, l = enteredValue.length; i<l; i++ ) {
|
938 |
+
currentValue = enteredValue[i].toLowerCase();
|
939 |
+
if ( currentValue.indexOf( logicValue ) > -1 ) {
|
940 |
+
enteredValue = logicValue;
|
941 |
+
break;
|
942 |
+
}
|
943 |
+
}
|
944 |
+
}
|
945 |
+
|
946 |
+
return enteredValue;
|
947 |
+
}
|
948 |
|
949 |
function prepareValueForLikeComparison( val ) {
|
950 |
if ( typeof val === 'string' ) {
|
2469 |
}
|
2470 |
|
2471 |
function getCallForField( field, all_calcs ) {
|
2472 |
+
if ( field.thisField.type == 'checkbox' || field.thisField.type == 'radio' || field.thisField.type == 'scale' ) {
|
2473 |
+
field.thisFieldCall = field.thisFieldCall +':checked,'+ field.thisFieldCall+'[type=hidden]';
|
2474 |
+
} else if ( field.thisField.type == 'select' || field.thisField.type == 'time' ) {
|
2475 |
+
field.thisFieldCall = 'select'+ all_calcs.fieldKeys[field.thisFieldId] +' option:selected,'+ field.thisFieldCall+'[type=hidden]';
|
2476 |
} else if ( field.thisField.type == 'textarea' ) {
|
2477 |
field.thisFieldCall = field.thisFieldCall + ',textarea'+ all_calcs.fieldKeys[field.thisFieldId];
|
2478 |
}
|
3272 |
|
3273 |
/* Google Tables */
|
3274 |
|
3275 |
+
function generateGoogleTables( graphs, graphType ) {
|
3276 |
for ( var num = 0; num < graphs.length; num++ ) {
|
3277 |
+
generateSingleGoogleTable( graphs[num], graphType );
|
3278 |
}
|
3279 |
}
|
3280 |
|
3281 |
+
function generateSingleGoogleTable( opts, type ) {
|
3282 |
google.load('visualization', '1.0', {'packages':[type], 'callback': function(){
|
3283 |
+
compileGoogleTable( opts );
|
|
|
|
|
|
|
|
|
3284 |
}});
|
3285 |
}
|
3286 |
|
3386 |
chart.draw( data, opts.graphOpts );
|
3387 |
}
|
3388 |
|
3389 |
+
/** Google Graphs **/
|
3390 |
+
|
3391 |
+
function generateGoogleGraphs( graphs ) {
|
3392 |
+
for ( var i = 0, l=graphs.length; i < l; i++ ) {
|
3393 |
+
generateSingleGoogleGraph( graphs[i] );
|
3394 |
+
}
|
3395 |
+
}
|
3396 |
+
|
3397 |
+
function generateSingleGoogleGraph( graphData ) {
|
3398 |
+
google.load('visualization', '1.0', {'packages':[ graphData.package ], 'callback': function() {
|
3399 |
+
compileGoogleGraph( graphData );
|
3400 |
+
} } );
|
3401 |
+
}
|
3402 |
+
|
3403 |
+
function compileGoogleGraph( graphData ) {
|
3404 |
+
var data = new google.visualization.DataTable();
|
3405 |
+
data = google.visualization.arrayToDataTable(graphData.data);
|
3406 |
+
|
3407 |
+
var chartDiv = document.getElementById('chart_'+ graphData.graph_id);
|
3408 |
+
if ( chartDiv === null ) {
|
3409 |
+
return;
|
3410 |
+
}
|
3411 |
+
|
3412 |
+
var type = (graphData.type.charAt(0).toUpperCase() + graphData.type.slice(1));
|
3413 |
+
if ( type !== 'Histogram' && type !== 'Table' ) {
|
3414 |
+
type += 'Chart';
|
3415 |
+
}
|
3416 |
+
|
3417 |
+
var chart = new google.visualization[type]( chartDiv );
|
3418 |
+
chart.draw(data, graphData.options);
|
3419 |
+
}
|
3420 |
+
|
3421 |
function getGraphType(field){
|
3422 |
var type = 'string';
|
3423 |
if ( field.type == 'number' ){
|
4169 |
var packages = Object.keys( graphs );
|
4170 |
//google.load('visualization', '1.0', {'packages':packages});
|
4171 |
for ( var i = 0; i < packages.length; i++ ) {
|
4172 |
+
if ( packages[i] === 'graphs' ) {
|
4173 |
+
generateGoogleGraphs( graphs[ packages[i] ] );
|
4174 |
+
} else {
|
4175 |
+
generateGoogleTables(graphs[packages[i]], packages[i]);
|
4176 |
+
}
|
4177 |
}
|
4178 |
} else {
|
4179 |
setTimeout( frmFrontForm.loadGoogle, 30 );
|
js/formidable.min.js
CHANGED
@@ -5,86 +5,87 @@ function frmFrontFormJS(){function l(a){var b=jQuery(this),c=b.attr("type");"sub
|
|
5 |
maxFiles:f,uploadMultiple:c[a].uploadMultiple,dictCancelUpload:c[a].cancel,dictCancelUploadConfirmation:c[a].cancelConfirm,dictRemoveFile:c[a].remove,dictMaxFilesExceeded:c[a].maxFilesExceeded,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(b,d,e){e.append("action","frm_submit_dropzone");e.append("field_id",c[a].fieldID);e.append("form_id",c[a].formID)});this.on("success",function(b,d){for(var f=jQuery.parseJSON(d),
|
6 |
g=0;g<f.length;g++)!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val(f[g])});this.on("successmultiple",function(b,d){for(var e=jQuery.parseJSON(d),f=0;f<b.length;f++)jQuery(b[f].previewElement).append(y(c[a],e[f]))});this.on("removedfile",function(b){!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val("")});this.on("complete",function(b){if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&jQuery(b.previewElement).append(y(c[a],b.mediaID));for(var d=b.previewElement.querySelectorAll("[data-dz-name]"),
|
7 |
e=0,f=d.length;e<f;e++)d[e].innerHTML='<a href="'+b.url+'">'+b.name+"</a>"}});this.on("addedfile",function(){k.addClass("frm_loading_now");g.attr("disabled","disabled")});this.on("queuecomplete",function(){k.removeClass("frm_loading_now");g.removeAttr("disabled")});this.on("removedfile",function(b){"undefined"!==typeof b.mediaID&&(jQuery(b.previewElement).remove(),this.options.maxFiles=c[a].maxFiles-this.files.length)});if("undefined"!==typeof c[a].mockFiles)for(var b=0;b<c[a].mockFiles.length;b++){var d=
|
8 |
-
{name:c[a].mockFiles[b].name,size:c[a].mockFiles[b].size,url:c[a].mockFiles[b].file_url,mediaID:c[a].mockFiles[b].id};this.emit("addedfile",d);this.emit("thumbnail",d,c[a].mockFiles[b].url);this.emit("complete",d);this.files.push(d)}}})}}function y(a,b){return'<input name="'+a.fieldName+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function w(){var a=jQuery(this).data("frm-remove");
|
9 |
this.type,b=!1,c=!1;if("select-one"===a)c=!0,"frm_other_trigger"===this.options[this.selectedIndex].className&&(b=!0);else if("select-multiple"===a)for(var c=!0,d=this.options,b=!1,e=0;e<d.length;e++)if("frm_other_trigger"===d[e].className&&d[e].selected){b=!0;break}c?(a=jQuery(this).parent().children(".frm_other_input"),a.length&&(b?a[0].className=a[0].className.replace("frm_pos_none",""):(1>a[0].className.indexOf("frm_pos_none")&&(a[0].className+=" frm_pos_none"),a[0].value=""))):"radio"===a?jQuery(this).is(":checked")&&
|
10 |
(jQuery(this).closest(".frm_radio").children(".frm_other_input").removeClass("frm_pos_none"),jQuery(this).closest(".frm_radio").siblings().children(".frm_other_input").addClass("frm_pos_none").val("")):"checkbox"===a&&(this.checked?jQuery(this).closest(".frm_checkbox").children(".frm_other_input").removeClass("frm_pos_none"):jQuery(this).closest(".frm_checkbox").children(".frm_other_input").addClass("frm_pos_none").val(""))}function F(a){var b=q(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||
|
11 |
-
a.frmTriggered!=b)&&(ea(b,jQuery(this)),a="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other",fa(b,jQuery(this),a),
|
12 |
-
this.type?b=ia(this,b):null!==this.pattern&&(b=ja(this,b));a.removeClass("frm_blank_field");a.find(".frm_error").remove();if(0<Object.keys(b).length)for(var d in b)
|
13 |
"[id"==c[1])return d;if(jQuery('input[name="item_meta['+d+'][form]"]').length){if(2===c.length&&"[0"==c[1])return 0;d=c[2].replace("[","");e=!0}"other"===d&&(d=e?c[3].replace("[",""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+"-"+c[1].replace("[",""));return d}function ea(a,b){if(!("undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]||1>__FRMRULES[a].dependents.length||null===b||"undefined"===typeof b))for(var c=__FRMRULES[a],d=G(b[0].name),e=0,
|
14 |
-
f=c.dependents.length;e<f;e++)H(c.dependents[e],d)}function H(a,b){var c=
|
15 |
-
f=0,h=e.length;f<h;f++)d.push(e[f].id);else if(d=[],e=
|
16 |
-
return b}function ka(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function la(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(
|
17 |
-
repeatRow:a.repeatRow,dataLogic:{actualValue:a.dataLogic.actualValue,fieldId:a.dataLogic.fieldId},children:"",inputType:a.inputType},"data"==a.inputType?
|
18 |
-
!1:__FRMRULES[a]}function
|
19 |
-
c+'"]');1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=
|
20 |
-
a[c].type||a[c].checked)&&b.push(a[c].value);0===b.length&&(b="");return b}function
|
21 |
-
String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function
|
22 |
-
function pa(a){if("divider"==a.fieldType){var b=[];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+'"]'));a=b}else a="form"==a.fieldType?document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):document.querySelectorAll('[name^="'+
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
d=document.getElementById("frm_hide_fields_"+b);null!==d&&(d.value=c)}}function D(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function I(a,b){var c=D(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),
|
28 |
-
b=G(b[0].name);for(var d=0,e=a.dependents.length;d<e;d++)Z(a.dependents[d],b,c)}}function Z(a,b,c){a=V(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+
|
29 |
-
c=0;for(d=b.length;c<d;c++){ka(a,b[c].id);var e=a,f=b[c];e.parentVals=W(e);if("select"==e.inputType)
|
30 |
-
f.repeatRow:"",e=a,f=b[c],e.parentVals=W(e),
|
31 |
-
(c.options.length=1,""!==d&&(c.value="",U(c),u(jQuery(c),a.fieldKey))):(
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
jQuery("#"+a.containerId);
|
36 |
-
a.formId),u(jQuery(e))}})}function
|
37 |
-
|
38 |
-
[],c="";a.each(function(){c=this.value;"radio"===this.type||"checkbox"===this.type?!0===this.checked&&b.push(c):""!==c&&b.push(c)});0===b.length&&(b="");return b}function
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
g=d[m]>g?"19"+d[m]:"20"+d[m];else if("yy"==f[m])g=d[m];else if("m"==f[m]||"mm"==f[m])h=d[m],2>h.length&&(h="0"+h);else if("d"==f[m]||"dd"==f[m])k=d[m],2>k.length&&(k="0"+k);h=Date.parse(g+"-"+h+"-"+k)}else h=jQuery.datepicker.parseDate(f,d);f=h;null!==f&&(c[a.valKey]=
|
45 |
-
|
46 |
-
return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}function
|
47 |
-
"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ba(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ba(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==
|
48 |
-
|
49 |
-
e=c;else{e=a.className;if(-1!==e.indexOf("frm_pos_none"))return b;d=jQuery(a).val();if("string"!==typeof d)for(var c=d,d="",f=0;f<c.length;f++)""!==c[f]&&(d=c[f]);e=-1===e.indexOf("frm_other_input")?q(a,!0):q(a,!1)}""===d&&(""===e&&(e=q(a,!0)),
|
50 |
-
|
51 |
-
|
52 |
-
"&action=frm_entries_"+b+"&nonce="+frm_js.nonce,success:function(b){var d={content:"",errors:{},pass:!1};null===b&&(b=d);b=b.replace(/^\s+|\s+$/g,"");b=0===b.indexOf("{")?jQuery.parseJSON(b):d;if("undefined"!=typeof b.redirect)window.location=
|
53 |
-
|
54 |
-
|
55 |
-
(h?grecaptcha.reset(h):grecaptcha.reset())))}
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
for(var e=a.fields.length,f,h=0,g=e;h<g;h++){var k=a.fields[h];f=
|
60 |
-
t||"false"==t||!1===t?!1:!0):t=0;
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
a.
|
68 |
-
a.
|
69 |
-
c)).
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
jQuery(document).on("
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
a
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
88 |
function frmUpdateField(l,n,p,r,v){jQuery(document.getElementById("frm_update_field_"+l+"_"+n)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:l,field_id:n,value:p,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+v)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+v)).replaceWith(r)}})}
|
89 |
function frmEditEntry(l,n,p,r,v,z){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var y=jQuery(document.getElementById("frm_edit_"+l)),w=y.html(),A=jQuery(document.getElementById(n+l)),F=A.html();A.html('<span class="frm-loading-img" id="'+n+l+'"></span><div class="frm_orig_content" style="display:none">'+F+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:p,entry_id:l,id:r,nonce:frm_js.nonce},
|
90 |
success:function(q){A.children(".frm-loading-img").replaceWith(q);y.replaceWith('<span id="frm_edit_'+l+'"><a onclick="frmCancelEdit('+l+",'"+n+"','"+frmFrontForm.escapeHtml(w)+"',"+p+","+r+",'"+z+'\')" class="'+z+'">'+v+"</a></span>")}})}
|
5 |
maxFiles:f,uploadMultiple:c[a].uploadMultiple,dictCancelUpload:c[a].cancel,dictCancelUploadConfirmation:c[a].cancelConfirm,dictRemoveFile:c[a].remove,dictMaxFilesExceeded:c[a].maxFilesExceeded,fallback:function(){jQuery(this.element).closest("form").removeClass("frm_ajax_submit")},init:function(){this.on("sending",function(b,d,e){e.append("action","frm_submit_dropzone");e.append("field_id",c[a].fieldID);e.append("form_id",c[a].formID)});this.on("success",function(b,d){for(var f=jQuery.parseJSON(d),
|
6 |
g=0;g<f.length;g++)!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val(f[g])});this.on("successmultiple",function(b,d){for(var e=jQuery.parseJSON(d),f=0;f<b.length;f++)jQuery(b[f].previewElement).append(y(c[a],e[f]))});this.on("removedfile",function(b){!0!==c[a].uploadMultiple&&jQuery('input[name="'+e+'"]').val("")});this.on("complete",function(b){if("undefined"!==typeof b.mediaID){c[a].uploadMultiple&&jQuery(b.previewElement).append(y(c[a],b.mediaID));for(var d=b.previewElement.querySelectorAll("[data-dz-name]"),
|
7 |
e=0,f=d.length;e<f;e++)d[e].innerHTML='<a href="'+b.url+'">'+b.name+"</a>"}});this.on("addedfile",function(){k.addClass("frm_loading_now");g.attr("disabled","disabled")});this.on("queuecomplete",function(){k.removeClass("frm_loading_now");g.removeAttr("disabled")});this.on("removedfile",function(b){"undefined"!==typeof b.mediaID&&(jQuery(b.previewElement).remove(),this.options.maxFiles=c[a].maxFiles-this.files.length)});if("undefined"!==typeof c[a].mockFiles)for(var b=0;b<c[a].mockFiles.length;b++){var d=
|
8 |
+
{name:c[a].mockFiles[b].name,size:c[a].mockFiles[b].size,url:c[a].mockFiles[b].file_url,mediaID:c[a].mockFiles[b].id};this.emit("addedfile",d);this.emit("thumbnail",d,c[a].mockFiles[b].url);this.emit("complete",d);this.files.push(d)}}})}}function y(a,b){return'<input name="'+a.fieldName+'[]" type="hidden" value="'+b+'" data-frmfile="'+a.fieldID+'" />'}function w(){var a=jQuery(this).data("frm-remove");Pa(jQuery(this).parent(".dz-preview"));a=jQuery('input[name="'+a+'"]');a.length&&a.val("")}function A(){var a=
|
9 |
this.type,b=!1,c=!1;if("select-one"===a)c=!0,"frm_other_trigger"===this.options[this.selectedIndex].className&&(b=!0);else if("select-multiple"===a)for(var c=!0,d=this.options,b=!1,e=0;e<d.length;e++)if("frm_other_trigger"===d[e].className&&d[e].selected){b=!0;break}c?(a=jQuery(this).parent().children(".frm_other_input"),a.length&&(b?a[0].className=a[0].className.replace("frm_pos_none",""):(1>a[0].className.indexOf("frm_pos_none")&&(a[0].className+=" frm_pos_none"),a[0].value=""))):"radio"===a?jQuery(this).is(":checked")&&
|
10 |
(jQuery(this).closest(".frm_radio").children(".frm_other_input").removeClass("frm_pos_none"),jQuery(this).closest(".frm_radio").siblings().children(".frm_other_input").addClass("frm_pos_none").val("")):"checkbox"===a&&(this.checked?jQuery(this).closest(".frm_checkbox").children(".frm_other_input").removeClass("frm_pos_none"):jQuery(this).closest(".frm_checkbox").children(".frm_other_input").addClass("frm_pos_none").val(""))}function F(a){var b=q(this,!1);if(b&&"undefined"!==typeof b&&(!a.frmTriggered||
|
11 |
+
a.frmTriggered!=b)&&(ea(b,jQuery(this)),a="undefined"!==typeof a.originalEvent||-1<a.currentTarget.className.indexOf("frm_chzn")?"value changed":"other",fa(b,jQuery(this),a),L(b,jQuery(this)),jQuery(this).closest("form").hasClass("frm_js_validate"))){b=[];a=jQuery(this).closest(".frm_form_field");a.hasClass("frm_required_field")&&!jQuery(this).hasClass("frm_optional")&&(b=ga(this,b));if(1>b.length)if("email"==this.type)var c=jQuery(this).closest("form").find("input[type=email]"),b=ha(this,b,c);else"number"==
|
12 |
+
this.type?b=ia(this,b):null!==this.pattern&&(b=ja(this,b));a.removeClass("frm_blank_field");a.find(".frm_error").remove();if(0<Object.keys(b).length)for(var d in b)M(a,d,b)}}function q(a,b){var c="",c=a instanceof jQuery?a.attr("name"):a.name;if(""===c)return c=a instanceof jQuery?a.data("name"):a.getAttribute("data-name"),""!==c&&c?c:0;c=c.replace("item_meta[","").replace("[]","").split("]");if(1>c.length)return 0;var c=c.filter(function(a){return""!==a}),d=c[0],e=!1;if(1===c.length||"[form"==c[1]||
|
13 |
"[id"==c[1])return d;if(jQuery('input[name="item_meta['+d+'][form]"]').length){if(2===c.length&&"[0"==c[1])return 0;d=c[2].replace("[","");e=!0}"other"===d&&(d=e?c[3].replace("[",""):c[1].replace("[",""));!0===b&&(d=d===c[0]?d+"-"+c[1].replace("[",""):d+"-"+c[0]+"-"+c[1].replace("[",""));return d}function ea(a,b){if(!("undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]||1>__FRMRULES[a].dependents.length||null===b||"undefined"===typeof b))for(var c=__FRMRULES[a],d=G(b[0].name),e=0,
|
14 |
+
f=c.dependents.length;e<f;e++)H(c.dependents[e],d)}function H(a,b){var c=N(a);if(!(!1===c||1>c.conditions.length)){var d;d=[];if(c.isRepeating)if(""!==b.repeatingSection){var e="frm_field_"+c.fieldId+"-",e=e+(b.repeatingSection+"-"+b.repeatRow+"_container");d.push(e)}else if("0"!==c.inEmbedForm)d=O(c),d=["frm_field_"+c.fieldId+"-"+d+"-0_container"];else if(d=[],e=O(c),null!==document.getElementById("frm_field_"+e+"_container"))for(var e=document.querySelectorAll(".frm_field_"+c.fieldId+"_container"),
|
15 |
+
f=0,h=e.length;f<h;f++)d.push(e[f].id);else if(d=[],e=O(c),e="frm_field_"+c.fieldId+"-"+e+"-",f=document.querySelectorAll('[id^="field_'+c.inSectionKey+'-rowid-"]'),1>f.length)d.push(e+"0_container");else for(var g=0,k=f.length;g<k;g++)h=f[g].id.split("-"),3==h.length&&d.push(e+h[2]+"_container");else d.push("frm_field_"+c.fieldId+"_container");e=d.length;for(f=0;f<e;f++)c.containerId=d[f],ka(c,d[f]),la(c)}}function O(a){var b="";"0"!==a.inEmbedForm?b=a.inEmbedForm:"0"!==a.inSection&&(b=a.inSection);
|
16 |
+
return b}function ka(a,b){if(a.isRepeating){var c=b.replace("_container","").split("-");a.repeatRow=c[2]}else a.repeatRow=""}function la(a){for(var b=[],c=a.conditions.length,d=0;d<c;d++)b.push(Qa(a.conditions[d],a));c=C="any"==a.anyAll?-1<b.indexOf(!0)?a.showHide:ma(a.showHide):-1<b.indexOf(!1)?ma(a.showHide):a.showHide;b=null!==document.getElementById(a.containerId);"show"==c?"data"==a.fieldType&&a.hasOwnProperty("dataLogic")?(a={fieldId:a.fieldId,fieldKey:a.fieldKey,formId:a.formId,containerId:a.containerId,
|
17 |
+
repeatRow:a.repeatRow,dataLogic:{actualValue:a.dataLogic.actualValue,fieldId:a.dataLogic.fieldId},children:"",inputType:a.inputType},"data"==a.inputType?Ra(a,b):b&&Sa(a)):!1!==B(a.containerId,a.formId)&&(I(a.containerId,a.formId),b?(b=na(a.containerId),oa(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId),jQuery("#"+a.containerId).show()):(b=pa(a),oa(b,"divider"==a.fieldType||"form"==a.fieldType,a.formId))):P(a,b)}function N(a){return"undefined"===typeof __FRMRULES||"undefined"===typeof __FRMRULES[a]?
|
18 |
+
!1:__FRMRULES[a]}function Qa(a,b){var c=N(a.fieldId),d=qa(c,b);"data"==b.fieldType&&"data"==c.fieldType?(c=""===a.value?""===d||1==d.length&&""===d[0]?!1:!0:Q(a.operator,a.value,d),b.dataLogic=a,b.dataLogic.actualValue=d,d=c):d=Q(a.operator,a.value,d);return d}function qa(a,b){var c;if("radio"==a.inputType||"checkbox"==a.inputType)c=ra(a,b),c=document.querySelectorAll('input[name^="'+c+'"]'),c="checkbox"==a.inputType?R(c):sa(c);else if(c="",!0===a.isMultiSelect){c=ra(a,b);var d=document.querySelectorAll('[name^="'+
|
19 |
+
c+'"]');1==d.length&&"hidden"!=d[0].type?(c=jQuery('[name^="'+c+'"]').val(),null===c&&(c="")):c=R(d)}else d="field_"+a.fieldKey,a.isRepeating&&(d+="-"+b.repeatRow),d=document.getElementById(d),null!==d&&(c=d.value);"undefined"===typeof c?c="":"string"===typeof c&&(c=c.trim());return c}function ra(a,b){return a.isRepeating?"item_meta["+("0"!==b.inEmbedForm?b.inEmbedForm:b.inSection)+"]["+b.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]"}function R(a){for(var b=[],c=0,d=a.length;c<d;c++)("hidden"==
|
20 |
+
a[c].type||a[c].checked)&&b.push(a[c].value);0===b.length&&(b="");return b}function Q(a,b,c){b=Ta(b);c=Ua(b,c);return"string"===typeof b&&"-1"!=b.indexOf(""")&&Q(a,b.replace(""",'"'),c)?!0:{"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"<":function(a,b){return a>b},">":function(a,b){return a<b},LIKE:function(a,b){if(!b)return!1;a=S(a);b=ta(a,b);return-1!=b.indexOf(a)},"not LIKE":function(a,b){if(!b)return!0;a=S(a);b=ta(a,b);return-1==b.indexOf(a)}}[a](b,c)}function Ta(a){-1!==
|
21 |
+
String(a).search(/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/)?a=parseFloat(a):"string"===typeof a&&(a=a.trim());return a}function Ua(a,b){"undefined"===typeof b&&(b="");jQuery.isArray(b)&&-1<jQuery.inArray(String(a),b)&&(b=a);"number"===typeof a&&"string"===typeof b&&(b=parseFloat(b));"string"===typeof b&&(b=b.trim());return b}function ta(a,b){b=S(b);var c;if(jQuery.isArray(b))for(var d=0,e=b.length;d<e;d++)if(c=b[d].toLowerCase(),-1<c.indexOf(a)){b=a;break}return b}function S(a){"string"===typeof a?
|
22 |
+
a=a.toLowerCase():"number"===typeof a&&(a=a.toString());return a}function ma(a){return"show"==a?"hide":"show"}function na(a){return document.getElementById(a).querySelectorAll('select[name^="item_meta"], textarea[name^="item_meta"], input[name^="item_meta"]')}function pa(a){if("divider"==a.fieldType){var b=[];"divider"==a.fieldType&&(b=document.querySelectorAll('[data-sectionid="'+a.fieldId+'"]'));a=b}else a="form"==a.fieldType?document.querySelectorAll('[id^="field_'+a.fieldKey+'-"]'):document.querySelectorAll('[name^="'+
|
23 |
+
(a.isRepeating?"item_meta["+a.inSection+"]["+a.repeatRow+"]["+a.fieldId+"]":"item_meta["+a.fieldId+"]")+'"]');return a}function oa(a,b,c){if(a.length)for(var d,e=["checkbox","radio"],f=0;f<a.length;f++)if(!(0<f&&"undefined"!==typeof d&&d.name==a[f].name&&-1<e.indexOf(d.type)||b&&T(a[f],c))){d=a[f];var h=jQuery(d),g=h.data("frmval");if("undefined"!==typeof g){if("checkbox"==d.type||"radio"==d.type)for(var k=document.getElementsByName(d.name),m=0,l=k.length;m<l;m++)if("hidden"==k[m].type)jQuery.isArray(g)&&
|
24 |
+
null!==g[m]?k[m].value=g[m]:k[m].value=g;else{if(k[m].value==g||jQuery.isArray(g)&&-1<g.indexOf(k[m].value))if(k[m].checked=!0,"radio"==k[m].type)break}else if(-1<d.name.indexOf("[]"))if(k=document.getElementsByName(d.name),jQuery.isArray(g))for(m=0,l=g.length;m<l;m++)m in k&&(k[m].value=g[m]);else null!==k[0]&&(k[0].value=g);else g.constructor===Object&&(k=d.getAttribute("name").split("[").slice(-1)[0],null!==k&&(k=k.replace("]",""),g=g[k],"undefined"==typeof g&&(g=""))),d.value=g;"SELECT"==d.tagName&&
|
25 |
+
U(d);u(h)}d=a[f];h=q(d,!1);h=V(h);!1!==h&&"lookup"!=h.fieldType&&(h.parentVals=W(h),ua(h,d));d=a[f];if(h="undefined"!==typeof __FRMCALC){h=d.type;g=!1;if("text"==h||"hidden"==h||"number"==h)g=!0;h=g}if(h){h=__FRMCALC;g=d.name;k=d.id.replace("field_","");if(3<=g.split("][").length)for(g=k.split("-"),k="",m=0;m<g.length-1;m++)k=""===k?g[m]:k+"-"+g[m];g=k;k=null;3<=d.name.split("][").length&&(k="hidden"!=d.type?jQuery(d).closest(".frm_form_field"):jQuery(d));d=k;void 0!==h.calc[g]&&X(h,g,[],d)}d=a[f]}}
|
26 |
+
function T(a,b){var c=q(a,!0);return B("frm_field_"+c+"_container",b)}function P(a,b){if(!B(a.containerId,a.formId)){if(b){jQuery("#"+a.containerId).hide();var c=na(a.containerId)}else c=pa(a);Y(c);va(a.containerId,a.formId)}}function Y(a){if(!(1>a.length)){for(var b,c=!0,d=0,e=a.length;d<e;d++)0<d&&b.name!=a[d].name&&!0===c&&u(jQuery(b)),c=!0,"radio"==a[d].type||"checkbox"==a[d].type?a[d].checked=!1:"SELECT"==a[d].tagName?(0===a[d].selectedIndex?c=!1:a[d].selectedIndex=0,null!==document.getElementById(a[d].id+
|
27 |
+
"_chosen")&&jQuery(a[d]).trigger("chosen:updated")):a[d].value="",b=a[d];!0===c&&u(jQuery(b))}}function B(a,b){var c=!1;-1<D(b).indexOf(a)&&(c=!0);return c}function va(a,b){var c=D(b);if(!(-1<c.indexOf(a))){c.push(a);var c=JSON.stringify(c),d=document.getElementById("frm_hide_fields_"+b);null!==d&&(d.value=c)}}function D(a){var b=[];a=document.getElementById("frm_hide_fields_"+a);return null===a?b:b=(b=a.value)?JSON.parse(b):[]}function I(a,b){var c=D(b),d=c.indexOf(a);-1<d&&(c.splice(d,1),c=JSON.stringify(c),
|
28 |
+
document.getElementById("frm_hide_fields_"+b).value=c)}function fa(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=G(b[0].name);for(var d=0,e=a.dependents.length;d<e;d++)Z(a.dependents[d],b,c)}}function Z(a,b,c){a=V(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+
|
29 |
+
"_container");b=document.getElementById(d);null!==b&&c.push(b);b=c}else b=[],a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(d=b.length;c<d;c++){ka(a,b[c].id);var e=a,f=b[c];e.parentVals=W(e);if("select"==e.inputType)Va(e,f);else if("radio"==e.inputType||"checkbox"==e.inputType)if(!1===e.parentVals){var h=f.getElementsByTagName("input");wa(e,f);Y(h)}else Wa(e,f)}}else if("value changed"===
|
30 |
+
c)for(c="field_"+a.fieldKey,c=a.isRepeating?""!==b.repeatingSection?'[id="'+c+"-"+b.repeatRow+'"]':'[id^="'+c+'-"]':'[id="'+c+'"]',b=document.querySelectorAll(c),c=0,d=b.length;c<d;c++)e=a,f=G(b[c].name),e.repeatRow=""!==f.repeatRow?f.repeatRow:"",e=a,f=b[c],e.parentVals=W(e),ua(e,f)}function V(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function W(a){for(var b=[],c=a.parents,d,e=0,f=c.length;e<f;e++){d=V(c[e]);d=qa(d,a);if(""===d||!1===d){b=!1;
|
31 |
+
break}b[e]=d}return b}function sa(a){for(var b=!1,c=a.length,d=0;d<c;d++)if("hidden"==a[d].type||a[d].checked){b=a[d].value;break}return b}function Va(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,""!==d&&(c.value="",U(c),u(jQuery(c),a.fieldKey))):(Xa(c),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_lookup_field_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},
|
32 |
+
success:function(b){var d=a.fieldKey,h=c.value;b=JSON.parse(b);for(var g=c.options.length;0<g;g--)c.remove(g);for(var k=b.length,g=0;g<k;g++)c.options[g+1]=new Option(b[g],b[g],!1,!1);c.value=h;""===c.value&&(b=c.getAttribute("data-frmval"),null!==b&&(c.value=b));U(c);c.value!=h&&u(jQuery(c),d)}}))}}function U(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}function Xa(a){a.value||(a.options.length=1,a.options[1]=new Option(frm_js.loading,"",!1,!1))}function Wa(a,
|
33 |
+
b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");Ya(b,c);var e="",e="radio"==a.inputType?sa(d):R(d);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,row_index:a.repeatRow,current_value:e,nonce:frm_js.nonce},success:function(e){c.innerHTML=e;e=b.getElementsByClassName("frm-loading-img")[0];null!==e&&void 0!==e&&e.parentNode.removeChild(e);c.style.display=
|
34 |
+
"block";1==d.length&&""===d[0].value?wa(a,b):!1!==B(b.id,a.formId)&&(e=N(a.fieldId),!1===e||1>e.conditions.length?(I(b.id,a.formId),jQuery("#"+b.id).show()):(e.containerId=b.id,e.repeatRow=a.repeatRow,la(e)));u(jQuery(d[0]),a.fieldKey)}})}function wa(a,b){B(b.id,a.formId)||(jQuery("#"+b.id).hide(),va(b.id,a.formId))}function ua(a,b){if(!T(b,a.formId))if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");xa(a,b,c)}else jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_get_lookup_text_value",
|
35 |
+
parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},success:function(c){b.value!=c&&xa(a.fieldKey,b,c)}})}function xa(a,b,c){b.value=c;u(jQuery(b),a)}function Ra(a,b){if(b){var c=jQuery("#"+a.containerId);ya(c)}jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_get_data",entry_id:a.dataLogic.actualValue,current_field:a.fieldId,hide_id:a.containerId,nonce:frm_js.nonce},success:function(d){if(b){var e=c.find(".frm_opt_container");e.html(d);
|
36 |
+
var f=e.children("input"),h=f.val();za(e);""===d||""===h?P(a,!0):Aa(a,c,f,!0)}else e="field_"+a.fieldKey,""!==a.repeatRow&&(e+="-"+a.repeatRow),e=document.getElementById(e),e.value=d,B(a.containerId,a.formId)&&I(a.containerId,a.formId),u(jQuery(e))}})}function Sa(a,b){var c=jQuery("#"+a.containerId),d=c.find('select[name^="item_meta"], input[name^="item_meta"]'),e=Ba(d),d=d.data("frmval");ya(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_fields_ajax_data_options",trigger_field_id:a.dataLogic.fieldId,
|
37 |
+
entry_id:a.dataLogic.actualValue,field_id:a.fieldId,default_value:d,container_id:a.containerId,prev_val:e,nonce:frm_js.nonce},success:function(b){var d=c.find(".frm_opt_container");d.html(b);var g=d.find('select, input[type="checkbox"], input[type="radio"]');za(d);""===b||1>g.length?P(a,!0):(b=Ba(g),Aa(a,c,g,e!==b))}})}function ya(a){var b=a.html();-1<b.indexOf("frm-loading-img")||(a.html(b+'<span class="frm-loading-img"></span>'),a.find(".frm_opt_container").hide())}function Ya(a,b){if(!(-1<a.innerHTML.indexOf("frm-loading-img"))){b.style.display=
|
38 |
+
"none";var c=document.createElement("span");c.setAttribute("class","frm-loading-img");a.insertBefore(c,b.nextSibling)}}function za(a){a.parent().children(".frm-loading-img").remove();a.show()}function Ba(a){var b=[],c="";a.each(function(){c=this.value;"radio"===this.type||"checkbox"===this.type?!0===this.checked&&b.push(c):""!==c&&b.push(c)});0===b.length&&(b="");return b}function Aa(a,b,c,d){B(a.containerId,a.formId)&&(I(a.containerId,a.formId),b.show());c.hasClass("frm_chzn")&&aa();!0===d&&u(c)}
|
39 |
+
function L(a,b){if("undefined"!==typeof __FRMCALC){var c=__FRMCALC,d=c.fields[a];if("undefined"!==typeof d)for(var d=d.total,e=[],f=0,h=d.length;f<h;f++){var g;g=c.calc[d[f]];var k=b.attr("name"),m=!1,l=g.field_id,n=D(g.form_id);1>n.length||("0"===g.inSection&&"0"===g.inEmbedForm?m=J(l,n):(k=G(k),J(l,n)?m=!0:Ca(l,k,n)?m=!0:"0"!==g.inSection&&"0"!==g.inEmbedForm?m=Ca(g.inSection,k,n):"0"!==g.inSection?m=J(g.inSection,n):"0"!==g.inEmbedForm&&(m=J(g.inEmbedForm,n))));g=m;!1===g&&X(c,d[f],e,b)}}}function J(a,
|
40 |
+
b){return-1<b.indexOf("frm_field_"+a+"_container")}function Ca(a,b,c){var d=!1;b.repeatingSection&&(a="frm_field_"+a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));return d}function X(a,b,c,d){var e=a.calc[b],f=e.calc,h=jQuery(document.getElementById("field_"+b)),g={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>h.length&&"undefined"!==typeof d&&(g.inSection=!0,g.thisFieldId=Za(a.fieldsWithCalc,b),h=Da(g));if(!(1>h.length)){f=$a(e,f,a,c,g);if("text"!=
|
41 |
+
e.calc_type){a=e.calc_dec;f.indexOf(").toFixed(")&&(c=f.split(").toFixed("),Ea(c[1])&&(a=c[1],f=f.replace(").toFixed("+a,"")));f=parseFloat(eval(f));if("undefined"===typeof f||isNaN(f))f=0;Ea(a)&&(f=f.toFixed(a))}h.val()!=f&&(h.val(f),u(h,b))}}function $a(a,b,c,d,e){for(var f=0,h=a.fields.length;f<h;f++){var g={triggerField:e.triggerField,thisFieldId:a.fields[f],inSection:e.inSection,valKey:e.inSection+""+a.fields[f],thisField:c.fields[a.fields[f]],thisFieldCall:"input"+c.fieldKeys[a.fields[f]]},
|
42 |
+
k=c;"checkbox"==g.thisField.type||"radio"==g.thisField.type||"scale"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,"+g.thisFieldCall+"[type=hidden]":"select"==g.thisField.type||"time"==g.thisField.type?g.thisFieldCall="select"+k.fieldKeys[g.thisFieldId]+" option:selected,"+g.thisFieldCall+"[type=hidden]":"textarea"==g.thisField.type&&(g.thisFieldCall=g.thisFieldCall+",textarea"+k.fieldKeys[g.thisFieldId]);if("text"==a.calc_type)g.valKey="text"+g.valKey,d=ab(g,d),"undefined"===typeof d[g.valKey]&&
|
43 |
+
(d[g.valKey]="");else{g.valKey="num"+g.valKey;d=bb(g,c,d);if("undefined"===typeof d[g.valKey]||isNaN(d[g.valKey]))d[g.valKey]=0;"date"==g.thisField.type&&0===d[g.valKey]&&(b="")}k="["+g.thisFieldId+"]";k=k.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1");b=b.replace(new RegExp(k,"g"),d[g.valKey])}return b}function bb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=Fa(a);if(!1===d)return c;d.each(function(){var d=Ga(a.thisField,this);if("date"==a.thisField.type){var f;
|
44 |
+
f=b.date;var h=0;if(d)if("undefined"===typeof jQuery.datepicker){h="-";-1<f.indexOf("/")&&(h="/");f=f.split(h);var d=d.split(h),g,k;g=h=k="";for(var m=0;m<f.length;m++)if("y"==f[m])g=((new Date).getFullYear()+15).toString().substr(2,2),g=d[m]>g?"19"+d[m]:"20"+d[m];else if("yy"==f[m])g=d[m];else if("m"==f[m]||"mm"==f[m])h=d[m],2>h.length&&(h="0"+h);else if("d"==f[m]||"dd"==f[m])k=d[m],2>k.length&&(k="0"+k);h=Date.parse(g+"-"+h+"-"+k)}else h=jQuery.datepicker.parseDate(f,d);f=h;null!==f&&(c[a.valKey]=
|
45 |
+
Math.ceil(f/864E5))}else{f=d;""!==f&&0!==f&&(f=f.trim(),f=parseFloat(f.replace(/,/g,"").match(/-?[\d\.]+$/)));if("undefined"===typeof f||isNaN(f)||""===f)f=0;c[a.valKey]+=f}});return c}function ab(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=Fa(a);if(!1===c)return b;c.each(function(){var c=Ga(a.thisField,this),c=c.trim();b[a.valKey]+=c});return b}function Fa(a){var b;if(!1===a.inSection)b=jQuery(a.thisFieldCall);else if(b=Da(a),null===b||"undefined"===typeof b)b=
|
46 |
+
jQuery(a.thisFieldCall);if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Da(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}function Ga(a,b){var c;c=!1;if("hidden"==b.type)""!==ba(b)&&(c=!0);else if("select"==a.type){var d=b.className;d&&-1<d.indexOf("frm_other_trigger")&&(c=!0)}else("checkbox"==a.type||"radio"==
|
47 |
+
a.type)&&-1<b.id.indexOf("-other_")&&0>b.id.indexOf("-otext")&&(c=!0);c?(c=0,"select"==a.type?"hidden"==b.type?(d=!1,2<b.name.split("[").length&&(d=!0),d||(c=ba(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ba(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ba(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==
|
48 |
+
a.value&&(b=a.value);return b}function Ha(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Ia(a){var b=!1,c=jQuery(a).find(".frm_next_page");if(c.length&&c.val()){var d=jQuery(a).find('input[name="form_id"]').val();a=jQuery(a).find('input[name="frm_page_order_'+d+'"]');a=a.length?a.val():0;if(!a||c.val()<a)b=!0}return b}function ga(a,b){var c=a.getAttribute("data-frmfile");if("hidden"==a.type&&null===c)return b;var d="",e="";if("checkbox"==a.type||"radio"==
|
49 |
+
a.type)c=jQuery('input[name="'+a.name+'"]').closest(".frm_required_field").find("input:checked"),jQuery(c).each(function(){d=this.value});else if("file"==a.type||c)"undefined"===typeof c&&(c=q(a,!0),c=c.replace("file","")),"undefined"===typeof b[c]&&(d=cb(c)),e=c;else{e=a.className;if(-1!==e.indexOf("frm_pos_none"))return b;d=jQuery(a).val();if("string"!==typeof d)for(var c=d,d="",f=0;f<c.length;f++)""!==c[f]&&(d=c[f]);e=-1===e.indexOf("frm_other_input")?q(a,!0):q(a,!1)}""===d&&(""===e&&(e=q(a,!0)),
|
50 |
+
e in b||(b[e]=E(a,"data-reqmsg")));return b}function cb(a){var b="";jQuery('input[name="file'+a+'"], input[name="file'+a+'[]"], input[name^="item_meta['+a+']"]').each(function(){""===b&&(b=this.value)});return b}function ha(a,b,c){var d=a.value,e=q(a,!0);if(e in b)return b;var f=0===e.indexOf("conf_");if(""!==d||f){var h=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i,g=E(a,"data-invmsg");""!==
|
51 |
+
d&&!1===h.test(d)?(b[e]=g,f&&(b[e.replace("conf_","")]="")):f&&(a=a.name.replace("conf_",""),c.filter('[name="'+a+'"]').val()!==d&&(b[e]="",b[e.replace("conf_","")]=""))}return b}function ia(a,b){var c=a.value;""!==c&&!1!==isNaN(c/1)&&(c=q(a,!0),c in b||(b[c]=E(a,"data-invmsg")));return b}function ja(a,b){var c=a.value,d=E(a,"pattern");if(""!==d&&""!==c){var e=q(a,!0);e in b||(d=new RegExp("^"+d+"$","i"),!1===d.test(c)&&(b[e]=E(a,"data-invmsg")))}return b}function E(a,b){var c=a.getAttribute(b);null===
|
52 |
+
c&&(c="");return c}function db(a,b){jQuery(a).find('input[type="submit"], input[type="button"]').attr("disabled","disabled");"undefined"==typeof b&&jQuery(a).find('input[name="frm_action"]').val();jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:jQuery(a).serialize()+"&action=frm_entries_"+b+"&nonce="+frm_js.nonce,success:function(b){var d={content:"",errors:{},pass:!1};null===b&&(b=d);b=b.replace(/^\s+|\s+$/g,"");b=0===b.indexOf("{")?jQuery.parseJSON(b):d;if("undefined"!=typeof b.redirect)window.location=
|
53 |
+
b.redirect;else if(""!==b.content){jQuery(a).find(".frm_ajax_loading").removeClass("frm_loading_now");var e=jQuery(a).find('input[name="form_id"]').val();jQuery(a).closest("#frm_form_"+e+"_container").replaceWith(b.content);frmFrontForm.scrollMsg(e);"function"==typeof frmThemeOverride_frmAfterSubmit&&(e=jQuery('input[name="frm_page_order_'+e+'"]').val(),d=jQuery(b.content).find('input[name="form_id"]').val(),frmThemeOverride_frmAfterSubmit(d,e,b.content,a));e=jQuery(a).find('input[name="id"]');e.length&&
|
54 |
+
jQuery(document.getElementById("frm_edit_"+e.val())).find("a").addClass("frm_ajax_edited").click();jQuery(b.content).find(".frm_message").length&&ca("pageLoad");da()}else if(Object.keys(b.errors).length){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");jQuery(a).find(".frm_ajax_loading").removeClass("frm_loading_now");d=!0;Ja();var f=!1,h;for(e in b.errors)if(h=jQuery(a).find("#frm_field_"+e+"_container"),h.length){if(!h.is(":visible")){var g=h.closest(".frm_toggle_container");
|
55 |
+
g.length&&(g=g.prev(),g.hasClass("frm_trigger")||(g=g.prev(".frm_trigger")),g.click())}h.is(":visible")&&(M(h,e,b.errors),d=!1,h=jQuery(a).find("#frm_field_"+e+"_container .frm-g-recaptcha, #frm_field_"+e+"_container .g-recaptcha"),h.length&&(f=!0,h=h.data("rid"),jQuery().grecaptcha&&(h?grecaptcha.reset(h):grecaptcha.reset())))}Ka(a);!0!==f&&La(a,!1);d?a.submit():jQuery(a).prepend(b.error_message)}else eb(a),La(a,!0),a.submit()},error:function(){jQuery(a).find('input[type="submit"], input[type="button"]').removeAttr("disabled");
|
56 |
+
a.submit()}})}function M(a,b,c){a.length&&a.is(":visible")&&(a.addClass("frm_blank_field"),"function"==typeof frmThemeOverride_frmPlaceError?frmThemeOverride_frmPlaceError(b,c):a.append('<div class="frm_error">'+c[b]+"</div>"))}function Ja(){jQuery(".form-field").removeClass("frm_blank_field");jQuery(".form-field .frm_error").replaceWith("");jQuery(".frm_error_style").remove()}function Ka(a){var b=jQuery(a).find(".frm_blank_field:first");b.length&&frmFrontForm.scrollMsg(b,a,!0)}function eb(a){var b=
|
57 |
+
document.getElementById("frm_loading");null!==b&&(a=jQuery(a).find("input[type=file]").val(),"undefined"!=typeof a&&""!==a&&setTimeout(function(){jQuery(b).fadeIn("slow")},2E3))}function La(a,b){var c=jQuery(a).find(".frm-g-recaptcha, .g-recaptcha");c.length&&(!b||1>jQuery(a).find(".frm_next_page").length||1>jQuery(a).find(".frm_next_page").val())&&c.closest(".frm_form_field").replaceWith('<input type="hidden" name="recaptcha_checked" value="'+frm_js.nonce+'">')}function fb(){Ma(jQuery(this),"clear")}
|
58 |
+
function gb(){Ma(jQuery(this),"replace")}function Ma(a,b){var c=a.data("frmval").replace(/(\n|\r\n)/g,"\r");if(""===c||"undefined"==typeof c)return!1;var d=a.val().replace(/(\n|\r\n)/g,"\r");"replace"==b?""===d&&a.addClass("frm_default").val(c):d==c&&a.removeClass("frm_default").val("")}function hb(){var a=jQuery(this),b=a.data("eid"),c=a.data("fid");a.append('<span class="spinner" style="display:inline"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_send_email",
|
59 |
+
entry_id:b,form_id:c,nonce:frm_js.nonce},success:function(b){a.replaceWith(b)}});return!1}function ib(a,b){google.load("visualization","1.0",{packages:[b],callback:function(){var b=new google.visualization.DataTable,d=!1;-1!==jQuery.inArray("id",a.options.fields)&&(d=!0,b.addColumn("number",frm_js.id));for(var e=a.fields.length,f,h=0,g=e;h<g;h++){var k=a.fields[h];f=Na(k);b.addColumn(f,k.name)}h=!1;a.options.edit_link&&(h=!0,b.addColumn("string",a.options.edit_link));g=!1;a.options.delete_link&&(g=
|
60 |
+
!0,b.addColumn("string",a.options.delete_link));if(null!==a.entries){var m=a.entries.length;b.addRows(m);for(var l=0,n=0;n<m;n++){var k=0,p=a.entries[n];d&&(b.setCell(l,k,p.id),k++);for(var q=0,r=e;q<r;q++){var t=a.fields[q];f=Na(t);t=p.metas[t.id];"number"!=f||null!==t&&""!==t?"boolean"==f&&(t=null===t||"false"==t||!1===t?!1:!0):t=0;b.setCell(l,k,t);k++}h&&("undefined"!==typeof p.editLink?b.setCell(l,k,'<a href="'+p.editLink+'">'+a.options.edit_link+"</a>"):b.setCell(l,k,""),k++);g&&("undefined"!==
|
61 |
+
typeof p.deleteLink?b.setCell(l,k,'<a href="'+p.deleteLink+'" class="frm_delete_link" data-frmconfirm="'+a.options.confirm+'">'+a.options.delete_link+"</a>"):b.setCell(l,k,""));l++}}else for(b.addRows(1),h=k=0,g=e;h<g;h++)0<k?b.setCell(0,k,""):b.setCell(0,k,a.options.no_entries),k++;(new google.visualization.Table(document.getElementById("frm_google_table_"+a.options.form_id))).draw(b,a.graphOpts)}})}function jb(a){google.load("visualization","1.0",{packages:[a["package"]],callback:function(){var b;
|
62 |
+
new google.visualization.DataTable;b=google.visualization.arrayToDataTable(a.data);var c=document.getElementById("chart_"+a.graph_id);if(null!==c){var d=a.type.charAt(0).toUpperCase()+a.type.slice(1);"Histogram"!==d&&"Table"!==d&&(d+="Chart");(new google.visualization[d](c)).draw(b,a.options)}}})}function Na(a){var b="string";if("number"==a.type)b="number";else if("checkbox"==a.type||"select"==a.type){var c=a.options.length;"select"==a.type&&""===a.options[0]&&(c="post_status"==a.field_options.post_field?
|
63 |
+
3:c-1);1==c&&(b="boolean")}return b}function kb(){var a="frm_section_"+jQuery(this).data("parent")+"-"+jQuery(this).data("key"),b=jQuery(document.getElementById(a)),c=b.find("input, select, textarea");b.fadeOut("slow",function(){b.remove();c.each(function(){if("file"!=this.type){var a=q(this,!1);L(a,jQuery(this))}});"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(a,b)});return!1}function lb(){if(!0===K)return!1;K=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+
|
64 |
+
a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var e=c.html,f=jQuery(e).hide().fadeIn("slow");jQuery(".frm_repeat_"+a+":last").after(f);var h=["other"],g,k,m={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(e).find("input, select, textarea").each(function(){if("file"!=
|
65 |
+
this.type){if(""===this.name)return!0;g=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(g,h)&&!1!==this.id&&""!==this.id&&(k=jQuery("#"+this.id),h.push(g),H(g,m),Z(g,m,"value changed"),ea(g,k),fa(g,k,"value changed"),L(g,k))}});v(m.repeatRow);Oa();aa();"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(a,c);K=!1},error:function(){K=!1}});return!1}function mb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("pageid"),e=
|
66 |
+
a.data("formid"),f=a.data("cancel"),h=a.data("fields"),g=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),m=k.html();k.html('<span class="frm-loading-img" id="'+c+b+'"></span><div class="frm_orig_content" style="display:none">'+m+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:d,entry_id:b,id:e,nonce:frm_js.nonce,fields:h,exclude_fields:g},success:function(b){k.children(".frm-loading-img").replaceWith(b);a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");
|
67 |
+
a.html(f);ca("editInPlace");jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',F);da()}});return!1}function nb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("edit");a.hasClass("frm_ajax_edited")||(b=jQuery(document.getElementById(c+b)),b.children(".frm_forms").replaceWith(""),b.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content"));a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");
|
68 |
+
a.html(d);return!1}function ob(){var a=jQuery(this),b=a.data("deleteconfirm");if(confirm(b)){var c=a.data("entryid"),d=a.data("prefix");a.replaceWith('<span class="frm-loading-img" id="frm_delete_'+c+'"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:c,nonce:frm_js.nonce},success:function(a){"success"==a.replace(/^\s+|\s+$/g,"")?(jQuery(document.getElementById(d+c)).fadeOut("slow"),jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")):jQuery(document.getElementById("frm_delete_"+
|
69 |
+
c)).replaceWith(a)}})}return!1}function da(){"undefined"!==typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",r);if("undefined"!==typeof __frmUniqueTimes)for(var a=__frmUniqueTimes,b=0;b<a.length;b++)jQuery(document.getElementById(a[b].dateID)).change(p);if("undefined"!==typeof __frmMasks)for(a=__frmMasks,b=0;b<a.length;b++)jQuery(a[b].trigger).attr("data-frmmask",a[b].mask);Oa();aa();"undefined"!==typeof __frmDepDynamicFields&&frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);
|
70 |
+
"undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==typeof __FRMCALC){(a=__FRMCALC.triggers)&&jQuery(a.join()).trigger({type:"change",selfTriggered:!0});var a=__FRMCALC.calc,b=[],c;for(c in a)if(1>a[c].fields.length){var d=document.getElementById("field_"+c);null===d||T(d,a[c].form_id)||X(__FRMCALC,c,b)}}v()}function aa(){if(jQuery().chosen){var a={allow_single_deselect:!0};"undefined"!==typeof __frmChosen&&(a="{"+__frmChosen+"}");
|
71 |
+
jQuery(".frm_chzn").chosen(a)}}function Oa(){if(jQuery().rating){var a=jQuery(".star");a.length&&a.rating()}}function ca(a){"undefined"!==typeof __frmHideOrShowFields&&frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a)}function u(a,b){"undefined"===typeof b&&(b="dependent");1<a.length&&(a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}function G(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&3<=a.split("][").length&&(a=a.split("]["),b.repeatingSection=
|
72 |
+
a[0].replace("item_meta[",""),b.repeatRow=a[1]);return b}function Pa(a){a.fadeOut("slow",function(){a.remove()})}function pb(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function qb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function Za(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Ea(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function rb(){Array.prototype.indexOf||
|
73 |
+
(Array.prototype.indexOf=function(a,b){var c=this.length>>>0,d=Number(b)||0,d=0>d?Math.ceil(d):Math.floor(d);for(0>d&&(d+=c);d<c;d++)if(d in this&&this[d]===a)return d;return-1})}function sb(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function tb(){Array.prototype.filter||(Array.prototype.filter=function(a,b){if(void 0===this||null===this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!==typeof a)throw new TypeError;
|
74 |
+
for(var e=[],f=0;f<d;f++)if(f in c){var h=c[f];a.call(b,h,f,c)&&e.push(h)}return e})}function ub(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var K=!1,C="",x=[];return{init:function(){jQuery(document).off("submit.formidable",".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(document).on("click",".frm_trigger",n);var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();
|
75 |
+
jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",".frm_toggle_default",fb);jQuery(document).on("blur",".frm_toggle_default",gb);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(hb);jQuery(document).on("click",".frm_remove_link",w);
|
76 |
+
jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())});jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',F);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm-show-form .frm_save_draft',l);jQuery(document).on("change",'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',
|
77 |
+
A);jQuery(document).on("click",".frm_remove_form_row",kb);jQuery(document).on("click",".frm_add_form_row",lb);jQuery(document).on("click","a[data-frmconfirm]",pb);jQuery("a[data-frmtoggle]").click(qb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",mb);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",nb);jQuery(document).on("click",".frm_ajax_delete",ob);jQuery(".frm_month_heading, .frm_year_heading").click(function(){var a=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");
|
78 |
+
a.hasClass("ui-icon-triangle-1-e")?(a.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ca("pageLoad");da();rb();sb();tb();ub()},submitForm:function(a){frmFrontForm.submitFormManual(a,this)},submitFormManual:function(a,b){var c=b.className.trim().split(/\s+/gi);if((!c||-1<c.indexOf("frm_pro_form"))&&
|
79 |
+
!jQuery("body").hasClass("wp-admin")){a.preventDefault();var d=frmFrontForm.validateFormSubmit(b);0===Object.keys(d).length&&(jQuery(b).find(".frm_ajax_loading").addClass("frm_loading_now"),-1<c.indexOf("frm_ajax_submit")?1>jQuery(b).find('input[type="file"]').length?(C=jQuery(b).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(b,C)):b.submit():b.submit())}},validateFormSubmit:function(a){"undefined"!=typeof tinyMCE&&jQuery(this).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();
|
80 |
+
x=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Ha(a)||Ia(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(x).length&&frmFrontForm.addAjaxFormErrors(a));return x},getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");if(c.length)for(var d=0,e=c.length;d<e;d++)b=ga(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");
|
81 |
+
if(d.length)for(var e=0,f=d.length;e<f;e++){var h=d[e];""!==h.value&&"hidden"!=h.type&&("number"==h.type?b=ia(h,b):"email"==h.type?b=ha(h,b,c):null!==h.pattern&&(b=ja(h,b)))}c=jQuery(a).find(".frm-g-recaptcha");c.length&&(d=c.data("rid"),0===grecaptcha.getResponse(d).length&&(c=c.closest(".frm_form_field").attr("id").replace("frm_field_","").replace("_container",""),b[c]=""));x=b;if("function"==typeof frmThemeOverride_jsErrors&&(C=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(C,
|
82 |
+
a),Object.keys(a).length))for(var g in a)x[g]=a[g];return x},addAjaxFormErrors:function(a){Ja();for(var b in x){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?M(c,b,x):delete x[b]}Ka(a)},checkFormErrors:function(a,b){db(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if(a=("undefined"==typeof b?jQuery(document.getElementById("frm_form_"+a+"_container")):"string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):
|
83 |
+
a).offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");if(b||d)a=a-parseInt(b)-parseInt(d);if(a&&window.innerHeight&&(b=document.documentElement.scrollTop||document.body.scrollTop,a>b+window.innerHeight||a<b))return"undefined"===typeof c?jQuery(window).scrollTop(a):jQuery("html,body").animate({scrollTop:a},500),!1}},savingDraft:function(a){return Ha(a)},goingToPreviousPage:function(a){return Ia(a)},hideOrShowFields:function(a,b){if("pageLoad"===
|
84 |
+
b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');Y(c)}for(var c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)H(a[d],c)},hidePreviouslyHiddenFields:function(){var a;a=[];for(var b=document.querySelectorAll('*[id^="frm_hide_fields_"]'),c=b.length,d,e=0;e<c;e++)d=b[e].id.replace("frm_hide_fields_",""),a=a.concat(D(d));b=0;for(c=a.length;b<c;b++)d=document.getElementById(a[b]),null!==d&&(d.style.display="none")},checkDependentDynamicFields:function(a){for(var b={repeatingSection:"",
|
85 |
+
repeatRow:""},c=0,d=a.length;c<d;c++)H(a[c],b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)b=a[d],Z(b,c,"value changed")},loadGoogle:function(){if("undefined"!==typeof google&&google&&google.load)for(var a=__FRMTABLES,b=Object.keys(a),c=0;c<b.length;c++)if("graphs"===b[c])for(var d=a[b[c]],e=0,f=d.length;e<f;e++)jb(d[e]);else for(d=a[b[c]],e=b[c],f=0;f<d.length;f++)ib(d[f],e);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(a,
|
86 |
+
b){var c=jQuery(a).parents("form:first").find('input[name="id"]');jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"json",data:{action:"frm_fields_ajax_time_options",time_field:b,date_field:a.id,entry_id:c?c.val():"",date:jQuery(a).val(),nonce:frm_js.nonce},success:function(a){var c=jQuery(document.getElementById(b));c.find("option").removeAttr("disabled");if(a&&""!==a)for(var f in a)c.find('option[value="'+f+'"]').attr("disabled","disabled")}})},escapeHtml:function(a){return a.replace(/&/g,
|
87 |
+
"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},invisible:function(a){jQuery(a).css("visibility","hidden")},visible:function(a){jQuery(a).css("visibility","visible")}}}var frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(l){frmFrontForm.init()});
|
88 |
+
function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),n=0,p=l.length;n<p;n++){var r=grecaptcha.render(l[n].id,{sitekey:l[n].getAttribute("data-sitekey"),size:l[n].getAttribute("data-size"),theme:l[n].getAttribute("data-theme")});l[n].setAttribute("data-rid",r)}}
|
89 |
function frmUpdateField(l,n,p,r,v){jQuery(document.getElementById("frm_update_field_"+l+"_"+n)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:l,field_id:n,value:p,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+v)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+n+"_"+v)).replaceWith(r)}})}
|
90 |
function frmEditEntry(l,n,p,r,v,z){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var y=jQuery(document.getElementById("frm_edit_"+l)),w=y.html(),A=jQuery(document.getElementById(n+l)),F=A.html();A.html('<span class="frm-loading-img" id="'+n+l+'"></span><div class="frm_orig_content" style="display:none">'+F+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:p,entry_id:l,id:r,nonce:frm_js.nonce},
|
91 |
success:function(q){A.children(".frm-loading-img").replaceWith(q);y.replaceWith('<span id="frm_edit_'+l+'"><a onclick="frmCancelEdit('+l+",'"+n+"','"+frmFrontForm.escapeHtml(w)+"',"+p+","+r+",'"+z+'\')" class="'+z+'">'+v+"</a></span>")}})}
|
js/formidable_admin.js
CHANGED
@@ -859,9 +859,14 @@ function frmAdminBuildJS(){
|
|
859 |
}
|
860 |
|
861 |
// Do not stop propagation if opening TB_iframe
|
862 |
-
|
863 |
-
|
864 |
-
|
|
|
|
|
|
|
|
|
|
|
865 |
|
866 |
clickAction(this);
|
867 |
if(!jQuery(e.target).is('.inplace_field, .frm_ipe_field_label, .frm_ipe_field_desc, .frm_ipe_field_conf_desc, .frm_ipe_field_option, .frm_ipe_field_option_key')){
|
@@ -1773,6 +1778,31 @@ function frmAdminBuildJS(){
|
|
1773 |
function collapseAllSections(){
|
1774 |
jQuery('.control-section.accordion-section.open').removeClass('open');
|
1775 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1776 |
|
1777 |
/* Global settings page */
|
1778 |
function uninstallNow(){
|
@@ -2446,6 +2476,10 @@ function frmAdminBuildJS(){
|
|
2446 |
styleInit: function(){
|
2447 |
collapseAllSections();
|
2448 |
|
|
|
|
|
|
|
|
|
2449 |
// update styling on change
|
2450 |
jQuery('#frm_styling_form .styling_settings').change(function(){
|
2451 |
var locStr = jQuery('input[name^="frm_style_setting[post_content]"], select[name^="frm_style_setting[post_content]"], textarea[name^="frm_style_setting[post_content]"], input[name="style_name"]').serialize();
|
859 |
}
|
860 |
|
861 |
// Do not stop propagation if opening TB_iframe
|
862 |
+
if ( e.target.className.indexOf('thickbox') == -1 ) {
|
863 |
+
e.stopPropagation();
|
864 |
+
var isButton = e.target.closest('.frm-btn-group');
|
865 |
+
if ( isButton !== null ) {
|
866 |
+
// allow bootstrap dropdown to open
|
867 |
+
jQuery(isButton).find('[data-toggle=dropdown]').dropdown('toggle');
|
868 |
+
}
|
869 |
+
}
|
870 |
|
871 |
clickAction(this);
|
872 |
if(!jQuery(e.target).is('.inplace_field, .frm_ipe_field_label, .frm_ipe_field_desc, .frm_ipe_field_conf_desc, .frm_ipe_field_option, .frm_ipe_field_option_key')){
|
1778 |
function collapseAllSections(){
|
1779 |
jQuery('.control-section.accordion-section.open').removeClass('open');
|
1780 |
}
|
1781 |
+
|
1782 |
+
function textSquishCheck(){
|
1783 |
+
var size = document.getElementById('frm_field_font_size').value.replace(/\D/g, '');
|
1784 |
+
var height = document.getElementById('frm_field_height').value.replace(/\D/g, '');
|
1785 |
+
var paddingEntered = document.getElementById('frm_field_pad').value.split(' ');
|
1786 |
+
var paddingCount = paddingEntered.length;
|
1787 |
+
|
1788 |
+
// If too many or too few padding entries, leave now
|
1789 |
+
if ( paddingCount === 0 || paddingCount > 4 ) {
|
1790 |
+
return;
|
1791 |
+
}
|
1792 |
+
|
1793 |
+
// Get the top and bottom padding from entered values
|
1794 |
+
var paddingTop = paddingEntered[0].replace(/\D/g, '');
|
1795 |
+
var paddingBottom = paddingTop;
|
1796 |
+
if ( paddingCount >= 3 ) {
|
1797 |
+
paddingBottom = paddingEntered[2].replace(/\D/g, '');
|
1798 |
+
}
|
1799 |
+
|
1800 |
+
// Check if there is enough space for text
|
1801 |
+
var textSpace = height - size - paddingTop - paddingBottom - 3;
|
1802 |
+
if ( textSpace < 0 ) {
|
1803 |
+
alert( frm_admin_js.css_invalid_size );
|
1804 |
+
}
|
1805 |
+
}
|
1806 |
|
1807 |
/* Global settings page */
|
1808 |
function uninstallNow(){
|
2476 |
styleInit: function(){
|
2477 |
collapseAllSections();
|
2478 |
|
2479 |
+
document.getElementById("frm_field_height").addEventListener("blur", textSquishCheck);
|
2480 |
+
document.getElementById("frm_field_font_size").addEventListener("blur", textSquishCheck);
|
2481 |
+
document.getElementById("frm_field_pad").addEventListener("blur", textSquishCheck);
|
2482 |
+
|
2483 |
// update styling on change
|
2484 |
jQuery('#frm_styling_form .styling_settings').change(function(){
|
2485 |
var locStr = jQuery('input[name^="frm_style_setting[post_content]"], select[name^="frm_style_setting[post_content]"], textarea[name^="frm_style_setting[post_content]"], input[name="style_name"]').serialize();
|
js/formidable_admin_global.js
CHANGED
@@ -125,19 +125,20 @@ function frmAdminPopupJS(){
|
|
125 |
}
|
126 |
|
127 |
function getFieldSelection(){
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
141 |
|
142 |
function toggleMenu(){
|
143 |
jQuery(document.getElementById('frm_popup_content')).find( '.media-menu' ).toggleClass( 'visible' );
|
125 |
}
|
126 |
|
127 |
function getFieldSelection(){
|
128 |
+
var form_id = this.value;
|
129 |
+
if(form_id){
|
130 |
+
var thisId = this.id;
|
131 |
+
jQuery.ajax({
|
132 |
+
type:'POST',url:ajaxurl,
|
133 |
+
data:{action:'frm_get_field_selection',field_id:0,form_id:form_id,nonce:frmGlobal.nonce},
|
134 |
+
success:function(msg){
|
135 |
+
var baseId = thisId.replace( '_form', '' );
|
136 |
+
msg = msg.replace('name="field_options[form_select_0]"', 'id="frmsc_' + baseId + '_fields"');
|
137 |
+
jQuery(document.getElementById(baseId+'_fields_container')).html(msg);
|
138 |
+
}
|
139 |
+
});
|
140 |
+
}
|
141 |
+
}
|
142 |
|
143 |
function toggleMenu(){
|
144 |
jQuery(document.getElementById('frm_popup_content')).find( '.media-menu' ).toggleClass( 'visible' );
|
languages/formidable-da_DK.mo
CHANGED
Binary file
|
languages/formidable-da_DK.po
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Formidable v2.02.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2010-12-20\n"
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: \n"
|
9 |
"Language: Danish\n"
|
10 |
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
@@ -56,15 +56,22 @@ msgstr ""
|
|
56 |
msgid "Plugin Licenses"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../classes/controllers/FrmXMLController.php:
|
60 |
msgid "There are no entries for that form."
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
msgid "Private"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
68 |
msgid "No new licenses were found"
|
69 |
msgstr ""
|
70 |
|
@@ -547,6 +554,10 @@ msgstr ""
|
|
547 |
msgid "Easily change which template your forms are using by making changes below."
|
548 |
msgstr ""
|
549 |
|
|
|
|
|
|
|
|
|
550 |
#: ../pro/classes/controllers/FrmProAddressesController.php:140
|
551 |
msgid "Line 1"
|
552 |
msgstr ""
|
@@ -555,7 +566,8 @@ msgstr ""
|
|
555 |
msgid "Line 2"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: ../pro/classes/controllers/FrmProAddressesController.php:142
|
|
|
559 |
msgid "Country"
|
560 |
msgstr ""
|
561 |
|
@@ -598,23 +610,23 @@ msgid ""
|
|
598 |
"page%3$s."
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: ../pro/classes/controllers/FrmProEntriesController.php:
|
602 |
msgid ""
|
603 |
"There are no matching fields. Please check your formresults shortcode to "
|
604 |
"make sure you are using the correct form and field IDs."
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: ../pro/classes/controllers/FrmProFieldsController.php:
|
608 |
#: pro/classes/views/frmpro-fields/options-form-before.php:31
|
609 |
msgid "Select a taxonomy on the Form Actions tab of the Form Settings page"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: ../pro/classes/controllers/FrmProFieldsController.php:
|
613 |
-
#: pro/classes/controllers/FrmProFieldsController.php:
|
614 |
msgid "Show form uploads"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: ../pro/classes/controllers/FrmProFieldsController.php:
|
618 |
msgid "Hide form uploads"
|
619 |
msgstr ""
|
620 |
|
@@ -622,10 +634,84 @@ msgstr ""
|
|
622 |
msgid "User Role"
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: ../pro/classes/controllers/FrmProFormsController.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
626 |
msgid "Draft status"
|
627 |
msgstr ""
|
628 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
629 |
#: ../pro/classes/controllers/FrmProLookupFieldsController.php:153
|
630 |
msgid "Search values from"
|
631 |
msgstr ""
|
@@ -638,7 +724,7 @@ msgstr ""
|
|
638 |
msgid "No options available: please check this field's options"
|
639 |
msgstr ""
|
640 |
|
641 |
-
#: ../pro/classes/models/FrmProAddress.php:
|
642 |
msgid "This value is invalid"
|
643 |
msgstr ""
|
644 |
|
@@ -755,14 +841,6 @@ msgstr ""
|
|
755 |
msgid "Entry status"
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: ../pro/classes/views/frmpro-fields/options-form-before.php:6
|
759 |
-
msgid "Load Options From"
|
760 |
-
msgstr ""
|
761 |
-
|
762 |
-
#: ../pro/classes/views/frmpro-fields/options-form-before.php:9
|
763 |
-
msgid "Form Entries"
|
764 |
-
msgstr ""
|
765 |
-
|
766 |
#: ../pro/classes/views/frmpro-fields/back-end/autopopulate-values.php:2
|
767 |
msgid "Lookup value"
|
768 |
msgstr ""
|
@@ -856,10 +934,22 @@ msgstr ""
|
|
856 |
msgid "number of files"
|
857 |
msgstr ""
|
858 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
859 |
#: ../pro/classes/views/frmpro-form-actions/post_options.php:137
|
860 |
msgid "Date of entry submission"
|
861 |
msgstr ""
|
862 |
|
|
|
|
|
|
|
|
|
863 |
#: ../pro/classes/views/frmpro-forms/add_form_ajax_options.php:11
|
864 |
msgid "Validate this form with javascript"
|
865 |
msgstr ""
|
@@ -972,7 +1062,7 @@ msgstr "Opsætning"
|
|
972 |
#: classes/controllers/FrmEntriesController.php:8 ..
|
973 |
#: classes/controllers/FrmEntriesController.php:120 ..
|
974 |
#: classes/controllers/FrmFormsController.php:537 ..
|
975 |
-
#: classes/controllers/FrmXMLController.php:
|
976 |
#: 267 ../classes/views/frm-entries/list.php:2 ../pro/classes/views/frmpro-
|
977 |
#: fields/back-end/dynamic-field.php:14 ../pro/classes/views/frmpro-
|
978 |
#: statistics/show.php:66
|
@@ -1014,7 +1104,7 @@ msgstr "Support"
|
|
1014 |
#: ../classes/controllers/FrmEntriesController.php:72 ..
|
1015 |
#: classes/controllers/FrmFormsController.php:705 ../classes/views/frm-
|
1016 |
#: entries/form.php:44 ../classes/views/frm-entries/sidebar-shared.php:29 ..
|
1017 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1018 |
#: pro/classes/views/xml/map_csv_fields.php:57 ..
|
1019 |
#: pro/classes/views/xml/map_csv_fields.php:57
|
1020 |
msgid "Entry Key"
|
@@ -1023,7 +1113,7 @@ msgstr "Post Id"
|
|
1023 |
#: ../classes/controllers/FrmEntriesController.php:112 ..
|
1024 |
#: pro/classes/helpers/FrmProEntriesListHelper.php:57 ..
|
1025 |
#: pro/classes/helpers/FrmProEntriesListHelper.php:68 ..
|
1026 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1027 |
#: pro/classes/views/displays/_calendar_options.php:4 ..
|
1028 |
#: pro/classes/views/displays/_calendar_options.php:16 ..
|
1029 |
#: pro/classes/views/displays/order_row.php:4 ..
|
@@ -1032,7 +1122,7 @@ msgid "Entry creation date"
|
|
1032 |
msgstr "Oprettet dato"
|
1033 |
|
1034 |
#: ../classes/controllers/FrmEntriesController.php:113 ..
|
1035 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1036 |
#: pro/classes/views/displays/_calendar_options.php:5 ..
|
1037 |
#: pro/classes/views/displays/_calendar_options.php:17 ..
|
1038 |
#: pro/classes/views/displays/order_row.php:5
|
@@ -1074,7 +1164,7 @@ msgid "Option"
|
|
1074 |
msgstr "Egenskab"
|
1075 |
|
1076 |
#: ../classes/controllers/FrmFieldsController.php:316 ..
|
1077 |
-
#: classes/helpers/FrmAppHelper.php:
|
1078 |
#: option.php:6 ../classes/views/frm-fields/single-option.php:8 ..
|
1079 |
#: pro/classes/views/frmpro-fields/other-option.php:10
|
1080 |
msgid "(Blank)"
|
@@ -1087,7 +1177,7 @@ msgstr "Formular handlinger"
|
|
1087 |
|
1088 |
#: ../classes/controllers/FrmFormsController.php:6 ..
|
1089 |
#: classes/controllers/FrmFormsController.php:544 ..
|
1090 |
-
#: classes/controllers/FrmXMLController.php:
|
1091 |
#: 245 ../classes/models/FrmSettings.php:79 ../classes/views/frm-forms/list.php:4
|
1092 |
msgid "Forms"
|
1093 |
msgstr "Formularer"
|
@@ -1174,8 +1264,8 @@ msgstr "Type"
|
|
1174 |
#: classes/controllers/FrmFormsController.php:538 ..
|
1175 |
#: classes/helpers/FrmCSVExportHelper.php:117 ..
|
1176 |
#: pro/classes/controllers/FrmProDisplaysController.php:142 ..
|
1177 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1178 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1179 |
#: pro/classes/views/displays/mb_advanced.php:98
|
1180 |
msgid "Key"
|
1181 |
msgstr "Key"
|
@@ -1243,9 +1333,9 @@ msgstr "Tilføj ikke automatisk paragraphs tags eller linje skift"
|
|
1243 |
|
1244 |
#: ../classes/controllers/FrmFormsController.php:704 ../classes/views/frm-
|
1245 |
#: entries/sidebar-shared.php:23 ../pro/classes/controllers/FrmProFormsController.
|
1246 |
-
#: php:
|
1247 |
#: pro/classes/helpers/FrmProEntriesListHelper.php:69 ..
|
1248 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1249 |
#: pro/classes/views/displays/order_row.php:3 ..
|
1250 |
#: pro/classes/views/displays/where_row.php:6 ..
|
1251 |
#: pro/classes/views/xml/map_csv_fields.php:56 ..
|
@@ -1255,14 +1345,14 @@ msgstr "Post Id"
|
|
1255 |
|
1256 |
#: ../classes/controllers/FrmFormsController.php:706 ..
|
1257 |
#: pro/classes/controllers/FrmProFormsController.php:64 ..
|
1258 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1259 |
#: pro/classes/views/displays/where_row.php:8 ..
|
1260 |
#: pro/classes/views/xml/map_csv_fields.php:49
|
1261 |
msgid "Post ID"
|
1262 |
msgstr "Indlægs ID"
|
1263 |
|
1264 |
#: ../classes/controllers/FrmFormsController.php:707 ..
|
1265 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1266 |
msgid "User IP"
|
1267 |
msgstr "Bruger IP"
|
1268 |
|
@@ -1275,12 +1365,12 @@ msgid "Entry updated"
|
|
1275 |
msgstr "Posten opdateret"
|
1276 |
|
1277 |
#: ../classes/controllers/FrmFormsController.php:711 ..
|
1278 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1279 |
msgid "Site URL"
|
1280 |
msgstr "Website URL"
|
1281 |
|
1282 |
#: ../classes/controllers/FrmFormsController.php:712 ..
|
1283 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1284 |
msgid "Site Name"
|
1285 |
msgstr "Wibsite navn"
|
1286 |
|
@@ -1333,7 +1423,7 @@ msgstr "Rediger formularer"
|
|
1333 |
#: php:24 ../classes/views/shared/form-nav.php:20 ../classes/views/styles/manage.
|
1334 |
#: php:31 ../classes/views/xml/import_form.php:85 ..
|
1335 |
#: pro/classes/controllers/FrmProDisplaysController.php:101 ..
|
1336 |
-
#: pro/classes/controllers/FrmProFormsController.php:
|
1337 |
#: pro/classes/views/xml/csv_opts.php:13
|
1338 |
msgid "(no title)"
|
1339 |
msgstr "(Uden titel)"
|
@@ -1376,12 +1466,12 @@ msgstr "Style"
|
|
1376 |
#: classes/helpers/FrmFormsListHelper.php:306 ../classes/views/frm-
|
1377 |
#: entries/sidebar-shared.php:12 ../classes/views/frm-forms/_publish_box.php:67 ..
|
1378 |
#: pro/classes/controllers/FrmProDisplaysController.php:38 ..
|
1379 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
1380 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
1381 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
1382 |
#: pro/classes/helpers/FrmProAppHelper.php:210 ..
|
1383 |
#: pro/classes/helpers/FrmProEntriesHelper.php:256 ..
|
1384 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1385 |
msgid "Edit"
|
1386 |
msgstr "Rediger"
|
1387 |
|
@@ -1462,143 +1552,143 @@ msgstr "Klik for til/fra"
|
|
1462 |
msgid "Import/Export"
|
1463 |
msgstr "Importer/Eksporter"
|
1464 |
|
1465 |
-
#: ../classes/controllers/FrmXMLController.php:
|
1466 |
msgid "Oops, you didn't select a file."
|
1467 |
msgstr "Hovsa, du valgte ikke en fil."
|
1468 |
|
1469 |
-
#: ../classes/controllers/FrmXMLController.php:
|
1470 |
msgid "The file does not exist, please try again."
|
1471 |
msgstr "Filen findes ikke, prøv venligst igen."
|
1472 |
|
1473 |
-
#: ../classes/controllers/FrmXMLController.php:
|
1474 |
msgid "XML import is not enabled on your server."
|
1475 |
msgstr "XML import er ikke aktiv på din server."
|
1476 |
|
1477 |
-
#: ../classes/controllers/FrmXMLController.php:
|
1478 |
msgid "Please select a form"
|
1479 |
msgstr "Vælg venligst en formular"
|
1480 |
|
1481 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1482 |
msgid "View Forms and Templates"
|
1483 |
msgstr "Se formularer og skabeloner"
|
1484 |
|
1485 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1486 |
msgid "Add/Edit Forms and Templates"
|
1487 |
msgstr "Opret/Ret formularer og skabeloner"
|
1488 |
|
1489 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1490 |
msgid "Delete Forms and Templates"
|
1491 |
msgstr "Slet formularer og skabeloner"
|
1492 |
|
1493 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1494 |
msgid "Access this Settings Page"
|
1495 |
msgstr "Adgang til denne opsætnings side"
|
1496 |
|
1497 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1498 |
msgid "View Entries from Admin Area"
|
1499 |
msgstr "Se poster fra Admin siden"
|
1500 |
|
1501 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1502 |
msgid "Delete Entries from Admin Area"
|
1503 |
msgstr "Slet poster fra Admin siden"
|
1504 |
|
1505 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1506 |
msgid "Add Entries from Admin Area"
|
1507 |
msgstr "Opret poster fra Admin siden"
|
1508 |
|
1509 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1510 |
msgid "Edit Entries from Admin Area"
|
1511 |
msgstr "Ret poster fra Admin siden"
|
1512 |
|
1513 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1514 |
msgid "View Reports"
|
1515 |
msgstr "Se statistik"
|
1516 |
|
1517 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1518 |
msgid "Add/Edit Views"
|
1519 |
msgstr "Ny/Ret view"
|
1520 |
|
1521 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1522 |
-
#: php:175 ../pro/classes/controllers/FrmProFieldsController.php:
|
1523 |
#, php-format
|
1524 |
msgid "%s is invalid"
|
1525 |
msgstr "%s er ugyldig"
|
1526 |
|
1527 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1528 |
msgid "at"
|
1529 |
msgstr "kl."
|
1530 |
|
1531 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1532 |
-
#:
|
1533 |
msgid "seconds"
|
1534 |
msgstr "sekunder"
|
1535 |
|
1536 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1537 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1538 |
msgid "year"
|
1539 |
msgstr "år"
|
1540 |
|
1541 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1542 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1543 |
msgid "years"
|
1544 |
msgstr "årligt"
|
1545 |
|
1546 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1547 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1548 |
msgid "month"
|
1549 |
msgstr "måned"
|
1550 |
|
1551 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1552 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1553 |
msgid "months"
|
1554 |
msgstr "måneder"
|
1555 |
|
1556 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1557 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1558 |
msgid "week"
|
1559 |
msgstr "uge"
|
1560 |
|
1561 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1562 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1563 |
msgid "weeks"
|
1564 |
msgstr "uger"
|
1565 |
|
1566 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1567 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1568 |
msgid "day"
|
1569 |
msgstr "dag"
|
1570 |
|
1571 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1572 |
#: pro/classes/controllers/FrmProDisplaysController.php:742
|
1573 |
msgid "days"
|
1574 |
msgstr "dage"
|
1575 |
|
1576 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1577 |
msgid "hour"
|
1578 |
msgstr "time"
|
1579 |
|
1580 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1581 |
#: forms/add_form_options.php:39
|
1582 |
msgid "hours"
|
1583 |
msgstr "timer"
|
1584 |
|
1585 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1586 |
msgid "minute"
|
1587 |
msgstr "minut"
|
1588 |
|
1589 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1590 |
msgid "minutes"
|
1591 |
msgstr "minutter"
|
1592 |
|
1593 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1594 |
msgid "second"
|
1595 |
msgstr "sekund"
|
1596 |
|
1597 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1598 |
msgid "Give this action a label for easy reference."
|
1599 |
msgstr "Giv denne handling en reference label."
|
1600 |
|
1601 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1602 |
msgid ""
|
1603 |
"Add one or more recipient addresses separated by a \",\". FORMAT: Name "
|
1604 |
"<name@email.com> or name@email.com. [admin_email] is the address set in WP "
|
@@ -1608,7 +1698,7 @@ msgstr ""
|
|
1608 |
"dk> eller navn@email.dk. [admin_email] er den gennerelle side e-mail adresse "
|
1609 |
"opsat under WP opsætningen."
|
1610 |
|
1611 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1612 |
msgid ""
|
1613 |
"Add CC addresses separated by a \",\". FORMAT: Name <name@email.com> or "
|
1614 |
"name@email.com."
|
@@ -1616,7 +1706,7 @@ msgstr ""
|
|
1616 |
"Tilføje CC modtagere adskildt med \",\". FORMAT: Navn <navn@email.dk> eller "
|
1617 |
"navn@email.dk."
|
1618 |
|
1619 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1620 |
msgid ""
|
1621 |
"Add BCC addresses separated by a \",\". FORMAT: Name <name@email.com> or "
|
1622 |
"name@email.com."
|
@@ -1624,7 +1714,7 @@ msgstr ""
|
|
1624 |
"Tilføj BCC modtagere adskildt med \",\". FORMAT: Navn <navn@email.dk> eller "
|
1625 |
"navn@email.dk."
|
1626 |
|
1627 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1628 |
msgid ""
|
1629 |
"If you would like a different reply to address than the \"from\" address, add "
|
1630 |
"a single address here. FORMAT: Name <name@email.com> or name@email.com."
|
@@ -1632,7 +1722,7 @@ msgstr ""
|
|
1632 |
"Hvis du ønsker en anden svar-til adresse end \"fra\" adressen, så indtast "
|
1633 |
"adressen her. FORMAT: Navn <navn@email.dk> eller navn@email.dk"
|
1634 |
|
1635 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1636 |
msgid ""
|
1637 |
"Enter the name and/or email address of the sender. FORMAT: John Bates "
|
1638 |
"<john@example.com> or john@example.com."
|
@@ -1640,7 +1730,7 @@ msgstr ""
|
|
1640 |
"Indtast navn og/eller e-mail adressen for afsender. FORMAT: Benny Bom "
|
1641 |
"<benny@eksempel.dk> eller benny@eksempel.dk."
|
1642 |
|
1643 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1644 |
#, php-format
|
1645 |
msgid ""
|
1646 |
"If you leave the subject blank, the default will be used: %1$s Form "
|
@@ -1649,37 +1739,37 @@ msgstr ""
|
|
1649 |
"Hvis du ikke skriver et emne anvendes standarden: %1$s Formular sendt den "
|
1650 |
"%2$s"
|
1651 |
|
1652 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1653 |
-
#:
|
1654 |
msgid "Please wait while your site updates."
|
1655 |
msgstr "Vent venligst mens din side opdateres."
|
1656 |
|
1657 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1658 |
msgid "Are you sure you want to deauthorize Formidable Forms on this site?"
|
1659 |
msgstr ""
|
1660 |
"Er du sikker på at du vil fjerne godkendelsen af Formidable Pro for dette "
|
1661 |
"website?"
|
1662 |
|
1663 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1664 |
-
#:
|
1665 |
msgid "Loading…"
|
1666 |
msgstr "Henter…"
|
1667 |
|
1668 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1669 |
#: php:94 ../pro/classes/helpers/FrmProFieldsHelper.php:688 ..
|
1670 |
#: pro/classes/helpers/FrmProFormsHelper.php:331
|
1671 |
msgid "Remove"
|
1672 |
msgstr "Fjern"
|
1673 |
|
1674 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1675 |
-
#: php:116 ../pro/classes/helpers/FrmProFieldsHelper.php:
|
1676 |
-
#: pro/classes/helpers/FrmProFieldsHelper.php:
|
1677 |
#: pro/classes/views/displays/mb_advanced.php:97 ../pro/classes/views/frmpro-
|
1678 |
#: entries/table.php:5
|
1679 |
msgid "ID"
|
1680 |
msgstr "ID"
|
1681 |
|
1682 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1683 |
msgid ""
|
1684 |
"Are you sure you want to do this? Clicking OK will delete all forms, form "
|
1685 |
"data, and all other Formidable data. There is no Undo."
|
@@ -1687,85 +1777,84 @@ msgstr ""
|
|
1687 |
"Er du sikker på atdu vil gøre dette? Klikker du OK fjernes alle formularer, "
|
1688 |
"og alle data relateret til Formidable. Dette kan ikke fortrydes."
|
1689 |
|
1690 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1691 |
#: php:81 ../classes/views/frm-forms/add_field.php:94 ../classes/views/frm-
|
1692 |
#: forms/form.php:13 ../pro/classes/views/combo-fields/inplace-sub-label.php:2
|
1693 |
msgid "(Click to add description)"
|
1694 |
msgstr "(Klik for at tilføje en beskrivelse)"
|
1695 |
|
1696 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1697 |
#: php:63 ../pro/classes/views/frmpro-fields/field-selection.php:12 ..
|
1698 |
#: pro/classes/views/lookup-fields/back-end/watch-row.php:10
|
1699 |
msgid "(no label)"
|
1700 |
msgstr "(ingen label)"
|
1701 |
|
1702 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1703 |
msgid "Saving"
|
1704 |
msgstr "Gemmer"
|
1705 |
|
1706 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1707 |
msgid "Saved"
|
1708 |
msgstr "Gemt"
|
1709 |
|
1710 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1711 |
#: forms/_publish_box.php:74
|
1712 |
msgid "OK"
|
1713 |
msgstr "OK"
|
1714 |
|
1715 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1716 |
#: forms/_publish_box.php:75 ../pro/classes/controllers/FrmProEddController.php:
|
1717 |
-
#: 162 ../pro/classes/controllers/FrmProEntriesController.php:
|
1718 |
#: pro/classes/views/frmpro-entries/sidebar-new.php:14 ..
|
1719 |
#: pro/classes/views/frmpro-entries/sidebar-new.php:14 ..
|
1720 |
#: pro/classes/views/frmpro-form-actions/_custom_field_row.php:31
|
1721 |
msgid "Cancel"
|
1722 |
msgstr "Annuller"
|
1723 |
|
1724 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1725 |
#: php:271 ../classes/views/frm-forms/add_field.php:224 ../classes/views/frm-
|
1726 |
#: forms/add_field.php:253 ../classes/views/styles/_buttons.php:12 ..
|
1727 |
#: classes/views/styles/_field-colors.php:4 ..
|
1728 |
#: pro/classes/controllers/FrmProFormsController.php:420 ..
|
1729 |
-
#: pro/classes/controllers/FrmProFormsController.php:467 ..
|
1730 |
#: pro/classes/views/frmpro-forms/add_form_button_options.php:27
|
1731 |
msgid "Default"
|
1732 |
msgstr "Standard"
|
1733 |
|
1734 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1735 |
-
#: php:
|
1736 |
msgid "Clear default value when typing"
|
1737 |
msgstr "Fjern standard værdien når der tastes"
|
1738 |
|
1739 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1740 |
-
#: php:
|
1741 |
msgid "Do not clear default value when typing"
|
1742 |
msgstr "Fjern ikke standard værdien når der tastes"
|
1743 |
|
1744 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1745 |
-
#: php:
|
1746 |
msgid "Default value will pass form validation"
|
1747 |
msgstr "Standardværdien er gyldig ved formular validering"
|
1748 |
|
1749 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1750 |
-
#: php:
|
1751 |
msgid "Default value will NOT pass form validation"
|
1752 |
msgstr "Standard værdien vil ikke være gyldig i formular validering"
|
1753 |
|
1754 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1755 |
msgid "Are you sure?"
|
1756 |
msgstr "Er du sikker?"
|
1757 |
|
1758 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1759 |
msgid "Are you sure you want to delete this field and all data associated with it?"
|
1760 |
msgstr ""
|
1761 |
"Er du sikker på at du vil slette dette felt og alle data der er gemt for "
|
1762 |
"feltet?"
|
1763 |
|
1764 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1765 |
msgid "WARNING: This will delete all fields inside of the section as well."
|
1766 |
msgstr "ADVARSEL: Dette sletter også alle felter i sketionen."
|
1767 |
|
1768 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1769 |
msgid ""
|
1770 |
"Warning: If you have entries with multiple rows, all but the first row will "
|
1771 |
"be lost."
|
@@ -1773,36 +1862,36 @@ msgstr ""
|
|
1773 |
"Advarsel: Hvis du her poster med flere rækker, vil alle rækker på nær den "
|
1774 |
"første blive slettet."
|
1775 |
|
1776 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1777 |
#: php:172 ../pro/classes/helpers/FrmProFieldsHelper.php:690
|
1778 |
msgid "The entered values do not match"
|
1779 |
msgstr "Det indtastede er forskelligt"
|
1780 |
|
1781 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1782 |
msgid "Enter Email"
|
1783 |
msgstr "Indtast din e-mail adresse"
|
1784 |
|
1785 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1786 |
msgid "Confirm Email"
|
1787 |
msgstr "Bekræft din e-mail adresse"
|
1788 |
|
1789 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1790 |
msgid "Enter Password"
|
1791 |
msgstr "Indtast adgangskode"
|
1792 |
|
1793 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1794 |
msgid "Confirm Password"
|
1795 |
msgstr "Bekræft adgangskoden"
|
1796 |
|
1797 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1798 |
msgid "Import Complete"
|
1799 |
msgstr "Import gennemført"
|
1800 |
|
1801 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1802 |
msgid "Warning: There is no way to retrieve unsaved entries."
|
1803 |
msgstr "Advarsel: Der er ingen måde du kan få adgang til ikke gemte poster."
|
1804 |
|
1805 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1806 |
msgid ""
|
1807 |
"You are running an outdated version of Formidable. This plugin may not work "
|
1808 |
"correctly if you do not update Formidable."
|
@@ -1810,250 +1899,250 @@ msgstr ""
|
|
1810 |
"Du anvender en ældre version af Formidable. Dette plugin fungerer måske ikke "
|
1811 |
"med mindre du opdaterer Formidable."
|
1812 |
|
1813 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1814 |
msgid "English"
|
1815 |
msgstr "Engelsk"
|
1816 |
|
1817 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1818 |
msgid "English/Western"
|
1819 |
msgstr "English/Western"
|
1820 |
|
1821 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1822 |
msgid "Afrikaans"
|
1823 |
msgstr "Afrikaans"
|
1824 |
|
1825 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1826 |
msgid "Albanian"
|
1827 |
msgstr "Albanian"
|
1828 |
|
1829 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1830 |
msgid "Arabic"
|
1831 |
msgstr "Arabic"
|
1832 |
|
1833 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1834 |
msgid "Armenian"
|
1835 |
msgstr "Armenian"
|
1836 |
|
1837 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1838 |
msgid "Azerbaijani"
|
1839 |
msgstr "Azerbaijani"
|
1840 |
|
1841 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1842 |
msgid "Basque"
|
1843 |
msgstr "Basque"
|
1844 |
|
1845 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1846 |
msgid "Bosnian"
|
1847 |
msgstr "Bosnian"
|
1848 |
|
1849 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1850 |
msgid "Bulgarian"
|
1851 |
msgstr "Bulgarian"
|
1852 |
|
1853 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1854 |
msgid "Catalan"
|
1855 |
msgstr "Catalan"
|
1856 |
|
1857 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1858 |
msgid "Chinese Hong Kong"
|
1859 |
msgstr "Chinese Hong Kong"
|
1860 |
|
1861 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1862 |
msgid "Chinese Simplified"
|
1863 |
msgstr "Chinese Simplified"
|
1864 |
|
1865 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1866 |
msgid "Chinese Traditional"
|
1867 |
msgstr "Chinese Traditional"
|
1868 |
|
1869 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1870 |
msgid "Croatian"
|
1871 |
msgstr "Croatian"
|
1872 |
|
1873 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1874 |
msgid "Czech"
|
1875 |
msgstr "Czech"
|
1876 |
|
1877 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1878 |
msgid "Danish"
|
1879 |
msgstr "Danish"
|
1880 |
|
1881 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1882 |
msgid "Dutch"
|
1883 |
msgstr "Hollandsk"
|
1884 |
|
1885 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1886 |
msgid "English/UK"
|
1887 |
msgstr "English/UK"
|
1888 |
|
1889 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1890 |
msgid "Esperanto"
|
1891 |
msgstr "Esperanto"
|
1892 |
|
1893 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1894 |
msgid "Estonian"
|
1895 |
msgstr "Estonian"
|
1896 |
|
1897 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1898 |
msgid "Faroese"
|
1899 |
msgstr "Faroese"
|
1900 |
|
1901 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1902 |
msgid "Farsi/Persian"
|
1903 |
msgstr "Farsi/Persian"
|
1904 |
|
1905 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1906 |
msgid "Filipino"
|
1907 |
msgstr "Filipino"
|
1908 |
|
1909 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1910 |
msgid "Finnish"
|
1911 |
msgstr "Finnish"
|
1912 |
|
1913 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1914 |
msgid "French"
|
1915 |
msgstr "Fransk"
|
1916 |
|
1917 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1918 |
msgid "French/Canadian"
|
1919 |
msgstr "French/Canadian"
|
1920 |
|
1921 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1922 |
msgid "French/Swiss"
|
1923 |
msgstr "French/Swiss"
|
1924 |
|
1925 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1926 |
msgid "German"
|
1927 |
msgstr "Tysk"
|
1928 |
|
1929 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1930 |
msgid "German/Austria"
|
1931 |
msgstr "German/Austria"
|
1932 |
|
1933 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1934 |
msgid "German/Switzerland"
|
1935 |
msgstr "German/Switzerland"
|
1936 |
|
1937 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1938 |
msgid "Greek"
|
1939 |
msgstr "Greek"
|
1940 |
|
1941 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1942 |
-
#:
|
1943 |
msgid "Hebrew"
|
1944 |
msgstr "Hebrew"
|
1945 |
|
1946 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1947 |
msgid "Hindi"
|
1948 |
msgstr "Hindi"
|
1949 |
|
1950 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1951 |
msgid "Hungarian"
|
1952 |
msgstr "Hungarian"
|
1953 |
|
1954 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1955 |
msgid "Icelandic"
|
1956 |
msgstr "Icelandic"
|
1957 |
|
1958 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1959 |
msgid "Indonesian"
|
1960 |
msgstr "Indonesian"
|
1961 |
|
1962 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1963 |
msgid "Italian"
|
1964 |
msgstr "Italian"
|
1965 |
|
1966 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1967 |
msgid "Japanese"
|
1968 |
msgstr "Japanese"
|
1969 |
|
1970 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1971 |
msgid "Korean"
|
1972 |
msgstr "Korean"
|
1973 |
|
1974 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1975 |
msgid "Latvian"
|
1976 |
msgstr "Latvian"
|
1977 |
|
1978 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1979 |
msgid "Lithuanian"
|
1980 |
msgstr "Lithuanian"
|
1981 |
|
1982 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1983 |
msgid "Malaysian"
|
1984 |
msgstr "Malaysian"
|
1985 |
|
1986 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1987 |
msgid "Norwegian"
|
1988 |
msgstr "Norwegian"
|
1989 |
|
1990 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1991 |
msgid "Polish"
|
1992 |
msgstr "Polish"
|
1993 |
|
1994 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1995 |
msgid "Portuguese"
|
1996 |
msgstr "Portugisisk"
|
1997 |
|
1998 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
1999 |
msgid "Portuguese/Brazilian"
|
2000 |
msgstr "Portuguese/Brazilian"
|
2001 |
|
2002 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2003 |
msgid "Portuguese/Portugal"
|
2004 |
msgstr "Portuguese/Portugal"
|
2005 |
|
2006 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2007 |
msgid "Romanian"
|
2008 |
msgstr "Romanian"
|
2009 |
|
2010 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2011 |
msgid "Russian"
|
2012 |
msgstr "Russisk"
|
2013 |
|
2014 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2015 |
-
#:
|
2016 |
msgid "Serbian"
|
2017 |
msgstr "Serbian"
|
2018 |
|
2019 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2020 |
msgid "Slovak"
|
2021 |
msgstr "Slovak"
|
2022 |
|
2023 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2024 |
msgid "Slovenian"
|
2025 |
msgstr "Slovenian"
|
2026 |
|
2027 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2028 |
msgid "Spanish"
|
2029 |
msgstr "Spansk"
|
2030 |
|
2031 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2032 |
msgid "Spanish/Latin America"
|
2033 |
msgstr "Spanish/Latin America"
|
2034 |
|
2035 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2036 |
msgid "Swedish"
|
2037 |
msgstr "Swedish"
|
2038 |
|
2039 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2040 |
msgid "Tamil"
|
2041 |
msgstr "Tamil"
|
2042 |
|
2043 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2044 |
msgid "Thai"
|
2045 |
msgstr "Thai"
|
2046 |
|
2047 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2048 |
-
#:
|
2049 |
msgid "Turkish"
|
2050 |
msgstr "Tyrkisk"
|
2051 |
|
2052 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2053 |
msgid "Ukranian"
|
2054 |
msgstr "Ukranian"
|
2055 |
|
2056 |
-
#: ../classes/helpers/FrmAppHelper.php:
|
2057 |
msgid "Vietnamese"
|
2058 |
msgstr "Vietnamese"
|
2059 |
|
@@ -2093,7 +2182,7 @@ msgstr "Opdateret af"
|
|
2093 |
#: ../classes/helpers/FrmCSVExportHelper.php:114 ..
|
2094 |
#: classes/helpers/FrmFormsHelper.php:597 ../classes/helpers/FrmFormsListHelper.
|
2095 |
#: php:362 ../classes/views/frm-forms/_publish_box.php:72 ..
|
2096 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
2097 |
#: pro/classes/views/displays/where_options.php:14
|
2098 |
msgid "Draft"
|
2099 |
msgstr "Kladde"
|
@@ -2104,7 +2193,7 @@ msgid "IP"
|
|
2104 |
msgstr "IP"
|
2105 |
|
2106 |
#: ../classes/helpers/FrmEntriesListHelper.php:59 ..
|
2107 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
2108 |
#: pro/classes/helpers/FrmProDisplaysHelper.php:59
|
2109 |
msgid "No Entries Found"
|
2110 |
msgstr "Ingen poster fundet"
|
@@ -2135,9 +2224,9 @@ msgstr "Er du sikker på at du vil slette?"
|
|
2135 |
#: classes/helpers/FrmFormsHelper.php:576 ../classes/helpers/FrmFormsListHelper.
|
2136 |
#: php:104 ../classes/models/FrmFormAction.php:689 ../classes/views/frm-
|
2137 |
#: entries/sidebar-show.php:22 ../classes/views/frm-entries/sidebar-show.php:23 ..
|
2138 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
2139 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
2140 |
-
#: pro/classes/controllers/FrmProEntriesController.php:
|
2141 |
#: pro/classes/helpers/FrmProEntriesListHelper.php:6 ../pro/classes/views/frmpro-
|
2142 |
#: entries/sidebar-edit.php:27 ../pro/classes/views/frmpro-entries/sidebar-edit.
|
2143 |
#: php:27
|
@@ -2169,980 +2258,980 @@ msgstr "Unavngivet"
|
|
2169 |
msgid "This field is invalid"
|
2170 |
msgstr "Dette felt er ugyldigt"
|
2171 |
|
2172 |
-
#: ../classes/helpers/FrmFieldsHelper.php:
|
2173 |
#, php-format
|
2174 |
msgid "Please add options from the WordPress \"%1$s\" page"
|
2175 |
msgstr "Opret venligst egenskaber fra WordPress \"%1$s\" side"
|
2176 |
|
2177 |
-
#: ../classes/helpers/FrmFieldsHelper.php:
|
2178 |
msgid "Categories"
|
2179 |
msgstr "Kategorier"
|
2180 |
|
2181 |
-
#: ../classes/helpers/FrmFieldsHelper.php:
|
2182 |
msgid "Afghanistan"
|
2183 |
msgstr "Afghanistan"
|
2184 |
|
2185 |
-
#: ../classes/helpers/FrmFieldsHelper.php:
|
2186 |
msgid "Albania"
|
2187 |
msgstr "Albania"
|
2188 |
|
2189 |
-
#: ../classes/helpers/FrmFieldsHelper.php:
|
2190 |
msgid "Algeria"
|
2191 |
msgstr "Algeria"
|
2192 |
|
2193 |
-
#: ../classes/helpers/FrmFieldsHelper.php:
|
2194 |
|