1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Views */
if ( ! defined( 'WPSEO_VERSION' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); }
if ( ! defined( 'WPSEO_NAMESPACES' ) || ! WPSEO_NAMESPACES ) { esc_html_e( 'Import of settings is only supported on servers that run PHP 5.3 or higher.', 'wordpress-seo' ); return; } ?> <p> <?php printf( /* translators: 1: Import settings button string from below. */ esc_html__( 'Import settings by pasting the settings you copied from another site here and clicking "%s".', 'wordpress-seo' ), esc_html__( 'Import settings', 'wordpress-seo' ) ); ?> </p>
<form action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-import' ) ); ?>" method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>"> <?php wp_nonce_field( WPSEO_Import_Settings::NONCE_ACTION ); ?> <label class="screen-reader-text" for="settings-import"> <?php printf( /* translators: %s expands to Yoast SEO */ esc_html__( 'Paste your settings from another %s installation.', 'wordpress-seo' ), 'Yoast SEO' ); ?> </label> <textarea id="settings-import" rows="10" cols="140" name="settings_import"></textarea><br/> <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Import settings', 'wordpress-seo' ); ?>"/> </form>
|