-
Notifications
You must be signed in to change notification settings - Fork 0
/
text-html.php
36 lines (36 loc) · 1.99 KB
/
text-html.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
<?php
$preferred_languages = sort_accept_values($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
$preferred_languages[] = null;
$complete_graph->set_namespace_mapping('measure', 'http://kilosandcups.info/schema/');
$home_title = $complete_graph->get_first_literal('http://kilosandcups.info/', RDFS_LABEL, null, $preferred_languages );
$title = $complete_graph->get_first_literal($requested_uri, RDFS_LABEL, null, $preferred_languages );
$description = $complete_graph->get_first_literal($requested_uri, RDFS_COMMENT, null, $preferred_languages );
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $title?></title>
<link href="/css/site.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<div class="header">
<a href="/"><?php echo $home_title; ?></a>
</div>
<div class="content">
<h1><?php echo $title ?></h1>
<p><?php echo $description ?></p>
<?php
if ($is_home_request) { require_once 'home_content.php'; }
if ($is_ontology_request) { require_once 'ontology_content.php'; }
?>
</div>
<div class="footer">
<p>
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/"><img alt="Creative Commons Licence" style="border-width:0" src="http://i.creativecommons.org/l/by-nd/3.0/88x31.png"></a><br>
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Kilos & Cups</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://dynamicorange.com" property="cc:attributionName" rel="cc:attributionURL">Rob Styles</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Creative Commons Attribution-NoDerivs 3.0 Unported License</a>. Permissions beyond the scope of this license are available at <a xmlns:cc="http://creativecommons.org/ns#" href="http://kilosandcups.info/license" rel="cc:morePermissions">http://kilosandcups.info/license</a>.
</p>
</div>
</div>
</body>
</html>