- made simple template almost feature complete by implementing view modes and more

- other general fixes to things a bit all over the place

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@12 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-04-04 23:15:55 +00:00
parent a8fe6d5a8c
commit 80fd008b9d
20 changed files with 411 additions and 105 deletions

View File

@@ -1,7 +1,7 @@
<?php die();
//
// Exec: render/simple
// Exec: render
//
// Copyright © 2006 Jim Myhrberg. All rights reserved.
// zynode@gmail.com
@@ -9,7 +9,7 @@
//_HEAD;
/* --- Configuration ---
Name: simple/render
Name: render
Priority: 40
Author: Jim Myhrberg
*/
@@ -28,6 +28,12 @@ $config->parse(TPL_PATH.'settings.php', true, 'tpl_');
//>STAGE> render
//==========================
//>Section> set_view_mode
if ( !empty($_COOKIE['dList_simple_viewMode']) && !empty($config->tpl_modes[$_COOKIE['dList_simple_viewMode']]) ) {
$config->tpl_mode = $config->tpl_modes[$_COOKIE['dList_simple_viewMode']];
} else {
$config->tpl_mode = $config->tpl_modes[$config->tpl_mode];
}
//>Section> include_phtml
include(TPL_PATH.'index.phtml');