-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.php
More file actions
executable file
·102 lines (97 loc) · 3.11 KB
/
template.php
File metadata and controls
executable file
·102 lines (97 loc) · 3.11 KB
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
<?php
global $dataDir, $dirPrefix;
if ($page->theme_is_addon) {
$theme_path = '/data/_themes/' . $page->theme_name;
} else {
$theme_path = '/themes/Slate';
}
$page->head_css[] = $theme_path . '/bootstrap.css';
$page->jQueryCode .= '$(window).load(function() {
$( "button.nav-toggle" ).click(function() {
$( "nav" ).toggle( "slow" );
});
$(\'a[href^=#]\').on(\'click\', function(e){ var href = $(this).attr(\'href\');
$(\'html, body\').animate({ scrollTop:$(href).offset().top },\'slow\');
e.preventDefault(); });
});';
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php gpOutput::GetHead(); ?>
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link href='http://fonts.googleapis.com/css?family=Raleway:200' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="header"><a id="top" name="top"></a>
<div class="wrap">
<button type="button" class="nav-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
☰
</button>
<header class="cf">
<?php
global $config;
$default_value = $config['title'];
$GP_ARRANGE = false;
gpOutput::Get('Extra','Header');
?>
</header>
<?php
function is_front_page(){
global $gp_menu, $page;
reset($gp_menu);
return $page->gp_index == key($gp_menu);
}
if (is_front_page()) {
echo '<section class="block">';
gpOutput::Get('Extra','Info');
echo '</section>';
} ?>
<nav>
<?php
$GP_ARRANGE = false;
gpOutput::Get('TopTwoMenu');
?>
</nav>
</div>
<?php
if (is_front_page()) {
echo '<a href="#content" class="arrow white" style="position:absolute; bottom:30px;left:50%;margin-left:-25px;">↓</a>';
} ?>
</div>
<div id="page" class="cf">
<div id="content" class="wrap grid-container">
<?php $page->GetContent(); ?>
<a href="#top" class="arrow grey" style="margin:20px 0 20px 10px;">↑</a>
</div>
</div>
<div class="footer">
<footer class="wrap cf">
<section class="col-md-4">
<?php gpOutput::Get('Extra','Footer'); ?>
</section>
<section class="col-md-4">
<?php
if (!file_exists($dataDir.'/data/_extra/Footer2.php')){
gpFiles::SaveFile($dataDir.'/data/_extra/Footer2.php','<h3>Second Footer Area</h3><p>How about some Contact information?<br />Or extra links?</p>');
}
gpOutput::Get('Extra','Footer2');
?>
</section>
<section class="col-md-4">
<?php
if (!file_exists($dataDir.'/data/_extra/Footer3.php')){
gpFiles::SaveFile($dataDir.'/data/_extra/Footer3.php','<h3>Third Footer Area</h3><p>How about some Contact information?<br />Or extra links?</p>');
}
gpOutput::Get('Extra','Footer3');
?>
</section>
<p class="footerlinks"><?php gpOutput::GetAdminLink(); ?></p>
</footer>
</div>
</body>
</html>