Initial commit
This commit is contained in:
16
includes/main/page.php
Normal file
16
includes/main/page.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
if (!isset($seo[1])) redirect();
|
||||
|
||||
$page = new page($seo[1]);
|
||||
|
||||
if (theme_component('page'))
|
||||
include theme_component('page');
|
||||
else
|
||||
if ($page->readable())
|
||||
{
|
||||
addTitle($page->data['pageTitle']);
|
||||
|
||||
echo "<h1>".htmlspecialchars($page->data['pageTitle'])."</h1>";
|
||||
echo entry_show_all($page->data['pageContent']);
|
||||
}
|
Reference in New Issue
Block a user