/wp-content/plugins/wordpress-seo/admin/views/tabs/tool/wpseo-export.php
https://bitbucket.org/carloskikea/helpet · PHP · 35 lines · 20 code · 5 blank · 10 comment · 1 complexity · 69af93aeaac9881531048ac95402a5b3 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();
- }
- /* translators: %1$s expands to Yoast SEO */
- $submit_button_value = sprintf( __( 'Export your %1$s settings', 'wordpress-seo' ), 'Yoast SEO' );
- $wpseo_export_phrase = sprintf(
- /* translators: %1$s expands to Yoast SEO */
- __( 'Export your %1$s settings here, to import them again later or to import them on another site.', 'wordpress-seo' ),
- 'Yoast SEO'
- );
- ?>
- <p><?php echo esc_html( $wpseo_export_phrase ); ?></p>
- <form
- action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-export' ) ); ?>"
- method="post"
- accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
- <?php wp_nonce_field( WPSEO_Export::NONCE_ACTION, WPSEO_Export::NONCE_NAME ); ?>
- <button type="submit" class="button button-primary" id="export-button"><?php echo esc_html( $submit_button_value ); ?></button>
- </form>