-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-roster.php
44 lines (35 loc) · 1.07 KB
/
page-roster.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
<?php
/*
Template Name: Roster
*/
?>
<?php get_header(); ?>
<img id="banner" src="<?php bloginfo("stylesheet_directory") ;?>/img/banners/race.jpg">
<div id="content">
<?php get_sidebar(); ?>
<img class="info_right" src="<?php bloginfo("stylesheet_directory"); ?>/img/quick_facts.png">
<div class="primary">
<a href="<?php bloginfo("url"); ?>/race"><div class="content_header">Overview</div></a>
<a href="<?php bloginfo("url"); ?>/race/roster"><div class="content_header" id="active">Roster</div></a>
<a href="<?php bloginfo("url"); ?>/race/calendar"><div class="content_header">Calendar</div></a>
<?php
$year=date("Y");
$todays_date=date("Y-m-d");
$today=strtotime($todays_date);
$grad=strtotime($year-06-31);
$febgrad=strtotime($year-02-07);
$start=strtotime($year-09-01);
if ($today>$grad){
$alums=$year+0.1;
}
elseif($today>$febgrad & $today<$grad){
$alums=$year-0.3;
}
else{
$alums=$year-0.9;
};
echo do_shortcode('[pdb_list filter="class>'.$alums.'"]');
?>
</div><!-- #primary -->
</div> <!-- Content -->
<?php get_footer(); ?>