Ejemplo n.º 1
0
<?php

$campaigns = Stupidbot_Campaign::all();
$campaigns_count = Stupidbot_Campaign::count();
?>
 <div class="bootstrap-wpadmin">
  <h2>StupidBot</h2>
    <div class="row">
      <div class="span12">
        <?php 
if ($this->alert) {
    ?>
          <div class="alert alert-success">
            <?php 
    echo $this->alert;
    ?>
          </div>
        <?php 
}
?>
        <?php 
if ($campaigns_count < 1) {
    ?>
          <div class="alert alert-warning">
            No campaign, please make a <a data-toggle="modal" href="#new_campaign" class="">new campaign</a>.
          </div>
        <?php 
}
?>
      </div>
    </div>