Files
Testing/tbs/wp-content/plugins/age-gate/admin/partials/age-gate-admin-import-export.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

37 lines
1.5 KiB
PHP

<div class="wrap">
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
<?php include AGE_GATE_PATH . 'admin/partials/parts/tabs.php'; ?>
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
<div class="ag-grid">
<div class="column">
<h3><?php _e('Export Settings', 'age-gate'); ?></h3>
<form method="post">
<input type="hidden" name="ag_import_action" value="export" />
<?php wp_nonce_field( 'ag_export', 'ag_export' ) ?>
<fieldset>
<label><input type="checkbox" class="ag-toggle-all" /> <?php _e('All settings', 'age-gate') ?></label><br />
<?php foreach ($this->_exportOptions as $key => $value): ?>
<label><input type="checkbox" name="ag_setting[]" value="<?php echo $key ?>" /> <?php echo $value['label'] ?></label><br />
<?php endforeach; ?>
</fieldset>
<button type="submit" class="button" name="ag_post"><?php _e('Export', 'age-gate'); ?></button>
</form>
</div>
<div class="column">
<h3><?php _e('Import Settings', 'age-gate'); ?></h3>
<form method="post" enctype="multipart/form-data">
<?php wp_nonce_field( 'ag_import', 'ag_import' ) ?>
<input type="hidden" name="ag_import_action" value="import" />
<input type="file" name="ag_json" value="">
<button type="submit" class="button" name="ag_post"><?php _e('Import', 'age-gate'); ?></button>
</form>
</div>
</div>
</div>
</div>