<?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(); // save the current search to a cookie so we can return to it if ($_REQUEST['search'] != 'restore') { $site->saveSearch(); } // some code to handle the pagination if (!$_REQUEST['pg']) { $_REQUEST['pg'] = 1; } $start = ($_REQUEST['pg'] - 1) * REZGO_RESULTS_PER_PAGE; // we only want 11 responses, starting at our page number times item number $site->setTourLimit(REZGO_RESULTS_PER_PAGE + 1, $start); echo $site->getTemplate('index_ajax');
<?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(); if ($_REQUEST['search'] == 'restore' && $_COOKIE['rezgo_search']) { $site->sendTo($_COOKIE['rezgo_search']); } // some code to handle the pagination if (!$_REQUEST['pg']) { $_REQUEST['pg'] = 1; } $start = ($_REQUEST['pg'] - 1) * REZGO_RESULTS_PER_PAGE; // we only want 11 responses, starting at our page number times item number $site->setTourLimit(REZGO_RESULTS_PER_PAGE + 1, $start); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('index'); ?> <?php echo $site->getTemplate('frame_footer');
<?php // This is the about us page require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('404page'); ?> <?php echo $site->getTemplate('frame_footer');
} $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 . '" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> '); } elseif ($_REQUEST['mode'] == 'index') { // expand to include keywords and dates $site->setPageTitle($_REQUEST['tags'] ? ucwords($_REQUEST['tags']) : 'Home'); } ?> <?php echo $site->getTemplate('header'); ?> <script type="text/javascript"> // for iFrameResize native version // MDN PolyFil for IE8 if (!Array.prototype.forEach){ Array.prototype.forEach = function(fun /*, thisArg */){ "use strict"; if (this === void 0 || this === null || typeof fun !== "function") throw new TypeError(); var t = Object(this), len = t.length >>> 0, thisArg = arguments.length >= 2 ? arguments[1] : void 0;
<?php // This is the about us page require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('about'); ?> <?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(); $site->setPageTitle('System Error'); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('error'); ?> <?php echo $site->getTemplate('frame_footer');
<?php // This page is the calendar display, it is fetched via AJAX to display the calendar require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); /* 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'] . '&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'; } ?> <?php echo $site->getTemplate('calendar_month');
<?php // This page is the calendar display, it is fetched via AJAX to display the calendar require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); ?> <?php echo $site->getTemplate('edit_pax');
<?php // This page is the credit card payment display, it is fetched via iframe to display the form require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(secure); ?> <?php echo $site->getTemplate('booking_payment');
<?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(); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('contact'); ?> <?php echo $site->getTemplate('frame_footer');
<?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');
<?php // This is the printable version of booking_complete.php require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); ?> <?php echo $site->getTemplate('booking_complete_print.php');
<?php // This page is the calendar display, it is fetched via AJAX to display the calendar require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); ?> <?php echo $site->getTemplate('calendar_day');
<?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(); echo $site->getTemplate('frame_header'); echo $site->getTemplate('tour_details'); 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(); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('terms'); ?> <?php echo $site->getTemplate('frame_footer');
<?php // This is the main booking page require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(secure); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php echo $site->getTemplate('book'); ?> <?php echo $site->getTemplate('frame_footer');
$site = new RezgoSite(); // grab and decode the trans_num if it was set $trans_num = $site->decode($_REQUEST['trans_num']); // send the user home if they shoulden't be here if (!$trans_num) { $site->sendTo($site->base . "/booking-not-found"); } // start a session so we can grab the analytics code session_start(); // empty the cart $site->clearCart(); $site->setMetaTags('<meta name="robots" content="noindex, nofollow">'); ?> <?php echo $site->getTemplate('frame_header'); ?> <?php if (strlen($trans_num) == 16) { ?> <?php echo $site->getTemplate('booking_order'); ?> <?php $ga_add_transacton = "\n\t\t\tga('ecommerce:addTransaction', {\n\t\t\t\t'id': '{$trans_num}',\n\t\t\t\t'affiliation': '{$c}',\n\t\t\t\t'revenue': '{$cart_total}',\n\t\t\t\t'currency': '" . $site->getBookingCurrency() . "'\n\t\t\t});\n\t\t"; ?>
<?php // This page is the calendar display, it is fetched via AJAX to display the calendar require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(); ?> <?php echo $site->getTemplate('calendar');
<?php // This is the booking receipt page require 'rezgo/include/page_header.php'; // start a new instance of RezgoSite $site = new RezgoSite(secure); $site->setMetaTags('<meta name="robots" content="noindex, nofollow">'); ?> <?php // getVoucherHeader() moved to template ?> <?php echo $site->getTemplate('booking_voucher'); ?> <?php // getVoucherFooter() moved to template