PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 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/* translators: %1$s expands to Yoast SEO */
19$submit_button_value = sprintf( __( 'Export your %1$s settings', 'wordpress-seo' ), 'Yoast SEO' );
20
21$wpseo_export_phrase = sprintf(
22	/* translators: %1$s expands to Yoast SEO */
23	__( 'Export your %1$s settings here, to import them again later or to import them on another site.', 'wordpress-seo' ),
24	'Yoast SEO'
25);
26?>
27
28<p><?php echo esc_html( $wpseo_export_phrase ); ?></p>
29<form
30	action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-export' ) ); ?>"
31	method="post"
32	accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
33	<?php wp_nonce_field( WPSEO_Export::NONCE_ACTION, WPSEO_Export::NONCE_NAME ); ?>
34	<button type="submit" class="button button-primary" id="export-button"><?php echo esc_html( $submit_button_value ); ?></button>
35</form>