-
Notifications
You must be signed in to change notification settings - Fork 3
/
portfolio.php
70 lines (65 loc) · 2.04 KB
/
portfolio.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
<?php
$projects_array = array(
array(
"name" => "Project Manager (Open Source)",
"description" => "Complete Agile Development Project Management System",
"img" => array(
array("title" => "Login Page", "src" => "project-manager-login.png"),
array("title" => "New Project", "src" => "project-manager-new-project.png")
),
"link" => "https://github.com/websociety/project-manager"
),
);
?>
<!DOCTYPE html>
<html lang="en">
<?php include('head.php') ?>
<body>
<?php $portfolio = true ?>
<?php include('navbar.php') ?>
<!-- Begin page content -->
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="page-header">
<h1 class="text-center">Portfolio</h1>
</div>
<div class="lead">
<?php if ( empty($projects_array) ): ?>
Coming soon.
<?php else: ?>
<?php foreach($projects_array as $project): ?>
<div class="row text-center">
<div class="col-xs-12">
<div class="row">
<?php for($i = 0; $i < count($project['img']); $i++): ?>
<a href="images/<?php echo $project['img'][$i]['src'] ?>"
data-toggle="lightbox"
data-gallery="<?php echo str_replace(" ","_",$project['name']) ?>"
data-title="<?php echo $project['img'][$i]['title'] ?>"
class="thumbnail col-xs-<?php echo 12.0 / count($project['img']) ?>">
<img src="images/<?php echo $project['img'][$i]['src'] ?>" alt="<?php echo $project['img'][$i]['title'] ?>">
</a>
<?php endfor ?>
</div>
<div class="row">
<div class="col-xs-12">
<h3>
<a href="<?php echo $project['link'] ?>"><?php echo $project['name'] ?></a>
</h3>
<p><?php echo $project['description'] ?></p>
</div>
</div>
</div>
</div>
<hr>
<?php endforeach ?>
<?php endif ?>
</div>
</div>
</div>
</div>
<?php include('footer.php') ?>
<?php include('javascript.php') ?>
</body>
</html>