/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. * @var Yoast_Form $yform
  9. */
  10. if ( ! defined( 'WPSEO_VERSION' ) ) {
  11. header( 'Status: 403 Forbidden' );
  12. header( 'HTTP/1.1 403 Forbidden' );
  13. exit();
  14. }
  15. /* translators: %1$s expands to Yoast SEO */
  16. $submit_button_value = sprintf( __( 'Export your %1$s settings', 'wordpress-seo' ), 'Yoast SEO' );
  17. $wpseo_export_phrase = sprintf(
  18. /* translators: %1$s expands to Yoast SEO */
  19. __( 'Export your %1$s settings here, to import them again later or to import them on another site.', 'wordpress-seo' ),
  20. 'Yoast SEO'
  21. );
  22. ?>
  23. <p><?php echo esc_html( $wpseo_export_phrase ); ?></p>
  24. <form
  25. action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-export' ) ); ?>"
  26. method="post"
  27. accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
  28. <?php wp_nonce_field( WPSEO_Export::NONCE_ACTION, WPSEO_Export::NONCE_NAME ); ?>
  29. <button type="submit" class="button button-primary" id="export-button"><?php echo esc_html( $submit_button_value ); ?></button>
  30. </form>