PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/structure/header.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 108 lines | 76 code | 26 blank | 6 comment | 11 complexity | 39ef049b709d0201ac155d77c0a490d5 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Structure
  5. */
  6. ?>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  9. <head profile="http://gmpg.org/xfn/11">
  10. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  11. <title><?php wp_title(); ?> <?php bloginfo('name'); ?></title>
  12. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  13. <?php if ( st_option( 'dark_scheme' ) ) : ?>
  14. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/dark.css" type="text/css" media="screen" />
  15. <?php endif; ?>
  16. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/ie6.css" type="text/css" media="screen" />
  17. <!--[if IE 6]>
  18. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/ie6.css" type="text/css" media="screen" />
  19. <![endif]-->
  20. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  21. <?php wp_head(); ?>
  22. <script type="text/javascript">
  23. /* <![CDATA[ */
  24. var $j = jQuery.noConflict();
  25. $j(document).ready(function() {
  26. $j('ul.ot-menu').superfish();
  27. });
  28. /* ]]> */
  29. </script>
  30. </head>
  31. <body>
  32. <div id="wrap">
  33. <div id="header">
  34. <div class="headerleft">
  35. <h1 id="title"><a href="<?php echo home_url( '/' ); ?>" title="Home"><span id="sitename"><?php bloginfo('name'); ?></span></a></h1>
  36. </div>
  37. <div class="headerright">
  38. <form id="searchformheader" method="get" action="<?php echo home_url(); ?>">
  39. <input type="text" value="<?php _e( 'Type here and press enter to search', 'structuretheme' ); ?>" name="s" id="searchbox" onfocus="if (this.value == '<?php _e( 'Type here and press enter to search', 'structuretheme' ); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Type here and press enter to search', 'structuretheme' ); ?>';}" />
  40. <input type="hidden" id="searchbutton" value="Go" />
  41. </form>
  42. <div id="navicons">
  43. <?php if ( st_option( 'dark_scheme' ) ) : ?>
  44. <?php if ( st_option('twitter_url') ) : ?>
  45. <a href="<?php echo esc_url( st_option('twitter_url') ); ?>">
  46. <img class="navicon" src="<?php bloginfo('template_url'); ?>/images/twitter_icon_black.png" title="Twitter" alt="Twitter" />
  47. </a>
  48. <?php endif; ?>
  49. <?php if ( st_option('facebook_url') ) : ?>
  50. <a href="<?php echo esc_url( st_option('facebook_url') ); ?>">
  51. <img class="navicon" src="<?php bloginfo('template_url'); ?>/images/facebook_icon_black.png" title="Facebook" alt="Facebook" />
  52. </a>
  53. <?php endif; ?>
  54. <a href="<?php bloginfo( 'rss2_url' ); ?>">
  55. <img class="navicon" src="<?php bloginfo('template_url'); ?>/images/rss_icon_black.png" title="<?php _e( 'RSS feed', 'structuretheme' ); ?>" alt="RSS" />
  56. </a>
  57. <?php else : ?>
  58. <?php if ( st_option('twitter_url') ) : ?>
  59. <a href="<?php echo esc_attr( st_option('twitter_url') ); ?>">
  60. <img class="navicon" src="<?php bloginfo('template_url'); ?>/images/twitter_icon.png" title="Twitter" alt="Twitter" />
  61. </a>
  62. <?php endif; ?>
  63. <?php if ( st_option('facebook_url') ) : ?>
  64. <a href="<?php echo esc_attr( st_option('facebook_url') ); ?>">
  65. <img class="navicon" src="<?php bloginfo('template_url'); ?>/images/facebook_icon.png" title="Facebook" alt="Facebook" />
  66. </a>
  67. <?php endif; ?>
  68. <a href="<?php bloginfo( 'rss2_url' ); ?>">
  69. <img class="navicon" src="<?php bloginfo('template_url'); ?>/images/rss_icon.png" title="<?php _e( 'RSS feed', 'structuretheme' ); ?>" alt="RSS" />
  70. </a>
  71. <?php endif; ?>
  72. </div>
  73. </div>
  74. </div>
  75. <?php
  76. if ( function_exists('wp_nav_menu') ) {
  77. wp_nav_menu( array( 'container_class' => 'navbar', 'menu_class' => 'ot-menu', 'theme_location' => 'primary' ) );
  78. } else {
  79. wp_page_menu();
  80. }
  81. ?>
  82. <div style="clear:both;"></div>