<?php
/**
 * Template Name: Landing Page
 * @package Ultra WordPress Theme
 * @since 1.0
 * @author AJ Clarke : http://wpexplorer.com
 * @copyright Copyright (c) 2012, AJ Clarke
 * @link http://wpexplorer.com
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */ ?>

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<meta name="viewport" content="width=device-width" />
	<title><?php wp_title(''); ?><?php if( wp_title('', false) ) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<?php wp_head(); // Very important WordPress core hook. If you delete this bad things WILL happen. ?>   
</head>

<body <?php body_class( of_get_option('layout','boxed') .'-layout' ); ?>>

	<div id="site-wrap" class="<?php echo wpex_sitewrap_classes(); ?>">
	
	<?php if ( of_get_option('home_slider','') !== '' ) { ?>
		<div id="page-slider">
			<?php echo do_shortcode( of_get_option('home_slider') ); ?>
		</div><!-- /page-slider -->
	<?php } ?>
	
	<div id="main-content" class="<?php if ( of_get_option('layout','boxed') == 'boxed' ) echo 'boxed'; ?> landing-page clearfix">
		<div id="landing-page-content" class="container clearfix boxed">
			<div class="entry clearfix fitvids">
				<?php while (have_posts()) : the_post(); ?>
					<?php the_content(); ?> 
				<?php endwhile; ?>
				<?php wp_link_pages( array( 'before' => '<div class="page-links clr">', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
			</div><!-- /entry -->
		</div><!-- /home-page-content -->
	</div><!-- /main-content -->

</div><!-- /site-wrap -->

<?php wp_footer(); // Footer hook, do not delete, ever ?>