Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../includes/admin/builder
File: class-builder.php
*/
[500] Fix | Delete
wp_enqueue_media();
[501] Fix | Delete
wp_enqueue_script( 'jquery-ui-sortable' );
[502] Fix | Delete
wp_enqueue_script( 'jquery-ui-draggable' );
[503] Fix | Delete
wp_enqueue_script( 'wp-util' );
[504] Fix | Delete
[505] Fix | Delete
wp_enqueue_script(
[506] Fix | Delete
'tooltipster',
[507] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/jquery.tooltipster/jquery.tooltipster.min.js',
[508] Fix | Delete
[ 'jquery' ],
[509] Fix | Delete
'4.2.6'
[510] Fix | Delete
);
[511] Fix | Delete
[512] Fix | Delete
// jQuery.Confirm Reloaded.
[513] Fix | Delete
wp_enqueue_script(
[514] Fix | Delete
'jquery-confirm',
[515] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/jquery.confirm/jquery-confirm.min.js',
[516] Fix | Delete
[ 'jquery' ],
[517] Fix | Delete
'1.0.0'
[518] Fix | Delete
);
[519] Fix | Delete
[520] Fix | Delete
wp_enqueue_script(
[521] Fix | Delete
'insert-at-caret',
[522] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/jquery.insert-at-caret.min.js',
[523] Fix | Delete
[ 'jquery' ],
[524] Fix | Delete
'1.1.4'
[525] Fix | Delete
);
[526] Fix | Delete
[527] Fix | Delete
wp_enqueue_script(
[528] Fix | Delete
'minicolors',
[529] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/jquery.minicolors/jquery.minicolors.min.js',
[530] Fix | Delete
[ 'jquery' ],
[531] Fix | Delete
'2.3.6'
[532] Fix | Delete
);
[533] Fix | Delete
[534] Fix | Delete
wp_enqueue_script(
[535] Fix | Delete
'conditionals',
[536] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/jquery.conditionals.min.js',
[537] Fix | Delete
[ 'jquery' ],
[538] Fix | Delete
'1.0.1'
[539] Fix | Delete
);
[540] Fix | Delete
[541] Fix | Delete
wp_enqueue_script(
[542] Fix | Delete
'choicesjs',
[543] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/choices.min.js',
[544] Fix | Delete
[],
[545] Fix | Delete
'10.2.0'
[546] Fix | Delete
);
[547] Fix | Delete
[548] Fix | Delete
wp_enqueue_script(
[549] Fix | Delete
'listjs',
[550] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/list.min.js',
[551] Fix | Delete
[ 'jquery' ],
[552] Fix | Delete
'2.3.0'
[553] Fix | Delete
);
[554] Fix | Delete
[555] Fix | Delete
wp_enqueue_script(
[556] Fix | Delete
'dom-purify',
[557] Fix | Delete
WPFORMS_PLUGIN_URL . 'assets/lib/purify.min.js',
[558] Fix | Delete
[],
[559] Fix | Delete
'3.0.10'
[560] Fix | Delete
);
[561] Fix | Delete
[562] Fix | Delete
if ( wp_is_mobile() ) {
[563] Fix | Delete
wp_enqueue_script( 'jquery-touch-punch' );
[564] Fix | Delete
}
[565] Fix | Delete
[566] Fix | Delete
wp_enqueue_script(
[567] Fix | Delete
'wpforms-utils',
[568] Fix | Delete
WPFORMS_PLUGIN_URL . "assets/js/admin/share/admin-utils{$min}.js",
[569] Fix | Delete
[ 'jquery', 'dom-purify' ],
[570] Fix | Delete
WPFORMS_VERSION
[571] Fix | Delete
);
[572] Fix | Delete
[573] Fix | Delete
wp_enqueue_script(
[574] Fix | Delete
'wpforms-generic-utils',
[575] Fix | Delete
WPFORMS_PLUGIN_URL . "assets/js/share/utils{$min}.js",
[576] Fix | Delete
[ 'jquery' ],
[577] Fix | Delete
WPFORMS_VERSION
[578] Fix | Delete
);
[579] Fix | Delete
[580] Fix | Delete
wp_enqueue_script(
[581] Fix | Delete
'wpforms-builder-choicesjs',
[582] Fix | Delete
WPFORMS_PLUGIN_URL . "assets/js/admin/builder/wpforms-choicesjs{$min}.js",
[583] Fix | Delete
[ 'jquery', 'choicesjs' ],
[584] Fix | Delete
WPFORMS_VERSION
[585] Fix | Delete
);
[586] Fix | Delete
[587] Fix | Delete
wp_enqueue_script(
[588] Fix | Delete
'wpforms-admin-builder-dropdown-list',
[589] Fix | Delete
WPFORMS_PLUGIN_URL . "assets/js/admin/builder/dropdown-list{$min}.js",
[590] Fix | Delete
[ 'jquery' ],
[591] Fix | Delete
WPFORMS_VERSION,
[592] Fix | Delete
true
[593] Fix | Delete
);
[594] Fix | Delete
[595] Fix | Delete
wp_enqueue_script(
[596] Fix | Delete
'wpforms-builder',
[597] Fix | Delete
WPFORMS_PLUGIN_URL . "assets/js/admin/builder/admin-builder{$min}.js",
[598] Fix | Delete
[
[599] Fix | Delete
'wpforms-utils',
[600] Fix | Delete
'wpforms-admin-builder-templates',
[601] Fix | Delete
'jquery-ui-sortable',
[602] Fix | Delete
'jquery-ui-draggable',
[603] Fix | Delete
'tooltipster',
[604] Fix | Delete
'jquery-confirm',
[605] Fix | Delete
'choicesjs',
[606] Fix | Delete
'wpforms-builder-choicesjs',
[607] Fix | Delete
],
[608] Fix | Delete
WPFORMS_VERSION
[609] Fix | Delete
);
[610] Fix | Delete
[611] Fix | Delete
wp_enqueue_script(
[612] Fix | Delete
'wpforms-admin-builder-templates',
[613] Fix | Delete
WPFORMS_PLUGIN_URL . "assets/js/admin/builder/templates{$min}.js",
[614] Fix | Delete
[ 'wp-util' ],
[615] Fix | Delete
WPFORMS_VERSION,
[616] Fix | Delete
true
[617] Fix | Delete
);
[618] Fix | Delete
[619] Fix | Delete
wp_localize_script(
[620] Fix | Delete
'wpforms-builder',
[621] Fix | Delete
'wpforms_builder',
[622] Fix | Delete
$this->get_localized_strings()
[623] Fix | Delete
);
[624] Fix | Delete
[625] Fix | Delete
/**
[626] Fix | Delete
* Form Builder enqueues action.
[627] Fix | Delete
*
[628] Fix | Delete
* Executes after all the form builder assets were enqueued.
[629] Fix | Delete
* Intended to use in addons.
[630] Fix | Delete
*
[631] Fix | Delete
* @since 1.0.0
[632] Fix | Delete
*
[633] Fix | Delete
* @param string $view Current view.
[634] Fix | Delete
*/
[635] Fix | Delete
do_action( 'wpforms_builder_enqueues', $this->view );
[636] Fix | Delete
}
[637] Fix | Delete
[638] Fix | Delete
/**
[639] Fix | Delete
* Get localized strings.
[640] Fix | Delete
*
[641] Fix | Delete
* @since 1.6.8
[642] Fix | Delete
*
[643] Fix | Delete
* @return array
[644] Fix | Delete
*/
[645] Fix | Delete
private function get_localized_strings() {
[646] Fix | Delete
[647] Fix | Delete
/**
[648] Fix | Delete
* Smart Tags.
[649] Fix | Delete
*
[650] Fix | Delete
* @since 1.6.7
[651] Fix | Delete
*
[652] Fix | Delete
* @param array $smart_tags Array of smart tags.
[653] Fix | Delete
*/
[654] Fix | Delete
$smart_tags = apply_filters( 'wpforms_builder_enqueues_smart_tags', wpforms()->get( 'smart_tags' )->get_smart_tags() );
[655] Fix | Delete
[656] Fix | Delete
$image_extensions = wpforms_chain( get_allowed_mime_types() )
[657] Fix | Delete
->map(
[658] Fix | Delete
static function ( $mime ) {
[659] Fix | Delete
[660] Fix | Delete
return strpos( $mime, 'image/' ) === 0 ? $mime : '';
[661] Fix | Delete
}
[662] Fix | Delete
)
[663] Fix | Delete
->array_filter()
[664] Fix | Delete
->array_values()
[665] Fix | Delete
->value();
[666] Fix | Delete
[667] Fix | Delete
$strings = [
[668] Fix | Delete
'and' => esc_html__( 'And', 'wpforms-lite' ),
[669] Fix | Delete
'ajax_url' => admin_url( 'admin-ajax.php' ),
[670] Fix | Delete
'bulk_add_button' => esc_html__( 'Add New Choices', 'wpforms-lite' ),
[671] Fix | Delete
'bulk_add_show' => esc_html__( 'Bulk Add', 'wpforms-lite' ),
[672] Fix | Delete
'are_you_sure_to_close' => esc_html__( 'Are you sure you want to leave? You have unsaved changes', 'wpforms-lite' ),
[673] Fix | Delete
'bulk_add_hide' => esc_html__( 'Hide Bulk Add', 'wpforms-lite' ),
[674] Fix | Delete
'bulk_add_heading' => esc_html__( 'Add Choices (one per line)', 'wpforms-lite' ),
[675] Fix | Delete
'bulk_add_placeholder' => esc_html__( "Blue\nRed\nGreen", 'wpforms-lite' ),
[676] Fix | Delete
'bulk_add_presets_show' => esc_html__( 'Show presets', 'wpforms-lite' ),
[677] Fix | Delete
'bulk_add_presets_hide' => esc_html__( 'Hide presets', 'wpforms-lite' ),
[678] Fix | Delete
'date_select_day' => 'DD',
[679] Fix | Delete
'date_select_month' => 'MM',
[680] Fix | Delete
'debug' => wpforms_debug(),
[681] Fix | Delete
'dynamic_choices' => [
[682] Fix | Delete
'limit_message' => sprintf( /* translators: %1$s - data source name (e.g. Categories, Posts), %2$s - data source type (e.g. post type, taxonomy), %3$s - display limit, %4$s - total number of items. */
[683] Fix | Delete
esc_html__( 'The %1$s %2$s contains over %3$s items (%4$s). This may make the field difficult for your visitors to use and/or cause the form to be slow.', 'wpforms-lite' ),
[684] Fix | Delete
'{source}',
[685] Fix | Delete
'{type}',
[686] Fix | Delete
'{limit}',
[687] Fix | Delete
'{total}'
[688] Fix | Delete
),
[689] Fix | Delete
'empty_message' => sprintf( /* translators: %1$s - data source name (e.g. Categories, Posts), %2$s - data source type (e.g. post type, taxonomy). */
[690] Fix | Delete
esc_html__( 'This field will not be displayed in your form since there are no %2$s belonging to %1$s.', 'wpforms-lite' ),
[691] Fix | Delete
'{source}',
[692] Fix | Delete
'{type}'
[693] Fix | Delete
),
[694] Fix | Delete
'entities' => [
[695] Fix | Delete
'post_type' => esc_html__( 'posts', 'wpforms-lite' ),
[696] Fix | Delete
'taxonomy' => esc_html__( 'terms', 'wpforms-lite' ),
[697] Fix | Delete
],
[698] Fix | Delete
],
[699] Fix | Delete
'cancel' => esc_html__( 'Cancel', 'wpforms-lite' ),
[700] Fix | Delete
'ok' => esc_html__( 'OK', 'wpforms-lite' ),
[701] Fix | Delete
'close' => esc_html__( 'Close', 'wpforms-lite' ),
[702] Fix | Delete
'conditionals_change' => esc_html__( 'Due to form changes, conditional logic rules will be removed or updated:', 'wpforms-lite' ),
[703] Fix | Delete
'conditionals_disable' => esc_html__( 'Are you sure you want to disable conditional logic? This will remove the rules for this field or setting.', 'wpforms-lite' ),
[704] Fix | Delete
'field' => esc_html__( 'Field', 'wpforms-lite' ),
[705] Fix | Delete
'field_locked' => esc_html__( 'Field Locked', 'wpforms-lite' ),
[706] Fix | Delete
'field_locked_msg' => esc_html__( 'This field cannot be deleted or duplicated.', 'wpforms-lite' ),
[707] Fix | Delete
'field_locked_no_delete_msg' => esc_html__( 'This field cannot be deleted.', 'wpforms-lite' ),
[708] Fix | Delete
'field_locked_no_duplicate_msg' => esc_html__( 'This field cannot be duplicated.', 'wpforms-lite' ),
[709] Fix | Delete
'fields_available' => esc_html__( 'Available Fields', 'wpforms-lite' ),
[710] Fix | Delete
'fields_unavailable' => esc_html__( 'No fields available', 'wpforms-lite' ),
[711] Fix | Delete
'heads_up' => esc_html__( 'Heads up!', 'wpforms-lite' ),
[712] Fix | Delete
'image_placeholder' => WPFORMS_PLUGIN_URL . 'assets/images/builder/placeholder-200x125.svg',
[713] Fix | Delete
'nonce' => wp_create_nonce( 'wpforms-builder' ),
[714] Fix | Delete
'admin_nonce' => wp_create_nonce( 'wpforms-admin' ),
[715] Fix | Delete
'no_email_fields' => esc_html__( 'No email fields', 'wpforms-lite' ),
[716] Fix | Delete
'notification_delete' => esc_html__( 'Are you sure you want to delete this notification?', 'wpforms-lite' ),
[717] Fix | Delete
'notification_prompt' => esc_html__( 'Enter a notification name', 'wpforms-lite' ),
[718] Fix | Delete
'notification_ph' => esc_html__( 'Eg: User Confirmation', 'wpforms-lite' ),
[719] Fix | Delete
'notification_error' => esc_html__( 'You must provide a notification name', 'wpforms-lite' ),
[720] Fix | Delete
'notification_def_name' => esc_html__( 'Default Notification', 'wpforms-lite' ),
[721] Fix | Delete
'confirmation_delete' => esc_html__( 'Are you sure you want to delete this confirmation?', 'wpforms-lite' ),
[722] Fix | Delete
'confirmation_prompt' => esc_html__( 'Enter a confirmation name', 'wpforms-lite' ),
[723] Fix | Delete
'confirmation_ph' => esc_html__( 'Eg: Alternative Confirmation', 'wpforms-lite' ),
[724] Fix | Delete
'confirmation_error' => esc_html__( 'You must provide a confirmation name', 'wpforms-lite' ),
[725] Fix | Delete
'confirmation_def_name' => esc_html__( 'Default Confirmation', 'wpforms-lite' ),
[726] Fix | Delete
'save' => esc_html__( 'Save', 'wpforms-lite' ),
[727] Fix | Delete
'saving' => esc_html__( 'Saving', 'wpforms-lite' ),
[728] Fix | Delete
'saved' => esc_html__( 'Saved!', 'wpforms-lite' ),
[729] Fix | Delete
'save_exit' => esc_html__( 'Save and Exit', 'wpforms-lite' ),
[730] Fix | Delete
'save_embed' => esc_html__( 'Save and Embed', 'wpforms-lite' ),
[731] Fix | Delete
'saved_state' => '',
[732] Fix | Delete
'layout_selector_show' => esc_html__( 'Show Layouts', 'wpforms-lite' ),
[733] Fix | Delete
'layout_selector_hide' => esc_html__( 'Hide Layouts', 'wpforms-lite' ),
[734] Fix | Delete
'layout_selector_layout' => esc_html__( 'Select your layout', 'wpforms-lite' ),
[735] Fix | Delete
'layout_selector_column' => esc_html__( 'Select your column', 'wpforms-lite' ),
[736] Fix | Delete
'loading' => esc_html__( 'Loading', 'wpforms-lite' ),
[737] Fix | Delete
'template_name' => ! empty( $this->template['name'] ) ? $this->template['name'] : '',
[738] Fix | Delete
'template_slug' => ! empty( $this->template['slug'] ) ? $this->template['slug'] : '',
[739] Fix | Delete
'template_modal_title' => ! empty( $this->template['modal']['title'] ) ? $this->template['modal']['title'] : '',
[740] Fix | Delete
'template_modal_msg' => ! empty( $this->template['modal']['message'] ) ? $this->template['modal']['message'] : '',
[741] Fix | Delete
'template_modal_display' => ! empty( $this->template['modal_display'] ) ? $this->template['modal_display'] : '',
[742] Fix | Delete
'template_select' => esc_html__( 'Use Template', 'wpforms-lite' ),
[743] Fix | Delete
'template_confirm' => esc_html__( 'Changing templates on an existing form will DELETE existing form fields. Are you sure you want apply the new template?', 'wpforms-lite' ),
[744] Fix | Delete
'use_default_template' => esc_html__( 'Use Default Template', 'wpforms-lite' ),
[745] Fix | Delete
'embed' => esc_html__( 'Embed', 'wpforms-lite' ),
[746] Fix | Delete
'exit' => esc_html__( 'Exit', 'wpforms-lite' ),
[747] Fix | Delete
'exit_url' => wpforms_current_user_can( 'view_forms' ) ? admin_url( 'admin.php?page=wpforms-overview' ) : admin_url(),
[748] Fix | Delete
'exit_confirm' => esc_html__( 'Your form contains unsaved changes. Would you like to save your changes first.', 'wpforms-lite' ),
[749] Fix | Delete
'delete_confirm' => esc_html__( 'Are you sure you want to delete this field?', 'wpforms-lite' ),
[750] Fix | Delete
'delete_choice_confirm' => esc_html__( 'Are you sure you want to delete this choice?', 'wpforms-lite' ),
[751] Fix | Delete
'duplicate_confirm' => esc_html__( 'Are you sure you want to duplicate this field?', 'wpforms-lite' ),
[752] Fix | Delete
'duplicate_copy' => esc_html__( '(copy)', 'wpforms-lite' ),
[753] Fix | Delete
'error_title' => esc_html__( 'Please enter a form name.', 'wpforms-lite' ),
[754] Fix | Delete
'error_choice' => esc_html__( 'This item must contain at least one choice.', 'wpforms-lite' ),
[755] Fix | Delete
'off' => esc_html__( 'Off', 'wpforms-lite' ),
[756] Fix | Delete
'on' => esc_html__( 'On', 'wpforms-lite' ),
[757] Fix | Delete
'or' => esc_html__( 'or', 'wpforms-lite' ),
[758] Fix | Delete
'other' => esc_html__( 'Other', 'wpforms-lite' ),
[759] Fix | Delete
'operator_is' => esc_html__( 'is', 'wpforms-lite' ),
[760] Fix | Delete
'operator_is_not' => esc_html__( 'is not', 'wpforms-lite' ),
[761] Fix | Delete
'operator_empty' => esc_html__( 'empty', 'wpforms-lite' ),
[762] Fix | Delete
'operator_not_empty' => esc_html__( 'not empty', 'wpforms-lite' ),
[763] Fix | Delete
'operator_contains' => esc_html__( 'contains', 'wpforms-lite' ),
[764] Fix | Delete
'operator_not_contains' => esc_html__( 'does not contain', 'wpforms-lite' ),
[765] Fix | Delete
'operator_starts' => esc_html__( 'starts with', 'wpforms-lite' ),
[766] Fix | Delete
'operator_ends' => esc_html__( 'ends with', 'wpforms-lite' ),
[767] Fix | Delete
'operator_greater_than' => esc_html__( 'greater than', 'wpforms-lite' ),
[768] Fix | Delete
'operator_less_than' => esc_html__( 'less than', 'wpforms-lite' ),
[769] Fix | Delete
'payments_entries_off' => esc_html__( 'Entry storage is currently disabled, but is required to accept payments. Please enable in your form settings.', 'wpforms-lite' ),
[770] Fix | Delete
'payments_on_entries_off' => esc_html__( 'This form is currently accepting payments. Entry storage is required to accept payments. To disable entry storage, please first disable payments.', 'wpforms-lite' ),
[771] Fix | Delete
'previous' => esc_html__( 'Previous', 'wpforms-lite' ),
[772] Fix | Delete
'provider_required_flds' => sprintf( /* translators: %s - marketing integration name. */
[773] Fix | Delete
esc_html__( "In order to complete your form's %s integration, please check that the dropdowns for all required (*) List Fields have been filled out.", 'wpforms-lite' ),
[774] Fix | Delete
'{provider}'
[775] Fix | Delete
),
[776] Fix | Delete
'rule_create' => esc_html__( 'Create new rule', 'wpforms-lite' ),
[777] Fix | Delete
'rule_create_group' => esc_html__( 'Add New Group', 'wpforms-lite' ),
[778] Fix | Delete
'rule_delete' => esc_html__( 'Delete rule', 'wpforms-lite' ),
[779] Fix | Delete
'smart_tags' => $smart_tags,
[780] Fix | Delete
'smart_tags_disabled_for_fields' => [ 'entry_id' ],
[781] Fix | Delete
'smart_tags_show' => esc_html__( 'Show Smart Tags', 'wpforms-lite' ),
[782] Fix | Delete
'smart_tags_hide' => esc_html__( 'Hide Smart Tags', 'wpforms-lite' ),
[783] Fix | Delete
'select_field' => esc_html__( '--- Select Field ---', 'wpforms-lite' ),
[784] Fix | Delete
'select_choice' => esc_html__( '--- Select Choice ---', 'wpforms-lite' ),
[785] Fix | Delete
'upload_image_title' => esc_html__( 'Upload or Choose Your Image', 'wpforms-lite' ),
[786] Fix | Delete
'upload_image_button' => esc_html__( 'Use Image', 'wpforms-lite' ),
[787] Fix | Delete
'upload_image_remove' => esc_html__( 'Remove Image', 'wpforms-lite' ),
[788] Fix | Delete
'upload_image_extensions' => $image_extensions,
[789] Fix | Delete
'upload_image_extensions_error' => esc_html__( 'You tried uploading a file type that is not allowed. Please try again.', 'wpforms-lite' ),
[790] Fix | Delete
'provider_add_new_acc_btn' => esc_html__( 'Add', 'wpforms-lite' ),
[791] Fix | Delete
'pro' => wpforms()->is_pro(),
[792] Fix | Delete
'is_gutenberg' => ! is_plugin_active( 'classic-editor/classic-editor.php' ),
[793] Fix | Delete
'cl_fields_supported' => wpforms_get_conditional_logic_form_fields_supported(),
[794] Fix | Delete
'redirect_url_field_error' => esc_html__( 'You should enter a valid absolute address to the Confirmation Redirect URL field.', 'wpforms-lite' ),
[795] Fix | Delete
'add_custom_value_label' => esc_html__( 'Add Custom Value', 'wpforms-lite' ),
[796] Fix | Delete
'choice_empty_label_tpl' => sprintf( /* translators: %s - choice number. */
[797] Fix | Delete
esc_html__( 'Choice %s', 'wpforms-lite' ),
[798] Fix | Delete
'{number}'
[799] Fix | Delete
),
[800] Fix | Delete
'payment_choice_empty_label_tpl' => sprintf( /* translators: %s - choice number. */
[801] Fix | Delete
esc_html__( 'Item %s', 'wpforms-lite' ),
[802] Fix | Delete
'{number}'
[803] Fix | Delete
),
[804] Fix | Delete
'error_save_form' => esc_html__( 'Something went wrong while saving the form. Please reload the page and try again.', 'wpforms-lite' ),
[805] Fix | Delete
'error_contact_support' => esc_html__( 'Please contact the plugin support team if this behavior persists.', 'wpforms-lite' ),
[806] Fix | Delete
'error_select_template' => esc_html__( 'Something went wrong while applying the form template. Please try again. If the error persists, contact our support team.', 'wpforms-lite' ),
[807] Fix | Delete
'error_load_templates' => esc_html__( 'Couldn\'t load the Setup panel.', 'wpforms-lite' ),
[808] Fix | Delete
'blank_form' => esc_html__( 'Blank Form', 'wpforms-lite' ),
[809] Fix | Delete
'something_went_wrong' => esc_html__( 'Something went wrong', 'wpforms-lite' ),
[810] Fix | Delete
'field_cannot_be_reordered' => esc_html__( 'This field cannot be moved.', 'wpforms-lite' ),
[811] Fix | Delete
'empty_label' => esc_html__( 'Empty Label', 'wpforms-lite' ),
[812] Fix | Delete
'no_pages_found' => esc_html__( 'No results found', 'wpforms-lite' ),
[813] Fix | Delete
'number_slider_error_valid_default_value' => sprintf( /* translators: %1$s - from value %2$s - to value. */
[814] Fix | Delete
esc_html__( 'Please enter a valid value or change the Increment. The nearest valid values are %1$s and %2$s.', 'wpforms-lite' ),
[815] Fix | Delete
'{from}',
[816] Fix | Delete
'{to}'
[817] Fix | Delete
),
[818] Fix | Delete
'form_meta' => $this->form_data['meta'] ?? [],
[819] Fix | Delete
'scrollbars_css_url' => WPFORMS_PLUGIN_URL . 'assets/css/builder/builder-scrollbars.css',
[820] Fix | Delete
];
[821] Fix | Delete
[822] Fix | Delete
$strings = $this->add_localized_currencies( $strings );
[823] Fix | Delete
[824] Fix | Delete
$strings['disable_entries'] = sprintf(
[825] Fix | Delete
wp_kses( /* translators: %s - link to the WPForms.com doc article. */
[826] Fix | Delete
__( 'Disabling entry storage for this form will completely prevent any new submissions from getting saved to your site. If you still intend to keep a record of entries through notification emails, then please <a href="%s" target="_blank" rel="noopener noreferrer">test your form</a> to ensure emails send reliably.', 'wpforms-lite' ),
[827] Fix | Delete
[
[828] Fix | Delete
'a' => [
[829] Fix | Delete
'href' => [],
[830] Fix | Delete
'rel' => [],
[831] Fix | Delete
'target' => [],
[832] Fix | Delete
],
[833] Fix | Delete
]
[834] Fix | Delete
),
[835] Fix | Delete
esc_url(
[836] Fix | Delete
wpforms_utm_link(
[837] Fix | Delete
'https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/',
[838] Fix | Delete
'Builder Notifications',
[839] Fix | Delete
'Testing A Form Documentation'
[840] Fix | Delete
)
[841] Fix | Delete
)
[842] Fix | Delete
);
[843] Fix | Delete
[844] Fix | Delete
$strings['akismet_not_installed'] = sprintf(
[845] Fix | Delete
wp_kses( /* translators: %1$s - link to the plugin search page, %2$s - link to the WPForms.com doc article. */
[846] Fix | Delete
__( 'This feature cannot be used at this time because the Akismet plugin <a href="%1$s" target="_blank" rel="noopener noreferrer">has not been installed</a>. For information on how to use this feature please <a href="%2$s" target="_blank" rel="noopener noreferrer">refer to our documentation</a>.', 'wpforms-lite' ),
[847] Fix | Delete
[
[848] Fix | Delete
'a' => [
[849] Fix | Delete
'href' => [],
[850] Fix | Delete
'rel' => [],
[851] Fix | Delete
'target' => [],
[852] Fix | Delete
],
[853] Fix | Delete
]
[854] Fix | Delete
),
[855] Fix | Delete
esc_url( admin_url( 'plugin-install.php' ) ),
[856] Fix | Delete
esc_url(
[857] Fix | Delete
wpforms_utm_link(
[858] Fix | Delete
'https://wpforms.com/docs/setting-up-akismet-anti-spam-protection/',
[859] Fix | Delete
'Builder Settings',
[860] Fix | Delete
'Akismet Documentation'
[861] Fix | Delete
)
[862] Fix | Delete
)
[863] Fix | Delete
);
[864] Fix | Delete
[865] Fix | Delete
$strings['akismet_not_activated'] = sprintf(
[866] Fix | Delete
wp_kses( /* translators: %1$s - link to the plugins page, %2$s - link to the WPForms.com doc article. */
[867] Fix | Delete
__( 'This feature cannot be used at this time because the Akismet plugin <a href="%1$s" target="_blank" rel="noopener noreferrer">has not been activated</a>. For information on how to use this feature please <a href="%2$s" target="_blank" rel="noopener noreferrer">refer to our documentation</a>.', 'wpforms-lite' ),
[868] Fix | Delete
[
[869] Fix | Delete
'a' => [
[870] Fix | Delete
'href' => [],
[871] Fix | Delete
'rel' => [],
[872] Fix | Delete
'target' => [],
[873] Fix | Delete
],
[874] Fix | Delete
]
[875] Fix | Delete
),
[876] Fix | Delete
esc_url( admin_url( 'plugins.php' ) ),
[877] Fix | Delete
esc_url(
[878] Fix | Delete
wpforms_utm_link(
[879] Fix | Delete
'https://wpforms.com/docs/setting-up-akismet-anti-spam-protection/',
[880] Fix | Delete
'Builder Settings',
[881] Fix | Delete
'Akismet Documentation'
[882] Fix | Delete
)
[883] Fix | Delete
)
[884] Fix | Delete
);
[885] Fix | Delete
[886] Fix | Delete
$strings['akismet_no_api_key'] = sprintf(
[887] Fix | Delete
wp_kses( /* translators: %1$s - link to the Akismet settings page, %2$s - link to the WPForms.com doc article. */
[888] Fix | Delete
__( 'This feature cannot be used at this time because the Akismet plugin <a href="%1$s" target="_blank" rel="noopener noreferrer">has not been properly configured</a>. For information on how to use this feature please <a href="%2$s" target="_blank" rel="noopener noreferrer">refer to our documentation</a>.', 'wpforms-lite' ),
[889] Fix | Delete
[
[890] Fix | Delete
'a' => [
[891] Fix | Delete
'href' => [],
[892] Fix | Delete
'rel' => [],
[893] Fix | Delete
'target' => [],
[894] Fix | Delete
],
[895] Fix | Delete
]
[896] Fix | Delete
),
[897] Fix | Delete
esc_url( admin_url( 'options-general.php?page=akismet-key-config&view=start' ) ),
[898] Fix | Delete
esc_url(
[899] Fix | Delete
wpforms_utm_link(
[900] Fix | Delete
'https://wpforms.com/docs/setting-up-akismet-anti-spam-protection/',
[901] Fix | Delete
'Builder Settings',
[902] Fix | Delete
'Akismet Documentation'
[903] Fix | Delete
)
[904] Fix | Delete
)
[905] Fix | Delete
);
[906] Fix | Delete
[907] Fix | Delete
$strings = apply_filters( 'wpforms_builder_strings', $strings, $this->form );
[908] Fix | Delete
[909] Fix | Delete
// phpcs:disable WordPress.Security.NonceVerification.Recommended
[910] Fix | Delete
if ( ! empty( $_GET['form_id'] ) ) {
[911] Fix | Delete
$form_id = (int) $_GET['form_id'];
[912] Fix | Delete
[913] Fix | Delete
$strings['preview_url'] = esc_url( add_query_arg( 'new_window', 1, wpforms_get_form_preview_url( $form_id ) ) );
[914] Fix | Delete
$strings['entries_url'] = esc_url( admin_url( 'admin.php?page=wpforms-entries&view=list&form_id=' . $form_id ) );
[915] Fix | Delete
}
[916] Fix | Delete
// phpcs:enable
[917] Fix | Delete
[918] Fix | Delete
return $strings;
[919] Fix | Delete
}
[920] Fix | Delete
[921] Fix | Delete
/**
[922] Fix | Delete
* Footer JavaScript.
[923] Fix | Delete
*
[924] Fix | Delete
* @since 1.3.7
[925] Fix | Delete
*/
[926] Fix | Delete
public function footer_scripts() {
[927] Fix | Delete
[928] Fix | Delete
$countries = wpforms_countries();
[929] Fix | Delete
$countries_postal = array_keys( $countries );
[930] Fix | Delete
$countries = array_values( $countries );
[931] Fix | Delete
[932] Fix | Delete
sort( $countries_postal );
[933] Fix | Delete
sort( $countries );
[934] Fix | Delete
[935] Fix | Delete
$choices = [
[936] Fix | Delete
'countries' => [
[937] Fix | Delete
'name' => esc_html__( 'Countries', 'wpforms-lite' ),
[938] Fix | Delete
'choices' => $countries,
[939] Fix | Delete
],
[940] Fix | Delete
'countries_postal' => [
[941] Fix | Delete
'name' => esc_html__( 'Countries Postal Code', 'wpforms-lite' ),
[942] Fix | Delete
'choices' => $countries_postal,
[943] Fix | Delete
],
[944] Fix | Delete
'states' => [
[945] Fix | Delete
'name' => esc_html__( 'States', 'wpforms-lite' ),
[946] Fix | Delete
'choices' => array_values( wpforms_us_states() ),
[947] Fix | Delete
],
[948] Fix | Delete
'states_postal' => [
[949] Fix | Delete
'name' => esc_html__( 'States Postal Code', 'wpforms-lite' ),
[950] Fix | Delete
'choices' => array_keys( wpforms_us_states() ),
[951] Fix | Delete
],
[952] Fix | Delete
'months' => [
[953] Fix | Delete
'name' => esc_html__( 'Months', 'wpforms-lite' ),
[954] Fix | Delete
'choices' => array_values( wpforms_months() ),
[955] Fix | Delete
],
[956] Fix | Delete
'days' => [
[957] Fix | Delete
'name' => esc_html__( 'Days', 'wpforms-lite' ),
[958] Fix | Delete
'choices' => array_values( wpforms_days() ),
[959] Fix | Delete
],
[960] Fix | Delete
];
[961] Fix | Delete
[962] Fix | Delete
// phpcs:disable WPForms.Comments.ParamTagHooks.InvalidParamTagsQuantity
[963] Fix | Delete
/**
[964] Fix | Delete
* Choices presets array filter.
[965] Fix | Delete
*
[966] Fix | Delete
* Allows developers to edit the choices presets used in all choices-based fields.
[967] Fix | Delete
*
[968] Fix | Delete
* @since 1.3.7
[969] Fix | Delete
*
[970] Fix | Delete
* @param array $choices {
[971] Fix | Delete
* Choices presets is the [ `slug` => `preset`, ... ] array.
[972] Fix | Delete
*
[973] Fix | Delete
* @param array $preset {
[974] Fix | Delete
* Each preset data is the array with two elements:
[975] Fix | Delete
*
[976] Fix | Delete
* @param string $name Name of the preset
[977] Fix | Delete
* @param array $choices Choices array.
[978] Fix | Delete
* }
[979] Fix | Delete
* ...
[980] Fix | Delete
* }
[981] Fix | Delete
*/
[982] Fix | Delete
$choices = apply_filters( 'wpforms_builder_preset_choices', $choices );
[983] Fix | Delete
// phpcs:enable WPForms.Comments.ParamTagHooks.InvalidParamTagsQuantity
[984] Fix | Delete
[985] Fix | Delete
echo '<script type="text/javascript">wpforms_preset_choices=' . wp_json_encode( $choices ) . '</script>';
[986] Fix | Delete
[987] Fix | Delete
do_action( 'wpforms_builder_print_footer_scripts' );
[988] Fix | Delete
}
[989] Fix | Delete
[990] Fix | Delete
/**
[991] Fix | Delete
* Load the appropriate files to build the page.
[992] Fix | Delete
*
[993] Fix | Delete
* @since 1.0.0
[994] Fix | Delete
*/
[995] Fix | Delete
public function output() {
[996] Fix | Delete
[997] Fix | Delete
if ( $this->abort ) {
[998] Fix | Delete
return;
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function