|
@@ -9,6 +9,18 @@
|
|
|
$lang = select_language();
|
|
$lang = select_language();
|
|
|
$cur_section = "";
|
|
$cur_section = "";
|
|
|
$cur_entry = "";
|
|
$cur_entry = "";
|
|
|
|
|
+
|
|
|
|
|
+ // Get project data
|
|
|
|
|
+ $permalink = mysqli_real_escape_string($con, $_GET["permalink"]);
|
|
|
|
|
+ $q_project = mysqli_query($con, "SELECT * FROM project WHERE permalink = '$permalink' AND visible = 1;");
|
|
|
|
|
+ if (mysqli_num_rows($q_project) == 0){
|
|
|
|
|
+ header("Location: $server/project/");
|
|
|
|
|
+ exit(-1);
|
|
|
|
|
+ }
|
|
|
|
|
+ $r_project = mysqli_fetch_array($q_project);
|
|
|
|
|
+ $id = $r_project["id"];
|
|
|
|
|
+ $title = text($con, $r_project["title"], $lang);
|
|
|
|
|
+ $summary = text($con, $r_project["header"], $lang);
|
|
|
?>
|
|
?>
|
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
<html>
|
|
@@ -16,51 +28,154 @@
|
|
|
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
|
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
|
|
<meta charset="utf-8"/>
|
|
<meta charset="utf-8"/>
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1"/>
|
|
|
- <title>Iñigo Valentin</title>
|
|
|
|
|
- <link rel="shortcut icon" href="<?=$server?>/img/logo/favicon.ico"/>
|
|
|
|
|
|
|
+ <title><?=$title?> - Iñigo Valentin</title>
|
|
|
|
|
+<?php
|
|
|
|
|
+ if (strlen($r_project["logo"]) > 0){
|
|
|
|
|
+?>
|
|
|
|
|
+ <link rel="shortcut icon" href="<?=$server?>/img/logo/favicon.ico"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+?>
|
|
|
|
|
+ <link rel="shortcut icon" href="<?=$server?>/img/project/icon/<?=$r_project["logo"]?>"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+?>
|
|
|
<!-- CSS files -->
|
|
<!-- CSS files -->
|
|
|
<style>
|
|
<style>
|
|
|
<?php
|
|
<?php
|
|
|
include $doc_root . "css/ui.css";
|
|
include $doc_root . "css/ui.css";
|
|
|
|
|
+ include $doc_root . "css/project.css";
|
|
|
?>
|
|
?>
|
|
|
</style>
|
|
</style>
|
|
|
<!-- CSS for mobile version -->
|
|
<!-- CSS for mobile version -->
|
|
|
<style media="(max-width : 990px)">
|
|
<style media="(max-width : 990px)">
|
|
|
<?php
|
|
<?php
|
|
|
include $doc_root . "css/m/ui.css";
|
|
include $doc_root . "css/m/ui.css";
|
|
|
|
|
+ include $doc_root . "css/m/project.css";
|
|
|
?>
|
|
?>
|
|
|
</style>
|
|
</style>
|
|
|
<!-- Script files -->
|
|
<!-- Script files -->
|
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
<?php
|
|
<?php
|
|
|
include $doc_root . "script/ui.js";
|
|
include $doc_root . "script/ui.js";
|
|
|
|
|
+ include $doc_root . "script/project.js";
|
|
|
?>
|
|
?>
|
|
|
</script>
|
|
</script>
|
|
|
<!-- Meta tags -->
|
|
<!-- Meta tags -->
|
|
|
- <link rel="canonical" href="<?=$server?>"/>
|
|
|
|
|
|
|
+ <link rel="canonical" href="<?=$server?>/project/<?=$r_project["permalink"]?>"/>
|
|
|
<link rel="author" href="<?=$server?>"/>
|
|
<link rel="author" href="<?=$server?>"/>
|
|
|
<link rel="publisher" href="<?=$server?>"/>
|
|
<link rel="publisher" href="<?=$server?>"/>
|
|
|
- <meta name="description" content=""/>
|
|
|
|
|
- <meta property="og:title" content="Iñigo Valentin"/>
|
|
|
|
|
- <meta property="og:url" content="<?=$server?>"/>
|
|
|
|
|
- <meta property="og:description" content=""/>
|
|
|
|
|
- <meta property="og:image" content=""/>
|
|
|
|
|
|
|
+ <meta name="description" content="<?=$summary?>"/>
|
|
|
|
|
+ <meta property="og:title" content="<?=$title?> - Iñigo Valentin"/>
|
|
|
|
|
+ <meta property="og:url" content="<?=$server?>/project/<?=$r_project["permalink"]?>"/>
|
|
|
|
|
+ <meta property="og:description" content="<?=$summary?>"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ if (strlen($r_project["logo"]) > 0){
|
|
|
|
|
+?>
|
|
|
|
|
+ <meta property="og:image" content="<?=$server?>/img/logo/favicon.ico"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+?>
|
|
|
|
|
+ <meta property="og:image" content="<?=$server?>/img/project/icon/<?=$r_project["logo"]?>"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+?>
|
|
|
<meta property="og:site_name" content="Iñigo Valentin"/>
|
|
<meta property="og:site_name" content="Iñigo Valentin"/>
|
|
|
<meta property="og:type" content="website"/>
|
|
<meta property="og:type" content="website"/>
|
|
|
<meta property="og:locale" content="<?=$lang?>"/>
|
|
<meta property="og:locale" content="<?=$lang?>"/>
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
<meta name="twitter:card" content="summary"/>
|
|
|
- <meta name="twitter:title" content="Iñigo Valentin"/>
|
|
|
|
|
- <meta name="twitter:description" content=""/>
|
|
|
|
|
- <meta name="twitter:image" content=""/>
|
|
|
|
|
- <meta name="twitter:url" content="<?=$server?>"/>
|
|
|
|
|
|
|
+ <meta name="twitter:title" content="<?=$title?> - Iñigo Valentin"/>
|
|
|
|
|
+ <meta name="twitter:description" content="<?=$summary?>"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ if (strlen($r_project["logo"]) > 0){
|
|
|
|
|
+?>
|
|
|
|
|
+ <meta name="twitter:image" content="<?=$server?>/img/logo/favicon.ico"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+?>
|
|
|
|
|
+ <meta name="twitter:image" content="<?=$server?>/img/project/icon/<?=$r_project["logo"]?>"/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+?>
|
|
|
|
|
+ <meta name="twitter:url" content="<?=$server?>/project/<?=$r_project["permalink"]?>"/>
|
|
|
<meta name="robots" content="index follow"/>
|
|
<meta name="robots" content="index follow"/>
|
|
|
</head>
|
|
</head>
|
|
|
<body>
|
|
<body>
|
|
|
<?php
|
|
<?php
|
|
|
include $doc_root . "header.php";
|
|
include $doc_root . "header.php";
|
|
|
?>
|
|
?>
|
|
|
- <div id="content">
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <div id='content'>
|
|
|
|
|
+ <div id='content_row'>
|
|
|
|
|
+ <div class='content_cell' id='content_cell_main'>
|
|
|
|
|
+ <div class='section' id='main_column'>
|
|
|
|
|
+ <h3 class='section_title'><?=$title?></h3>
|
|
|
|
|
+ <div class='entry'>
|
|
|
|
|
+ <h4><?=$summary?></h4>
|
|
|
|
|
+<?php
|
|
|
|
|
+ error_log("SELECT * FROM project_url WHERE type = 'E' AND project = $id;");
|
|
|
|
|
+ $q_embed = mysqli_query($con, "SELECT * FROM project_url WHERE type = 'E' AND project = $id;");
|
|
|
|
|
+ while ($r_embed = mysqli_fetch_array($q_embed)){
|
|
|
|
|
+?>
|
|
|
|
|
+ <br/><br/>
|
|
|
|
|
+ <div class='iframe_container'>
|
|
|
|
|
+ <iframe class='project_embed' onload='resizeIframe(this);' src='<?=$server?><?=$r_embed["url"]?>'></iframe>
|
|
|
|
|
+ </div>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+?>
|
|
|
|
|
+ </div> <!-- .entry -->
|
|
|
|
|
+ </div> <!-- #middle_column -->
|
|
|
|
|
+ </div> <!-- #content_cell_main -->
|
|
|
|
|
+ <div class='content_cell' id='content_cell_right'>
|
|
|
|
|
+ <div class='section' id='right_column'>
|
|
|
|
|
+ <div class='entry'>
|
|
|
|
|
+<?php
|
|
|
|
|
+ $q_url = mysqli_query($con, "SELECT url, title, summary, logo FROM project_url, project_url_type WHERE project_url_type.id = project_url.type AND project = $id AND type <> 'E';");
|
|
|
|
|
+ while ($r_url = mysqli_fetch_array($q_url)){
|
|
|
|
|
+?>
|
|
|
|
|
+ <div class='url'>
|
|
|
|
|
+ <a target='_blank' title='<?=text($con, $r_url["summary"], $lang);?>' href='<?=text($con, $r_url["url"], $lang);?>'>
|
|
|
|
|
+<?php
|
|
|
|
|
+ if (strlen($r_url["logo"]) > 0){
|
|
|
|
|
+?>
|
|
|
|
|
+ <img title='<?=text($con, $r_url["summary"], $lang);?>' src='<?=$server?>/img/url/<?=$r_url["logo"]?>'/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+?>
|
|
|
|
|
+ <?=text($con, $r_url["title"], $lang);?>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </div> <!-- .url -->
|
|
|
|
|
+<?php
|
|
|
|
|
+ }
|
|
|
|
|
+?>
|
|
|
|
|
+ </div> <!-- .entry -->
|
|
|
|
|
+ <div class='entry'>
|
|
|
|
|
+<?php
|
|
|
|
|
+ $q_license = mysqli_query($con, "SELECT * FROM license WHERE id = $r_project[license];");
|
|
|
|
|
+ $r_license = mysqli_fetch_array($q_license);
|
|
|
|
|
+?>
|
|
|
|
|
+ <span class='hidden' id='license_id'><?=$r_license["id"]?></span>
|
|
|
|
|
+ <span class='hidden' id='license_text'><?=$r_license["summary"]?></span>
|
|
|
|
|
+ <span class='fakelink pointer' onClick='showLicense();'>
|
|
|
|
|
+ <img title='<?=$r_license["id"]?>' src='<?=$server?>/img/license/icon/<?=$r_license["logo"]?>' />
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <br/>
|
|
|
|
|
+ <br/>
|
|
|
|
|
+<?php
|
|
|
|
|
+ $q_version = mysqli_query($con, "SELECT version_name, project_version.summary AS summary, dtime, title, project_version_type.summary AS vsummary, color FROM project_version, project_version_type WHERE type = id AND visible = 1 AND project = $id ORDER BY dtime DESC LIMIT 1;");
|
|
|
|
|
+ $r_version = mysqli_fetch_array($q_version);
|
|
|
|
|
+?>
|
|
|
|
|
+ TR#Version: <?=$r_version["version_name"]?>
|
|
|
|
|
+ <span class='version_type' style='background-color: <?=$r_version["color"]?>'>
|
|
|
|
|
+ <?=text($con, $r_version["title"], $lang)?>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div> <!-- #right_column -->
|
|
|
|
|
+ </div> <!-- #content_cell_right -->
|
|
|
|
|
+ </div> <!-- #content_row -->
|
|
|
</div> <!-- #content -->
|
|
</div> <!-- #content -->
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|