-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.php
133 lines (110 loc) · 2.65 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
// Connecting the public controller
require_once('assets/controller.php');
// Connecting a module
require_once('modules/rand_num.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>Landing CMS | Demo</title>
<meta charset="utf-8">
<meta name="HandheldFriendly" content='True'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="copyright" content="Landing CMS">
<meta name="description" content="Free CMS for Landing">
<meta name="keywords" content="CMS, Landing, Free">
<meta name="author" content="Ilia Chernykh">
<meta name="generator" content="Landing CMS 0.0.6" />
<style>
html, body, #header, #main
{
padding: 0;
margin: 0;
height: 100%;
font-family: Helvetica, Tahoma, Arial;
}
#header, #footer
{
text-align: center;
}
#header
{
background-color: #5bc0de;
font-size: 40px;
color: #fff;
}
#main
{
padding-left: 15%;
padding-right: 15%;
}
#footer
{
background-color: #f5f5f5;
height: 100px;
}
.center
{
position: relative;
top: 50%;
transform: translateY(-50%);
}
.link
{
font-size: 20px;
color: #fff;
}
.unline
{
text-decoration: none;
}
</style>
</head>
<body>
<div id="header">
<div class="center">
<?php if( isset($get['title']) ): ?>
<?=$get['title'];?>
<?php else: ?>
Create <i>String</i> Field with 'title' Alias.
<?php endif; ?>
<p><a href="/cms" target="_blank" title="Go to the Admin area." class="link">Go to CMS</a></p>
<p><a href="https://github.com/Elias-Black/Landing-CMS" target="_blank" title="Go to the site about Landing CMS." class="link unline">Landing CMS v0.0.6</a></p>
</div>
</div>
<div id="main">
<div class="center">
<?php if( isset($get['main']) ): ?>
<?=$get['main'];?>
<?php else: ?>
Create <i>Multiline/WYSIWYG</i> Field with 'main' Alias.
<?php endif; ?>
<p>
<?php if( isset($get['main_group']) && is_array($get['main_group']) ): ?>
<p>
<b>Items:</b>
</p>
<ul>
<?php foreach($get['main_group'] as $name => $item): ?>
<li><i><?=$name;?></i>: <?=$item;?></li>
<?php endforeach; ?>
</ul>
<?php else: ?>
Create <i>Group of Fields</i> with 'main_group' Alias and some <i>String</i> items.
<?php endif; ?>
</p>
<p>Random module: <?=$rand_num;?></p>
</div>
</div>
<div id="footer">
<div class="center">
<?php if( isset($get['footer']) ): ?>
<?=$get['footer'];?>
<?php else: ?>
Create <i>String</i> Field with 'footer' Alias.
<?php endif; ?>
</div>
</div>
</body>
</html>