-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
150 lines (136 loc) · 6.02 KB
/
index.php
File metadata and controls
150 lines (136 loc) · 6.02 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php
require_once( "include/page_elements.php" );
require_once( "include/utils.php" );
if ( isset( $_GET['page_id'] ) ) {
# redirect to page php
$url = "/page.php?page_id=" . $_GET['page_id'];
if ( isset( $_GET['preview'] ) ) $url .= "&preview=" . $_GET[ 'preview' ];
header( "Location: $url" );
die();
}
$blog = get_latest_blog();
my_setup_postdata( $blog );
?>
<!DOCTYPE html>
<html>
<?php page_head( "LigerBots" ); ?>
<body>
<div id="header-ghost" ></div>
<div class="container-fluid no-side-padding">
<div class="col-xs-12 no-side-padding">
<?php
output_header();
output_navbar();
?>
<div class="row page-body home-page-body">
<div class="col-md-12 col-md-offset-0 col-sm-10 col-sm-offset-1 col-xs-12">
<div class="row top-spacer"> </div>
<div class="row bottom-margin row-margins">
<div class="col-md-6 col-sm-12">
<div class="panel panel-blue">
<div class="panel-heading index-heading">
<!-- CSS cannot seem to set the color so do it here -->
<a style="color:white;" href="/blog_list.php">LIGERBOTS BLOG</a>
</div>
<div id="blog-panel" class="panel-body">
<div class="blog-image-box">
<?php echo find_first_image(); ?>
</div>
<div class="text-margins">
<?php
my_the_excerpt( FALSE );
?>
<div class="read-more">
<a href="<?php echo get_permalink( $blog ); ?>"><img src="/images/read_more_flat.svg"/></a>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="panel panel-blue">
<div class="panel-heading index-heading">
<a style="color:white;" href="/calendar.php">UPCOMING EVENTS</a>
</div>
<div id="cal-panel-div" class="panel-body">
<iframe id="cal-panel" src="https://calendar.google.com/calendar/embed?showTitle=0&showNav=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&mode=AGENDA&height=500&wkst=2&bgcolor=%23FFFFFF&src=c_ab7c91eb08574f09684076109ea998ec2df38bb839ff68399f801f6274446d76%40group.calendar.google.com&color=%23711616&ctz=America%2FNew_York"
width="100%" height="500" frameborder="0" scrolling="no">
</iframe>
</div>
</div>
</div>
</div>
<div class="row bottom-margin row-margins">
<div class="col-md-6 col-sm-12">
<div class="panel panel-blue">
<div class="panel-heading index-heading">
<a style="color:white;" href="/blog_list.php">ANNOUNCEMENTS</a>
</div>
<div id="ann-panel" class="panel-body" >
<?php
foreach ( get_announcements( 4 ) as $ann )
{
my_setup_postdata( $ann );
echo '<div class="announce text-margins"><div class="announce-title">';
echo '<a href="' . get_permalink( $ann ) . '">';
the_title();
echo "</a></div>\n";
echo '<div class="announce-date">';
the_date();
echo "</div>\n";
echo '<div class="announce-content">';
my_the_excerpt( TRUE );
echo "</div>\n";
echo "</div>\n";
}
?>
<br/>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="panel panel-blue">
<div class="panel-heading index-heading">
<a style="color:white;" target="_blank" href="https://www.facebook.com/LigerBots/">FACEBOOK</a>
</div>
<div class="panel-body">
<iframe id="fb-panel" src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fligerbots&tabs=timeline&width=600&height=1000&small_header=true&adapt_container_width=true&hide_cover=true&show_facepile=false&appId" width="100%" height="100%" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>
</div>
</div>
</div>
</div>
<div class="row row-margins">
<div class="col-xs-12">
<div class="panel panel-brag">
<img style="width: 100%" src="/images/team_photo_2024.jpg"/>
</div>
<div style="text-align:center;">
<div class="label-blue"><a href="https://www.flickr.com/photos/ligerbots/albums/72177720322012243" target="_blank">The LigerBots</a></div>
</div>
</div>
</div>
<?php output_footer(); ?>
</div>
</div>
</div>
</div>
<?php page_foot(); ?>
<script>
function Resize( id1, id2 )
{
$(id2).css( 'height', $(id1).height() );
}
function FixHeight()
{
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
if ( width > 990 ) {
Resize( "#blog-panel", "#cal-panel" );
Resize( "#ann-panel", "#fb-panel" );
}
}
$(window).on('load resize', FixHeight);
$("#twitter-widget-0").on('load', FixHeight);
setTimeout(function() { FixHeight(); }, 1000);
</script>
</body>
</html>