$Path = $Mizu->_DB->buildPagePath($Mizu->GP['id']);
if(!$Mizu->isAct($Mizu->project['conf']['startpage'])) {
# $Path[] = $Mizu->project['conf']['startpage'];
}
if(is_array($Path)) {
krsort($Path);
$BreadC = '
';
foreach($Path as $i => $v) {
$v = $Mizu->getPage($v);
$T = array();
if(!$i) {
$T[2] = 'class="on"';
} else {
$T[1] = ' >';
}
$BreadC.= '- '.$T[0].''.$v['lng'][$Mizu->lng]['nav'].''.$T[1].'
';
}
$BreadC.= '
';
}
echo $BreadC;
?>
if($this->loadTpl) {
$Pages = $Mizu->getPageChildrenIds($Mizu->GP['id'],false,false,true);
$Path = $Mizu->buildPath($Mizu->GP['id']);
if(!$Pages AND in_array(6,$Path)){
return '
';
} else {
return '
';
}
}
/*
if(count($Mizu->buildPath($Mizu->GP['id']))==2) {
$N = $Mizu->getNav($Mizu->GP['id']);
if(count($N)) {
$N = $Mizu->getNav($N[key($N)]['id']);
if(count($N)) {
if($Mizu->get('cnt/tpl',$N[key($N)]['id'])=='bike') {
$TplConf['brand-list'] = true;
}
}
}
}
*/
if($TplConf['Pages']) {
$Pages = $TplConf['Pages'];
} else {
$Pages = $Mizu->getPageChildrenIds(false,false,false,true);
}
$Path = $Mizu->buildPath($Mizu->GP['id']);
if(!$Pages AND in_array(6,$Path)){
$TplConf['tpl'] = 'product';
}
?>
Home
if(trim($Mizu->getE('lng/txt1'))) : ?>
endif; ?>
if($this->get('cnt/list1') AND !$TplConf['brand-list'] AND !$Pages) : ?>
// build gallery
$Imgs = $this->checkFiles($this->get('cnt/list1'));
$i = 0;
foreach($Imgs as $k => $v) {
$i++;
if($i==6) {
$s = 'class="last"';
$i=0;
} else {
$s ='';
} $title = $Mizu->get('title');
if($v['txt']) {
$title=$v['txt'];
}
$title.=' ('.($k+1).'/'.count($Imgs).')';
echo '
';
}
?>
endif; ?>
if($this->get('lng/list2')) : ?>
Downloads
// build gallery
$Imgs = $this->get('lng/list2');
foreach($Imgs as $k => $v) {
if(!$v['txt']) $v['txt'] = basename($v['file']);
echo '- '.$v['txt'].'
';
}
?>
endif; ?>
if(trim($Mizu->getE('lng/txt2')) AND $Mizu->getE('lng/txt2')!=' ') : ?>
endif; ?>
if($TplConf['tpl']=='product') : ?>
$Mizu->getTpl('shop/main')?>
endif; ?>
$P = $Pages;
echo $Mizu->getTpl('stpl/list',array('P' => $P,'tpl-class'=>'cnt'));
?>
if(count($Mizu->project['path'])>1) :?>
< zurück zu Home
endif; ?>