I want to get 4 thumbnails in row but in next code i will get one thumbnail in one row. How i can get 4 thumbnails in one row and next automatic create new row?
<div class="row">
<div class="col-md-3 col-lg-3">
<?php foreach($products as $product) : ?>
<a href="#" class="thumbnail">
<span class="label label-warning pull-right">TOP</span>
<img src="<?php echo $this->basePath('img/placeholder.gif') ?>" alt="..."></img>
<div class="caption">
<h3><?php echo $this->escapeHtml($product->title); ?></h3>
<p>
<?php echo $this->escapeHtml($product->description); ?>
<br>
Cena: <span class="label label-success"><?php echo $this->escapeHtml($product->price); ?></span>
</p>
<p>
Lokalita: <span class="label label-info"><?php echo $this->escapeHtml($product->location); ?></span>
</p>
</div>
</a>
<?php endforeach; ?>
</div>