File: /home/dwauav0tm6jp/hosted/palmetto_old/wp-content/themes/palmettomain/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title>
<?php if ( is_tag() ) {
echo 'Tag Archive for "'.$tag.'" | '; bloginfo( 'name' );
} elseif ( is_archive() ) {
wp_title(); echo ' Archive | '; bloginfo( 'name' );
} elseif ( is_search() ) {
echo 'Search for "'.wp_specialchars($s).'" | '; bloginfo( 'name' );
} elseif ( is_home() ) {
bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
} elseif ( is_404() ) {
echo 'Error 404 Not Found | '; bloginfo( 'name' );
} else {
echo wp_title( ' | ', false, right ); bloginfo( 'name' );
} ?>
</title>
<meta name="keywords" content="<?php wp_title(); echo ' , '; bloginfo( 'name' ); echo ' , '; bloginfo( 'description' ); ?>" />
<meta name="description" content="<?php wp_title(); echo ' | '; bloginfo( 'description' ); ?>" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="index" title="<?php bloginfo( 'name' ); ?>" href="<?php echo get_option('home'); ?>/" />
<?php $favicon = get_option('mytheme_favicon'); ?>
<?php if($favicon){ ?>
<link rel="icon" href="<?php echo get_option('mytheme_favicon'); ?>" type="image/x-icon" />
<?php } else {?>
<link rel="icon" href="<?php bloginfo( 'template_url' ); ?>/favicon.ico" type="image/x-icon" />
<?php } ?>
<link rel="icon" href="<?php echo get_option('mytheme_favicon'); ?>" type="image/x-icon" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/prettyPhoto.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/grid.css" />
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
<script type="text/javascript">
// initialise plugins
jQuery(function(){
// main navigation init
jQuery('ul.sf-menu').superfish({
delay: 0,
animation: {opacity:'show', height:'show'}
});
// prettyphoto init
jQuery("#gallery .portfolio a[rel^='prettyPhoto']").prettyPhoto({
animationSpeed:'slow',
theme:'facebook',
slideshow:false,
autoplay_slideshow: false,
show_title: true,
overlay_gallery: false
});
//faded slider init
jQuery("#faded").faded({
speed: 500,
crossfade: true,
bigtarget: false,
loading: true,
autoplay: 5000,
autorestart: 8000,
autopagination: false
});
jQuery(document).ready(function() {
jQuery(".services-block ul li:even, .services-block ul li:even").addClass("even");
});
jQuery(".custom-posts ul li").hover(function(){
jQuery(this).animate({top: "0"}, 400 );
},function(){
jQuery(this).animate({top: "130"}, 400 );
});
});
</script>
</head>
<body <?php body_class(); ?>>
<div id="main-tail-ver">
<div id="main-bg-top">
<div id="main"><!-- this encompasses the entire Web site -->
<header>
<div class="container <?php the_field('header_image'); ?>">
<div class="logo">
<?php $logoimage = get_option('mytheme_logoimage'); ?>
<?php if($logoimage){?>
<a href="<?php bloginfo('url'); ?>/"><img src="<?php echo get_option('mytheme_logoimage'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>
<?php } else { ?>
<?php if( is_front_page() || is_home() || is_404() ) { ?>
<h1><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>
<?php } else { ?>
<h2><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h2>
<?php } ?>
<?php }?>
<p class="description"><?php bloginfo('description'); ?></p>
</div>
<nav class="primary">
<?php wp_nav_menu( array(
'container' => 'ul',
'menu_class' => 'sf-menu',
'menu_id' => 'topnav',
'depth' => 0,
'theme_location' => 'header_menu'
));
?>
</nav><!--.primary-->
<div class="custom-posts">
<?php $loop = new WP_Query(array('post_type' => 'custom', 'posts_per_page' => 3)); ?>
<?php if ($loop->have_posts()): ?>
<ul>
<?php $posts_counter = 0; ?>
<?php while ($loop->have_posts()) : $loop->the_post(); $posts_counter++; ?>
<li class="custom-<?php echo $posts_counter; ?>">
<strong><?php the_title(''); ?></strong>
<div>
<?php $excerpt = get_the_excerpt(); echo my_string_limit_words($excerpt,12);?>
<b><a href="<?php the_permalink(); ?>">More</a></b>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
</div><!--.container-->
</header>
<div class="primary_content_wrap">
<div class="container">
<div class="<?php if( is_front_page() || is_home() || is_404() ) { echo "divider-left"; } else { echo "divider-right"; } ?>">
<div class="container_24">
<div id="indent">
<div class="wrapper">