-
Notifications
You must be signed in to change notification settings - Fork 0
/
maingame.php
470 lines (450 loc) · 29.3 KB
/
maingame.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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<?php $view = 'maingame';
include("header.php");
$profiles = array(
array('Name' => 'Isaac Garza', 'ProfilePic' => _IMAGES_URL_.'profilepics/1.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Tiago Ruprecht', 'ProfilePic' => _IMAGES_URL_.'profilepics/2.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Sergio García', 'ProfilePic' => _IMAGES_URL_.'profilepics/3.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Pauline Schaeffer', 'ProfilePic' => _IMAGES_URL_.'profilepics/4.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Pau Cz', 'ProfilePic' => _IMAGES_URL_.'profilepics/5.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Diego Muñoz', 'ProfilePic' => _IMAGES_URL_.'profilepics/6.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Karla Rubiano', 'ProfilePic' => _IMAGES_URL_.'profilepics/7.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Emi Gonzalez', 'ProfilePic' => _IMAGES_URL_.'profilepics/8.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Diego García', 'ProfilePic' => _IMAGES_URL_.'profilepics/9.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Arliz Gutierrez', 'ProfilePic' => _IMAGES_URL_.'profilepics/10.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Jesus de Anda', 'ProfilePic' => _IMAGES_URL_.'profilepics/11.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Aline García', 'ProfilePic' => _IMAGES_URL_.'profilepics/12.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Andrea Scheel', 'ProfilePic' => _IMAGES_URL_.'profilepics/13.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Federico Halsband', 'ProfilePic' => _IMAGES_URL_.'profilepics/14.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Felix Collado', 'ProfilePic' => _IMAGES_URL_.'profilepics/15.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Carlos Mundalah', 'ProfilePic' => _IMAGES_URL_.'profilepics/16.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Gaby Ork', 'ProfilePic' => _IMAGES_URL_.'profilepics/17.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Alex Patiño', 'ProfilePic' => _IMAGES_URL_.'profilepics/18.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Vivians Glicanti', 'ProfilePic' => _IMAGES_URL_.'profilepics/19.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Xavier Padilla', 'ProfilePic' => _IMAGES_URL_.'profilepics/20.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Carlos Pérez', 'ProfilePic' => _IMAGES_URL_.'profilepics/21.png' , 'Ecopoints' => rand(0,2000)),
);
$size = count($profiles)-1;
$scs = array(
array('Name' => 'Casa Semilla', 'ProfilePic' => _IMAGES_URL_.'scpics/1.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Ecovilla Ananda', 'ProfilePic' => _IMAGES_URL_.'scpics/2.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Huehuecoyotl', 'ProfilePic' => _IMAGES_URL_.'scpics/3.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Ecoaldea Feliz', 'ProfilePic' => _IMAGES_URL_.'scpics/4.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Grupedsac', 'ProfilePic' => _IMAGES_URL_.'scpics/5.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Bosque de Niebla', 'ProfilePic' => _IMAGES_URL_.'scpics/6.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Tierra Turquesa', 'ProfilePic' => _IMAGES_URL_.'scpics/7.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Badilisha Ecovillage Foundation Trust', 'ProfilePic' => _IMAGES_URL_.'scpics/8.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Suderbyn Permaculture Ecovillage', 'ProfilePic' => _IMAGES_URL_.'scpics/9.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Nashira Ecoaldea', 'ProfilePic' => _IMAGES_URL_.'scpics/10.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Fondale', 'ProfilePic' => _IMAGES_URL_.'scpics/11.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Eco Truly Park - Ecovillage', 'ProfilePic' => _IMAGES_URL_.'scpics/12.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Bosque Village', 'ProfilePic' => _IMAGES_URL_.'scpics/13.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Eco Yoga Park', 'ProfilePic' => _IMAGES_URL_.'scpics/14.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Felix Collado', 'ProfilePic' => _IMAGES_URL_.'scpics/15.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Carlos Mundalah', 'ProfilePic' => _IMAGES_URL_.'scpics/16.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Gaby Ork', 'ProfilePic' => _IMAGES_URL_.'scpics/17.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Alex Patiño', 'ProfilePic' => _IMAGES_URL_.'scpics/18.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Vivians Glicanti', 'ProfilePic' => _IMAGES_URL_.'scpics/19.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Xavier Padilla', 'ProfilePic' => _IMAGES_URL_.'scpics/20.png' , 'Ecopoints' => rand(0,2000)),
array('Name' => 'Carlos Pérez', 'ProfilePic' => _IMAGES_URL_.'scpics/21.png' , 'Ecopoints' => rand(0,2000)),
);
$sizesc = count($scs)-1;
$typeofcontent = array(
array('Class' => 'member', 'Icon' => 'membericon' ),
array('Class' => 'sustcenter', 'Icon' => 'sustcentericon' ),
array('Class' => 'comment', 'Icon' => 'commenticon' ),
array('Class' => 'article', 'Icon' => 'articleicon' ),
array('Class' => 'event', 'Icon' => 'eventicon' ),
array('Class' => 'workshop', 'Icon' => 'workshopicon' ),
array('Class' => 'project', 'Icon' => 'projecticon' ),
array('Class' => 'volunteering', 'Icon' => 'volunteeringicon' ),
array('Class' => 'project', 'Icon' => 'commenticon' ),
);
$sizetypeofcont = count($typeofcontent)-1;
//COMMENTS SECTION
$comments = array(
array('Text' => 'Este link esta buenísimo, porfavor postea más de este tipo, creo que para alcanzar la sustentabilidad es necesario tomar en cuenta estas técnicas. Este link esta buenísimo, porfavor postea más de este tipo, creo que para alcanzar la sustentabilidad es necesario tomar en cuenta estas técnicas', 'Kharma' => rand(0,100), 'Dharma' => rand(0,500)),
array('Text' => 'Me gustaría mucho saber más acerca de este tema porfavor', 'Kharma' => rand(0,100), 'Dharma' => rand(0,500)),
array('Text' => 'Creo que la mejor forma de hacer un impacto es aplicando técnicas como esta', 'Kharma' => rand(0,100), 'Dharma' => rand(0,500)),
array('Text' => 'Interesantísima aportación, yo agregaría algunas cosas pero me parece que todo esta muy completo. Saludos', 'Kharma' => rand(0,100), 'Dharma' => rand(0,500)),
);
$sizecomm = count($comments)-1;
$commentlinks = array(
array('Link' => 'http://www.youtube.com/watch?v=ElprHYTcZEw', 'LinkDescription' => 'Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.'),
array('Link' => 'http://www.youtube.com/watch?v=qMqGh1CnKcE', 'LinkDescription' => 'Stephane is a french man living in Crystal Waters searching for black organic Gold: SEEEDS. He also educates trees, shrubs. Hay Hay Hay for gardening. Enjoy a green trip.'),
);
$sizelinks = count($commentlinks)-1;
$petals= array(
array('Class' => 'pet1', 'Name'=>'Building', 'Color'=> 'red'),
array('Class' => 'pet2', 'Name'=>'Community Governance', 'Color'=> 'orange'),
array('Class' => 'pet3', 'Name'=>'Finance & Economics', 'Color'=> 'yellow'),
array('Class' => 'pet4', 'Name'=>'Land & Nature', 'Color'=> 'green'),
array('Class' => 'pet5', 'Name'=>'Culture & Education', 'Color'=> 'blue'),
array('Class' => 'pet6', 'Name'=>'Tools & Technology', 'Color'=> 'indigo'),
array('Class' => 'pet7', 'Name'=>'Health & Spirituality', 'Color'=> 'purple'),
);
?>
<game>
<content class="fullwidth">
<ul class="filters">
<div id="type">
<li class="selected"><a class="tiptip all_filter" href="#filter-type-any" data-filter="*" title="Show All" >Show All</a></li>
<li><a class="tiptip members_filter" href="#filter-type-member" data-filter=".member" title="Members" >Members</a></li>
<li><a class="tiptip sustcenter_filter" href="#filter-type-sustcenter" data-filter=".sustcenter" title="Sustainable Centers" >Sustainable Centers</a></li>
<li><a class="tiptip comment_filter" href="#filter-type-comment" data-filter=".comment" title="Comments" >Comments</a></li>
<li><a class="tiptip article_filter" href="#filter-type-article" data-filter=".article" title="Articles">Articles</a></li>
<li><a class="tiptip event_filter" href="#filter-type-event" data-filter=".event" title="Events">Events</a></li>
<li><a class="tiptip project_filter" href="#filter-type-project" data-filter=".project" title="Projects">Projects</a></li>
<li><a class="tiptip workshop_filter" href="#filter-type-workshop" data-filter=".workshop" title="Workshops">Workshops</a></li>
<li><a class="tiptip volunteer_filter" href="#filter-type-volunteering" data-filter=".volunteering"title="Volunteer Vacancies">Volunteer Vacancies</a></li>
</div>
<div id="category">
<li><a class="tiptip building_filter" href="#filter-cat-pet1" data-filter=".pet1" title="Building">Building</a></li>
<li><a class="tiptip communitygov_filter" href="#filter-cat-pet2" data-filter=".pet2" title="Community Governance">Community Governance</a></li>
<li><a class="tiptip finance_filter" href="#filter-cat-pet3" data-filter=".pet3" title="Finance& Economics">Finance & Economics</a></li>
<li><a class="tiptip land_filter" href="#filter-cat-pet4" data-filter=".pet4" title="Land & Nature">Land & Nature</a></li>
<li><a class="tiptip culture_filter" href="#filter-cat-pet5" data-filter=".pet5" title="Culture & Education">Culture & Education</a></li>
<li><a class="tiptip tools_filter" href="#filter-cat-pet6" data-filter=".pet6" title="Tools & Technology">Tools & Tech</a></li>
<li><a class="tiptip health_filter" href="#filter-cat-pet7" data-filter=".pet7" title="Health & Spirituality">Health & Spirituality</a></li>
</div>
</ul><!--Filters-->
<div id="sort">
<ul id="sort-by">
<li><a class="popularity selected" href="#rp">Popularity</a></li>
<li><a class="dateadded" href="#date">Date Added</a></li>
</ul>
<ul id="sort-direction" class="option-set clearfix" data-option-key="sortAscending">
<li><a href="#sortAscending=false" data-option-value="false" class="descending selected">Most Popular</a></li>
<li><a href="#sortAscending=true" data-option-value="true" class="ascending">Least Popular</a></li>
</ul>
</div><!-- Sort -->
<div id="container">
<!--Displays content depending the array of elements-->
<?php
for($y=0;$y<$noelements;$y++){
$randpetal = rand(0,6);
$randpetalclass = $petals[$randpetal]['Class'];
$randtype = rand(0,8);
$randtypeclass = $typeofcontent[$randtype]['Class']; ?>
<?php
if($randtypeclass == 'member'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF MEMBER ?>
<?php
if($randtypeclass == 'sustcenter'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF SUSTCENT ?>
<?php
if($randtypeclass == 'comment'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF COMMENT ?>
<?php
if($randtypeclass == 'article'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF ARTICLE ?>
<?php
if($randtypeclass == 'event'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF EVENT ?>
<?php
if($randtypeclass == 'project'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF PROJECT ?>
<?php
if($randtypeclass == 'workshop'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF WORKSHOP ?>
<?php
if($randtypeclass == 'volunteering'){ ?>
<div class="element <?php echo $randtypeclass .' '. $randpetalclass; ?> ">
<div class="icon <?php echo $typeofcontent[$randtype]['Icon']; ?>"></div>
<div id="memberpic"><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic'] ?>"></div>
<div id="titlecontainer">"Net Zero Homes - A Journey Toward Energy Self-Sufficiency <a href="http://goo.gl/2SvM9" target="_blank">http://goo.gl/2SvM9</a>"</div>
<div id="content">
<div id="link">
<span class="linkimage">
<a class="video" href="http://www.youtube.com/watch?v=ElprHYTcZEw?fs=1&autoplay=1" title="Net Zero Homes - A Journey Toward Energy Self-Sufficiency"><img src="http://i2.ytimg.com/vi/ElprHYTcZEw/default.jpg" ></a>
</span>
<p class="linkdescription">
Green Building spoke with builders, architects, remodeling contractors and homeowners about their efforts towards energy self-sufficiency and building zero energy homes.
</p>
</div><!-- Link -->
<div id="commentsection">
<?php for($x=0; $x < rand(0,50); $x++){?>
<div class="comment">
<a href="#"><memberavatar><img src="<?php $rand = rand(0,$size); echo $profiles[$rand]['ProfilePic']; ?>"></memberavatar> <?php echo $profiles[$rand]['Name'] ?></a> said:
<p><?php echo $comments[rand(0,$sizecomm)]['Text']?></p>
<div id="reactionpoints">
<div class="dharma"></div>
<div class="karma"></div>
</div>
</div>
<?php }?>
</div><!--Comment Section-->
</div><!-- Content -->
<div id="box">
<div class="boxcontent">
<div class="rp"><span class="val"><?php echo rand(1000,2000); ?></span><span class="thumb"></span></div>
<div class="date"><span class="timestamp hidden"><?php echo $date = rand(1262055681,1318605196); ?></span> <?php echo date("M d Y", $date);?></div>
<span class="membername"><a href="#"><?php echo $profiles[$rand]['Name'] ?></a></span>
<span class="type web"></span>
<div id="commentbutton" class="<?php echo $petals[$randpetal]['Color']; ?>_bg">Comment</div>
<span class="nocomments"><?php echo $x; ?> comments</span>
</div>
</div><!-- box-->
</div> <!-- element-->
<?php } //END IF VOLUNTEERING ?>
<?php } //END FOR CICLE FOR ELEMENT DISPLAY?>
</div><!--container-->
</content>