<?

php
if (!empty($page) && !file_exists(APPPATH.'views/'.$subfolder.'/'.$page.'.php')) {
redirect(base_url());
exit();
}

// Exclude certain pages from class "cm-content"
$extrajs = FALSE;
$noCM = FALSE;
$noPages = array("accommodation", "rewards-program", "testimonials", "testimonial",
"test-emma", "test-emma3", "test-emma2");
if (in_array(strtolower($this->uri->segment(1)),$noPages) ){$noCM = TRUE;}
if(in_array(strtolower($this->uri->segment(2)),$noPages) ){$noCM = TRUE;}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $title; ?></title>
<meta name="description" content="<?php echo $description; ?>" />
<?php
if($this->uri->segment(2) === 'sydney'){
echo $meta;
}
?>
<?php $this->load->view('includes/comm_metacssjs2'); ?>
</head>
<body>
<?php $this->load->view('includes/header2', array('active'=>@$active)); ?>
<div id="background-body"<?php echo $noCM ? '' : ' class="cm-content"'; ?>>

<!--load quote form-->
<div class="container-fluid home-page-container">
<div class="container">
<?php if(empty($subfolder)) { ?>
<?php $this->load->view('includes/newquoteform'); ?>
<?php } else { ?>

<?php } ?>
</div>
</div>

<div class="container">
<?php // Check $path to see if it's a controller-less page
if (empty($path)) {
$this->load->view($subfolder.'/'.$page);
} else {
$this->load->view('pages/'.$path);
} ?>
</div><!-- container -->

</div><!-- background-body -->
<?php $this->load->view('includes/footer2'); ?>

js"></script> <script> fbq('track'. </script> <noscript><img height="1" width="1" style="display:none" src="https://www. ?> <script type="text/javascript" src="js/facebookPixel. "ViewContent"). <?php $this->load->view('includes/googleScript2'). ?> <?php $this->load->view('includes/quotejs').facebook.com/tr? id=160340864333251&ev=PageView&noscript=1"/></noscript> </body> </html> .