header.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * The Header for our theme
  4. *
  5. * Displays all of the <head> section and everything up till <div id="main">
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Fourteen
  9. * @since Twenty Fourteen 1.0
  10. */
  11. ?><!DOCTYPE html>
  12. <!--[if IE 7]><html class="ie ie7" <?php language_attributes(); ?>><![endif]-->
  13. <!--[if IE 8]><html class="ie ie8" <?php language_attributes(); ?>><![endif]-->
  14. <!--[if !(IE 7) | !(IE 8) ]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
  15. <head>
  16. <meta charset="<?php bloginfo( 'charset' ); ?>">
  17. <title><?php wp_title( '|', true, 'right' ); ?></title>
  18. <meta name="description" content="Climate Control Systems of Greenwood has been owned and operated in Greenwood, SC for over 25 years. We are a full-service heating, ventilation and air conditioning company offering repairs and installations for residential and commercial customers. "/>
  19. <meta property="og:image" content="http://www.climategreenwood.com/wp-content/themes/climatecontrol/images/climategreenwood.jpg" />
  20. <link rel="profile" href="http://gmpg.org/xfn/11">
  21. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  22. <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicon.ico" />
  23. <link href='https://fonts.googleapis.com/css?family=Economica:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
  24. <!--[if lt IE 9]><script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script><![endif]-->
  25. <?php wp_head(); ?>
  26. </head>
  27. <body <?php body_class(); ?>>
  28. <div id="page" class="hfeed site">
  29. <header id="masthead" class="site-header" role="banner">
  30. <div class="header-main">
  31. <div class="inner-wrapper">
  32. <div class="header-left">
  33. <div class="header-links">
  34. <?php if ( get_field('header_links', 'options') ) {
  35. while( has_sub_field('header_links', 'options') ) {
  36. $page = get_sub_field('page');
  37. echo "<a href='" . get_permalink( $page->ID ) . "'>" . $page->post_title . "</a>";
  38. }
  39. } ?>
  40. </div>
  41. <div class="phone"><?php the_field('phone', 'options'); ?></div>
  42. </div>
  43. <div class="logo">
  44. <a href="<?php bloginfo('url'); ?>"></a>
  45. </div>
  46. <!--<?php get_search_form(); ?>-->
  47. <div class="social">
  48. <?php if ( get_field('social_media', 'options') ) {
  49. echo "<ul class='social-links'>";
  50. while( has_sub_field('social_media', 'options') ) {
  51. echo "<li><a href='" . get_sub_field('social_link') . "' target='_blank' style='background-image:url(" . get_sub_field('social_icon') . ");'>" . get_sub_field('social_text') . "</a></li>";
  52. }
  53. echo "</ul>";
  54. } ?>
  55. </div>
  56. </div>
  57. </div>
  58. <nav id="primary-navigation" class="site-navigation primary-navigation inner-wrapper" role="navigation">
  59. <div class="inner-wrapper">
  60. <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
  61. </div>
  62. <div class="sub-nav-back"></div>
  63. </nav>
  64. </header><!-- #masthead -->
  65. <div class="bg-element"></div>
  66. <div id="main" class="site-main">