if($this->loadTpl) {
return '
';
}
if(!$TplConf['tpl']) {
$TplConf['tpl'] = 1;
}
if($TplConf['Pages']) {
$Pages = $TplConf['Pages'];
} else {
$Pages = $Mizu->getPageChildrenIds(false,false,false,true);
}
if(!$TplConf['img']) {
$TplConf['img'] = 'right';
}
$MainImg = array();
if($this->get('cnt/list1')) {
$Imgs = $this->checkFiles($this->get('cnt/list1'));
}
?>
if($Imgs AND $TplConf['tpl']==1) : ?>
$i = 0;
$w=200;
if(count($Imgs)==1) {
$w=280;
}
foreach($Imgs as $k => $v) {
$i++;
if($i==3) {
#$s = 'class="last"';
$i=0;
} else {
$s ='';
}
$title = $Mizu->get('title');
if($v['txt']) {
$title=$v['txt'];
}
#$title.=' ('.($k+1).'/'.(count($Imgs)+1).')';
echo '
.')
';
}
?>
endif; ?>
if($Mizu->getE('lng/txt1')) : ?>
endif; ?>
if($Imgs AND $TplConf['tpl']==2) : ?>
$i = 0;
$w=200;
if(count($Imgs)==1) {
$w=280;
}
foreach($Imgs as $k => $v) {
$i++;
if($i==3) {
#$s = 'class="last"';
$i=0;
} else {
$s ='';
}
$title = $Mizu->get('title');
if($v['txt']) {
$title=$v['txt'];
}
#$title.=' ('.($k+1).'/'.(count($Imgs)+1).')';
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($Mizu->isAdmin) echo '
'.$Mizu->getEB('lng/list2').'
'; ?>
if($Mizu->getE('lng/txt2')) : ?>
endif; ?>
if($TplConf['paging']) :
$Par = array();
if($Mizu->GP['sword']) {
$Par['sword'] = $Mizu->GP['sword'];
}
?>