<?php

$keys = array($top, $middle, $bottom);
openBox(__("Ad Alignment", 'easy-ads'));
?>
<p>Ads can be placed in three different slots on each page or post - Top (Lead-in), Middle (Mid-Post) and Bottom (Lead-out). Each slot will be aligned (or suppressed) as you specify below.</p>
<table class="table borderless">
  <thead>
    <tr>
      <th></th>
      <th class="center-text">Left</th>
      <th class="center-text">Left<br>(Wrap)</th>
      <th class="center-text">Center</th>
      <th class="center-text">Right</th>
      <th class="center-text">Right<br>(Wrap)</th>
      <th class="center-text">Suppress</th>
    </tr>
  </thead>
  <tbody>
    <?php 
foreach ($keys as $pk) {
    echo EzGA::renderOptionCell($pk, $ezOptions[$pk]);
}
?>
  </tbody>
</table>
<?php 
closeBox();
echo EzGA::renderOptionCell('title_gsearch', $ezOptions['title_gsearch']);
?>
  </div>
  <div class="col-md-7 col-sm-12">
    <?php 
echo EzGA::renderOptionCell('title_gsearch_custom', $ezOptions['title_gsearch_custom']);
?>
  </div>
  <div class="col-md-3 col-sm-12">
    <?php 
echo EzGA::renderOptionCell('kill_gsearch_title', $ezOptions['kill_gsearch_title']);
?>
  </div>
  <div class="col-md-2 col-sm-12">
    <?php 
echo EzGA::renderOptionCell('margin_gsearch', $ezOptions['margin_gsearch']);
?>
  </div>
  <div class="clearfix"></div>
  <?php 
closeBox();
require 'box-suppressing-ads.php';
require 'box-more-info.php';
?>
</div>
<script>
  var xeditHanlder = 'ajax/options.php';
  var xparams = {};
  xparams.plugin_slug = '<?php 
echo $options['plugin_slug'];
?>