-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-googlemap.php
executable file
·60 lines (58 loc) · 2.28 KB
/
archive-googlemap.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
<?php
get_header();
?>
<div class="container">
<div class="row">
<div class="col-xs-12">
<?php if (is_page()): ?>
<?php
if (have_posts()) :
while (have_posts()) : the_post();
get_template_part('content');
endwhile;
endif;
?>
<?php endif; ?>
<?php if (is_archive()): ?>
<h1 class="archive_title">
<?php echo get_the_archive_title(); ?>
</h1>
<p>
<?php echo get_the_archive_description(); ?>
</p>
<?php endif; ?>
<div class="googlemaps">
<div class="googlemaps-buttons">
<div class="btn-group">
<a href="#googlemaps-posts" class="btn btn-default googlemap-show-list">
<?php _e('show list', 'dimme-jour'); ?>
</a>
<a href="#googlemaps-map" class="btn btn-default googlemap-show-map">
<?php _e('show map', 'dimme-jour'); ?>
</a>
</div>
</div>
<div class="googlemaps-map" id="googlemaps-map">
<?php
$dimmeGoolemaps = DimmeGooglemaps::get_instance();
$dimmeGoolemaps->show_map(true);
?>
</div>
<div class="googlemaps-posts" id="googlemaps-posts">
<?php
if (have_posts()) :
while (have_posts()) : the_post();
get_template_part('content');
endwhile;
the_post_navigation();
else :
get_template_part('content', 'none');
endif;
?>
</div>
</div>
</div>
</div>
</div>
<?php
get_footer();