<?php
/**
 * Page Name: Import/Export
 *
 */


use WPButtons\Admin\ImporterExporter;
use WPButtons\WOWP_Plugin;

defined( 'ABSPATH' ) || exit;

?>

    <div class="wpie-block-tool">

        <div class="inside">
            <h3><span class="dashicons dashicons-database-export"></span> <span><?php esc_html_e( 'Export Settings', 'buttons' ); ?></span></h3>
            <div class="inside">
                <p><?php
	                /* translators: %s: plugin name */
					printf( esc_html__( 'Export the  settings for %s as a .json file. This allows you to easily import the configuration into another site.', 'buttons' ), '<b>' . esc_attr( WOWP_Plugin::info('name') ) . '</b>' ); ?></p>
				<?php ImporterExporter::form_export(); ?>
            </div>
        </div>
        <hr>

        <div class="inside">
            <h3><span class="dashicons dashicons-database-import"></span> <span><?php esc_html_e( 'Import Settings', 'buttons' ); ?></span></h3>
            <div class="inside">
                <p><?php
	                /* translators: %s: plugin name */
					printf( esc_html__( 'Import the %s settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', 'buttons' ), '<b>' . esc_attr( WOWP_Plugin::info('name') ) . '</b>    ' ); ?></p>
				<?php ImporterExporter::form_import(); ?>
            </div>
        </div>

    </div>

<?php
