You are here

views-bootstrap-panel-plugin-style.tpl.php in Views Bootstrap 7.3

File

templates/panel/views-bootstrap-panel-plugin-style.tpl.php
View source
<?php

/**
 * @file
 * Default simple view template to display Bootstrap Panels.
 */
if (!empty($title)) {
  ?>
  <h3><?php

  print $title;
  ?></h3>
<?php

}
?>

<div id="views-bootstrap-panel-<?php

print $id;
?>" class="<?php

print $classes;
?>">
  <?php

foreach ($rows as $key => $row) {
  ?>
    <div class="panel panel-<?php

  print $context;
  ?>">
      <?php

  if (isset($headers[$key])) {
    ?>
        <div class="panel-heading">
          <?php

    if (isset($labels[$key])) {
      ?>
            <span class="badge pull-right"><?php

      print $labels[$key];
      ?></span>
          <?php

    }
    ?>
          <?php

    if ($title_flag) {
      ?>
            <<?php

      print $title_tag;
      ?> class="panel-title">
          <?php

    }
    ?>
            <?php

    print $headers[$key];
    ?>
          <?php

    if ($title_flag) {
      ?>
            </<?php

      print $title_tag;
      ?>>
          <?php

    }
    ?>
        </div>
      <?php

  }
  ?>

        <div class="panel-body">
          <?php

  print $row;
  ?>
        </div>

      <?php

  if (isset($footers[$key])) {
    ?>
        <div class="panel-footer">
          <?php

    print $footers[$key];
    ?>
        </div>
      <?php

  }
  ?>

    </div>
  <?php

}
?>
</div>