-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
89 lines (60 loc) · 2.55 KB
/
index.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php get_header(); ?>
<div class="container mb-4">
<div class="row justify-content-center">
<div class="col-md-8">
<blockquote class="subtitulo text-center pl-3">
<?php
$id_blog = get_option('page_for_posts');
echo get_post_meta($id_blog,'edc_blog_slogan_blog',true);
?>
</blockquote>
</div>
</div>
</div>
<div class="container">
<div class="row">
<main class="col-lg-9 col-md-8">
<h1 class="separador text-center mb-3">
Nuestro blog
</h1>
<?php while(have_posts()): the_post(); ?>
<div class="row entrada mb-4">
<div class="col-md-4">
<!-- <img src="img/clase1.jpg" alt="imagen de blog" class="img-fluid"> -->
<?php the_post_thumbnail('mediano',array('class'=>'img-fluid')); ?>
</div>
<div class="col-md-8">
<div class="contenido-entrada pt-4 pt-md-0">
<a href="<?php the_permalink(); ?>">
<h3><?php the_title(); ?></h3>
</a>
<?php get_template_part('template-parts/meta','post'); ?>
<p><?php the_excerpt(); ?></p>
<a href="<?php the_permalink(); ?>" class="btn btn-primary text-light">ve entrada</a>
</div>
</div>
</div>
<?php endwhile;?>
<ul class="pagination pagination-lg justify-content-center mt-5">
<li class="page-item">
<?php
previous_posts_link('
<span class="page-link" aria-hidden="true">« Anteriores</span>
<span class="sr-only">Anteriores</span>
');
?>
</li>
<li class="page-item">
<?php
next_posts_link('
<span class="page-link" aria-hidden="true">Siguientes »</span>
<span class="sr-only">Siguientes</span>
');
?>
</li>
</ul>
</main>
<?php get_sidebar();?>
</div>
</div>
<?php get_footer(); ?>