<div class="page-headline">
    <img src="<?php echo $this->imagePath; ?>/icons/settings.svg" alt="">
    <h3><?php _ex('Texts', '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('Cookie options', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>
            <div class="form-group">
                <div class="form-title">
                    <label for="textCookieOptionThirdParty"><?php _ex('Option 1: All cookies', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextCookieOptionThirdParty; ?>" type="text" name="textCookieOptionThirdParty" id="textCookieOptionThirdParty" class="regular-text">
                    <span class="description"><?php _ex('Name of the first option allowing all cookies.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textCookieOptionFirstParty"><?php _ex('Option 2: First-party cookies', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextCookieOptionFirstParty; ?>" type="text" name="textCookieOptionFirstParty" id="textCookieOptionFirstParty" class="regular-text">
                    <span class="description"><?php _ex('Name of the second option, which allows first-party cookies only.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textCookieOptionRejectThirdParty"><?php _ex('Option 3: Reject all cookies', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextCookieOptionRejectThirdParty; ?>" type="text" name="textCookieOptionRejectThirdParty" id="textCookieOptionRejectThirdParty" class="regular-text">
                    <span class="description"><?php _ex('Name of optional third option that does not allow any cookies. Exceptions are cookies necessary for technical reasons, such as cookies for shopping carts used by shop systems such as WooCommerce. No permission from the visitor is required here.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>
        </fieldset>

        <fieldset>
            <legend><?php _ex('Help', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>
            <div class="form-group">
                <div class="form-title">
                    <label for="textHelpHeadline"><?php _ex('Headline', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextHelpHeadline; ?>" type="text" name="textHelpHeadline" id="textHelpHeadline" class="regular-text">
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textHelpTop"><?php _ex('Help description top', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textHelpTop" id="textHelpTop" cols="80" rows="3"><?php echo $textareaTextHelpTop; ?></textarea>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textHelpCookieOptionThirdParty"><?php _ex('Explanation of option 1', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textHelpCookieOptionThirdParty" id="textHelpCookieOptionThirdParty" cols="80" rows="3"><?php echo $textareaTextHelpCookieOptionThirdParty; ?></textarea>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textHelpCookieOptionFirstParty"><?php _ex('Explanation of option 2', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textHelpCookieOptionFirstParty" id="textHelpCookieOptionFirstParty" cols="80" rows="3"><?php echo $textareaTextHelpCookieOptionFirstParty; ?></textarea>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textHelpCookieOptionRejectThirdParty"><?php _ex('Explanation of option 3', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textHelpCookieOptionRejectThirdParty" id="textHelpCookieOptionRejectThirdParty" cols="80" rows="3"><?php echo $textareaTextHelpCookieOptionRejectThirdParty; ?></textarea>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textHelpBottom"><?php _ex('Help description bottom', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textHelpBottom" id="textHelpBottom" cols="80" rows="3"><?php echo $textareaTextHelpBottom; ?></textarea>
                    <span class="description"><?php _ex('You can use <strong>%%privacy_url%%</strong> and <strong>%%privacy_title%%</strong> to place the URL and title of your privacy policy.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('You can use <strong>%%imprint_url%%</strong> and <strong>%%imprint_title%%</strong> to place the URL and title of your imprint.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>
        </fieldset>

        <fieldset>
            <legend><?php _ex('Additional texts', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>
            <div class="form-group">
                <div class="form-title">
                    <label for="textTitle"><?php _ex('Title', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextTitle; ?>" type="text" name="textTitle" id="textTitle" class="regular-text">
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textExplanation"><?php _ex('Explanation text', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textExplanation" id="textExplanation" cols="80" rows="3"><?php echo $textareaTextExplanation; ?></textarea>
                    <span class="description"><?php _ex('You can use <strong>%%privacy_url%%</strong> and <strong>%%privacy_title%%</strong> to place the URL and title of your privacy policy.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('You can use <strong>%%imprint_url%%</strong> and <strong>%%imprint_title%%</strong> to place the URL and title of your imprint.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textInstruction"><?php _ex('Instruction text', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextInstruction; ?>" type="text" name="textInstruction" id="textInstruction" class="regular-text">
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textHelpLink"><?php _ex('Help link title', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextHelpLink; ?>" type="text" name="textHelpLink" id="textHelpLink" class="regular-text">
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textBackLink"><?php _ex('Back link title', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextBackLink; ?>" type="text" name="textBackLink" id="textBackLink" class="regular-text">
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textCookieSettingSaved"><?php _ex('Message saved successfully', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextCookieSettingSaved; ?>" type="text" name="textCookieSettingSaved" id="textCookieSettingSaved" class="regular-text">
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textOptOut"><?php _ex('Opt-out text', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textOptOut" id="textOptOut" cols="80" rows="3"><?php echo $textareaTextOptOut; ?></textarea>
                    <span class="description"><?php _ex('You can use <strong>%%tracking_title%%</strong> (replaced with e.g. Google Analytics) within the text.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textOptOutSuccess"><?php _ex('Opt-out success text', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="textOptOutSuccess" id="textOptOutSuccess" cols="80" rows="3"><?php echo $textareaTextOptOutSuccess; ?></textarea>
                    <span class="description"><?php _ex('You can use <strong>%%tracking_title%%</strong> (replaced with e.g. Google Analytics) within the text.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>
        </fieldset>

        <fieldset>
            <legend><?php _ex('Log table texts', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>
            <div class="form-group">
                <div class="form-title">
                    <label for="textLogColumnTitleUserAction"><?php _ex('Column title: User action', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogColumnTitleUserAction; ?>" type="text" name="textLogColumnTitleUserAction" id="textLogColumnTitleUserAction" class="regular-text">
                    <span class="description"><?php _ex('The title of the column where the user actions are displayed.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogColumnTitleStamp"><?php _ex('Column title: time stamp', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogColumnTitleStamp; ?>" type="text" name="textLogColumnTitleStamp" id="textLogColumnTitleStamp" class="regular-text">
                    <span class="description"><?php _ex('The title of the column where the time stamps are displayed.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogOptionThirdParty"><?php _ex('Option 1: All cookies', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogOptionThirdParty; ?>" type="text" name="textLogOptionThirdParty" id="textLogOptionThirdParty" class="regular-text">
                    <span class="description"><?php _ex('Text shown in the table if option 1 was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogOptionFirstParty"><?php _ex('Option 2: First-party cookies', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogOptionFirstParty; ?>" type="text" name="textLogOptionFirstParty" id="textLogOptionFirstParty" class="regular-text">
                    <span class="description"><?php _ex('Text shown in the table if option 2 was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogOptionRejectAllCookies"><?php _ex('Option 3: Reject all cookies', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogOptionRejectAllCookies; ?>" type="text" name="textLogOptionRejectAllCookies" id="textLogOptionRejectAllCookies" class="regular-text">
                    <span class="description"><?php _ex('Text shown in the table if option 3 was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogOptionNoSelection"><?php _ex('Option: No selection', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogOptionNoSelection; ?>" type="text" name="textLogOptionNoSelection" id="textLogOptionNoSelection" class="regular-text">
                    <span class="description"><?php _ex('Text shown in the table for every time the user visits the website without selecting an option.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogOptOutGoogleAnalytics"><?php _ex('Opted-out Google Analytics', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogOptOutGoogleAnalytics; ?>" type="text" name="textLogOptOutGoogleAnalytics" id="textLogOptOutGoogleAnalytics" class="regular-text">
                    <span class="description"><?php _ex('Text shown in the table if the opt-out of Google Analytics was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogOptOutFacebookPixel"><?php _ex('Opted-out Facebook Pixel', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogOptOutFacebookPixel; ?>" type="text" name="textLogOptOutFacebookPixel" id="textLogOptOutFacebookPixel" class="regular-text">
                    <span class="description"><?php _ex('Text shown in the table if the opt-out of Facebook Pixel was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="textLogOptInToUnblockType"><?php _ex('Always unblock Blocked Content Type', 'Table', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputTextLogOptInUnblockType; ?>" type="text" name="textLogOptInToUnblockType" id="textLogOptInToUnblockType" class="regular-text">
                    <span class="description"><?php _ex('Text shown in the table if the user selected the option to unblock all blocked content of the same Blocked Content Type.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('You should use %%name%% (replaced with e.g. YouTube) within the text.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

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

        </fieldset>
    </form>
    <?php
    } else {
        echo \BorlabsCookie\Cookie\Backend\License::getInstance()->getNoLicenseMessage();
    }
    ?>
</div>