<?php defined('C5_EXECUTE') or die(_("Access Denied.")); if (count($cArray) > 0) { ?> <div class="ccm-page-list"> <?php for ($i = 0; $i < count($cArray); $i++ ) { $cobj = $cArray[$i]; $title = $cobj->getCollectionName(); $blocks = $cobj->getBlocks('main'); ?> <h3 class="ccm-page-list-title"> <a href="<?php echo $nh->getLinkToCollection($cobj)?>"><?php echo $title?></a> </h3> <div class="ccm-page-list-description"> <?php
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); if (count($cArray) > 0) { ?> <div class="ccm-page-list"> <?php for ($i = 0; $i < count($cArray); $i++ ) { $cobj = $cArray[$i]; $title = $cobj->getCollectionName(); $blocks = $cobj->getBlocks('Main'); ?> <h3 class="ccm-page-list-title"> <a href="<?php echo $nh->getLinkToCollection($cobj)?>"><?php echo $title?></a> </h3> <div class="ccm-page-list-description"> <?php
foreach ($blocks as $bl) { if ($bl->btHandle == 'product') { ob_start(); $bl->display(); $content = ob_get_contents(); ob_end_clean(); $in = strpos($content, '<!-- pagebreak -->'); echo ($in !== FALSE) ? substr($product, 0, $in) : product; } }