Ejemplo n.º 1
0
    */
    $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 . '" /> 
			<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
Ejemplo n.º 2
0
// This is the booking receipt page
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$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');
    ?>