-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
135 lines (114 loc) · 3.87 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package amnistia
*/
get_header(); ?>
<div class="row">
<div class="large-9 columns">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="row">
<div class="large-4 columns">
<div class="meta_ultima_noticia">
<div class="avatar">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 48 ); ?>
</div>
<div class="posted_on">
<?php amnistia_posted_on(); ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ' ', 'amnistia' ) );
?>
<div class="meta_cat">
<?php printf( __( '%1$s', 'amnistia' ), $categories_list ); ?>
</div>
</div>
<!-- AddThis Button BEGIN -->
<div class="iconos_sociales">
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook socials facebook"><img src="<?php bloginfo('template_directory'); ?>/img/blank.png"></a>
<a class="addthis_button_twitter socials twitter"><img src="<?php bloginfo('template_directory'); ?>/img/blank.png"></a>
<a class="addthis_button_google_plusone_share socials google"><img src="<?php bloginfo('template_directory'); ?>/img/blank.png"></a>
</div>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50c864ed595e3642"></script>
<!-- AddThis Button END -->
</div>
</div>
<div class="large-8 columns">
<?php if(is_front_page()) :?>
<div class="contenido">
<?php the_content(); ?>
</div>
<?php else: ?>
<div class="foto_destacada">
<div class="comentarios">
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments_link"><?php comments_popup_link( __( '0', 'amnistia' ), __( '1', 'amnistia' ), __( '%', 'amnistia' ) ); ?></span>
<?php endif; ?>
</div>
<a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_post_thumbnail('medium'); ?>
<div class="titulo">
<h1><?php the_title(); ?></h1>
</div>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="large-4 columns">
<div class="imagenes_laterales">
<?php the_field('galeria_izquierda'); ?>
</div>
</div>
<div class="large-8 columns">
<?php if(!is_front_page()) :?>
<div class="extracto">
<?php the_excerpt(); ?>
</div>
<div class="contenido">
<?php the_content(); ?>
</div>
<div class="meta_bucle">
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ' ', 'amnistia' ) );
if ( $tags_list ) :
?>
<div class="meta_tag">
<?php printf( __( '%1$s', 'amnistia' ), $tags_list ); ?>
</div>
<?php endif; // End if $tags_list ?>
</div>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endif; ?>
</div>
</div>
</article>
<div class="row">
<div class="large-4 columns">
</div>
<div class="large-8 columns">
<?php related_posts(); ?>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="large-3 columns">
<?php get_sidebar() ?>
</div>
</div>
<?php get_footer(); ?>