header.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. printf(
  3. '<!DOCTYPE html>
  4. <html lang="' . get_bloginfo('language') . '">
  5. <head>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta http-equiv="content-type" content="text/html; charset=' . get_bloginfo('charset') . '">
  8. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  9. <meta name="description" content="' . get_bloginfo('description') . '">');
  10. if ( is_home() ) {
  11. printf('
  12. <title>' . get_bloginfo('name'). '</title>'
  13. );
  14. } elseif ( is_single() || is_page() ) {
  15. printf('
  16. <title>' . get_bloginfo('name') . ' | ' . get_the_title(). '</title>'
  17. );
  18. } else {
  19. printf('
  20. <title>' . get_bloginfo('name'). '</title>'
  21. );
  22. }
  23. printf('
  24. <link rel="stylesheet" href="' . get_bloginfo('stylesheet_url') . '">
  25. <script>
  26. /*
  27. @licstart The following is the entire license notice for the
  28. JavaScript code in this page.
  29. Copyleft ' . date('Y') . ' | ' . get_bloginfo('name') . '
  30. The JavaScript code in this page is free software: you can
  31. redistribute it and/or modify it under the terms of the GNU
  32. General Public License (GNU GPL) as published by the Free Software
  33. Foundation, either version 3 of the License, or (at your option)
  34. any later version. The code is distributed WITHOUT ANY WARRANTY;
  35. without even the implied warranty of MERCHANTABILITY or FITNESS
  36. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  37. As additional permission under GNU GPL version 3 section 7, you
  38. may distribute non-source (e.g., minimized or compacted) forms of
  39. that code without the copy of the GNU GPL normally required by
  40. section 4, provided you include this license notice and a URL
  41. through which recipients can access the Corresponding Source.
  42. @licend The above is the entire license notice
  43. for the JavaScript code in this page.
  44. */
  45. </script>
  46. ');
  47. wp_head();
  48. printf('
  49. </head>
  50. <body>
  51. <header>
  52. <div class="container">
  53. <div class="row">
  54. <div class="logo col-xs-12 col-sm-6">
  55. <h1>
  56. <a class="libre_title_header" href="' . get_bloginfo('url') . '" target="_self">' . get_bloginfo('name') . '</a>
  57. </h1>
  58. <h2>
  59. <a class="libre_title_description">'. get_bloginfo('description') .'</a>
  60. </h2>
  61. </div>
  62. <div class="redes-sociales-libres col-xs-12 col-sm-6">
  63. <a class="gnusocial" href="#"><i class="icon-gnusocial"></i></a>
  64. <a class="diaspora" href="#"><i class="icon-diaspora"></i></a>
  65. </div>
  66. </div>
  67. </div>
  68. <nav class="menu">
  69. <div class="container">
  70. <div class="row primary_nav_wrap">');
  71. $args_main = array(
  72. 'container' => 'ul',
  73. 'container_id' => 'nav-main',
  74. 'menu_class' => 'col-md-8 col-sm-7',
  75. //'items_wrap' => '<li">%3$s</li>',
  76. 'theme_location' => 'main_nav');
  77. wp_nav_menu( $args_main );
  78. //Begin-Barra-de-búsqueda
  79. printf('
  80. <form action="' . esc_url( home_url( '/' ) ) . '" id="search-form" method="get" class="navbar-form navbar-right search-form" role="search">
  81. <div class="form-group">
  82. <input type="text" class="form-control" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s">
  83. </div>
  84. <button type="submit" class="btn btn-primary" value="'. esc_attr_x( 'Search', 'submit button' ) .'">
  85. <span class="glyphicon glyphicon-search"></span>
  86. </button>
  87. </form>');
  88. //End-Barra-de-búsqueda
  89. printf( '</div>
  90. </div>
  91. </nav>
  92. <!--Publicidad-->
  93. <!-- <div class="ad container hidden-xs">
  94. <div class="row">
  95. <div class="col-md-12">
  96. <img src="img/publicidad.jpg" alt="publicidad">
  97. </div>
  98. </div>
  99. </div> -->
  100. <!---->
  101. </header>
  102. <div class="container">
  103. <div class="row">');