getAllSettings() ); wp_localize_script( $scriptId, 'wpIvyLabels', array_merge( BackendStrings::getNewFormStrings(), BackendStrings::getSettingsFormBuilderStrings(), BackendStrings::getEmptyStatesStrings(), BackendStrings::getEntityFormStrings(), BackendStrings::getAllFormsStrings(), BackendStrings::getDashboardStrings(), BackendStrings::getCommonStrings(), BackendStrings::getComponentsStrings(), BackendStrings::getEntriesStrings(), BackendStrings::getIntegrationsStrings(), ) ); wp_localize_script( $scriptId, 'wpIvyUrls', [ 'pluginURL' => IVYFORMS_URL, 'siteURL' => esc_url_raw(site_url()), ] ); wp_localize_script( $scriptId, 'wpIvyApiSettings', [ 'root' => esc_url_raw(rest_url()), 'nonce' => wp_create_nonce('wp_rest'), 'namespace' => Routes::$routeNamespace, ] ); wp_localize_script( $scriptId, 'wpIvyDateFormat', [ 'dateFormat' => get_option('date_format'), 'timeFormat' => get_option('time_format'), 'dateTimeFormat' => get_option('date_format') . ' ' . get_option('time_format'), 'locale' => get_locale(), ] ); include IVYFORMS_PATH . '/view/backend/view.php'; } }