You are here

brick--grid.tpl.php in Bricks​ 7.5

File

bricks_default/templates/brick--grid.tpl.php
View source
<?php

print $prefix;
if (!empty($content['bricks'])) {
  ?>
<div class="row">
  <?php

  $i = 0;
  ?>
  <?php

  foreach ($content['bricks'] as $brick) {
    ?>
  <?php

    if ($i && $i % 2 == 0) {
      ?>
  <div class="clearfix"></div>
  <?php

    }
    ?>
  <div class="col-md-6">
    <?php

    print render($brick);
    ?>
  </div>
  <?php

    $i++;
    ?>
  <?php

  }
  ?>
</div>
<?php

}
else {
  print $placeholder;
}
print $suffix;