-
Notifications
You must be signed in to change notification settings - Fork 0
/
parkpics.php
138 lines (112 loc) · 3.73 KB
/
parkpics.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Title : Travel Portal
Version : 1.0
Released : 20070618
Description: A two-column, fixed-width template.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PNN El Cocuy</title>
<meta name="keywords" content="" />
<meta name="description" content="Pictures of Parque Nacional Natural El Cocuy in the Sierra Nevada of Colombia, South America." />
<link href="default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="resources/fancy.css" />
<script type="text/javascript" src="js/jquery-1.2.3.pack.js"></script>
<script type="text/javascript" src="js/jquery.fancybox-1.0.0.js"></script>
<script type="text/javascript">
$(function(){
$(".photo-link").fancybox({ 'zoomSpeedIn': 500, 'zoomSpeedOut': 500, 'overlayShow': true });
});
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16511466-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="page">
<div id="sidebar">
<div id="logo">
<h1><a href="/">PNN El Cocuy</a></h1>
<h2><a href="/">The Best Kept Secret Of Colombia</a></h2>
</div>
<!-- end header -->
<div id="menu">
<ul>
<li class="first"><a href="/">Home</a></li>
<li><a href="/alltheinfo/">All The Info</a></li>
<li><a href="/maps.html">Maps</a></li>
<li><a href="/pictures.html">Pictures</a></li>
<li><a href="/faq.html">FAQ</a></li>
<li><a href="/about.html">About</a></li>
</ul>
</div>
<!-- end menu -->
<div id="login">
<div align="center">
<a href="http://www.languageconvo.com" target="_blank"><img src="/images/tallbanner.png" /></a>
</div>
</div>
</div>
<!-- end sidebar -->
<div id="content">
<div><img src="/images/img08.jpg" alt="" width="740" height="220" /></div>
<div class="boxed">
<h1 class="title2">Parque Nacional Natural El Cocuy<br/><font size="5">Pictures / The Park</font></h1>
<br>
<?php
/* settings */
$image_dir = 'images/picgallery/';
$per_column = 6;
/* step one: read directory, make array of files */
if ($handle = opendir($image_dir)) {
while (false !== ($file = readdir($handle)))
{
if ($file != '.' && $file != '..')
{
if(strstr($file,'-thumb'))
{
$files[] = $file;
}
}
}
closedir($handle);
}
/* step two: loop through, format gallery */
if(count($files))
{
foreach($files as $file)
{
$count++;
echo '<a class="photo-link" rel="one-big-group" href="',$image_dir,str_replace('-thumb','',$file),'"><img src="',$image_dir,$file,'" width="100" height="100" /></a>';
if($count % $per_column == 0) { echo '<div class="clear"></div>'; }
}
}
else
{
echo '<p>There are no images in this gallery.</p>';
}
?>
</div>
</div>
<!-- end content -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
<div id="footer">
<p id="legal">Copyright © 2010 John Aitchison. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
<p id="links"></p>
</div>
</body>
</html>