function zilla_get_page_caption()
 {
     $page_caption = '';
     if (is_singular()) {
         $id = get_the_ID();
         if (is_page()) {
             $page_caption = get_post_meta($id, '_zilla_page_caption', true);
         } elseif (is_single()) {
             $page_caption = zilla_get_option('general_default_page_caption');
         }
     } else {
         if (is_home()) {
             $page_caption = zilla_get_option('general_default_page_caption');
         } elseif (is_archive()) {
             if (is_category()) {
                 $page_caption = strip_tags(category_description(), '<a><b><em><br>');
             } elseif (is_tag()) {
                 $page_caption = strip_tags(tag_description(), '<a><b><em><br>');
             }
         }
     }
     return $page_caption;
 }
    ?>
					<a href="<?php 
    echo home_url();
    ?>
"><?php 
    bloginfo('name');
    ?>
</a>
				<?php 
} elseif (zilla_get_option('general_custom_logo')) {
    ?>
					<a href="<?php 
    echo home_url();
    ?>
"><img src="<?php 
    echo zilla_get_option('general_custom_logo');
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
"/></a>
				<?php 
} else {
    ?>
					<a href="<?php 
    echo home_url();
    ?>
"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/logo.png" alt="<?php 
        } else {
            $email = trim($_POST['email']);
        }
    }
    if (trim($_POST['comments']) === '') {
        $errorMessages['commentError'] = $commentError;
        $hasError = true;
    } else {
        if (function_exists('stripslashes')) {
            $comments = stripslashes(trim($_POST['comments']));
        } else {
            $comments = trim($_POST['comments']);
        }
    }
    if (!isset($hasError)) {
        $emailTo = zilla_get_option('general_contact_email');
        if (!isset($emailTo) || $emailTo == '') {
            $emailTo = get_option('admin_email');
        }
        $subject = '[Contact Form] From ' . $name;
        $body = "Name: {$name} \n\nEmail: {$email} \n\nComments: {$comments}";
        $headers = 'From: ' . $name . ' <' . $email . '>' . "\r\n" . 'Reply-To: ' . $email;
        mail($emailTo, $subject, $body, $headers);
        $emailSent = true;
    }
}
get_header();
?>

			<script type="text/javascript">
    			jQuery(document).ready(function(){
" />
	<meta name="viewport" content="width=device-width, initial-scale=1">
	
	<!-- Title -->
	<title><?php 
wp_title('|', true, 'right');
?>
</title>
	
	<!-- RSS & Pingbacks -->
	<link rel="alternate" type="application/rss+xml" title="<?php 
bloginfo('name');
?>
 RSS Feed" href="<?php 
if (zilla_get_option('general_feedburner_url')) {
    echo zilla_get_option('general_feedburner_url');
} else {
    bloginfo('rss2_url');
}
?>
" />
	<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Sanchez:400,400italic' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css">
	<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
	
	<!--favicon -->