-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
134 lines (130 loc) · 6.84 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
<?php
require('inc/common.php');
// If the user sent an e-mail...
if (!empty($_POST)) {
// Set function parameters from POST data
$firstName = isset($_POST['first-name']) ? htmlentities($_POST['first-name'], ENT_QUOTES, 'UTF-8') : "";
$lastName = isset($_POST['last-name']) ? htmlentities($_POST['last-name'], ENT_QUOTES, 'UTF-8') : "";
$email = isset($_POST['email']) ? htmlentities($_POST['email'], ENT_QUOTES, 'UTF-8') : "";
$company = isset($_POST['company']) ? htmlentities($_POST['company'], ENT_QUOTES, 'UTF-8') : "";
$subject = isset($_POST['subject']) ? htmlentities($_POST['subject'], ENT_QUOTES, 'UTF-8') : "";
$message = isset($_POST['message']) ? htmlentities($_POST['message'], ENT_QUOTES, 'UTF-8') : "";
// Send the e-mail with parameters. Error checking is done via Javascript
send_email($firstName, $lastName, $email, $company, $subject, $message);
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Mike Boris</title>
<link rel="shortcut icon" href="http://faviconist.com/icons/029cf779921987daaad49d9662e39800/favicon.ico" />
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="css/prettyPhoto.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
</head>
<body>
<header>
<div id="social-link-container">
<a href="<?php echo $titles[0]['facebook_link']; ?>" target="_blank"><img class="social-link" src="images/linkedin.png"/></a>
<a href="<?php echo $titles[0]['twitter_link']; ?>" target="_blank"><img class="social-link" src="images/twitter.png"/></a>
<a href="<?php echo $titles[0]['linkedin_link']; ?>" target="_blank"><img class="social-link" src="images/facebook.png"/></a>
</div>
<span id="title-font"><?php echo $titles[0]['main_title']; ?></span><br>
<span id="subtitle-font"><?php echo $titles[0]['main_subtitle']; ?></span><br>
<ul id="nav">
<a href="#about"><li>About</li></a>
<a href="#work"><li id="nav-mid-l">Work</li></a>
<a href="#bio"><li id="nav-mid-r">Bio</li></a>
<a href="#contact"><li>Contact</li></a>
</ul>
</header>
<a class="anchor" name="about"></a>
<div id="main-container">
<img id="main-picture" src="images/MikeBorisPageFACE.jpg"/><br>
<span class="label-font"><?php echo $titles[0]['about_title']; ?></span><br><br>
<?php echo $titles[0]['about_content']; ?>
<div class="section group bullets">
<div class="col span_1_of_3">
<?php echo $titles[0]['bullet1']; ?><br>
<div class="circle"></div>
</div>
<div class="col span_1_of_3">
<?php echo $titles[0]['bullet2']; ?><br>
<div class="circle"></div>
</div>
<div class="col span_1_of_3">
<?php echo $titles[0]['bullet3']; ?><br>
<div class="circle"></div>
</div>
</div>
<a class="anchor" name="work"></a>
<span class="label-font"><?php echo $titles[0]['video_title']; ?></span><br><br>
<?php echo $titles[0]['video_content']; ?><br><br>
<?php
$order_key = 0;
for ($i = 0; $i < $rows_required; $i++) {
echo "<div class='section group'>";
for ($j = 0; $j < 3; $j++) {
for ($k = 0; $k < count($order); $k++) {
if ($row[$k]['id'] == $order[$order_key]) {
$thumbnail_link = unserialize(file_get_contents("http://vimeo.com/api/v2/video/".$row[$k]['vid'].".php"));
echo "<div class='col span_1_of_3'>";
echo "<div class='video-container'>";
echo "<a href='http://www.vimeo.com/".$row[$k]['vid']."' rel='prettyPhoto'>";
echo "<div class='video-thumbnail' style='background-image: url(".$thumbnail_link[0]['thumbnail_large'].")'></div></a><br>";
echo $row[$k]['title'];
echo "</div></div>";
}
}
$order_key += 1;
if ($order_key == $num_of_videos) {
break;
}
}
echo "</div>";
}
?><br>
<a class="anchor" name="bio"></a>
<span class="label-font"><?php echo $titles[0]['bio_title']; ?></span><br><br>
<?php echo $titles[0]['bio_content']; ?><br><br>
<a class="anchor" name="contact"></a>
<span class="label-font"><?php echo $titles[0]['contact_title']; ?></span><br>
<span class="sublabel-font">I'd like to hear from you!</span><br><br>
<form id="email-form" method="post">
<div class="section group">
<div class="col span_1_of_2">
<input class="name-input" type="text" name="first-name" placeholder="First Name">
</div>
<div class="col span_1_of_2">
<input class="name-input" type="text" name="last-name" placeholder="Last Name">
</div>
</div>
<div class="section group">
<div class="col span_1_of_2">
<input type="text" name="email" placeholder="Email (required)">
</div>
<div class="col span_1_of_2">
<input type="text" name="company" placeholder="Company">
</div>
</div>
<div class="section group">
<div class="col span_2_of_2">
<input type="text" name="subject" placeholder="Subject">
</div>
</div>
<div class="section group">
<div class="col span_2_of_2">
<textarea name="message" placeholder="Type Message"></textarea>
</div>
</div>
<div id="email-send">Send</div>
</form>
<br><br><br><br><br><br>
</div>
<script type="text/javascript" charset="utf-8" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" charset="utf-8" src="js/main.js"></script>
</body>
</html>