-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
66 lines (62 loc) · 2.3 KB
/
archive.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
<?php get_header(); ?>
<div id="main">
<div class="archive-box">
<div class="container">
<span>Categoria</span>
<h1><?php single_cat_title(); ?></h1>
</div>
</div>
<div class="container">
<div class="row">
<div class="nine columns">
<?php if (have_posts()) : ?>
<ul class="ul-grid">
<?php $c = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if(!is_paged() && 0 == $c): ?>
<article id="post-<?php the_ID() ?>" <?php post_class( '' ) ?>>
<div class="post-header">
<h1><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h1>
<h4>Em <span class="cat"><?php the_category(' ') ?></span> · <span class="date"><?php the_date('d M Y') ?></span></h4>
</div>
<div class="post-entry">
<?php the_content('<span class="more-button">Continue lendo</span>', true) ?>
</div>
<div class="post-meta">
</div>
</article>
<?php $c+=1; ?>
<?php else: ?>
<li>
<article id="post-<?php the_ID() ?>" <?php post_class( 'grid-item' ) ?>>
<div class="post-thumbnail">
<a href="#">
<img src="" alt="" />
</a>
</div>
<div class="post-header">
<h1><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h1>
<h4>Em <span class="cat"><?php the_category(' ') ?></span> · <span class="date"><?php the_date('d M Y') ?></span></h4>
</div>
<div class="post-entry">
<?php the_excerpt('...') ?>
</div>
<div class="list-meta">
<span class="date"><?php the_date() ?></span>
</div>
</article>
</li>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php vhr_paginate() ?>
<?php else : ?>
<?php // No Posts Found ?>
<?php endif; ?>
</div>
<!-- Fim posts loop -->
<?php get_sidebar() ?>
</div>
</div>
</div>
<?php get_footer(); ?>