-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsingle-spotlight.php
78 lines (75 loc) · 2.35 KB
/
single-spotlight.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
<?php disallow_direct_load('single-spotlight.php');?>
<?php get_header(); the_post();?>
<?php
ob_start();
get_sidebar('left');
$leftSidebar = ob_get_clean();
?>
<div class="row page-content" id="<?=$post->post_name?>">
<div class="col-md-15 col-sm-15">
<div id="page-title">
<div class="row">
<div class="<?= $leftSidebar ? 'col-md-12 col-sm-12' : 'col-md-15 col-sm-15' ?>">
<h1><?=has_term('scholarship-categories','event_groups') ? 'Scholarship' : 'Spotlight'?>: <?php the_title(); ?></h1>
</div>
<?php esi_include( 'output_weather_data', 'col-md-3 col-sm-3' ); ?>
</div>
</div>
</div>
<div id="contentcol" class="<?= $leftSidebar ? 'col-md-12 col-sm-12 col-sm-push-3' : 'col-md-15 col-sm-15' ?>">
<article role="main">
<?if(has_term('scholarship-category','event_groups')){?>
<div class="scholarship-single-table">
<div class="row">
<div class="col-xs-15 col-md-5">
<b>Award:</b>
</div>
<div class="col-xs-15 col-md-10">
<?=get_post_meta( get_the_ID(), 'award', true )?>
</div>
</div>
<div class="row">
<div class="col-xs-15 col-md-5">
<b>Endorsement/Nomination Required:</b>
</div>
<div class="col-xs-15 col-md-10">
<?=get_post_meta( get_the_ID(), 'endorsement/nomination_required', true )?>
</div>
</div>
<div class="row">
<div class="col-xs-15 col-md-5">
<b>Deadline:</b>
</div>
<div class="col-xs-15 col-md-10">
<?=get_post_meta( get_the_ID(), 'deadline', true )?>
</div>
</div>
<div class="row">
<div class="col-xs-15 col-md-5">
<b>Field of Study:</b>
</div>
<div class="col-xs-15 col-md-10">
<?=get_post_meta( get_the_ID(), 'field_of_study', true )?>
</div>
</div>
<div class="row">
<div class="col-xs-15 col-md-5">
<b>Website:</b>
</div>
<div class="col-xs-15 col-md-10">
<a href="<?=get_post_meta( get_the_ID(), 'website', true )?>"><?=get_post_meta( get_the_ID(), 'website', true )?></a>
</div>
</div>
</div>
<?}?>
<?=the_content();?>
</article>
</div>
<? if($leftSidebar){?>
<div id="sidebar_left" class="col-sm-3 col-sm-pull-12" role="navigation">
<?=$leftSidebar?>
</div>
<?}?>
</div>
</div>
<?php get_footer();?>