<?php global $syrus; ?>
<h2><?php esc_html_e("Texts for robots.txt and ads.txt",'syrus') ?></h2>
<p class="m-0"><?php esc_html_e("Here you can insert your texts in the robots.txt and ads.txt files",'syrus') ?></p>
<hr class="mt-1 mb-4">

<form action="<?php echo admin_url('admin-post.php') ;?>" method="POST">
    <input type="hidden" name="action" value="salva_robots_ads_txt">

    <div class="container-fluid mt-3">
        <div class="row mb-3 text-center justify-content-center">
            <div class="col-5">
                <h5>robots.txt</h5>
                <textarea class="text-area-txt w-100" name="robots" id="" rows="30"><?php echo $syrus->get_option("file","robots_txt") ;?></textarea>
                <br>
                <input class="form-control" type="checkbox" id="chk_robots_txt" value="1" name="abilita_robots_txt" <?php echo $syrus->get_option("file",'abilita_robots_txt') && $syrus->get_option("file",'abilita_robots_txt') == 1 ? 'checked' : '' ;?> autocomplete="off">
                <label class="form-check-label"  for="chk_robots_txt" >Abilita virtualizzazione robots.txt</label>
            </div>
            <div class="col-1"></div>
            <div class="col-5">
                <h5>ads.txt</h5>
                <textarea class="text-area-txt w-100" name="ads" id="" rows="30"><?php echo $syrus->get_option("file","ads_txt"); ?></textarea>
                <br>
                <input class="form-control" type="checkbox" id="chk_ads_txt" name="abilita_ads_txt" value="1" <?php echo $syrus->get_option("file",'abilita_ads_txt') && $syrus->get_option("file",'abilita_ads_txt') == 1 ? 'checked' : ''; ?> autocomplete="off">
                <label class="form-check-label"  for="chk_ads_txt">Abilita virtualizzazione ads.txt</label>
            </div>
        </div>

        <div class="row">
            <div class="col-12 text-center">
                <button class="btn btn-primary">Salva impostazioni</button>
            </div>
        </div>
    </div>
</form>