-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-winners.php
105 lines (100 loc) · 3.43 KB
/
page-winners.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/*
Template Name: Winner template
*/
?>
<?php
get_header();
the_post();
?>
<script>
$(document).ready(function(){
$('tbody tr:odd').each(function(){
$(this).addClass('odd');
})
})
</script>
<!-- Content Wrapper -->
<div id="contentWrapper">
<div id="contentArea">
<h2><?php the_title();?></h2>
<?php
remove_filter('the_content', 'wpautop');
the_content();?>
<div id="homeBottomBanner" class="clear">
<a id="homeBannerLeft" href="<?php
$page=get_page_by_path('home');
$homeBannerLeftLink = get_post_meta($page->ID, "Home Banner Left Link", true);
if($homeBannerLeftLink!=null) :
echo $homeBannerLeftLink;
else:?>
javascript:;
<?php
endif;
?> " target="_blank">
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/i/regitsterNowImage.png" alt="" />
</a>
<a id="homeBannerMiddle" href="<?php
$page=get_page_by_path('home');
$homeBannerMiddleLink = get_post_meta($page->ID, "Home Banner Middle Link", true);
if($homeBannerMiddleLink!=null) :
echo $homeBannerMiddleLink;
else:?>
javascript:;
<?php
endif;
?>" target="_blank">
<strong>
<?php
$page=get_page_by_path('home');
$homeBannerMiddleTitle = get_post_meta($page->ID, "Home Banner Middle Title", true);
if($homeBannerMiddleTitle!=null) :
echo $homeBannerMiddleTitle;
else:?>
NTL
<?php
endif;
?>
</strong>
<?php
$page=get_page_by_path('home');
$homeBannerMiddleText = get_post_meta($page->ID, "Home Banner Middle Text", true);
if($homeBannerMiddleText!=null) :
echo $homeBannerMiddleText;
endif;
?>
</a>
<a id="homeBannerRight" href="<?php
$page=get_page_by_path('home');
$homeBannerRightLink = get_post_meta($page->ID, "Home Banner Right Link", true);
if($homeBannerRightLink!=null) :
echo $homeBannerRightLink;
else:?>
javascript:;
<?php
endif;
?> " target="_blank">
<strong>
<?php
$page=get_page_by_path('home');
$homeBannerRightTitle = get_post_meta($page->ID, "Home Banner Right Title", true);
if($homeBannerRightTitle!=null) :
echo $homeBannerRightTitle;
else:?>
CEOCI
<?php
endif;
?>
</strong>
<?php
$page=get_page_by_path('home');
$homeBannerRightText = get_post_meta($page->ID, "Home Banner Right Text", true);
if($homeBannerRightText!=null) :
echo $homeBannerRightText;
endif;
?>
</a>
</div>
</div>
</div>
<?php get_footer(); ?>