Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $data; //get theme options ?>
- <!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">
- <!-- mobile meta tag -->
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
- <meta name="description" content="<?php bloginfo('description'); ?>">
- <!-- Custom Favicon -->
- <?php if(!empty($data['custom_favicon'])) { ?><link rel="icon" type="image/png" href="<?php echo $data['custom_favicon']; ?>" /><?php } ?>
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
- <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" media="screen" />
- <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/superfish.css" media="screen" />
- <!-- color scheme -->
- <?php if($data['scheme'] !='') { ?>
- <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/color-schemes/<?php echo $data['scheme']; ?>" media="screen" />
- <?php } ?>
- <!-- enabling responsive layout -->
- <?php if($data['responsive_enabled'] =='1') { ?>
- <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/responsive.css" media="screen" />
- <?php } ?>
- <link rel="alternate" type="text/xml" title="<?php bloginfo('name'); ?> RSS 0.92 Feed" href="<?php bloginfo('rss_url'); ?>">
- <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>">
- <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS 2.0 Feed" href="<?php bloginfo('rss2_url'); ?>">
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
- <?php wp_enqueue_script('jquery'); ?>
- <!--[if lt IE 9]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <?php
- //show tracking code - header
- echo stripslashes($data['tracking_code_header']);
- ?>
- <?php wp_head(); ?>
- </head>
- <body <?php body_class(); ?>>
- <?php
- //use custom background image instead of color in theme options panel
- $bgthumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'background-thumb');
- if ( has_post_thumbnail() ) {
- ?>
- <style>
- #wrapper { box-shadow: none; }
- </style>
- <img id="bg" src="<?php echo $bgthumbnail[0]; ?>" height="<?php echo $bgthumbnail[2]; ?>" width="<?php echo $bgthumbnail[1]; ?>" alt="<?php echo the_title(); ?>" />
- <?php }
- else if(!empty($data['custom_background'])) { ?>
- <style>
- #wrapper { box-shadow: none; }
- </style>
- <img id="bg" src="<?php echo $data['custom_background']; ?>" alt="" />
- <?php } ?>
- <div id="wrapper">
- <div id="top">
- <div class="centered-wrapper">
- <header id="header">
- <div class="one-third">
- <?php if($data['custom_logo'] !='') { ?>
- <div class="logo"><a href="<?php echo home_url(); ?>/" title="<?php bloginfo( 'name' ); ?>" rel="home"><img src="<?php echo $data['custom_logo']; ?>" alt="<?php bloginfo( 'name' ) ?>" /></a></div>
- <?php }
- else { ?>
- <div class="logo"><a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="<?php bloginfo( 'name' ) ?>" /></a></div>
- <?php } ?>
- </div><!--end one-third-->
- <div class="two-third column-last">
- <nav id="navigation">
- <?php wp_nav_menu( array(
- 'theme_location' => 'top_menu',
- 'menu' => 'Top Menu',
- 'menu_id' => 'mainnav',
- 'sort_column' => 'menu_order',
- 'fallback_cb' => ''
- )); ?>
- </nav><!--end navigation-->
- </div><!--end two-third-->
- <div class="clear"></div>
- </header>
- </div><!--end centered-wrapper-->
- </div><!--end top-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement