<?php
$consents = $this->getConsents();

if (!empty($consents) && (\gdprc_user_is_logged_in() || empty($this->getSetting('gdpr_consent_maintenance_mode')))):
    ?>
    <?php echo \apply_filters('gdprc_embed_before', ''); ?>
	<div id="gdprc_settings" class="gdprc_embed_widget<?php echo $this->getEffectsClasses(); ?>">
        <?php if ($interfaceTitle = $this->getCustomTitle()) : ?>
			<div class="gdprc_header">
                <?php echo \apply_filters('gdprc_embed_header', $interfaceTitle ? '<h3 class=\'gdprc_header__title\'>'.$interfaceTitle.'</h3>' : ''); ?>
			</div>
        <?php endif; ?>
		<div class="gdprc_items">
            <?php echo \apply_filters('gdprc_embed_consents_before', ''); ?>
            <?php include __DIR__.'/Consents.php'; ?>
            <?php echo \apply_filters('gdprc_embed_consents_after', ''); ?>
		</div>

		<div class="gdprc_actions">
			<button class="gdprc_action__save_shortcode gdprc_button gdprc_action button">
                <?php echo \apply_filters('gdprc_embed_actions_before', ''); ?>
				<span class="gdprc_action"><?php echo $this->getSetting('gdprc_consent_interface_apply_embed') ?></span>
				<span class="gdprc_done"><?php echo $this->getSetting('gdprc_consent_interface_apply_confirmation') ?></span>
                <?php echo \apply_filters('gdprc_embed_actions_after', ''); ?>
			</button>
		</div>
	</div>
    <?php echo \apply_filters('gdprc_embed_after', ''); ?>
    <?php include __DIR__.'/ThemeStyle.php'; ?>
<?php endif; ?>