• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / lib/views/pages/genesis-admin-import-export.php


Lines:

1 to 89 of 89
<?php

/**
 * Genesis Framework.
 *
 * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
 * Please do all modifications in the form of a child theme.
 *
 * @package StudioPress\Genesis
 * @author  StudioPress
 * @license GPL-2.0-or-later
 * @link    https://my.studiopress.com/themes/genesis/
 */

?>
<div class="wrap">
	<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>

	<table class="form-table">
		<tbody>

			<tr>
				<th scope="row"><strong><?php esc_html_e( 'Import Genesis Settings File', 'genesis' ); ?></strong></th>
				<td>
					<p>
					<?php
          /* translators: %s: JSON file extension. */
          printf( esc_html__( 'Upload the data file (%s) from your computer and we\'ll import your settings.', 'genesis' ), genesis_code( '.json' ) );
          ?>
					</p>
					<p><?php esc_html_e( 'Choose the file from your computer and click "Upload file and Import"', 'genesis' ); ?></p>

						<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( menu_page_url( 'genesis-import-export', 0 ) ); ?>">
							<?php wp_nonce_field( 'genesis-import', 'genesis-import-nonce' ); ?>
							<input type="hidden" name="genesis-import" value="1" />
							<label for="genesis-import-upload">
								<?php
                /* translators: %s: Maximum size import files can have. */
                printf( esc_html__( 'Upload File (Maximum Size: %s): ', 'genesis' ), esc_html( ini_get( 'post_max_size' ) ) );
                ?>
							</label>
							<input type="file" id="genesis-import-upload" name="genesis-import-upload" />
							<?php
              submit_button( __( 'Upload File and Import', 'genesis' ), 'primary', 'upload' );
              ?>
						</form>

				</td>
			</tr>

			<tr>
				<th scope="row"><strong><?php esc_html_e( 'Export Genesis Settings File', 'genesis' ); ?></strong></th>
				<td>
					<p>
					<?php
          /* translators: %s: JSON file extension. */
          printf( esc_html__( 'When you click the button below, Genesis will generate a data file (%s) for you to save to your computer.', 'genesis' ), genesis_code( '.json' ) );
          ?>
					</p>
					<p><?php esc_html_e( 'Once you have saved the download file, you can use the import function on another site to import this data.', 'genesis' ); ?></p>

						<form method="post" action="<?php echo esc_url( menu_page_url( 'genesis-import-export', 0 ) ); ?>">
							<?php
              wp_nonce_field( 'genesis-export', 'genesis-export-nonce' );
              $this->export_checkboxes();
              if ( $this->get_export_options() ) {
                submit_button( __( 'Download Export File', 'genesis' ), 'primary', 'download' );
              }
              ?>
						</form>

				</td>
			</tr>

			<?php
      
/**
 * Fires on the import export admin page, before the closing tbody tag.
 *
 * @since 1.6.0
 */
      do_action( 'genesis_import_export_form' );
      ?>

		</tbody>
	</table>

</div>
 

Called by

    Invoked by

      Calls

      1 to 1 of 1
      • genesis_code() – Mark up content with code tags.

      Call hooks

      1 to 1 of 1
      • genesis_import_export_form – action
      File name: lib/views/pages/genesis-admin-import-export.php
      Plugin ref: Genesis Framework
      Version: 3.3.5
      Deprecated?: No
      API Letters: A,G,L,P,V

      Published: 25th November 2019 | Last updated: 25th November 2019

      Primary Sidebar

      Information

      File name: lib/views/pages/genesis-admin-import-export.php
      Plugin ref: Genesis Framework
      Version: 3.3.5
      Deprecated?: No
      API Letters: A,G,L,P,V

      lib/views/pages

      Footer

      Genesis a2z
      Genesis Theme Framework a2z
      WordPress Dynamic API Reference
      WordPress 5.9.3
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  genesis.wp-a2z.org
      © Copyright Genesis a2z 2014-2022. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites