<?php
if ($integration === 'script') {
    ?><script id="borlabsCookieMessageBox" type="text/template"><?php
} else {
    ?><div id="borlabsCookieMessageBox"><?php
}
?>
    <div data-borlabs-cookie-wrap="popup">
        <div data-borlabs-cookie class="<?php echo $position; ?>">
            <p class="borlabsCookieHeadline"><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textTitle'); ?></p>
            <div data-borlabs-selection>
                <p class="borlabsCookieExplanation"><?php echo $textExplanation; ?></p>
                <div data-borlabs-selection-list>
                    <ul>
                        <li class="cookieOption1"><label for="borlabsCookieOptionAll"><input id="borlabsCookieOptionAll" type="radio" name="cookieOption" value="all"><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textCookieOptionThirdParty'); ?></label></li>
                        <?php
                        if (\BorlabsCookie\Cookie\Config::getInstance()->get('showCookieOption2')) {
                        ?>
                        <li class="cookieOption2"><label for="borlabsCookieOptionFirstParty"><input id="borlabsCookieOptionFirstParty" type="radio" name="cookieOption" value="first-party"><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textCookieOptionFirstParty'); ?></label></li>
                        <?php
                        }
                        if (\BorlabsCookie\Cookie\Config::getInstance()->get('showCookieOption3')) {
                        ?>
                        <li class="cookieOption3"><label for="borlabsCookieOptionRejectAll"><input id="borlabsCookieOptionRejectAll" type="radio" name="cookieOption" value="reject-all"><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textCookieOptionRejectThirdParty'); ?></label></li>
                        <?php
                        }
                        ?>
                    </ul>
                    <p class="borlabsCookieText"><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textInstruction'); ?></p>
                    <?php
                    if (!empty($testEnvironment)) {
                        ?><p class="borlabsCookieText"><span style="color: #f00; background: #fff;"><?php _ex('Test environment active!', 'Status message', 'borlabs-cookie'); ?></span></p><?php
                    }
                    ?>
                </div>
                <div data-borlabs-selection-success>
                    <p class="borlabsCookieSuccess"><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textCookieSettingSaved'); ?></p>
                </div>
                <p class="borlabsCookieText" data-borlabs-cookie-help-link><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textHelpLink'); ?></p>
            </div>
            <div data-borlabs-help>
                <p class="borlabsCookieSubHeadline"><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textHelpHeadline'); ?></p>
                <p><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textHelpTop'); ?></p>
                <ul>
                    <li><span><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textCookieOptionThirdParty'); ?></span>:<br><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textHelpCookieOptionThirdParty'); ?></li>
                    <?php
                    if (\BorlabsCookie\Cookie\Config::getInstance()->get('showCookieOption2')) {
                    ?>
                    <li><span><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textCookieOptionFirstParty'); ?></span>:<br><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textHelpCookieOptionFirstParty'); ?></li>
                    <?php
                    }
                    if (\BorlabsCookie\Cookie\Config::getInstance()->get('showCookieOption3')) {
                    ?>
                    <li><span><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textCookieOptionRejectThirdParty'); ?></span>:<br><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textHelpCookieOptionRejectThirdParty'); ?></li>
                    <?php
                    }
                    ?>
                </ul>
                <p><?php echo $textHelpBottom; ?></p>
                <p class="borlabsCookieText" data-borlabs-cookie-help-link><?php echo \BorlabsCookie\Cookie\Config::getInstance()->get('textBackLink'); ?></p>
            </div>
        </div>
    </div>
<?php
if ($integration === 'script') {
    ?></script><?php
} else {
    ?></div><?php
}
?>