', '/' ) . '[\s\n\f]*' . preg_quote( '
', '/' ) . '[\s\n\f]*' . preg_quote( '', '/' ) . '[\s\n\f]*' . preg_quote( '', '/' ) . '/i',
);
$r = array(
'
',
'',
);
$content = preg_replace( $s, $r, $content );
return $content;
}
return null;
}
/**
* Get array of string for locale.
*
* @return array
* @since 4.7
*
*/
public function getEditorsLocale() {
return array(
'add_remove_picture' => esc_html__( 'Add/remove picture', 'js_composer' ),
'finish_adding_text' => esc_html__( 'Finish Adding Images', 'js_composer' ),
'add_image' => esc_html__( 'Add Image', 'js_composer' ),
'add_images' => esc_html__( 'Add Images', 'js_composer' ),
'settings' => esc_html__( 'Settings', 'js_composer' ),
'main_button_title' => esc_html__( 'WPBakery Page Builder', 'js_composer' ),
'main_button_title_backend_editor' => esc_html__( 'Backend Editor', 'js_composer' ),
'main_button_title_frontend_editor' => esc_html__( 'Frontend Editor', 'js_composer' ),
'main_button_title_revert' => esc_html__( 'Classic Mode', 'js_composer' ),
'main_button_title_gutenberg' => esc_html__( 'Gutenberg Editor', 'js_composer' ),
'please_enter_templates_name' => esc_html__( 'Enter template name you want to save.', 'js_composer' ),
'confirm_deleting_template' => esc_html__( 'Confirm deleting "{template_name}" template, press Cancel to leave. This action cannot be undone.', 'js_composer' ),
'press_ok_to_delete_section' => esc_html__( 'Press OK to delete section, Cancel to leave', 'js_composer' ),
'drag_drop_me_in_column' => esc_html__( 'Drag and drop me in the column', 'js_composer' ),
'press_ok_to_delete_tab' => esc_html__( 'Press OK to delete "{tab_name}" tab, Cancel to leave', 'js_composer' ),
'slide' => esc_html__( 'Slide', 'js_composer' ),
'tab' => esc_html__( 'Tab', 'js_composer' ),
'section' => esc_html__( 'Section', 'js_composer' ),
'please_enter_new_tab_title' => esc_html__( 'Please enter new tab title', 'js_composer' ),
'press_ok_delete_section' => esc_html__( 'Press OK to delete "{tab_name}" section, Cancel to leave', 'js_composer' ),
'section_default_title' => esc_html__( 'Section', 'js_composer' ),
'please_enter_section_title' => esc_html__( 'Please enter new section title', 'js_composer' ),
'error_please_try_again' => esc_html__( 'Error. Please try again.', 'js_composer' ),
'if_close_data_lost' => esc_html__( 'If you close this window all shortcode settings will be lost. Close this window?', 'js_composer' ),
'header_select_element_type' => esc_html__( 'Select element type', 'js_composer' ),
'header_media_gallery' => esc_html__( 'Media gallery', 'js_composer' ),
'header_element_settings' => esc_html__( 'Element settings', 'js_composer' ),
'add_tab' => esc_html__( 'Add tab', 'js_composer' ),
'are_you_sure_convert_to_new_version' => esc_html__( 'Are you sure you want to convert to new version?', 'js_composer' ),
'loading' => esc_html__( 'Loading...', 'js_composer' ),
// Media editor
'set_image' => esc_html__( 'Set Image', 'js_composer' ),
'are_you_sure_reset_css_classes' => esc_html__( 'Are you sure that you want to remove all your data?', 'js_composer' ),
'loop_frame_title' => esc_html__( 'Loop settings', 'js_composer' ),
'enter_custom_layout' => esc_html__( 'Custom row layout', 'js_composer' ),
'wrong_cells_layout' => esc_html__( 'Wrong row layout format! Example: 1/2 + 1/2 or span6 + span6.', 'js_composer' ),
'row_background_color' => esc_html__( 'Row background color', 'js_composer' ),
'row_background_image' => esc_html__( 'Row background image', 'js_composer' ),
'column_background_color' => esc_html__( 'Column background color', 'js_composer' ),
'column_background_image' => esc_html__( 'Column background image', 'js_composer' ),
'guides_on' => esc_html__( 'Guides ON', 'js_composer' ),
'guides_off' => esc_html__( 'Guides OFF', 'js_composer' ),
'template_save' => esc_html__( 'New template successfully saved.', 'js_composer' ),
'template_added' => esc_html__( 'Template added to the page.', 'js_composer' ),
'template_added_with_id' => esc_html__( 'Template added to the page. Template has ID attributes, make sure that they are not used more than once on the same page.', 'js_composer' ),
'template_removed' => esc_html__( 'Template successfully removed.', 'js_composer' ),
'template_is_empty' => esc_html__( 'Template is empty: There is no content to be saved as a template.', 'js_composer' ),
'template_save_error' => esc_html__( 'Error while saving template.', 'js_composer' ),
'css_updated' => esc_html__( 'Page settings updated!', 'js_composer' ),
'update_all' => esc_html__( 'Update all', 'js_composer' ),
'confirm_to_leave' => esc_html__( 'The changes you made will be lost if you navigate away from this page.', 'js_composer' ),
'inline_element_saved' => esc_html__( '%s saved!', 'js_composer' ),
'inline_element_deleted' => esc_html__( '%s deleted!', 'js_composer' ),
'inline_element_cloned' => sprintf( __( '%%s cloned. %sEdit now?%s', 'js_composer' ), '
', '' ),
'gfonts_loading_google_font_failed' => esc_html__( 'Loading Google Font failed', 'js_composer' ),
'gfonts_loading_google_font' => esc_html__( 'Loading Font...', 'js_composer' ),
'gfonts_unable_to_load_google_fonts' => esc_html__( 'Unable to load Google Fonts', 'js_composer' ),
'no_title_parenthesis' => sprintf( '(%s)', esc_html__( 'no title', 'js_composer' ) ),
'error_while_saving_image_filtered' => esc_html__( 'Error while applying filter to the image. Check your server and memory settings.', 'js_composer' ),
'ui_saved' => sprintf( '
%s', esc_html__( 'Saved!', 'js_composer' ) ),
'ui_danger' => sprintf( '
%s', esc_html__( 'Failed to Save!', 'js_composer' ) ),
'delete_preset_confirmation' => esc_html__( 'You are about to delete this preset. This action can not be undone.', 'js_composer' ),
'ui_template_downloaded' => esc_html__( 'Downloaded', 'js_composer' ),
'ui_template_update' => esc_html__( 'Update', 'js_composer' ),
'ui_templates_failed_to_download' => esc_html__( 'Failed to download template', 'js_composer' ),
'preset_removed' => esc_html__( 'Element successfully removed.', 'js_composer' ),
'vc_successfully_updated' => esc_html__( 'Successfully updated!', 'js_composer' ),
'gutenbergDoesntWorkProperly' => esc_html__( 'Gutenberg plugin doesn\'t work properly. Please check Gutenberg plugin.', 'js_composer' ),
'unfiltered_html_access' => esc_html__( 'Custom HTML is disabled for your user role. Please contact your site Administrator to change your capabilities.', 'js_composer' ),
);
}
}