forked from Elias-Black/Landing-CMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
120 lines (99 loc) · 2.27 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
<?php
// Connecting the public controller
require_once('web/index.php');
// Connecting a module
require_once('modules/rand_num.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>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.4" />
<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%);
}
</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; ?>
</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>