-
Notifications
You must be signed in to change notification settings - Fork 0
/
category-rwanda.php
89 lines (75 loc) · 2.6 KB
/
category-rwanda.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
86
87
88
89
<?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 rwanda">
<main class="col-md-9">
<section class="people">
<h2>Some people we have met</h2>
<?php
$args = array('category_name' => 'rwanda', '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 rwanda">
<h1>Kigali</h1>
<h3>Oct 09 - Oct 15, 2013</h3>
<h2 class="flag">Rwanda</h2>
<section class="country-info">
<p>
Rwanda continues to be one of the fastest growing African countries in Information and Communication Technology (ICT).
With the creation of the Ministry of youth and ICT the Government of Rwanda makes ICT key tool for its vision for a knowledege based society.
</p>
<p>
We're super excited to meet the communities at <a href="http://klab.rw/">kLab</a> and <a href="http://theofficerw.com/">The Office</a>.
</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("kigali");
}, 300);
});
</script>
<?php get_footer(); ?>