$row['id'], 'p_id' => $row['p_id'], 'title' => $row['title'], 'nav_title' => $row['nav_title'], 'keywords' => $row['keywords'], 'description' => $row['description'], ); } switch (true) { default: $content['content'] = (orphan($content['p_id']) || $content['p_id'] == 35) ? $row['content'] : wrap($row['content'],$tmp); break; } } // Main Category ID if ($content['p_id'] == -1) $main_id = 0; else $main_id = ($content['p_id'] == 0) ? $content['id'] : mainID($content['p_id']); // Left Nav Reviews $content['reviews'] = left_nav_reviews($content['id'], true); // Left Nav Articles $content['navigation'] = left_nav($main_id, true); // merge data and template and return to $html for output $html = return_template($content,$template); // Output HTML page echo $html; exit(); ?>