ACC SHELL
<div id="main" class="subpage">
<div id="left">
<h1><?php echo $product['name']; ?></h1>
<?php echo $this->renderElement('navigation'); ?>
<div class="descr">
<?php
$down = '';
if ($product['img_style'] == 1) {
foreach ($images as $image) {
echo $html->image($image['filename'],
array('alt' => $image['alt'], 'class' => 'page-cat'));
}
$images = array();
}
elseif ($product['is_cat'] && ! empty($images)) {
$i = 0;
foreach ($images as $image) {
$tmp = $html->image($image['filename'],
array('alt' => $image['alt'], 'class' => 'page-cat'));
if (! $i++) {
echo $tmp;
continue;
}
if ($product['id'] == 155) {
$down .= $html->image($image['filename'],
array('alt' => $image['alt'], 'class' => 'page-row'));
}
elseif (! preg_match('/02_Krouzky/', $image['filename'])) {
echo $tmp;
}
else {
$down = $tmp;
}
}
}
elseif (! empty($images)) {
echo $html->image($images[0]['filename'],
array('alt' => $images[0]['alt'], 'class' => 'page'));
}
echo (empty($product['descr']) && ! empty($parent['descr']))
? $parent['descr'] : $product['descr'];
if ($product['id'] == 155) {
$images = array();
}
?>
<div class="clear"></div>
</div>
<?php
// not category - render parameters
if (! $product['is_cat']) : ?>
<div class="subpage-center">
<?php echo $this->renderElement('product_params'); ?>
<?php
// display remaining images - ignore 1st
$i = 0;
foreach ($images as $image) :
if (! $i++) continue;
echo $html->image($image['filename'],
array(
'alt' => $image['alt'], 'class' => 'page-bottom',
'style' => (! (($i - 1) % 2)) ? 'margin-right: 0' : ''));
if (! (($i - 1) % 2)) echo '<br style="clear: both" />';
endforeach;
?>
</div>
<?php endif; ?>
<?php echo $down; ?>
<div class="clear"></div>
</div>
<div id="right">
<?php echo $this->renderElement('menu'); ?>
</div>
<div class="clear"></div>
</div>
ACC SHELL 2018