From 6d0baad323d31d2520b5c63a3c03d73ce8b30413 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 5 Jan 2009 20:29:59 -0800 Subject: [PATCH] Adding the initial templates for the admin section and set up the template system * global.php: Remove BSPrinter init code and replace it with BSTemplate stuff * templates/: New folder --- admin/global.php | 25 +++++------------- admin/templates/doctype.html | 2 ++ admin/templates/headinclude.html | 3 +++ admin/templates/nav.html | 45 ++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 19 deletions(-) create mode 100644 admin/templates/doctype.html create mode 100644 admin/templates/headinclude.html create mode 100644 admin/templates/nav.html diff --git a/admin/global.php b/admin/global.php index 9ba3117..81061bc 100755 --- a/admin/global.php +++ b/admin/global.php @@ -25,26 +25,13 @@ require_once('./includes/init.php'); require_once('./includes/functions.php'); // ################################################################### -// admin navigation +// setup admin templates -$bugsys->load('printer_navigation', 'navigator', true); -$navigator->add_top_link(T('Home'), '../index.php'); -$navigator->add_top_link(T('Logout'), '../login.php?do=cplogout'); - -$navigator->add_component('tab', 'options', null, T('Options'), 'index.php'); -$navigator->add_component('tab', 'products', null, T('Products'), 'product.php'); -$navigator->add_component('tab', 'fields', null, T('Fields'), 'field.php'); -$navigator->add_component('tab', 'users', null, T('Users & Permissions'), 'user.php'); - -require_once('./includes/class_admin_navigation.php'); - -// ################################################################### -// continue loading - -$bugsys->load('printer', 'admin', true); -$admin->setRealm(T('Administration')); -$admin->setLanguageInformation($language); -$admin->css_link('../framework/printer.css.php'); +require_once ISSO . '/Template.php'; +BSTemplate::$preParseHook = 'isso_pre_parse_hook'; +// BSTemplate::$dbCacheTable = TABLE_PREFIX . 'admintemplate'; +BSTemplate::$langcall = 'T'; +BSTemplate::$templatePath = 'templates/%s.tpl'; // ################################################################### diff --git a/admin/templates/doctype.html b/admin/templates/doctype.html new file mode 100644 index 0000000..fd6f946 --- /dev/null +++ b/admin/templates/doctype.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/admin/templates/headinclude.html b/admin/templates/headinclude.html new file mode 100644 index 0000000..4f6246c --- /dev/null +++ b/admin/templates/headinclude.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/admin/templates/nav.html b/admin/templates/nav.html new file mode 100644 index 0000000..48ddb53 --- /dev/null +++ b/admin/templates/nav.html @@ -0,0 +1,45 @@ + \ No newline at end of file -- 2.43.5