/
index.php
240 lines (194 loc) · 6.29 KB
/
index.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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="/assets/bootstrap/js/stepcarousel.js">
/***********************************************
* Step Carousel Viewer script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* Please keep this notice intact
***********************************************/
</script>
<style type="text/css">
.stepcarousel{
position: relative; /*leave this value alone*/
border: 0px solid white;
overflow: scroll; /*leave this value alone*/
width: 60vw; /*Width of Carousel Viewer itself*/
height: 30vw; /*Height should enough to fit largest content's height*/
-webkit-box-sizing: border-box; /* set box model so container width and height value includes any padding/border defined */
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.stepcarousel .belt{
position: absolute; /*leave this value alone*/
left: 0;
top: 0;
}
.stepcarousel .panel{
float: left; /*leave this value alone*/
overflow: hiddenh; /*clip content that go outside dimensions of holding panel DIV*/
margin: 10px; /*margin around each panel*/
width: 60vw; /*Width of each panel holding each content. If removed, widths should be individually defined on each content DIV then. */
}
span.paginatecircle{ /* CSS for paginate circle spans. Required */
background: white;
border: 2px solid black;
border-radius: 10px;
width: 6px;
height: 6px;
cursor: pointer;
display: inline-block;
margin-right: 4px;
}
span.paginatecircle:hover{
background: gray;
}
span.paginatecircle.selected{
background: black;
}
</style>
<script type="text/javascript">
stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:true, wrapbehavior:'slide', persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['/images/arrow_left.png', 20, 180], rightnav: ['/images/arrow_right.png', -60, 180]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})
</script>
</head>
<?php include ("header.php"); ?>
<body>
<?php include("navbar/navbar.php"); ?>
<?php
if (isset($_COOKIE["fname"]))
include("resources.php");
?>
<div align=<?php if (isset($_COOKIE["fname"])) echo '"right"'; else echo '"center"'; ?>>
<div id="mygallery" class="stepcarousel">
<div class="belt">
<div class="panel">
<a href="/classes/registration.php">
<img src="/images/Slide1.png"/>
</a>
</div>
<div class="panel">
<a href="/classes/registration.php">
<img src="/images/Slide2.png" />
</a>
</div>
<div class="panel">
<a href="/classes/classdescriptions.php">
<img src="/images/Slide3.png" />
</a>
</div>
<div class="panel">
<a href="/classes/classdescriptions.php">
<img src="/images/Slide4.png" />
</a>
</div>
<div class="panel">
<img src="/images/Slide5.png" />
</div>
<div class="panel">
<img src="/images/Slide6.png" />
</div>
</div>
</div>
<p id="mygallery-paginate" align="center">
<span class="paginatecircle" data-moveby="1"></span>
</p>
</div>
<div class="container">
<div class="container-fluid">
<div class="row-fluid">
<!--<div class="span9">
<div class="hero-unit">
<h1>Welcome</h1>
<br />
<p>Answer questions and view your stats here.</p>
<br />
<p><a class="btn btn-primary btn-large" href="register/">Register now »</a></p>
</div>
</div>
</div>-->
<!-- Example row of columns -->
<div class="row">
<div class="span10">
<div id="mainContent">
<div class="row">
<div class="small-12 columns">
<div class="hero-unit">
<h2>Announcements</h2>
<ul>
<?php
date_default_timezone_set("America/Los_Angeles");
require_once($_SERVER['DOCUMENT_ROOT'] . "/lib/simplepie/autoloader.php");
$feed = new SimplePie();
$feed->enable_cache(false);
//$feed->set_cache_location("tmp/simplepie");
$feed->set_feed_url("http://www.NuptseFoundation.blogspot.com/feeds/posts/default");
$feed->init();
$feed->handle_content_type();
$i = 0;
foreach($feed->get_items() as $item) {
?>
<?php
$i++;
if($i <= 5)
{
?>
<div class="item">
<h4><?php echo $item->get_title();
echo " || ";
echo $item->get_date('j F Y'); //code after Y = | g:i a
echo " || "; ?>
<a href= <?php echo $item->get_link() ?>>Link to Post</a></h4>
<?php
/*if(strlen($item->get_content()) < 225 )
{
echo $item->get_content();
}
else
{
$str = $item->get_content();
$str2 = substr($str,0,225);
echo $str2, "... ";
?><a href= <?php echo $item->get_link() ?>>Full Post</a><?php
}*/
?>
<hr>
<?php
}
?>
</div>
<?php
}
?>
</ul>
</div>
</div>
</div>
</div>
<!--<p><a class="btn" href="#">View details »</a></p>-->
</div>
<!--<div class="span5">
<h2>Upcoming Events</h2>
<p>Coming Soon.</p>
<p><a class="btn" href="#">View details »</a></p>
</div>-->
</div>
<?php include("footer.php"); ?>
</div> <!-- /container -->
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./assets/bootstrap/js/jquery.js"></script>
<script src="./assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>