-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
68 lines (54 loc) · 1.73 KB
/
page.php
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php get_header(); ?>
<style type="text/css">
.breadcrumbs {
background:#f7f6ed;
padding:10px;
}
.breadcrumbs a {
/*También podemos utilizar uppercase*/
text-transform:capitalize;
color:#666;
font-weight:700;
}
</style>
<div id="contenido">
<?php if (have_posts()) : while (have_posts()) : the_post();
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$imgUrl = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
}else{
$imgUrl = get_template_directory_uri()."/img/noImagePostBg.png";
}
?>
<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
<header class="intro-header" style="background-image: url('<?php echo $imgUrl ?>')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading">
<h1><?php echo get_the_title(); ?></h1>
<span class="meta">Escrito por <a href="#"><?php the_author(', '); ?></a> el <?php the_time('F jS, Y'); ?></span>
</div>
</div>
</div>
</div>
</header>
<!-- Post Content -->
<article>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<?php //include ( TEMPLATEPATH . '/breadcrumbs.php'); ?>
<?php the_content(); ?>
</div>
</div>
</div>
</article>
<hr>
<?php endwhile; ?>
<?php else : ?>
<h2>pagina no encontrada</h2>
<?php endif; ?>
</div>
<hr>
<?php get_footer(); ?>