<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  
  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/clientdata/apache-www/s/t/stpaulsburwood.org.au/www/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load record from 'home_page'
  list($home_pageRecords, $home_pageMetaData) = getRecords(array(
    'tableName'   => 'home_page',
    'where'       => '', // load first record
    'loadUploads' => true,
    'allowSearch' => false,
    'limit'       => '1',
  ));
  $home_pageRecord = @$home_pageRecords[0]; // get first record
  if (!$home_pageRecord) { dieWith404("Record not found!"); } // show error message if no record found

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!DOCTYPE html>
<!--[if lt IE 7]> <html dir="ltr" lang="en-US" class="ie6"> <![endif]-->
<!--[if IE 7]>    <html dir="ltr" lang="en-US" class="ie7"> <![endif]-->
<!--[if IE 8]>    <html dir="ltr" lang="en-US" class="ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html dir="ltr" lang="en-US"> <!--<![endif]-->

<!-- BEGIN head -->
<head>

	<!--Meta Tags-->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		
	<!-- Title -->
	<title><?php echo htmlencode($home_pageRecord['seo_page_title']) ?></title>
	<meta name="description" content="<?php echo htmlencode($home_pageRecord['seo_meta_description']) ?>" />

	<!-- Stylesheets -->
	<link rel="stylesheet" href="css/style.css" type="text/css"  media="all" />
	<link rel="stylesheet" href="css/colours/goldblack.css" type="text/css"  media="all" />
	<link rel="stylesheet" href="css/flexslider.css" type="text/css"  media="all" />
	<link rel="stylesheet" href="css/superfish.css" type="text/css"  media="all" />
	<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css"  media="all" />
	<link rel="stylesheet" href="css/responsive.css" type="text/css"  media="all" />
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
	<link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,700,900' rel='stylesheet' type='text/css'>
	<link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'>

<script src="js/gmap.js" type="text/javascript"></script>
<script src="js/scripts.js" type="text/javascript"></script>
	<!-- Favicon -->
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
	
	<!-- JavaScript (must go in header) -->
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
	
	<!-- JavaScript For IE -->
		
	<!--[if (gte IE 6)&(lte IE 8)]>
		<script type="text/javascript" src="StPauls2/js/selectivizr-min.js"></script>
	<![endif]-->

<!-- END head -->
</head>

<!-- BEGIN body -->
<body class="loading">
	
	<!-- BEGIN #background-wrapper -->
	<div id="background-wrapper">
	
	<!-- BEGIN #wrapper -->
	<div id="wrapper">
		
		
		
		
		
		
		<?php include("header.php") ?>
					
					
					
					

		<div id="slider">
			
			<!-- BEGIN .slider -->
			<div class="slider">
				<ul class="slides">
					
					<li>
						<img src="cmsAdmin/uploads/<?php echo htmlencode($home_pageRecord['image_name_1']) ?>" alt="" />
						<div class="slider-caption-wrapper">
							<div class="slider-caption">
								<p class="colour-caption medium-caption"><?php echo htmlencode($home_pageRecord['caption_1_1st_line']) ?></p>
								<div class="clearboth"></div>
								<p class="dark-caption large-caption"><?php echo htmlencode($home_pageRecord['caption_1_2nd_line']) ?></p>
							</div>
						</div>
					</li>
					
					<li>
						<img src="cmsAdmin/uploads/<?php echo htmlencode($home_pageRecord['image_name_2']) ?>" alt="" />
						<div class="slider-caption-wrapper">
							<div class="slider-caption">
								<p class="colour-caption medium-caption"><?php echo htmlencode($home_pageRecord['caption_2_1st_line']) ?></p>
								<div class="clearboth"></div>
								<p class="dark-caption large-caption"><?php echo htmlencode($home_pageRecord['caption_2_2nd_line']) ?></p>
							</div>
						</div>
					</li>
					
					<li>
						<img src="cmsAdmin/uploads/<?php echo htmlencode($home_pageRecord['image_name_3']) ?>" alt="" />
						<div class="slider-caption-wrapper">
							<div class="slider-caption">
								<p class="colour-caption medium-caption"><?php echo htmlencode($home_pageRecord['caption_3_1st_line']) ?></p>
								<div class="clearboth"></div>
								<p class="dark-caption large-caption"><?php echo htmlencode($home_pageRecord['caption_3_2nd_line']) ?></p>
							</div>
						</div>
					</li>
					
					<li>
						<img src="cmsAdmin/uploads/<?php echo htmlencode($home_pageRecord['image_name_4']) ?>" alt="" />
						<div class="slider-caption-wrapper">
							<div class="slider-caption">
								<p class="colour-caption medium-caption"><?php echo htmlencode($home_pageRecord['caption_4_1st_line']) ?></p>
								<div class="clearboth"></div>
								<p class="dark-caption large-caption"><?php echo htmlencode($home_pageRecord['caption_4_2nd_line']) ?></p>
							</div>
						</div>
					</li>

					
				</ul>
			<!-- END .slider -->
			</div>
			
			
			
		</div>




<!-- WHITE -->


		<!-- BEGIN .content-wrapper -->
		<div class="content-wrapper clearfix">
			
			<!-- BEGIN .clearfix -->
			<div class="clearfix">
				
				<!-- BEGIN .one-third -->
				<div class="one-third clearfix">
					<h3 class="title-style1"><?php echo htmlencode($home_pageRecord['column_heading_1']) ?><span class="title-block"></span></h3>
					<p><?php echo htmlencode($home_pageRecord['column_1_text']) ?></p>
					<p><a href="<?php echo htmlencode($home_pageRecord['column_1_link']) ?>" class="button1">Read More</a></p>
				<!-- END .one-third -->	
				</div>
				
				<!-- BEGIN .one-third -->
				<div class="one-third clearfix">
					<h3 class="title-style1"><?php echo htmlencode($home_pageRecord['column_heading_2']) ?><span class="title-block"></span></h3>
					<p><?php echo htmlencode($home_pageRecord['column_2_text']) ?></p>
					<p><a href="<?php echo htmlencode($home_pageRecord['column_2_link']) ?>" class="button1">Read More</a></p>
				<!-- END .one-third -->	
				</div>
				
				<!-- BEGIN .one-third -->
				<div class="one-third last-col clearfix">
										<h3 class="title-style1"><?php echo htmlencode($home_pageRecord['column_heading_3']) ?><span class="title-block"></span></h3>
					<p><?php echo htmlencode($home_pageRecord['column_3_text']) ?></p>
					<p><a href="<?php echo htmlencode($home_pageRecord['column_3_link']) ?>" class="button1">Read More</a></p>
					
				<!-- END .one-third -->	
				</div>
				
			<!-- END .clearfix -->
			</div>		
			
			<hr class="space1" />

		<!-- END .content-wrapper -->
		</div>

		

		

		<hr class="space1" />

		<!-- BEGIN .dark-wrapper -->
		<div class="dark-wrapper clearfix">

		<!-- BEGIN .content-wrapper -->
		<div class="content-wrapper">

		<h3 class="title-style1">Events<span class="title-block"></span></h3>

		<div class="text-slider-wrapper">

			<!-- BEGIN .slider -->
			<div class="text-slider">
				<ul class="slides">

					<li>
						
						<!-- BEGIN .clearfix -->
						<div class="clearfix">		
			
							<!-- BEGIN .one-half -->
							<div class="one-half blog-event-one-half">
				
								<div class="event-preview">	
									<div class="event-date-wrapper">
										<div class="event-month">Aug</div>
										<div class="event-day">19</div>
									</div>
									<div class="event-entry-inner">	
										<h4><a href="events-single.html">Event Name 1</a> <span>Event Time: <i>10am - 12pm</i> / Event Location: <i>St Paul's Church, Burwood</i></span></h4>
										<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse feugiat neque vitae quam consectetur mattis nam consectetur.</p>
									</div>
								</div>
				
							<!-- END .one-half -->	
							</div>
			
							<!-- BEGIN .one-half -->
							<div class="one-half last-col blog-event-one-half">
				
								<div class="event-preview">	
									<div class="event-date-wrapper">
										<div class="event-month">Sept</div>
										<div class="event-day">12</div>
									</div>
									<div class="event-entry-inner">	
										<h4><a href="events-single.html">An Additional Event</a> <span>Event Time: <i>7pm - 9pm</i> / Event Location: <i>St Paul's Church, Burwood</i></span></h4>
										<p>Consectetur adipiscing elit. Suspendisse feugiat neque vitae quam consectetur mattis nam consectetur.</p>
									</div>
								</div>
				
							<!-- END .one-half -->	
							</div>

						<!-- END .clearfix -->
						</div>
		
					</li>
					
					<li>
						
						<!-- BEGIN .clearfix -->
						<div class="clearfix">		
			
							<!-- BEGIN .one-half -->
							<div class="one-half blog-event-one-half">
				
								<div class="event-preview">	
									<div class="event-date-wrapper">
										<div class="event-month">Jul</div>
										<div class="event-day">01</div>
									</div>
									<div class="event-entry-inner">	
										<h4><a href="events-single.html">An Additional Event</a> <span>Event Time: <i>10am - 12pm</i> / Event Location: <i>San Francisco, USA</i></span></h4>
										<p>Consectetur adipiscing elit. Suspendisse feugiat neque vitae quam consectetur mattis nam consectetur.</p>
									</div>
								</div>
				
							<!-- END .one-half -->	
							</div>
			
							<!-- BEGIN .one-half -->
							<div class="one-half last-col blog-event-one-half">
				
								<div class="event-preview">	
									<div class="event-date-wrapper">
										<div class="event-month">Jul</div>
										<div class="event-day">18</div>
									</div>
									<div class="event-entry-inner">	
										<h4><a href="events-single.html">Standard Event Post Typography</a> <span>Event Time: <i>9pm - 11pm</i> / Event Location: <i>London, UK</i></span></h4>
										<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse feugiat neque vitae quam consectetur mattis nam consectetur.</p>
									</div>
								</div>
				
							<!-- END .one-half -->	
							</div>

						<!-- END .clearfix -->
						</div>
		
					</li>
		
				</ul>
				
			<!-- END .text-slider -->
			</div>
			
		<!-- END .text-slider -->
		</div>
		
		<!-- END .content-wrapper -->
		</div>
		
		<!-- END .dark-wrapper -->
		</div>

		<hr class="space1" />

		<!-- BEGIN .content-wrapper -->
		<div class="content-wrapper">

		<h3 class="title-style1">Photo Gallery<span class="title-block"></span></h3>

		<div class="text-slider-wrapper">

			<!-- BEGIN .slider -->
			<div class="text-slider">
				<ul class="slides">

					<li>
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
					</li>
					
					<li>
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
						<img src="/StPauls2/images/example_image_04.png" class="gallery-preview" alt="" />
					</li>
		
				</ul>
				
			<!-- END .text-slider -->
			</div>
			
		<!-- END .text-slider -->
		</div>
		
		<!-- END .content-wrapper -->
		</div>

		<?php include("footer.php") ?>	