-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathexample.php
More file actions
executable file
·25 lines (25 loc) · 884 Bytes
/
example.php
File metadata and controls
executable file
·25 lines (25 loc) · 884 Bytes
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
<?php
/**
* Example web page with nc-cms integrated.
* For full documentation see the nc-cms website.
* @link http://github.com/gnat/nc-cms
*/
?>
<?php require('nc-cms/system/start.php'); $cms = new NCCms(); ?> <!-- #1 Include CMS header. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php $cms->Title('home_title'); ?></title> <!-- #2 Allow website title editing. -->
<link rel="stylesheet" type="text/css" media="screen" href="<?php $cms->CSS(); ?>" /> <!-- #3 Include CSS. -->
</head>
<body>
<?php $cms->ControlPanel(); ?> <!-- #4 Include CMS control panel. -->
<div class="content">
<?php $cms->ContentHTML('home_content'); ?> <!-- #5 Add editable content area. -->
</div>
<div class="footer">
<?php $cms->LoginLink(); ?> <!-- #6 Generate login link. -->
</div>
</body>
</html>