Advertisement
dpwebdev

header.php

Apr 29th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.98 KB | None | 0 0
  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 Boilerplate
  9. * @since Boilerplate 1.0
  10. */
  11. ?><!DOCTYPE html>
  12. <!--[if lt IE 7 ]><html <?php language_attributes(); ?> class="no-js ie ie6 lte7 lte8 lte9"><![endif]-->
  13. <!--[if IE 7 ]><html <?php language_attributes(); ?> class="no-js ie ie7 lte7 lte8 lte9"><![endif]-->
  14. <!--[if IE 8 ]><html <?php language_attributes(); ?> class="no-js ie ie8 lte8 lte9"><![endif]-->
  15. <!--[if IE 9 ]><html <?php language_attributes(); ?> class="no-js ie ie9 lte9"><![endif]-->
  16. <!--[if (gt IE 9)|!(IE)]><!--><html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
  17. <head>
  18.  
  19. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  20.  
  21. <meta property="og:title" content="<?php the_title(); ?>" />
  22. <meta property="og:url" content="<?php the_permalink(); ?>" />
  23.  
  24. <meta property="og:image" content="<?php bloginfo('stylesheet_directory'); ?>/img/logo_fb_share.png" />
  25. <meta property="og:description" content="Different Perspective tailors a branding and advertising strategy to fit unique needs. Through the utilization of our services and expertise, our ultimate goal is to create consumer awareness of your brand." />
  26.  
  27. <meta name="viewport" content="width=device-width">
  28.  
  29. <title><?php
  30. /*
  31. * Print the <title> tag based on what is being viewed.
  32. * We filter the output of wp_title() a bit -- see
  33. * boilerplate_filter_wp_title() in functions.php.
  34. */
  35. wp_title( '|', true, 'right' );
  36. ?></title>
  37. <link rel="profile" href="http://gmpg.org/xfn/11" />
  38. <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  39. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  40. <link rel="shortcut icon" href="/<?php bloginfo('stylesheet_directory'); ?>/img/fav.png" />
  41.  
  42. <?php wp_head(); ?>
  43. </head>
  44.  
  45. <body <?php body_class(); ?>>
  46.  
  47. <div id="image-preload">
  48. <img src="<?php bloginfo('stylesheet_directory'); ?>/img/current_x.png">
  49. <img src="<?php bloginfo('stylesheet_directory'); ?>/img/current_con_x.png">
  50. <img src="<?php bloginfo('stylesheet_directory'); ?>/img/connect-box.png">
  51. </div>
  52.  
  53. <div id="wrap">
  54. <div id="sticky_main" class="clearfix">
  55. <header role="banner" class="mobhide">
  56.  
  57. <div id="logo"><?php echo '<h1 class="index_link"><a href="' . home_url( '/' ) . '">Different Perspective</a></h1>'; ?>
  58. </div>
  59.  
  60. <div class="we_are">
  61. <h2><div class="we_are_text">we are an advertising agency.</div></h2>
  62. </div>
  63.  
  64. <nav id="access" role="navigation">
  65. <ul class="inline full" id="main_menu">
  66.  
  67. <li class="index_link about_link"><a href="<?php bloginfo('url'); ?>/about" class="<?php if ( is_page(54) ) { echo 'current';} ?>">about us</a></li>
  68. <li class="index_link results_link"><a href="<?php bloginfo('url'); ?>/results" class="<?php if ( is_page(42) || 'case_study' == get_post_type() ) { echo 'current';} ?>">results</a></li>
  69. <li class="index_link blog_link"><a href="<?php bloginfo('url'); ?>/blog" class="<?php if ( is_page(80) || 'post' == get_post_type() ) { echo 'current';} ?>">blog</a></li>
  70. <li class="social_btn" id="social_nav"><a href="#social" class="no-ajaxy">social</a>
  71. <div class="ddm">
  72. <div class="facebook" id="fb_ddm"><a href="https://www.facebook.com/dppad" target="_blank">facebook</a></div>
  73. <div class="twitter" id="tw_ddm"><a href="https://twitter.com/dppad/" target="_blank">twitter</a></div>
  74. <div class="youtube" id="yt_ddm"><a href="http://www.youtube.com/user/dppad" target="_blank">youtube</a></div>
  75. <div class="linkedin" id="li_ddm"><a href="http://www.linkedin.com/company/2684728?trk=tyah" target="_blank">linkedin</a></div>
  76. </div></li>
  77. <li class="con" id="connect_link"><a href="#connect" class="no-ajaxy">connect</a></li>
  78. <li id="phone_link"><a href="tel:+14072269774" class="phone no-ajaxy">407.226.9774</a></li>
  79.  
  80. </ul>
  81.  
  82. <ul class="inline tablet" id="main_menu_tab">
  83.  
  84. <li class="index_link about_link"><a href="<?php bloginfo('url'); ?>/about-us" class="<?php if ( is_page(512) ) { echo ' current';} ?>">about us</a></li>
  85. <li class="index_link results_link"><a href="<?php bloginfo('url'); ?>/results" class="<?php if ( is_page(42) || 'case_study' == get_post_type() ) { echo ' current';} ?>">results</a></li>
  86. <li class="index_link blog_link"><a href="<?php bloginfo('url'); ?>/blog" class="<?php if ( is_page(80) || 'post' == get_post_type() ) { echo ' current';} ?>">blog</a></li>
  87. <li class="index_link connect_link"><a href="<?php bloginfo('url'); ?>/contact" class="<?php if ( is_page(485) ) { echo ' current'; } ?>">contact us</a></li>
  88. <li id="phone_link"><a href="tel:+14072269774" class="phone no-ajaxy">407.226.9774</a></li>
  89.  
  90. </ul>
  91. </nav><!-- #access -->
  92.  
  93. </header>
  94.  
  95. <header class="mobile">
  96. <?php if ( !is_front_page() ) { echo '<h1 id="home-mob"><a href="' . home_url( '/' ) . '" rel="home" class="no-ajaxy">home</a></h1>'; } ?>
  97. </header>
  98.  
  99. <?php if ( !is_page(485) ) { ?>
  100.  
  101. <div id="connecttray" class="full">
  102. <div class="wrap">
  103. <div class="left">
  104.  
  105. <h2>Get in touch</h2>
  106.  
  107. <p><a href="tel:+14072269774" class="tel">407.226.9774</a> <a href="mailto:info@dppad.com" class="email">info@dppad.com</a></p>
  108.  
  109. <address>
  110.  
  111. <strong>Our Home</strong><br>
  112. 201 S. Orange Ave.,<br>
  113. Suite 890<br>
  114. Orlando, FL<br>
  115. 32801
  116.  
  117. </address>
  118.  
  119. </div><!-- .left -->
  120.  
  121. <div class="right">
  122. <div id="stamp"></div>
  123.  
  124. <?php echo do_shortcode('[gravityform id=2 title=true description=true ajax=true]'); ?>
  125. <?php //echo do_shortcode('[contact-form-7 id="619" title="Contact form 1"]'); ?>
  126.  
  127. </div><!-- .wrap -->
  128. </div><!-- .wrap -->
  129.  
  130. </div><!-- #connect -->
  131.  
  132. <?php } ?>
  133.  
  134. <section id="content" role="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement