Это форк Vinaora Nivo Slider, пришлось переименовать, в силу требования JED. Даже старую версию качать можно было только с варезных сайтов, нашпигованную троянами. Зачем оно такое, согласитесь.
<?php if ($k % $this->count_product_to_row == $this->count_product_to_row - 1) : ?>
<div class = "clearfix"></div>
<?php
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'Ваша позиция';
echo $renderer->render($position, $options, null);
?>
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
<?
$obj = new ArrayObject( ["apple", "orange", "grape", "plum"] );
$it = new InfiniteIterator(new ArrayIterator($obj));
$it->rewind();
// Iterate over the values in the ArrayObject:
$i = 0;
while( $i++ < 20){
echo $it->key() . ' => ' . $it->current() . "\n";
$it->next();
}
?>
0 => apple 1 => orange 2 => grape 3 => plum 0 => apple 1 => orange 2 => grape 3 => plum 0 => apple 1 => orange 2 => grape 3 => plum 0 => apple 1 => orange 2 => grape 3 => plum 0 => apple 1 => orange 2 => grape 3 => plum
components/com_jshopping/templates/default/listproducts/list_products.php
<?php
$obj = new ArrayObject( ['<div>HTML1</div>', "<div>HTML2</div>", "<div>HTML3</div>", "<div>HTML4</div>"] );
$it = new InfiniteIterator(new ArrayIterator($obj));
$it->rewind();
?>
<?php
echo $it->current();
$it->next();
?>
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.