Skip to content

Instantly share code, notes, and snippets.

@dongilbert
Last active December 14, 2015 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dongilbert/5027493 to your computer and use it in GitHub Desktop.
Save dongilbert/5027493 to your computer and use it in GitHub Desktop.
foreach (array_chunk($this->item->sizes, 5) as $chunk)
{
$chunk = array_pad($chunk, 5);
echo '<tr>';
for ($i=0;$i<5;$i++)
{
$s = $chunk[$i];
$link = JRoute::_('index.php');
echo '<td><a href="">' . $s->size . '</a></td>';
}
echo '</tr>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment