-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-trustees.php
executable file
·69 lines (51 loc) · 1.35 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
<?php
/*
Template Name: Trustees
*/
get_header();
page_header();
?>
<div class="two-column">
<div class="sidebar">
<?php section_menu(); ?>
</div>
<div class="right-column">
<?php
while ( have_posts() ) : the_post(); ?>
<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;
?>
<hr>
<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;
?>
<hr>
<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>
<?php
get_footer();
?>