with $pageTitle variable contents, and print the HTML
$pageContents = str_replace ('', $KLIJENT." | ".$pageTitle, $pageContents);
$pageContents = str_replace ('', $pageDesc, $pageContents);
$pageContents = str_replace ('', $pageTags, $pageContents);
$pageContents = str_replace ('', $SITE_URL . $pageThumb, $pageContents);
if ($action=='pages' || $action=='events' || $action=='events_archive' || $action=='news') {
$pageContents = str_replace ('', $SITE_URL."/$action/$id/$pageSlug", $pageContents);
} else {
$pageContents = str_replace ('', $SITE_URL."/$action", $pageContents);
}
echo $pageContents;
?>