<?php // any new page must start with the page_header, it will include the correct files // so that the rezgo parser classes and functions will be available to your templates require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); $site->setPageTitle('System Error'); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('error'); ?> <?php echo $site->getTemplate('frame_footer');
<?php // any new page must start with the page_header, it will include the correct files // so that the rezgo parser classes and functions will be available to your templates require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite($_REQUEST['sec']); // remove the 'mode=page_type' from the query string we want to pass on $_SERVER['QUERY_STRING'] = preg_replace("/([&|?])?mode=([a-zA-Z_]+)/", "", $_SERVER['QUERY_STRING']); $site->setPageTitle($_REQUEST['title'] ? $_REQUEST['title'] : ucwords(str_replace("page_", "", $_REQUEST['mode']))); if ($_REQUEST['mode'] == 'page_details') { /* this query searches for an item based on a com id (limit 1 since we only want one response) then adds a $f (filter) option by uid in case there is an option id, and adds a date in case there is a date set */ $item = $site->getTours('t=com&q=' . $_REQUEST['com'] . '&f[uid]=' . $_REQUEST['option'] . '&d=' . $_REQUEST['date'] . '&limit=1', 0); // if the item does not exist, we want to generate an error message and change the page accordingly if (!$item) { $item->unavailable = 1; $item->name = 'Item Not Available'; } if ($item->seo->seo_title != '') { $site->setPageTitle($item->seo->seo_title); } else { $site->setPageTitle($item->item); } $site->setMetaTags(' <meta name="description" content="' . $item->seo->introduction . '" /> <meta property="og:title" content="' . $item->seo->seo_title . '" /> <meta property="og:description" content="' . $item->seo->introduction . '" /> <meta property="og:image" content="' . $item->media->image[0]->path . '" />
<?php // This is the about us page require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); $title = $site->getPageName($page); $site->setPageTitle($title); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('content_page'); ?> <?php echo $site->getTemplate('frame_footer');