-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
executable file
·75 lines (63 loc) · 2.25 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
<?
include('functions.php');
$chapter=0;
if(isset($_GET['chapter'])){
$chapter=intval($_GET['chapter']);
}
require("chapter$chapter.php");
?><!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<title><?=$title?></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="author" href="http://tableless.com.br/" />
<link rel="index" href="?chapter=0" />
<link rel="home" href="?chapter=0" />
<link rel="up" href=".." />
<link rel="first" href="?chapter=1" />
<link rel="next" href="?chapter=<?=$chapter+1?>" />
<link rel="prev" href="?chapter=<?=$chapter-1?>" />
<link rel="last" href="?chapter=<?=$lastchapter?>" />
</head>
<body id="chapter<?=$chapter-1?>">
<header>
<div class="limite">
<a href="print.php" class="lnkprint">Versão Impressão</a>
<h1>HTML5</h1>
<h2>Um guia de referência para os desenvolvedores web.</h2>
<h3 class="logo logotableless"><a href="http://tableless.com.br/">Tableless - Padrões Web na ponta da língua</a></h3>
</div>
</header>
<nav id="navbar">
<?if($chapter>1){?><a href="?chapter=<?=$chapter-1?>">« anterior</a><?}?>
| <a href=".">índice</a> |
<?if($chapter<$lastchapter){?><a href="?chapter=<?=$chapter+1?>">próximo »</a><?}?>
</nav>
<article>
<h1 id="tit<?=$chapter?>"><?if($chapter>0){?><?=$chapter?>. <?}?><?=$title?></h1>
<?content()?>
</article>
<nav id="navbar">
<?if($chapter>1){?><a href="?chapter=<?=$chapter-1?>">« anterior</a><?}?>
| <a href=".">índice</a> |
<?if($chapter<$lastchapter){?><a href="?chapter=<?=$chapter+1?>">próximo »</a><?}?>
</nav>
<footer>
<div class="limite">
<h1 class="logo logotableless"><a href="http://tableless.com.br/">Tableless - Padrões Web na ponta da língua</a></h1>
</div>
</footer>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-335027-1']);
_gaq.push(['_trackPageview']);
//_gaq.push(['_trackSocial', network, socialAction, opt_target, opt_pagePath]);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>