select('item', 'id = 8'); $menu = $p->select('list', 'l.parent = 8'); if ($lang == 'ru' ) $menu[] = array('title' => $trans[150]['ru'], 'id' => 'gallery' ); else $menu[] = array('title' => $trans[150]['en'], 'id' => 'gallery' ); if(!$section) $section = $menu[0]['id']; if($subSection) { $content = $p->select('item',"id = $subSection"); $content['subTitle'] = $content['title']; $content['title'] = $db->getOne("select title$langExt from pages where id = $section"); } elseif ($section) { $content = $p->select('item',"id = $section"); } foreach ($menu as $k => $v) { if($v['id'] == $section and is_numeric($section)) $menu[$k]['subMenu'] = $p->select('listAll', "l.parent = $section"); } $quickInfo = $headSection['text']; if($section == 'gallery') { $page = 8; include("gallery.php"); } else include("inner.php"); include("includes/footer.php"); ?>