';
-
- $PAGE_TEMPLATE['custom']['body'] = '';
-
- $PAGE_TEMPLATE['custom']['authorize'] = '
-
+ $PAGE_TEMPLATE['custom']['start'] = '
';
+ $PAGE_TEMPLATE['custom']['body'] = '';
+ $PAGE_TEMPLATE['custom']['authorize'] = '
';
- $PAGE_TEMPLATE['custom']['restricted'] = '
-
+ $PAGE_TEMPLATE['custom']['restricted'] = '
';
- $PAGE_TEMPLATE['custom']['end'] = '
';
+ $PAGE_TEMPLATE['custom']['end'] = '
';
+ $PAGE_TEMPLATE['custom']['noTableRender'] = true;
+ $PAGE_TEMPLATE['custom']['tableRender'] = '';
-
- $PAGE_TEMPLATE['custom']['noTableRender'] = true;
- $PAGE_TEMPLATE['custom']['tableRender'] = '';
+
+#### Panel Template - Used by e107_plugins/page/page_menu.php
+ $PAGE_TEMPLATE['panel']['start'] = '';
+ $PAGE_TEMPLATE['panel']['body'] = '{CPAGEBODY}';
+ $PAGE_TEMPLATE['panel']['authorize'] = '';
+ $PAGE_TEMPLATE['panel']['restricted'] = '';
+ $PAGE_TEMPLATE['panel']['end'] = '';
+ $PAGE_TEMPLATE['panel']['noTableRender'] = false;
+ $PAGE_TEMPLATE['panel']['tableRender'] = '';
diff --git a/e107_plugins/page/page_menu.php b/e107_plugins/page/page_menu.php
new file mode 100644
index 000000000..674e8c111
--- /dev/null
+++ b/e107_plugins/page/page_menu.php
@@ -0,0 +1,26 @@
+retrieve("SELECT * FROM #page WHERE page_class IN (".USERCLASS_LIST.") AND FIND_IN_SET('panel', page_template) LIMIT 3", true);
+
+//TODO Use shortcodes and template.
+foreach($data as $row)
+{
+ $title = $tp->toHtml($row['page_title'],false,'TITLE');
+ $body = $tp->toHtml($row['page_text'],true,'BODY');
+
+
+ $ns->tablerender($title, $body,'page-menu'); // check for $mode == 'page-menu' in tablestyle() if you need a simple 'echo' without rendering styles.
+}
+
+
+?>
\ No newline at end of file