-
Notifications
You must be signed in to change notification settings - Fork 0
/
work.php
67 lines (55 loc) · 2.53 KB
/
work.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
<?php require_once('init.php'); ?>
<?php require 'includes/header.php' ?>
<?php
$all_projects = Project::getAll();
$names = '';
foreach ($all_projects as $current_project) {
if ($current_project->visible == 1) {
$names .= ', ' . $current_project->name;
}
}
?>
<title>Simão Neves - Work list</title>
<meta name="description" content="All the the projects i've worked on recently">
<meta name="keywords" content="Simão Neves, web developer, software engineer<?= $names ?>">
<?php require 'includes/after_header.php' ?>
<header class="content_header">
<h1>Work list</h1>
<?php printSocial("_min") ?>
</header>
<div class="content">
<div class="work_list section">
<div class="work_list section">
<?php
foreach ($all_projects as $current_project) {
// If the project is visible
if ($current_project->visible == 1) {
// Get first picture
$current_project_photo = Project_Photo::getAll($current_project->id);
if (count($current_project_photo) > 0) {
$current_project_photo = $current_project_photo[0];
echo "<div class='work'>";
echo "<h2 class='title_work_list'>$current_project->name</h2>";
echo "<div class='work_list_img'>";
echo "<div class='img_container'>";
echo "<a href='work_detail.php?project_id=$current_project->id'>";
echo "<img src='backend/uploads/$current_project_photo->url' alt='$current_project_photo->keywords' class='resp_img img_frame'>";
echo "</a>";
echo "</div>";
echo "</div>";
echo "<div class='left_work'>";
echo "<p><b>$current_project->type</b><br>";
echo $current_project->description;
echo "<br>";
echo "<a target='_self' href='work_detail.php?project_id=$current_project->id'>Read more</a>";
echo "</p>";
echo "</div>";
echo "<div class='clear'></div>";
echo "</div>";
}
}
}
?>
</div>
</div>
<?php require 'includes/end.php' ?>