function _show_import_methods_screen() { require_once dirname(__FILE__) . '/class.builder-import-export.php'; $import = new BuilderImportExport($_REQUEST['guid']); $info = $import->get_info(); $details = array('name' => __('Name', 'it-l10n-Builder-Cohen'), 'timestamp' => __('Date and Time', 'it-l10n-Builder-Cohen'), 'exported_by' => __('Exported By', 'it-l10n-Builder-Cohen'), 'builder_version' => __('Builder Version', 'it-l10n-Builder-Cohen'), 'site_url' => __('Site Address', 'it-l10n-Builder-Cohen')); $form = new ITForm(array(), true); ?> <div class="wrap"> <?php ITUtility::screen_icon(); ?> <h2>Basic Import Options</h2> <?php if (is_wp_error($info)) { ?> <?php ITUtility::show_error_message(__('Error: The selected input file could not be found. Please select a different file to import.', 'it-l10n-Builder-Cohen')); ?> <p><a href="<?php echo esc_url($this->_parent->_self_link); ?> "><?php _e('← Back to Import/Export Settings', 'it-l10n-Builder-Cohen'); ?> </a></p> <?php } else { ?> <p><?php _e('Selected export file details:', 'it-l10n-Builder-Cohen'); ?> </p> <table style="text-align:left;margin-left:20px;"> <?php foreach ((array) $details as $var => $description) { ?> <?php $val = $info[$var]; if ('timestamp' === $var) { $val = gmdate('Y-m-d H:i:s', $info['timestamp'] + get_option('gmt_offset') * 3600); } if ('site_url' === $var) { $val = "<a href='" . esc_attr($val) . "'>{$val}</a>"; } ?> <tr><th scope="row" style="padding-right:20px;"><?php echo $description; ?> </th> <td><?php echo $val; ?> </td> </tr> <?php } ?> </table> <br /> <p><?php _e('Use the following options to select how to import each type of data contained in the export:', 'it-l10n-Builder-Cohen'); ?> </p> <?php $form->start_form(array(), "import_customize_guid_{$_REQUEST['guid']}"); ?> <?php $import->show_data_source_import_methods($form); ?> <p class="submit"> <?php $form->add_submit('next', __('Next Step', 'it-l10n-Builder-Cohen')); ?> <?php $form->add_submit('cancel', array('value' => __('Cancel', 'it-l10n-Builder-Cohen'), 'class' => 'button-secondary')); ?> </p> <?php $form->add_hidden_no_save('guid', $_REQUEST['guid']); ?> <?php $form->add_hidden_no_save('action', 'import_customize'); ?> <?php $form->add_hidden_no_save('editor_tab', 'import-export'); ?> <?php $form->end_form(); ?> <?php } ?> </div> <?php }