WPForms_Uncanny_Automator::get_js_strings()

JS Strings.


Return Return

(array) Array of strings.


Source Source

File: src/core/admin/class-wpforms-provider.php

	protected function get_js_strings() {

		$error_could_not_install = sprintf(
			wp_kses( /* translators: %s - Lite plugin download URL. */
				__( 'Could not install plugin. Please <a href="%s">download</a> and install manually.', 'uncanny-automator' ),
				array(
					'a' => array(
						'href' => true,
					),
				)
			),
			esc_url( $this->config['download_url'] )
		);

		$error_could_not_activate = sprintf(
			wp_kses( /* translators: %s - Lite plugin download URL. */
				__( 'Could not activate plugin. Please activate from the <a href="%s">Plugins page</a>.', 'uncanny-automator' ),
				array(
					'a' => array(
						'href' => true,
					),
				)
			),
			esc_url( admin_url( 'plugins.php' ) )
		);

		return array(
			'nonce'                    => wp_create_nonce( 'wpforms-admin' ),
			'ajax_url'                 => admin_url( 'admin-ajax.php' ),
			'installing'               => esc_html__( 'Installing...', 'uncanny-automator' ),
			'activating'               => esc_html__( 'Activating...', 'uncanny-automator' ),
			'activated'                => esc_html__( 'Uncanny Automator Installed & Activated', 'uncanny-automator' ),
			'install_now'              => esc_html__( 'Install Now', 'uncanny-automator' ),
			'activate_now'             => esc_html__( 'Activate Now', 'uncanny-automator' ),
			'download_now'             => esc_html__( 'Download Now', 'uncanny-automator' ),
			'plugins_page'             => esc_html__( 'Go to Plugins page', 'uncanny-automator' ),
			'error_could_not_install'  => $error_could_not_install,
			'error_could_not_activate' => $error_could_not_activate,
			'manual_install_url'       => $this->config['download_url'],
			'manual_activate_url'      => admin_url( 'plugins.php' ),
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.