-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-passeios_turisticos.php
71 lines (59 loc) · 1.85 KB
/
archive-passeios_turisticos.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
<?php
get_header();
?>
<div class="wrapper passeios-turisticos-archive" id="wrapper-index">
<div id="content" tabindex="-1">
<div class="row passeios-turisticos">
<div class="header-cover" style="background-image: url('/~gots/wp-content/uploads/passeios-turisticos.jpg');">
<article class="banner-content container">
<section class="passeios-turisticos-title">
<h1>Passeios Turísticos</h1>
</section>
</article>
<div class="container">
<?php if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<p class="breadcrumbs" id="breadcrumbs">','</p>');
} ?>
</div>
</div>
<div class="container-large">
<?php if ( have_posts() ) :
$i = 0;
/* Start the Loop */
while ( have_posts() ) : the_post();
if ($i == 0) { ?>
<div class="row">
<?php } ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php the_permalink(); ?>">
<div class="passeios-turisticos-container passeios-turisticos-container-<?php echo $i+1 ?>" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<header class="entry-header">
<div class="passeios-turisticos-text">
<h2><?php the_title(); ?></h2>
<h3><?php the_field('description'); ?></h3>
</div>
<div class="passeios-turisticos-button">Consultar</div>
</header><!-- .entry-header -->
</div>
</a>
</article><!-- #post-## -->
<?php if ($i == 2) { ?>
</div>
<?php
$i = -1;
}
$i++;
endwhile;
if(function_exists('wp_paginate')):
wp_paginate();
else :
the_posts_navigation();
endif;
else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>