-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
52 lines (36 loc) · 1.54 KB
/
header.php
File metadata and controls
52 lines (36 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!--
CABECERA. (HEADER.PHP)
-->
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>"> <!-- Indicamos la codificacion predeterminada. -->
<meta name="viewport" content="width=device-width, minimum-scale=1"> <!-- Definir viewport para dispositivos web moviles. -->
<title>
<?php if (is_home()) {
bloginfo('name');
echo ' - '; bloginfo('description');
} else {
the_title();
echo ' - '; bloginfo('name');
}
?>
</title> <!-- Titulo personalizado para SEO, referencia: https://codex.wordpress.org/Function_Reference/wp_title -->
<link rel="stylesheet" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <!-- Hoja de estilos "style.css" del tema. -->
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!-- <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/reset.css"> --> <!-- Hoja de estilos que resetea el CSS predefinido por los navegadores. OPCIONAL -->
<?php wp_head(); ?> <!-- Funcion interna de WordPress. Necesaria para que funcionen varios plugins y funciones. -->
</head>
<body>
<div id="envoltura"> <!-- INICIO del CONTENEDOR principal. -->
<header>
<h1><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
</header>
<nav> <!-- Menu HTML5 -->
<ul>
<?php menuHtml5(); ?> <!-- Funcion personalizada agregada en "functions.php" -->
</ul>
</nav>
<!--
Nota: El div con id envoltura sigue para englobar a toda la pagina. Es el CONTENEDOR. Acaba en el "FOOTER.PHP".
-->