-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
57 lines (49 loc) · 1.76 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
<?php get_header(); ?>
<!-- Page Header -->
<header class="masthead" style="background-image: url(<?php header_image(); ?>)">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-10 mx-auto">
<div class="site-heading">
<h1><?php bloginfo('name'); ?></h1>
<span class="subheading"><?php bloginfo('description'); ?></span>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="container">
<div class="row">
<?php if(is_active_sidebar('pesquisar-home')) : ?>
<div class="<?php if(is_active_sidebar('sidebar-home')) { echo "col-md-12 col-lg-12"; } else { echo "col-md-10 col-lg-8"; } ?> mx-auto">
<?php dynamic_sidebar('pesquisar-home'); ?>
</div>
<?php endif; ?>
<div class="col-lg-8 col-md-10 mx-auto">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part('template-parts/content', get_post_format() );
endwhile;
?>
<div class="clearfix">
<span class="float-right">
<?php next_posts_link("Mais antigos →"); ?>
</span>
<span class="float-left">
<?php previous_posts_link("← Mais novos");?>
</span>
</div>
<div class="clearfix">
<?php else : ?>
<h2>Ops...nenhum conteúdo encontrado</h2>
<?php endif; ?>
</div>
</div>
<?php get_sidebar('home'); ?>
</div>
</div>
<hr>
<?php get_footer(); ?>