This repository was archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate_projects.php
More file actions
139 lines (125 loc) · 3.29 KB
/
Copy pathtemplate_projects.php
File metadata and controls
139 lines (125 loc) · 3.29 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
/*
* Template Name: Projects
* Description: A Page Template showing a list of projects
*/
get_header();
?>
<h4><?php _e("The Railway Diaries");?></h4>
<h5><?php _e("A women’s epic journey along the Silk Road");?></h5>
<div class="row show-for-small-only">
<div class="small-12 columns">
<ul data-orbit>
<?php
$args = array(
'posts_per_page' => 4,
'paged' => $paged,
'cat' => 32
);
$latest = new WP_Query( $args );
while( $latest->have_posts() ) : $latest->the_post(); ?>
<li>
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('original');
}
?>
<div class="orbit-caption">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
</li>
<?php endwhile; ?>
</ul>
<hr />
</div>
</div>
<div class="row show-for-medium-up">
<div class="large-12 columns">
<ul data-orbit>
<li>
<!-- Map! -->
<div id="map" style="width:1000px; height: 400px;"></div>
<div class="orbit-caption">
<?php _e("Map of The Railway diaries - Click on the train icon to see more of the project!", "noborders"); ?>
</div>
</li>
<?php
$args = array(
'posts_per_page' => 4,
'paged' => $paged,
'cat' => 32
);
$latest = new WP_Query( $args );
while( $latest->have_posts() ) : $latest->the_post(); ?>
<li>
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('original');
}
?>
<div class="orbit-caption">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
</li>
<?php endwhile; ?>
</ul>
<hr />
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="panel">
<div class="row">
<div class="large-6 columns">
<h4><?php _e("Discover the project!", "noborders"); ?></h4>
<p><?php _e("Click on the train and get the latest information on this great journey!", "noborders"); ?></p>
</div>
<div class="large-6 columns">
<a href="/the-railway-diaries/" class="right"><img src="<?php echo get_template_directory_uri();?>/img/train.png"></a>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<p>
<?php
$post_731 = get_post(731);
echo apply_filters('the_content', $post_731->post_content);
?>
</p>
</div>
</div>
<div class="row show-for-medium-up">
<div id="legend" style="visibility: hidden;">
<p class="text-center" style="color: orange">
<?php _e("Legend", "noborders"); ?>
</p>
<p>
<img src="<?php echo get_template_directory_uri();?>/img/photo.png" width="24px"/>
<?php _e("Photo", "noborders"); ?>
</p>
<p>
<img src="<?php echo get_template_directory_uri();?>/img/people.png" width="24px" />
<?php _e("People", "noborders"); ?>
</p>
<p>
<img src="<?php echo get_template_directory_uri();?>/img/blog.png" width="24px" />
<?php _e("Blog", "noborders"); ?>
</p>
<p>
<img src="<?php echo get_template_directory_uri();?>/img/audio.png" width="24px" />
<?php _e("Audio", "noborders"); ?>
</p>
<p>
<img src="<?php echo get_template_directory_uri();?>/img/articles.png" width="24px" />
<?php _e("Article", "noborders"); ?>
</p>
<p>
<img src="<?php echo get_template_directory_uri();?>/img/video.png" width="24px" />
<?php _e("Video", "noborders"); ?>
</p>
</div>
</div>
<?php get_footer(); ?>