header.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. printf(
  3. '<!DOCTYPE html>
  4. <html lang="' . get_bloginfo('language') . '">
  5. <!--
  6. Copyleft ' . date('Y') . ' | ' . get_bloginfo('name') . '
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 3 of the License, or
  10. (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. -->
  18. <head>
  19. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  20. <meta http-equiv="content-type" content="text/html; charset=' . get_bloginfo('charset') . '">
  21. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  22. <meta name="description" content="' . get_bloginfo('description') . '">');
  23. if ( is_home() ) {
  24. printf('
  25. <title>' . get_bloginfo('name'). '</title>'
  26. );
  27. } elseif ( is_single() || is_page() ) {
  28. printf('
  29. <title>' . get_bloginfo('name') . ' | ' . get_the_title(). '</title>'
  30. );
  31. } else {
  32. printf('
  33. <title>' . get_bloginfo('name'). '</title>'
  34. );
  35. }
  36. printf('
  37. <link rel="stylesheet" href="' . get_bloginfo('stylesheet_url') . '">
  38. ');
  39. wp_head();
  40. printf(
  41. '</head>
  42. <body>
  43. <header>
  44. <div class="container">
  45. <div class="row">
  46. <div class="logo col-xs-12 col-sm-6">
  47. <h1>
  48. <a class="libre_title_header" href="' . get_bloginfo('url') . '">' . get_bloginfo('name') . '</a>
  49. </h1>
  50. <h2>
  51. <a class="libre_title_description">'. get_bloginfo('description') .'</a>
  52. </h2>
  53. </div>
  54. <div class="redes-sociales-libres col-xs-12 col-sm-6">
  55. <a class="gnusocial" href="#"><i class="icon-gnusocial"></i></a>
  56. <a class="diaspora" href="#"><i class="icon-diaspora"></i></a>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="menu">
  61. <div class="container">
  62. <div class="row primary_nav_wrap">
  63. <nav>');
  64. $args_main = array(
  65. 'container' => 'ul',
  66. 'container_id' => 'nav-main',
  67. 'menu_class' => 'col-md-8 col-sm-7',
  68. //'items_wrap' => '<li">%3$s</li>',
  69. 'theme_location' => 'main_nav');
  70. wp_nav_menu( $args_main );
  71. //Begin-Barra-de-búsqueda
  72. printf(
  73. '</nav>
  74. <form action="' . esc_url( home_url( '/' ) ) . '" id="search-form" method="get" class="navbar-form navbar-right search-form" role="search">
  75. <div class="form-group">
  76. <input type="text" class="form-control" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s">
  77. </div>
  78. <button type="submit" class="btn btn-primary" value="'. esc_attr_x( 'Search', 'submit button' ) .'">
  79. <span class="glyphicon glyphicon-search"></span>
  80. </button>
  81. </form>');
  82. //End-Barra-de-búsqueda
  83. printf('</div>
  84. </div>
  85. </div>
  86. </header>
  87. <div class="container">
  88. <div class="row">');