Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Header for our theme.
- *
- * @package WordPress
- * @subpackage Bowtie
- */
- ?>
- <!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <?php load_theme_textdomain('amplifier'); // localization ?>
- <!-- Meta Info -->
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <meta name="description" content="<?php bloginfo('description'); ?>">
- <!-- Favicon -->
- <link rel="shortcut icon" href="<?php echo of_get_option('favicon_icon'); ?>" />
- <title><?php
- /*
- * Print the <title> tag based on what is being viewed.
- * We filter the output of wp_title() a bit -- see
- * twentyten_filter_wp_title() in functions.php.
- */
- wp_title( '|', true, 'right' );
- ?><?php bloginfo('name'); ?></title>
- <link rel="profile" href="http://gmpg.org/xfn/11" />
- <!-- Stylesheets -->
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/reset.css" />
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/typography.css" />
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/960.css" />
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/jquery.fancybox-1.3.4.css" media="screen" />
- <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>">
- <link rel="stylesheet" media="handheld" href="<?php bloginfo('template_url'); ?>/css/handheld.css">
- <!--[if IE]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <!--[if lte IE 8]>
- <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/ie8.css">
- <![endif]-->
- <!--[if IE 7]>
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/ie7.css">
- <![endif]-->
- <!-- RSS & Pingbacks -->
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
- <!-- All of our custom styles -->
- <style type="text/css">
- #call-to-action h2, #cta-top h2.inner-title {
- <?php $cta_typography = of_get_option('cta_typography'); if ($cta_typography) {
- echo 'font-size:'.$cta_typography['size'] . ';';
- echo 'font-family:\''.$cta_typography['face'] . '\';';
- echo 'font-style:'.$cta_typography['style'] . ';';
- echo 'color:'.$cta_typography['color'] . ';';
- } else {} ?>
- }
- p {
- <?php $post_typography = of_get_option('post_typography'); if ($post_typography) {
- echo 'font-size:'.$post_typography['size'] . ';';
- echo 'font-family:\''.$post_typography['face'] . '\';';
- echo 'font-style:'.$post_typography['style'] . ';';
- echo 'color:'.$post_typography['color'] . ';';
- } else {} ?>
- }
- #post-content-wrap h3.post-title {
- <?php $post_title_typography = of_get_option('post_title_typography'); if ($post_title_typography) {
- echo 'font-size:'.$post_title_typography['size'] . ';';
- echo 'font-family:\''.$post_title_typography['face'] . '\';';
- echo 'font-style:'.$post_title_typography['style'] . ';';
- echo 'color:'.$post_title_typography['color'] . ';';
- } else {} ?>
- }
- .sf-menu a {
- <?php $nav_typography = of_get_option('nav_typography'); if ($nav_typography) {
- echo 'font-size:'.$nav_typography['size'] . ';';
- echo 'font-family:\''.$nav_typography['face'] . '\';';
- echo 'font-style:'.$nav_typography['style'] . ';';
- echo 'color:'.$nav_typography['color'] . ';';
- } else {} ?>
- }
- #home-portfolio .details h4 {background:<?php echo of_get_option('hover_typography'); ?>;}
- #nav-info-box{background-color:<?php echo of_get_option('phone_bg_color'); ?>;}
- .inner-cta-wrap .cta-strong-title, .home-section-hr, .home-section-title {background:<?php echo of_get_option('title_bg_color'); ?>;}
- <?php echo of_get_option('custom_style'); //custom style inputed from theme options panel ?>
- </style>
- <!-- Analytics -->
- <script type="text/javascript">
- <?php echo stripslashes(of_get_option('tracking_code')); ?>
- </script>
- <?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();
- ?>
- </head>
- <body <?php body_class(); ?>>
- <!-- Begin Social Media Bar -->
- <?php $social_bar_position = of_get_option('social_bar_position'); //check if user wants to display the social bar in footer
- if ( $social_bar_position == 'top' || $social_bar_position == 'both' ) { ?>
- <style type="text/css">
- #social-wrap {
- /* background: #111111 !important; */
- }
- .container_12 .grid_10 {
- width: auto !important;
- float: right;
- }
- .container_12 .grid_8 {
- float: left;
- width: auto;
- }
- #social-icons {
- height: 50px;
- padding-top: 14px;
- }
- #social-icons #main-nav a {
- font-weight: 300;
- font-family: 'Lato';
- font-style: normal;
- color: #eee;
- float: right;
- font-size: 18px;
- line-height: 3px;
- /* font-family: 'Anton',arial,serif;
- font-size: 32px;
- font-family: 'Istok Web','arial',sans-serif;
- */
- letter-spacing: 0.05em;
- text-transform: lowercase;
- }
- #social-icons .grid_2 {
- width: 90px !important;
- }
- #social-icons .grid_2 .fadeThis {
- width: 84px !important;
- }
- .sf-menu ul {
- margin-top: 18px;
- background: #1A1A1A !important;
- border-top: none;
- border: none;
- padding: 0 !important;
- }
- .sf-menu li:hover, .sf-menu li.sfHover,
- .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
- outline:0;
- font-weight: bold;
- color: #f63000 !important;
- }
- .sf-menu ul.sub-menu a {
- border-bottom: none !important;
- color: #eee !important;
- padding-left: 32px;
- padding-right: 20px;
- padding-top: 15px;
- }
- .sf-menu ul.sub-menu li.current-menu-item a {
- color: #16aeff !important;
- }
- ul.sub-menu li.menu-item {
- width: 100%;
- margin: 0 10px;
- }
- ul.sub-menu li.menu-item:hover {
- background: #222;
- }
- ul.sub-menu li.menu-item a:hover {
- color: #f63000 !important;
- }
- nav ul.sf-menu li:last-child {
- }
- nav ul li.last-item a {
- margin-right: 0;
- padding-right: 0;
- }
- .sf-menu li.current-menu-parent > a,
- .sf-menu li.current-menu-item > a,
- li.current_page_item > a {
- color: #16aeff !important;
- }
- /* call to action */
- header .grid_9 {
- width: none;
- }
- header #logo {
- width: auto;
- }
- header .cta-wrap {
- margin:0;
- width: none;
- }
- header .container_12 {
- margin: 0;
- width: auto !important;
- }
- #logo {
- width: auto;
- }
- #call-to-action h2 {
- margin-top: 16px;
- }
- #nav-info-box {
- top: 20px;
- }
- #nav-info-box span#nav-phone {
- letter-spacing: 0.04em;
- text-transform: uppercase;
- top: 12px !important;
- }
- #nav-info-box span#nav-phone:hover {
- color: #16aeff;
- }
- header {
- border-bottom: none !important;
- }
- /* calendar */
- #content table.fullcalendar {
- border: none;
- }
- table.fullcalendar td.month_name,
- table.fullcalendar tr.days-names td {
- background: none repeat scroll 0 0 #222222;
- color: #eee !important;
- font-family: 'Anton',arial,sans-serif;
- font-size: 22px;
- font-weight: normal !important;
- padding: 5px 15px !important;
- text-transform: uppercase;
- }
- #content table.fullcalendar tr td.month_name,
- #content table.fullcalendar tr td.month_name a {
- color: #eee !important;
- }
- #content table.fullcalendar td {
- border: none;
- }
- #content table.fullcalendar tr {
- border-bottom: 1px solid black;
- }
- #content table.fullcalendar tr td,
- #content table.fullcalendar tr td a {
- font-weight: bold;
- font-size: 20px;
- color: #333;
- line-height: 30px;
- }
- #content table.fullcalendar tr td.eventless,
- #content table.fullcalendar tr td.eventless-pre,
- #content table.fullcalendar tr td.eventless-post,
- #content table.fullcalendar tr td.eventless-today
- {
- color: #333;
- }
- #content table.fullcalendar tr td.eventful-pre,
- #content table.fullcalendar tr td.eventful-post,
- #content table.fullcalendar tr td.eventful-pre a,
- #content table.fullcalendar tr td.eventful-post a,
- #content table.fullcalendar tr td.eventless-pre,
- #content table.fullcalendar tr td.eventless-post,
- #content table.fullcalendar tr td.eventless-pre a,
- #content table.fullcalendar tr td.eventless-post a
- {
- color: #999;
- }
- #content table.fullcalendar tr td ul li a:hover {
- text-decoration: underline;
- }
- #content table.fullcalendar tr td ul li a {
- font-weight: normal;
- color: #333 !important;
- line-height: 10px;
- font-size: 13px;
- }
- #content table.fullcalendar tr td ul li {
- padding: 0;
- margin-top: 5px;
- }
- </style>
- <div id="social-wrap">
- <!-- Main Navigation -->
- <div id="social-icons" class="container_12">
- <nav class="grid_8 sub-menu"><!-- Navigation Grid Size -->
- <?php if ( has_nav_menu( 'main-menu' ) ) { /* if menu location 'main-menu' exists then use custom menu */ ?>
- <?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'link_after' => '<span class="nav-slash">/</span>', 'items_wrap' => '<ul id="main-nav" class="sf-menu">%3$s</ul>', 'container' => '' ) ); ?>
- <?php } else {} // nada ?>
- </nav> <!-- end #top-nav -->
- <!-- Send a Message -->
- <div id="share" class="grid_2">
- <?php $contact_form = of_get_option('contact_form'); // Get the contact form shortcode
- if(!$contact_form) { /* nada */ } else { ?>
- <div class="fadeThis">
- <span class="hover"></span>
- <a id="footer-contact" href="#inline1" title="<?php echo of_get_option('contact_message'); ?>" ><span><?php _e('Send a Message','amplifier'); ?></span></a>
- </div>
- <div class="hidden">
- <div id="inline1">
- <h3 class="fancybox-contact-title"><?php echo of_get_option('contact_title'); ?></h3>
- <?php echo do_shortcode( $contact_form ); // placed the contact form shortcode from theme options panel ?>
- </div> <!-- end #inline1 -->
- </div> <!-- end .hidden -->
- <?php } ?>
- </div> <!-- end #share .grid_2 -->
- <ul class="grid_10 omega">
- <!-- TWITTER -->
- <?php $twitter_name = of_get_option('twitter_username');
- if(!$twitter_name) { /* nada */ } else { ?>
- <li id="twitter">
- <a class="tooltip" original-title="<?php echo of_get_option('twitter_title'); ?>" href="http://twitter.com/<?php echo $twitter_name ?>" title="<?php echo of_get_option('twitter_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end Twitter -->
- <!-- FACEBOOK -->
- <?php $facebook_link = of_get_option('facebook_link');
- if(!$facebook_link) { /* nada */ } else { ?>
- <li id="facebook">
- <a class="tooltip" original-title="<?php echo of_get_option('facebook_title'); ?>" href="<?php echo $facebook_link ?>" title="<?php echo of_get_option('facebook_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end Facebook -->
- <!-- LINKEDIN -->
- <?php $linkedin_link = of_get_option('linkedin_link');
- if(!$linkedin_link) { /* nada */ } else { ?>
- <li id="linkedin">
- <a class="tooltip" original-title="<?php echo of_get_option('linkedin_title'); ?>" href="<?php echo $linkedin_link ?>" title="<?php echo of_get_option('linkedin_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end Linkedin -->
- <!-- DRIBBBLE -->
- <?php $dribbble_link = of_get_option('dribbble_link');
- if(!$dribbble_link) { /* nada */ } else { ?>
- <li id="dribbble">
- <a class="tooltip" original-title="<?php echo of_get_option('dribbble_title'); ?>" href="<?php echo $dribbble_link ?>" title="<?php echo of_get_option('dribbble_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end Dribbble -->
- <!-- FORRST -->
- <?php $forrst_link = of_get_option('forrst_link');
- if(!$forrst_link) { /* nada */ } else { ?>
- <li id="forrst">
- <a class="tooltip" original-title="<?php echo of_get_option('forrst_title'); ?>" href="<?php echo $forrst_link ?>" title="<?php echo of_get_option('forrst_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end Forrst -->
- <!-- GOOGLE -->
- <?php $google_link = of_get_option('google_link');
- if(!$google_link) { /* nada */ } else { ?>
- <li id="google">
- <a class="tooltip" original-title="<?php echo of_get_option('google_title'); ?>" href="<?php echo $google_link ?>" title="<?php echo of_get_option('google_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end Google -->
- <!-- RSS -->
- <?php $rss_link = of_get_option('rss_link');
- if(!$rss_link) { /* nada */ } else { ?>
- <li id="rss">
- <a class="tooltip" original-title="<?php echo of_get_option('rss_title'); ?>" href="<?php echo $rss_link ?>" title="<?php echo of_get_option('rss_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end RSS -->
- <!-- CONTACT -->
- <?php $contact_link = of_get_option('contact_link');
- if(!$contact_link) { /* nada */ } else { ?>
- <li id="contact">
- <a href="<?php echo $contact_link ?>" title="<?php echo of_get_option('contact_title'); ?>">
- <div class="fadeThis">
- <span class="hover"></span>
- </div>
- </a>
- </li>
- <?php } ?>
- <!-- end Contact -->
- </ul>
- </div><!-- end .container_12 -->
- </div> <!-- end #social-wrap -->
- <?php } else { } // end check for social bar position ?>
- <div id="top-bg"></div>
- <header class="container_12">
- <!-- Logo -->
- <a href="<?php echo home_url( '/' ); ?>">
- <div id="logo" class="grid_4 alpha"><!-- Logo Grid Size -->
- <?php if(of_get_option('logo_img') != '') { // if the logo is not empty ?>
- <img src="<?php echo of_get_option('logo_img') ?>" alt="<?php bloginfo('name'); ?>" />
- <?php } else { ?>
- <img src="<?php bloginfo('template_directory') ?>/images/logo.jpg" alt="<?php bloginfo('name'); ?>" />
- <?php } ?>
- </div><!-- end #logo -->
- </a>
- <?php $cta_choice = of_get_option('cta_choice'); // Check if user wants to display CTA on homepage
- if($cta_choice == 'true') : ?>
- <!-- BEGIN CALL TO ACTION -->
- <div class="elbowwrap">
- <div id="call-to-action" class="container_12">
- <?php $cta_button_choice = of_get_option('cta_button_choice'); // Check if user wants to display CTA button on homepage ?>
- <!-- CTA SENTENCE -->
- <div class="<?php if($cta_button_choice == 'true') { echo 'grid_9'; } elseif($cta_button_choice == 'false') { echo 'grid_12'; } ?>">
- <h2><?php echo stripslashes(of_get_option('cta_text')); ?></h2>
- </div> <!-- end #cta-top .grid_7 -->
- </div> <!-- end .container_12 #call-to-action -->
- </div><!-- end CALL TO ACTION -->
- <?php endif; // End if user wants to display CTA on homepage ?>
- <?php $cta_choice = of_get_option('cta_choice'); // Check if user wants to display CTA on homepage
- if($cta_choice == 'true') : ?>
- <a href="<?php echo of_get_option('cta_button_link'); ?>">
- <div id="nav-info-box" class="grid_4 right omega">
- <span id="nav-phone" style="font-size:<?php echo of_get_option('phone_size'); ?>;">
- <?php echo of_get_option('cta_button_text'); ?>
- </span> <!-- end #nav-phone -->
- </div>
- </a>
- <?php endif; // End if user wants to display CTA on homepage ?>
- </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement