<?php
require_once __DIR__ . '/includes/bootstrap.php';
require_once __DIR__ . '/includes/fields.php';
require_once __DIR__ . '/includes/config_form.php';
$pageTitle = 'Anúncios e Monetização';
$pageSubtitle = 'Configure AdMob, Prebid, VAST e Freestar conforme os blocos compatíveis com a base.';
$pageIcon = 'fa-rectangle-ad';
$groups = ad_fields();
handle_config_post($groups, 'ads.php');
require __DIR__ . '/includes/header.php';
?>
<form method="post">
    <input type="hidden" name="csrf" value="<?=e(csrf_token())?>">
    <?php render_config_page($groups); ?>
    <div class="form-actions"><button class="btn btn-info" type="submit"><i class="fa-solid fa-floppy-disk"></i> Salvar anúncios</button></div>
</form>
<?php require __DIR__ . '/includes/footer.php'; ?>
