$ids=$params[SEProductList::DATA_IDS];
if ($ids):
$products=SEProductBuilder::make()->build($ids, true, $params[SEProductList::DATA_PRODUCT_PROD_PARAMS], $params[SEProductList::DATA_PRODUCT_FLAGS], $params[SEProductList::DATA_PRODUCT_PARAMS]);
$paginationParts = array_fill_keys($params[SEProductList::DATA_PAGINATIONS_PARTS], true);
?>
if ($params[SEProductList::DATA_HEADING_TEXT]): ?>
=specChars($params[SEProductList::DATA_HEADING_TEXT])?>
endif; ?>
>
foreach($products as $prod) {
if ($prod) {
if ($this->isFlag(SEProductList::FLAG_HIDE_LABELS)) {
$prod->setParam(SEProduct::DATA_HIDE_LABEL,true);
}
if ($this->isFlag(SEProductList::FLAG_HORIZONTAL_TEMPLATE)) {
$prod->addFlag(SEProduct::FLAG_HORIZONTAL_TEMPLATE);
}
if ($params[SEProductList::DATA_CALLBACK]) {
$out=call_user_func_array($params[SEProductList::DATA_CALLBACK],array($prod,$this,$products));
if ($out===false) continue;
}
echo $prod;
}
}
?>
if ($params[SEProductList::DATA_MORE_LINK]): ?>
endif; ?>
if ($this->isFlag(SEProductList::FLAG_PAGINATION)): ?>
$withIcons = (!$paginationParts or isset($paginationParts[SEProductList::PAGINATION_ARROWS])); ?>
$withText = (!$paginationParts or isset($paginationParts[SEProductList::PAGINATION_ARROWS_TEXT])); ?>
endif; ?>
else: ?>
endif; ?>