"; print_r($array_url_cat); echo ""; //exit(); $rowsSottoMenuSx = $menuModel->getSottoMenuByUrl1($array_url_cat); $rowCatConfig = $menuModel->getCatConfig($array_url_cat); if($var['url_news']){ $rowsContenuti = $contModel-> getNewsByUrlNews($var['url_news']); }else{ $contModel->paginaCorrente = $var['p']; $contModel->righePerPagina = 20; $rowsContenuti = $contModel->getNewsByUrl($array_url_cat); } //echo "
"; print_r($rowsContenuti); echo "
"; //echo "
"; print_r($rowCatConfig); echo "
"; if($contModel->numRows == 1){ $rowsAllegati = $contModel->getAllegati($rowsContenuti['id']); //$categoria = $rowsContenuti['nome_categoria']; $title = $rowsContenuti['title']; $description = $rowsContenuti['description']; $keywords = $rowsContenuti['keywords']; }elseif($contModel->numRows > 1){ //$categoria = $rowsContenuti[0]['nome_categoria']; $title = $rowsContenuti[0]['title_categoria']; $description = $rowsContenuti[0]['description_categoria']; $keywords = $rowsContenuti[0]['keywords_categoria']; }else{ header('HTTP/1.0 404 Not Found'); } if($array_url_cat[2]){ $categoria = $rowCatConfig['nome2']; //bread crumbs $foto = $rowCatConfig['foto3']; $urlBase = '/' . $array_url_cat[0] . '/' . $array_url_cat[1] . '/' . $array_url_cat[2]; }elseif($array_url_cat[1]){ $categoria = $rowCatConfig['nome1']; //bread crumbs $foto = $rowCatConfig['foto2']; $urlBase = '/' . $array_url_cat[0] . '/' . $array_url_cat[1]; }elseif($array_url_cat[0]){ $categoria = $rowCatConfig['nome1']; //bread crumbs $foto = $rowCatConfig['foto1']; $urlBase = '/' . $array_url_cat[0]; } //ricerca if($var['key']){ $contModel->paginaCorrente = $var['p']; $contModel->righePerPagina = 20; $rowsRicerca = $contModel->ricerca($var['key']); } $header = ' '; include('../inc/top.php'); //echo "
"; print_r($rowCatConfig); echo "
"; ?>