<?php 
    global $syrus;
    $codice_head = $syrus->get_option('ads','head');
    $codice_footer = $syrus->get_option('ads','footer');
    $codice_post_before = $syrus->get_option('ads','post_before');
    $codice_post_after = $syrus->get_option('ads','post_after');
    $codice_post_blocco_1 = $syrus->get_option('ads','post_blocco_1');
    $codice_post_blocco_2 = $syrus->get_option('ads','post_blocco_2');
    $codice_post_blocco_3 = $syrus->get_option('ads','post_blocco_3');

?>
<h2><?php esc_html_e("Head | Footer | Content (Ads)",'syrus') ?></h2>
<p class="m-0"><?php esc_html_e("Here you can inject your script in head, footer and content sections",'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_impostazioni_ads">

    <div class="container-fluid mt-2">
        <div class="row mb-4">
            <div class="col-6">
                <h6><?php esc_html_e("Head Section",'syrus') ?></h6>
                <textarea name="codice_head" class="w-100" name="" id="" rows="5" placeholder="<?php esc_url("Insert here the code...",'syrus') ?>"><?php echo $codice_head; ?></textarea>
            </div>
            <div class="col-6">
                <h6><?php esc_html_e("Footer Section",'syrus') ?></h6>
                <textarea name="codice_footer" class="w-100" name="" id="" rows="5" placeholder="<?php esc_url("Insert here the code...",'syrus') ?>"><?php echo $codice_footer; ?></textarea>
            </div>
        </div>
    
        <hr>
        
        <div class="row mb-4">
            <div class="col-6">
                <h6>Sezione prima del corpo dell'articolo</h6>
                <textarea name="codice_post_before" class="w-100" name="" id="" rows="5" placeholder="<?php esc_url("Insert here the code...",'syrus') ?>"><?php echo $codice_post_before; ?></textarea>
            </div>
            <div class="col-6">
                <h6>Sezione dopo il corpo dell'articolo</h6>
                <textarea name="codice_post_after" class="w-100" name="" id="" rows="5" placeholder="<?php esc_url("Insert here the code...",'syrus') ?>"><?php echo $codice_post_after; ?></textarea>
            </div>
        </div>
        
        <hr>
        
        <div class="row mb-4">  
            <div class="col-4">
                <h6>Blocco 1</h6>
                <textarea name="codice_post_blocco_1" class="w-100" name="" id="" rows="5" placeholder="<?php esc_url("Insert here the code...",'syrus') ?>"><?php echo $codice_post_blocco_1; ?></textarea>
            </div>
            <div class="col-4">
                <h6>Blocco 2</h6>
                <textarea name="codice_post_blocco_2" class="w-100" name="" id="" rows="5" placeholder="<?php esc_url("Insert here the code...",'syrus') ?>"><?php echo $codice_post_blocco_2; ?></textarea>
            </div>
            <div class="col-4">
                <h6>Blocco 3</h6>
                <textarea name="codice_post_blocco_3" class="w-100" name="" id="" rows="5" placeholder="<?php esc_url("Insert here the code...",'syrus') ?>"><?php echo $codice_post_blocco_3; ?></textarea>
            </div>
        </div>
    
    </div>

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