Skip to content

Instantly share code, notes, and snippets.

@enlacee
Created December 3, 2013 16:06
Show Gist options
  • Save enlacee/7771870 to your computer and use it in GitHub Desktop.
Save enlacee/7771870 to your computer and use it in GitHub Desktop.
scripFOR.php
if (count($this->dataRevendedores) > 0):
$items = 3;
$filas = ceil(count($this->dataRevendedores) / $items);
?>
<?php for ($i = 0; $i < $filas; $i++): ?>
<div class="item content_conce_row fl-lf">
<?php
$listTemporal = array_slice($this->dataRevendedores, ($i * $items), $items);
$cont = 0;
foreach ($listTemporal as $index): ?>
<?php
$class2 = ($cont == 1) ? '2' : '';
$floatLeft = ($cont == 2) ? 'fl-rt' : 'fl-lf';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment