<div class="page-headline">
    <img src="<?php echo $this->imagePath; ?>/icons/settings.svg" alt="">
    <h3><?php _ex('Cookies Settings', '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" id="BorlabsCookieForm">

        <fieldset>
            <legend><?php _ex('Status', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>

            <div class="form-group">
                <div class="form-title"><?php _ex('Activate Borlabs Cookie', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="cookieActivated">
                        <input<?php echo $checkboxCookieActivated; ?> type="checkbox" name="cookieActivated" id="cookieActivated" value="yes"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?> <i class="dashicons dashicons-lightbulb <?php echo !empty($checkboxCookieActivated) ? 'text-green' : 'text-red'; ?>"></i></span>
                    </label>
                    <span class="description"><?php _ex('Activates Borlabs cookie on your website. Displays the cookie box and blocks iframes and other external media.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>
        </fieldset>

        <fieldset>
            <legend><?php _ex('Cookie option 1: Third-party cookies', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>
            <div class="form-group">
                <div class="form-title">
                    <label for="codeCookieThirdParty"><?php _ex('Your JavaScript including &lt;script&gt;-tags', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="codeCookieThirdParty" id="codeCookieThirdParty" cols="80" rows="5"><?php echo $textareaCodeCookieThirdParty; ?></textarea>
                    <span class="description"><?php _ex('Insert JavaScript code that loads JavaScript from external sources and uses cookies such as tracking codes like Google Analytics, Facebook-Pixel, eTracker, etc..', 'Setting description', 'borlabs-cookie'); ?></span>
                    <div class="messages hide">
                        <p class="error no-margin"><?php _ex('Warning: <strong>document.write</strong> was detected in the inserted JavaScript code. For technical reasons, it is not possible to execute this code. To save your changes, you must first remove the JavaScript code that includes <strong>document.write</strong> from the inserted JavaScript code.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                    <div class="messages">
                        <p class="tip no-margin"><?php _ex('Tip: If you integrate e.g. banners on your website but place the code in your post or any other location in your WordPress website, you can use the shortcode <strong>[borlabs_cookie_third_party] YOUR BANNER CODE [/borlabs_cookie_third_party]</strong>. Borlabs Cookie will then execute your code only after your visitor selected <strong>Accept all cookies</strong> in the cookie options.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="googleAnalyticsId"><?php _ex('Google Analytics Tracking-ID', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputGoogleAnalyticsId; ?>" type="text" name="googleAnalyticsId" id="googleAnalyticsId" class="regular-text" placeholder="UA-XXXXXXX">
                    <span class="description"><?php _ex('Enter your Google Analytics Tracking-ID and Borlabs Cookie will automatically implement the code <strong>including IP-anonymization</strong>.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <div class="messages">
                        <p class="tip no-margin"><?php _ex('Tip: You can use the shortcode <strong>[borlabs_cookie_opt_out tracking="google-analytics"]</strong> to give your visitors the option to opt out. Or you can add the CSS class <strong>borlabs-cookie-google-opt-out</strong> to a button or anchor link, e. g. <strong>&lt;a class="borlabs-cookie-google-opt-out"&gt;Opt-out&lt;/a&gt;</strong>.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="facebookPixelId"><?php _ex('Facebook Pixel-ID', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputFacebookPixelId; ?>" type="text" name="facebookPixelId" id="facebookPixelId" class="regular-text">
                    <span class="description"><?php _ex('Enter your Facebook Pixel-ID and Borlabs Cookie will automatically implement the code.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <div class="messages">
                        <p class="tip no-margin"><?php _ex('Tip: You can use the shortcode <strong>[borlabs_cookie_opt_out tracking="facebook-pixel"]</strong> to give your visitors the option to opt out. Or you can add the CSS class <strong>borlabs-cookie-facebook-opt-out</strong> to a button or anchor e. g. <strong>&lt;a class="borlabs-cookie-facebook-opt-out"&gt;Opt-out&lt;/a&gt;</strong>.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="cookieLifetime"><?php _ex('Cookie Lifetime', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputCookieLifetime; ?>" type="text" name="cookieLifetime" id="cookieLifetime" class="regular-text">
                    <span class="description"><?php _ex('Number of days the user selection is saved if this option was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Cookies for bots/crawlers', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="cookiesForBots">
                        <input<?php echo $checkboxCookiesForBots; ?> type="checkbox" name="cookiesForBots" id="cookiesForBots" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('A bot/crawler will get the same JavaScripts as a visitor who selected the first option (Option 1: Third-party cookies).', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

        </fieldset>

        <fieldset>
            <legend><?php _ex('Cookie option 2: First-party cookies', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>

            <div class="form-group">
                <div class="form-title"><?php _ex('Show this option', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="showCookieOption2">
                        <input<?php echo $checkboxShowCookieOption2; ?> type="checkbox" name="showCookieOption2" id="showCookieOption2" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('The visitor sees a second option, which allows him to pull up the site without executing JavaScript from the option <strong>Third-party cookies</strong>.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="codeCookieFirstParty"><?php _ex('Your JavaScript including &lt;script&gt;-tags', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="codeCookieFirstParty" id="codeCookieFirstParty" cols="80" rows="5"><?php echo $textareaCodeFirstParty; ?></textarea>
                    <span class="description"><?php _ex('Insert the JavaScript code that loads more JavaScript from your server and uses cookies, e.g. tracking code from a self-hosted Piwik/Matomo.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <div class="messages hide">
                        <p class="error no-margin"><?php _ex('Warning: <strong>document.write</strong> was detected in the inserted JavaScript code. For technical reasons it is not possible to execute this code. To save you have to first remove the JavaScript code which includes <strong>document.write</strong> from the inserted JavaScript code.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                    <div class="messages">
                        <p class="tip no-margin"><?php _ex('Tip: If you integrate e.g. banners on your site but place the code in your post or any other location in your WordPress website you can use the shortcode <strong>[borlabs_cookie_first_party] YOUR BANNER CODE [/borlabs_cookie_first_party]</strong>. Borlabs Cookie will then execute your code only after your visitor selected <strong>Accept first-party cookies only</strong> in the cookie options.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="cookieLifetimeOption2"><?php _ex('Cookie Lifetime', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputCookieLifetimeOption2; ?>" type="text" name="cookieLifetimeOption2" id="cookieLifetimeOption2" class="regular-text">
                    <span class="description"><?php _ex('Number of days the user selection is saved if this option was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Execute code when the first option is selected', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="executeFirstPartyCodeOnThirdParty">
                        <input<?php echo $checkboxExecuteFirstPartyCodeOnThirdParty; ?> type="checkbox" name="executeFirstPartyCodeOnThirdParty" id="executeFirstPartyCodeOnThirdParty" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('If the visitor chooses the first cookie option (<strong>Accept all cookies</strong>) any JavaScript of the second option <strong>First-party cookie</strong> will also be executed.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

        </fieldset>

        <fieldset>
            <legend><?php _ex('Cookie option 3: No cookies', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>

            <div class="form-group">
                <div class="form-title"><?php _ex('Show this option', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="showCookieOption3">
                        <input<?php echo $checkboxShowCookieOption3; ?> type="checkbox" name="showCookieOption3" id="showCookieOption3" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('The visitor sees a third option, which allows him to pull up the site without executing JavaScript from the option <strong>Third-party cookies</strong> or <strong>First-party cookies</strong>.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <div class="messages">
                        <p class="tip no-margin"><?php _ex('Tip: If you use cookies that are necessary for technical reasons, e.g. shop baskets, rename this option to e. g. <strong>Reject All Tracking Cookies</strong>.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="cookieLifetimeOption3"><?php _ex('Cookie Lifetime', 'Form', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <input value="<?php echo $inputCookieLifetimeOption3; ?>" type="text" name="cookieLifetimeOption3" id="cookieLifetimeOption3" class="regular-text">
                    <span class="description"><?php _ex('Number of days the user selection is saved if this option was selected.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Respect "Do Not Track"', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="cookieRespectDoNotTrack">
                        <input<?php echo $checkboxCookieRespectDoNotTrack; ?> type="checkbox" name="cookieRespectDoNotTrack" id="cookieRespectDoNotTrack" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('A visitor with active "Do Not Track" setting will not see the cookie box and Borlabs Cookie automatically sets the option "No Cookies".', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

        </fieldset>

        <fieldset>
            <legend><?php _ex('Cookie box settings', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>

            <div class="form-group">
                <div class="form-title"><?php _ex('Show cookie box', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <select name="cookieBoxShow" id="cookieBoxShow">
                        <option<?php echo $optionCookieBoxShowAutomatic; ?> value="automatic"><?php _ex('Automatic', 'Select option', 'borlabs-cookie'); ?></option>
                        <option<?php echo $optionCookieBoxShowAlways; ?> value="always"><?php _ex('Always', 'Select option', 'borlabs-cookie'); ?></option>
                        <option<?php echo $optionCookieBoxShowNever; ?> value="never"><?php _ex('Never', 'Select option', 'borlabs-cookie'); ?></option>
                    </select>
                    <span class="description"><?php _ex('<strong>Automatic</strong>: The cookie box only displays if you have inserted at least one JavaScript code in the above fields, entered a Google Analytics tracking ID or a Facebook pixel ID.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('<strong>Always</strong>: The cookie box is always displayed.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('<strong>Never</strong>: The cookie box is not displayed.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Cookie box blocks content', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="cookieBoxBlocks">
                        <input<?php echo $checkboxCookieBoxBlocks; ?> type="checkbox" name="cookieBoxBlocks" id="cookieBoxBlocks" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('The content below the cookie box will be inaccessible until the visitor has selected an option.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Cookie box integration', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <select name="cookieBoxIntegration" id="cookieBoxIntegration">
                        <option<?php echo $optionCookieBoxIntegrationScript; ?> value="script"><?php _ex('JavaScript', 'Select option', 'borlabs-cookie'); ?></option>
                        <option<?php echo $optionCookieBoxIntegrationHTML; ?> value="html"><?php _ex('HTML', 'Select option', 'borlabs-cookie'); ?></option>
                    </select>
                    <span class="description"><?php _ex('<strong>JavaScript</strong>: The cookie box is integrated via JavaScript. Recommended option.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('<strong>HTML</strong>: The cookie box is integrated via HTML. Use this option when you have W3 Total Cache with Minify settings enabled.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Cookie box position', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <select name="cookieBoxPosition" id="cookieBoxPosition">
                        <option<?php echo $optionCookieBoxPositionTop; ?> value="top"><?php _ex('Top', 'Select option', 'borlabs-cookie'); ?></option>
                        <option<?php echo $optionCookieBoxPositionCenter; ?> value="center"><?php _ex('Center', 'Select option', 'borlabs-cookie'); ?></option>
                        <option<?php echo $optionCookieBoxPositionBottom; ?> value="bottom"><?php _ex('Bottom', 'Select option', 'borlabs-cookie'); ?></option>
                    </select>
                    <span class="description"><?php _ex('<strong>Top</strong>: The cookie box appears at the top of the website.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('<strong>Center</strong>: The cookie box appears at the center of the website.', 'Setting description', 'borlabs-cookie'); ?></span>
                    <span class="description"><?php _ex('<strong>Bottom</strong>: The cookie box appears at the bottom of the website.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Privacy Policy page', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="privacyPageId">
                        <?php wp_dropdown_pages(['name'=>'privacyPageId', 'selected'=>$optionPrivacyPageId]); ?>
                    </label>
                    <span class="description"><?php _ex('Select your website\'s Privacy page.', 'Setting description', 'borlabs-cookie'); ?> <?php _ex('<span class="cursor underline" data-borlabs-cookie-add-page>Click here</span> to add the page to the list of excluded pages.', 'Setting description', 'borlabs-cookie'); ?> <span class="dashicons dashicons-update spin hidden"></span></span>
                    <div class="messages">
                        <p class="tip no-margin"><?php _ex('Notice: Do not forget to place the shortcode <strong>[borlabs_cookie]</strong> into your Privacy Policy page to let your visitors modify their cookie preference. You can also place the shortcode <strong>[borlabs_cookie_log]</strong> to show your user his cookie preference history.', 'Setting description', 'borlabs-cookie'); ?></p>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Imprint page', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="imprintPageId">
                        <?php wp_dropdown_pages(['name'=>'imprintPageId', 'selected'=>$optionImprintPageId]); ?>
                    </label>
                    <span class="description"><?php _ex('Select your website\'s Imprint page.', 'Setting description', 'borlabs-cookie'); ?> <?php _ex('<span class="cursor underline" data-borlabs-cookie-add-page>Click here</span> to add the page to the list of excluded pages.', 'Setting description', 'borlabs-cookie'); ?> <span class="dashicons dashicons-update spin hidden"></span></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title">
                    <label for="hideCookieBoxOnPage"><?php _ex("Excluded pages", 'Setting title', 'borlabs-cookie'); ?></label>
                </div>
                <div class="form-field">
                    <textarea name="hideCookieBoxOnPage" id="hideCookieBoxOnPage" cols="80" rows="5"><?php echo esc_textarea($textareaHideCookieBoxOnPage); ?></textarea>
                    <span class="description"><?php _ex('Add one URL per line of the pages on which you do not want to show the cookie box.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

        </fieldset>

        <fieldset>
            <legend><?php _ex('Cookie settings', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>

            <?php
            if (!defined('WP_ALLOW_MULTISITE') || WP_ALLOW_MULTISITE === false) {
                ?>
                <div class="messages">
                    <p class="notice"><?php _ex('Your WordPress is not a Multisite Network, therefore you do not have do modify these settings in most cases.', 'Setting description', 'borlabs-cookie'); ?></p>
                </div>
                <?php
                if ($cookieDomainIsDifferent === true) {
                ?>
                <div class="messages">
                    <p class="error"><?php _ex('Your configured domain is different from the website domain. The setting may be incorrect and will cause the cookie box to reappear on each page.', 'Setting description', 'borlabs-cookie'); ?></p>
                </div>
                <?php
                }
            }

            if (defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE === true) {
                ?>
                <div class="messages">
                    <p class="tip">
                        <?php _ex('Depending on your Multisite Network settings you can separate the cookie consents, or have to aggregate them to get a complete cookie setting history.', 'Setting description', 'borlabs-cookie'); ?>
                        <br>
                        <strong><?php _ex('When you have to aggregate the cookie consent:', 'Setting description', 'borlabs-cookie'); ?></strong>
                        <br>
                        <?php _ex('- if one site is using only the domain (e.g. <strong>example.com</strong>) and the other site a subdomain (e.g. <strong>shop.example.com</strong>)', 'Setting description', 'borlabs-cookie'); ?>
                        <br>
                        <?php _ex('- if one site is using the root folder <strong>/</strong> and the other site a subfolder (e.g. <strong>/shop</strong>)', 'Setting description', 'borlabs-cookie'); ?>
                        <br>
                        <strong><?php _ex('When you can seperate the cookie consent:', 'Setting description', 'borlabs-cookie'); ?></strong>
                        <br>
                        <?php _ex('- if all sites are using different domains (e.g. <strong>example.com</strong> and <strong>my-example.com</strong>) or different subdomains (e.g. <strong>www.example.com</strong> and <strong>shop.example.com</strong>)', 'Setting description', 'borlabs-cookie'); ?>
                        <br>
                        <?php _ex('- if all sites are using different subfolders (e.g. <strong>/en</strong> and <strong>/de</strong>)', 'Setting description', 'borlabs-cookie'); ?>
                        <br>
                    </p>
                </div>
                <?php
            }
            ?>

            <div class="form-group">
                <div class="form-title"><?php _ex('Domain', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <input value="<?php echo $inputCookieDomain; ?>" type="text" name="cookieDomain" id="cookieDomain" class="regular-text">
                    <span class="description"><?php _ex('The domain for which the cookie is valid. Example: if you just enter <strong>example.com</strong> the cookie is also valid for subdomains like <strong>shop.example.com</strong>.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Path', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <input value="<?php echo $inputCookiePath; ?>" type="text" name="cookiePath" id="cookiePath" class="regular-text">
                    <span class="description"><?php echo sprintf(_x('The path for which the cookie is valid. Default path: <strong>%s</strong>', 'Setting description', 'borlabs-cookie'), $networkPath); ?></span>
                </div>
            </div>

            <div class="form-group">
                <div class="form-title"><?php _ex('Aggregate cookie consent', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="aggregateCookieConsent">
                        <input<?php echo $checkboxAggregateCookieConsent; ?> type="checkbox" name="aggregateCookieConsent" id="aggregateCookieConsent" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('Aggregate the cookie consents of all WordPress sites in one table.', 'Setting description', 'borlabs-cookie'); ?></span>
                </div>
            </div>
        </fieldset>

        <fieldset>
            <legend><?php _ex('Iframe block settings', 'Headline of a fieldset', 'borlabs-cookie'); ?></legend>

            <div class="form-group">
                <div class="form-title"><?php _ex('Remove iframes in Feeds', 'Setting title', 'borlabs-cookie'); ?></div>
                <div class="form-field">
                    <label for="removeIframesInFeeds">
                        <input<?php echo $checkboxRemoveIframesInFeeds; ?> type="checkbox" name="removeIframesInFeeds" id="removeIframesInFeeds" value="1"> <span class="option-title"><?php _ex('Activate', 'Setting checkbox', 'borlabs-cookie'); ?></span>
                    </label>
                    <span class="description"><?php _ex('Removes iframes in feeds. Due technical limitations it is not possible to provide the click-to-load functionality in feeds.', '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>