-
Notifications
You must be signed in to change notification settings - Fork 0
/
category-tanzania.php
85 lines (70 loc) · 2.19 KB
/
category-tanzania.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
77
78
79
80
81
82
83
84
85
<?php
/**
* The template for displaying Category pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
get_header(); ?>
<div class="row tanzania">
<main class="col-md-9">
<section class="people">
<h2>Some people we have met</h2>
<?php
$args = array('category_name' => 'tanzania', 'post_type' => 'person', 'posts_per_page' => 20 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div class="">
<div class="person box">
<a href="<?php echo get_post_custom_values("url")[0] ?>">
<?php if ( has_post_thumbnail()) { the_post_thumbnail( 'person_thumbnail', array( 'class' => '' ) ); } ?>
</a>
<strong class="person-name"><a href="<?php echo get_post_custom_values("url")[0] ?>"><?php the_title(); ?></a></strong>
<?php the_excerpt() ?>
</div>
</div>
<?php endwhile; ?>
<div class="clear" style="clear:both"></div>
</section>
</main>
<aside class="country col-md-3 tanzania">
<h1>Dar es Salaam</h1>
<h3>Oct 16 - Oct 23, 2013</h3>
<h2 class="flag">Tanzania</h2>
<section class="country-info">
<p>
</p>
</section>
</aside>
</div>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php if ( have_posts() ) : ?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentythirteen_paging_nav(); ?>
<?php if(get_post_custom_values("markers")) : ?>
<script type="text/javascript">
$(function() {
Hackmap.addMakers(<?php get_post_custom_values("markers")[0] ; ?>);
});
</script>
<?php endif ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<script type="text/javascript">
$(function() {
Hackmap.setHeight(200);
window.setTimeout(function() {
Hackmap.moveToCity("daressalaam");
}, 300);
});
</script>
<?php get_footer(); ?>