getCategoryByURL($url)) { $Page->getCategoryContent(); } else { $Page = new Product(); if($Page->getProductByURL($url)) { $Page->getProductContent(); } else { $Page = new News; $Page->getPageByURL("news.tmpl"); if ($Page->GetDataByURL($url)) { } else { $Page = new Page(); if (!$Page->getPageByURL($url)) { $Page->getPageByURL(_not_found_page); } } } } $Page->getPageTemplate(); $Page->SubstituteModules(); $Page->SubstituteVars(); $Page->SubstituteKeywords(); $Page->WriteHead(); //takes data from 'templates/template.php' //------------------- General Data Output ------------------------- $Page->WriteTop(); $Page->WriteLeft(); $Page->WriteContent(); $Page->WriteRight(); $Page->WriteDown(); //----------------------------------------------------------------- $Page->WriteFoot(); //takes data from 'templates/template.php' ?>