-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
70 lines (61 loc) · 1.94 KB
/
page.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
<?php get_header(); ?>
<?php
if ( is_page( 'resources' ) ) {
?>
<div id="content" class="resources-page-list">
<span class="corner-map"></span>
<div class="blue-bar-top resources" id="blue-bar">
<div class="wrap wrapper">
<span><a href="#publications">guides</a></span>
<span><a href="#notes">short notes</a></span>
<span><a href="#newsletters">newsletters</a></span>
<span><a href="#tools">tools and training materials</a></span>
<span><a href="#other">other resources</a></span>
</div>
</div>
<div id="inner-content" class="wrap cf">
<div id="main" class="m-all cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<?php if (have_posts()) : while (have_posts()) : the_post();
the_content();
endwhile; endif; ?>
</div>
<?php /* get_sidebar();*/ ?>
</div>
</div>
<?php } // end resources
elseif ( is_page( 'about' ) ) {
?>
<div id="content">
<span class="corner-map about"></span>
<div class="blue-bar-top about" id="blue-bar">
<div class="wrap wrapper">
<span><a href="#principles">our principles</a></span>
<span><a href="#members">the team</a></span>
<!--<span><a href="#partners">partners</a></span>-->
<span><a href="#newsletter">Newsletter</a></span>
<span><a href="#contact">contact</a></span>
<span><a href="#more-content">related web pages</a></span>
</div>
</div>
<div id="inner-content" class="wrap cf">
<?php if (have_posts()) : while (have_posts()) : the_post();
the_content();
endwhile; endif; ?></div>
</div>
<?php } // end about
// default
else {
?>
<div id="content">
<div id="inner-content" class="wrap cf">
<h1><?php echo get_the_title(); ?></h1>
<?php if (have_posts()) : while (have_posts()) : the_post();
the_content();
endwhile;
endif;
}
?>
</div>
</div>
<?php get_footer(); ?>