-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-trustees.php
91 lines (62 loc) · 1.79 KB
/
page-trustees.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
90
91
<?php
/*
Template Name: Trustees
*/
get_header();
?>
<?php the_showcase(); ?>
<div class="wrap group three-column">
<div class="quarter left-menu">
<?php left_menu_display(); ?>
</div>
<div class="half">
<?php
while ( have_posts() ) : the_post(); ?>
<h1><?php the_title() ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<h2>Officers</h2>
<?php
// get the file contents
$doc = file_get_contents( "https://my.ripon.edu/trustees/trustee_directory_external_officers_partial.php" );
// replace image URLs so they're correct
$doc = str_replace( './images/', 'https://my.ripon.edu/trustees/images/', $doc );
print $doc;
?>
<h2>Members of the Board</h2>
<?php
// get the file contents
$doc = file_get_contents( "https://my.ripon.edu/trustees/trustee_directory_external_members_partial.php" );
// replace image URLs so they're correct
$doc = str_replace( './images/', 'https://my.ripon.edu/trustees/images/', $doc );
print $doc;
?>
<h2>Honorary Life Trustees</h2>
<?php
// get the file contents
$doc = file_get_contents( "https://my.ripon.edu/trustees/trustee_directory_external_Honorary_partial.php" );
// replace image URLs so they're correct
$doc = str_replace( './images/', 'https://my.ripon.edu/trustees/images/', $doc );
print $doc;
?>
</div>
<?php
endwhile;
?>
</div>
<div class="quarter sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-generic') ) : ?><!-- no sidebar --><?php endif; ?>
</div>
<div class="three-quarter right">
<?php the_tab_box(); ?>
<?php the_accordions(); ?>
</div>
<?php the_wide_content(); ?>
</div>
<?php the_infographic(); ?>
<div class="wrap">
<?php the_photo_grid(); ?>
</div>
<?php
get_footer();
?>