PageRenderTime 15ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/wordpress-seo/admin/views/tabs/tool/wpseo-import.php

https://bitbucket.org/carloskikea/helpet
PHP | 41 lines | 28 code | 4 blank | 9 comment | 1 complexity | d74447376c21b7c08ba13fcf99680d8e MD5 | raw file
 1<?php
 2/**
 3 * WPSEO plugin file.
 4 *
 5 * @package WPSEO\Admin\Views
 6 */
 7
 8/**
 9 * @var Yoast_Form $yform
10 */
11
12if ( ! defined( 'WPSEO_VERSION' ) ) {
13	header( 'Status: 403 Forbidden' );
14	header( 'HTTP/1.1 403 Forbidden' );
15	exit();
16}
17
18?>
19<p>
20	<?php
21	printf(
22		/* translators: 1: emphasis opener; 2: emphasis closer. */
23		esc_html__( 'Import settings by locating %1$ssettings.zip%2$s and clicking "Import settings"', 'wordpress-seo' ),
24		'<em>',
25		'</em>'
26	);
27	?>
28</p>
29
30<form
31	action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-import' ) ); ?>"
32	method="post" enctype="multipart/form-data"
33	accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
34	<?php wp_nonce_field( 'wpseo-import-file', '_wpnonce', true, true ); ?>
35	<label class="screen-reader-text" for="settings-import-file"><?php esc_html_e( 'Choose your settings.zip file', 'wordpress-seo' ); ?></label>
36	<input type="file" name="settings_import_file" id="settings-import-file"
37		accept="application/x-zip,application/x-zip-compressed,application/zip"/>
38	<input type="hidden" name="action" value="wp_handle_upload"/><br/>
39	<br/>
40	<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Import settings', 'wordpress-seo' ); ?>"/>
41</form>