-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.php
More file actions
52 lines (43 loc) · 1.69 KB
/
Copy pathresources.php
File metadata and controls
52 lines (43 loc) · 1.69 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
<?php
/*
Template Name: Resources
*/
?>
<?php include("header.php"); ?>
<div class="wrapper">
<?php while ( have_posts() ) : the_post(); ?>
<div class="g3">
<h2 class="vision">Resources <span class="icon">ó</span></h2>
<div class="headline"><?php the_content(); ?></div>
</div>
<?php endwhile; // end of the loop. ?>
<div class="cf"></div>
<?php query_posts('post_type=resources_post_type&posts_per_page=-1');
if (have_posts()) : while (have_posts()) : the_post(); $count++; ?>
<?php
$res_url = get_post_meta(get_the_ID(), 'resource_url', true);
?>
<div class="g-half resource">
<table><tr><td valign="top">
<a href="<?php echo $res_url; ?>">
<span class="icon">ó</span></td><td>
<h3><a href="<?php echo $res_url; ?>" rel="bookmark" title="Download <?php the_title(); ?>">
<?php the_title(); ?></a></h3>
<?php
the_content();
echo '</td></tr></table></div>';
if ( 0 == $count%2 ) {
echo '<div class="cf"></div>';
}
endwhile; endif; //ending the loop
if ( 0 != $count%2 ) {
echo '<div class="cf"></div>';
}
wp_reset_query();
?>
<div class="g3">
<?php the_apply_project_button(); ?>
</div>
</div>
<!-- end of wrapper -->
<?php include("footer.php"); ?>