= count($images)) { $nextImg = 0; } $txt = ""; foreach ($images as $im) { $txt .= $im["image"]; } $content = Imager::getPageLayout($images,$prevImg,$imgno,$nextImg); //$content = $txt; //$content = "
" . Pager::readAndSubstituteFile($pdo, $contentTemplate) . "
"; $page = $header . $menu . $content . $footer; echo $page; ?>