/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
- <?php
- /**
- * WPSEO plugin file.
- *
- * @package WPSEO\Admin\Views
- */
- /**
- * @var Yoast_Form $yform
- */
- if ( ! defined( 'WPSEO_VERSION' ) ) {
- header( 'Status: 403 Forbidden' );
- header( 'HTTP/1.1 403 Forbidden' );
- exit();
- }
- ?>
- <p>
- <?php
- printf(
- /* translators: 1: emphasis opener; 2: emphasis closer. */
- esc_html__( 'Import settings by locating %1$ssettings.zip%2$s and clicking "Import settings"', 'wordpress-seo' ),
- '<em>',
- '</em>'
- );
- ?>
- </p>
- <form
- action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-import' ) ); ?>"
- method="post" enctype="multipart/form-data"
- accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
- <?php wp_nonce_field( 'wpseo-import-file', '_wpnonce', true, true ); ?>
- <label class="screen-reader-text" for="settings-import-file"><?php esc_html_e( 'Choose your settings.zip file', 'wordpress-seo' ); ?></label>
- <input type="file" name="settings_import_file" id="settings-import-file"
- accept="application/x-zip,application/x-zip-compressed,application/zip"/>
- <input type="hidden" name="action" value="wp_handle_upload"/><br/>
- <br/>
- <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Import settings', 'wordpress-seo' ); ?>"/>
- </form>