mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
New layout (Znote AAC AtomIO)
Layout is primarily changed to this because the old layout had obsolete javascript dependencies. I still want to make another default layout eventually, which is mobile friendly. This layout has a very nice character search widget though that looks for names realtime and displays them in a list beside the search.
This commit is contained in:
49
layout/sub.php
Normal file
49
layout/sub.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/* Znote AAC Sub System
|
||||
- Used to create custom pages
|
||||
- Place the contents of the page in /layout/sub/ folder.
|
||||
: You don't need to include init, header or footer.
|
||||
Its already taken care of, just write the contents you want.
|
||||
|
||||
Then add that page to the configuration below. Config syntax:
|
||||
'PAGENAME' => array(
|
||||
'file' => 'fileName.php',
|
||||
'override' => false
|
||||
),
|
||||
................
|
||||
There are 2 ways to view your page, by using sub.php file, or by overriding an existing default page.
|
||||
1: yourwebiste.com/sub.php?page=PAGENAME
|
||||
2: By having override => true, then it will load your sub file instead of the default znote aac file.
|
||||
|
||||
*/
|
||||
|
||||
$subpages = array(
|
||||
// website.com/sub.php?page=blank
|
||||
'blank' => array(
|
||||
// layout/sub/blank.php
|
||||
'file' => 'blank.php',
|
||||
// false means don't run this file instead of the regular file at website.com/blank.php
|
||||
'override' => false
|
||||
),
|
||||
'recover' => array(
|
||||
'file' => 'recover.php',
|
||||
'override' => false
|
||||
),
|
||||
'search' => array(
|
||||
'file' => 'search.php',
|
||||
'override' => false
|
||||
),
|
||||
'houses' => array(
|
||||
'file' => 'houses.php',
|
||||
'override' => false
|
||||
),
|
||||
'downloads' => array(
|
||||
'file' => 'downloads.php',
|
||||
'override' => false
|
||||
),
|
||||
'loginhelp' => array(
|
||||
'file' => 'loginhelp.php',
|
||||
'override' => false
|
||||
)
|
||||
);
|
||||
?>
|
Reference in New Issue
Block a user