<div class="page-headline">
    <img src="<?php echo $this->imagePath; ?>/icons/settings.svg" alt="">
    <h3><?php _ex('Import & Export', 'Headline right of icon', 'borlabs-cookie'); ?></h3>
</div>
<div class="content">

    <div class="messages">
    <?php echo \BorlabsCookie\Cookie\Backend\Backend::getInstance()->getMessages(); ?>
    </div>

    <?php
    if (\BorlabsCookie\Cookie\Backend\License::getInstance()->isPluginUnlocked()) {
    ?>
    <form method="post">
        <fieldset>

            <legend><?php _ex('Import', 'Import - Headline of a fieldset', 'borlabs-cookie'); ?></legend>
            <div class="form-group">
                <div class="form-title">
                    <label for="importSettings"><?php _ex('New settings', 'Import Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="importSettings" id="importSettings" cols="80" rows="5"></textarea>
                    <span class="description"><?php _ex('Paste your settings into the text area and click on <strong>Import settings</strong>.', 'Import - Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <hr>
            <?php wp_nonce_field('borlabs_cookie_import_export'); ?>
            <input type="hidden" name="formSend" value="1">
            <input class="button-primary" type="submit" value="<?php _ex('Import settings', 'Button title', 'borlabs-cookie'); ?>">
        </fieldset>
    </form>

    <fieldset>
        <legend><?php _ex('Export', 'Export - Headline of a fieldset', 'borlabs-cookie'); ?></legend>
        <div class="form-group">
            <div class="form-title">
                <label for="exportSettings"><?php _ex('Current settings', 'Export - Form', 'borlabs-cookie'); ?></label>
            </div>
            <div class="form-field">
                <textarea name="exportSettings" id="exportSettings" cols="80" rows="5"><?php echo $textareaExportSettings; ?></textarea>
                <span class="description"><?php _ex('Copy the content of the text area and insert it into the import field of another WordPress instance where you want to apply your Borlabs Cookie settings.', 'Export - Setting description', 'borlabs-cookie'); ?></span>
            </div>
        </div>
    </fieldset>
    <?php
    } else {
        echo \BorlabsCookie\Cookie\Backend\License::getInstance()->getNoLicenseMessage();
    }
    ?>
</div>