-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsinglecolumn.php
79 lines (73 loc) · 2.25 KB
/
singlecolumn.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
<?php
/*
Template Name: Single Column
*/
?>
<?php
get_header();
the_post();
$homeBannerText = get_post_meta($post->ID, "Challenge Banner Text", true);
$bannerImage = get_post_meta($post->ID, "Banner Image", true);
$bannerImageValue = wp_get_attachment_image_src( $bannerImage,'full');
$bannerImageValue = $bannerImageValue[0];
?>
<script>
$(document).ready(function(){
$('tbody tr:odd').each(function(){
$(this).addClass('odd');
})
})
</script>
<style>
ol li{margin-bottom:10px}
</style>
<?php get_header();?>
<!-- Content Wrapper -->
<div id="singleColumn">
<div id="contentWrapper">
<div id="homeBanner" class="bannerAbout" style="background-image:url('<?php echo $bannerImageValue;?>');">
<div class="introContent">
<?php
if($homeBannerText != null) :
echo apply_filters('the_content', $homeBannerText);
endif;?>
</div>
</div>
<div class="main homeMain">
<div id="contentArea" class="post">
<!---
<div class="featuredBox registerBox">
<div class="content">
<?php
echo get_post_meta($frontpage_id->ID, "Box1 Text", true);
?>
</div>
<a class="button" target="_blank" href="<?php echo get_post_meta($frontpage_id->ID, "Box1 URL", true);?>"><span>Register Now</span></a>
</div>
<div class="featuredBox learnBox">
<div class="content">
<?php
echo get_post_meta($frontpage_id->ID, "Box2 Text", true);
?>
</div>
<a class="button" target="_blank" href="<?php echo get_post_meta($frontpage_id->ID, "Box2 URL", true);?>"><span>Learn More About NTL</span></a>
</div>
<div class="featuredBox harvardBox">
<div class="content">
<?php
echo get_post_meta($frontpage_id->ID, "Box3 Text", true);
?>
</div>
<a class="button" target="_blank" href="<?php echo get_post_meta($frontpage_id->ID, "Box3 URL", true);?>"><span>Learn More About Harvard-NTL</span></a>
</div>
-->
<div class="clear"></div>
<?php echo wpautop(apply_filters('the_content', $post->post_content)) ;?>
</div>
<!-- contentArea -->
<div class="clear"></div>
</div>
<!-- main -->
</div>
</div>
<?php get_footer(); ?>