<?php
/**
 * @package upTown
 */

$default  = '<div class="hero-title">Important Headline</div>' . "\n\n";

$default .= '<div class="hero-text">' . "\n";
$default .= "\t" . '<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui. Donec sed odio dui. Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. <a href="#">Duis mollis</a>, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui. Donec sed odio dui. Cras mattis consectetur purus sit amet fermentum.</p>' . "\n";
$default .= '</div>' . "\n\n";

$default .= '<div class="hero-button">' . "\n";
$default .= "\t" . '<a href="#" class="button">Call To Action</a>' . "\n";
$default .= '</div>';

if( !function_exists( 'is_plugin_active' ) ) {
	include_once(ABSPATH .'wp-admin/includes/plugin.php');
}
if ( is_plugin_active( 'wpcasa/wpcasa.php' ) ) {
	$default = '[wpsight_listings_search]';
}

// Get subheader content
$subheader = wp_kses_post( get_option( 'subheader', $default ) );

if( ! empty( $subheader ) ) {

	/**
	 * Uncomment the following line
	 * to only show the subheader
	 * on the front page (at bottom too!).
	 */
	// if( is_front_page() ) { ?>
	
	<div id="subheader-wrap" class="site-subheader-wrap wrap">
	
		<div id="subheader" class="site-subheader">
			
	    	<div class="hero">
	    	
	    		<?php echo do_shortcode( $subheader ); ?>
	    	
	    	</div>
	    
	    </div><!-- #subheader -->
	    
	</div><!-- #subheader-wrap --><?php
	
	/**
	 * Uncomment the following line
	 * to only show the subheader
	 * on the front page.
	 */
	 // } // endif is_front_page 
 
} // endif $subheader ?>
