-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
76 lines (73 loc) · 2.99 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
<?php get_header(); ?>
<div id="main">
<?php if(isset($_GET['s'])) : ?>
<div class="archive-box">
<div class="container">
<span>Você pesquisou por:</span>
<h1><?php the_search_query(); ?></h1>
</div>
</div>
<?php endif; ?>
<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( 'hero-article' ) ?>>
<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 class="meta-comments"><a href="<?php comments_link() ?>"><?php comments_number('0 Comentários', '1 Comentário', '% Comentários' );?></a></div>
<div class="meta-share">
<?php vhr_share_links() ?>
</div>
</div>
</article>
<?php $c+=1; ?>
<?php else: ?>
<li>
<article id="post-<?php the_ID() ?>" <?php post_class( 'grid-item' ) ?>>
<?php if(has_post_thumbnail()) : ?>
<div class="post-img">
<a href="<?php the_permalink() ?>">
<?php the_post_thumbnail( 'full' ) ?>
</a>
</div>
<?php endif; ?>
<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">
</div>
</article>
</li>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php vhr_paginate() ?>
<?php else : ?>
<article class="hero-article">
<div class="post-entry no-posts">
<span class="no-posts-message">Nenhuma postagem encontrada! :(</span>
</div>
</article>
<?php endif; ?>
</div>
<!-- Fim posts loop -->
<?php get_sidebar() ?>
</div>
</div>
</div>
<?php get_footer(); ?>