/
complete.php
105 lines (95 loc) · 4.36 KB
/
complete.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
<!--++ COMPLETE ++-->
<?php
include('main-header.php');
?>
<!--+++++++++++- content++++++++++++++-->
<div id="wrapper" >
<div id="page">
<div class="header">
<div class="container clearfix">
<div class="row">
<div class="span12">
<!-- Portfolio title -->
<h1>Film:<span class="raleway"> <span class="pink">//</span> Complete</span></h1>
</div>
</div>
</div>
</div>
<div class="container contentStart">
<div class="row">
<div class="span12">
<div id="myCarousel" class="carousel slide proj-det">
<!-- Carousel items -->
<div class="carousel-inner main-img">
<?php
$dir = opendir("img/complete");
$active = 0;
while (($file = readdir($dir)) !== false) {
if(substr( $file, -3 ) == "jpg" or substr( $file, -3 ) == "JPG" or substr( $file, -3 ) == "png" or substr( $file, -3 ) == "PNG") {
if ($active == 0) {
echo '<div class="active item"><a href="img/complete/'.$file.'" class="gallery_pics magnifier" title="'.$file.'" ><img alt="" src="img/complete/'.$file.'"></a></div>';
$active = 1;
}
else {
echo '<div class="item"><a href="img/complete/'.$file.'" class="gallery_pics magnifier" title="'.$file.'" ><img alt="" src="img/complete/'.$file.'"></a></div>';
}
}
}
closedir($dir);
?>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#myCarousel" data-slide="next">›</a> </div>
</div>
</div>
<div class="row contentStart">
<div class="span12">
<h1>The Story</h1>
<p>A day in the life of a struggling artist as she carefully plans out her ultimate masterpiece.</p>
</div>
</div>
</div>
<div class="gallerychooser">
<ul class="gallerychooserList">
<li class="current"><a data-filter="article.portfolio" href="#">All</a></li>
<li><a data-filter="article.portfolio[data-category~='links']" href="#">Links</a></li>
<li><a data-filter="article.portfolio[data-category~='behind-the-scenes']" href="#">Behind-the-scenes</a></li>
</ul>
</div>
<section class="portfolio_container">
<article class="portfolio" data-category="links">
<section class="thumbImage"> <img src="img/Complete/thumbs/imdbthumb.jpg" alt="" class="fullwidth">
<div class="thumbTextWrap">
<div class="thumbText">
<h3 class="sectionTitle">IMDB</h3>
<a class="thumbLink portfolio_pics" href="http://www.imdb.com/title/tt1920873/?ref_=nm_flmg_wr_2" title="Complete"></a>
</div>
</div>
</section>
</article>
<article class="portfolio" data-category="links">
<section class="thumbImage"> <img src="img/Complete/thumbs/filmthumb.jpg" alt="" class="fullwidth">
<div class="thumbTextWrap">
<div class="thumbText">
<h3 class="sectionTitle">Film</h3>
<a class="thumbLink portfolio_pics" href="http://vimeo.com/22993088" title="Complete"></a>
</div>
</div>
</section>
</article>
<?php
$dir = opendir("img/complete/gallery");
while (($file = readdir($dir)) !== false) {
if(substr( $file, -3 ) == "jpg" or substr( $file, -3 ) == "JPG" or substr( $file, -3 ) == "png" or substr( $file, -3 ) == "PNG") {
echo '<article class="portfolio" data-category="behind-the-scenes"><section class="thumbImage"> <img src="img/complete/gallery/'.$file.'" alt="" class="fullwidth"><div class="thumbTextWrap"><div class="thumbText"> <h3 class="sectionTitle">Behind the Scenes</h3> <a class="thumbLink portfolio_pics" href="img/complete/gallery/'.$file.'" title="complete"></a> </div></div></section></article>';
}
}
closedir($dir);
?>
</section>
</div>
</div>
<!--+++++++++++- end content++++++++++++++-->
<?php
include('main-footer.php');
?>