| version 1.19, 2006/09/18 20:29:52 |
version 1.20, 2006/09/20 15:02:07 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/subst.inc.php,v 1.18 2006-09-15 08:28:39 nepto Exp $ */ |
/* $Platon: Metafox/subst.inc.php,v 1.19 2006-09-18 20:29:52 nepto Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 273 if ($ezin_db_section != '') { /* {{{ */ |
|
| Line 273 if ($ezin_db_section != '') { /* {{{ */ |
|
| */ |
*/ |
| |
|
| if ($ezin_tmpl_main->isVar('section_items')) { /* {{{ */ |
if ($ezin_tmpl_main->isVar('section_items')) { /* {{{ */ |
| $cache_ar = ezin_cache_load('S'.@$ezin_cgi['lang']); |
$cache_ar = ezin_cache_load('S'.$ezin_tmpl_key); |
| if (intval($cache_ar['timestamp']) <= 0) { |
if (intval($cache_ar['timestamp']) <= 0) { |
| $item = new HTML_Template_Platon($ezin_sys['tmpl']['section_item'].$ezin_tmpl_key, |
$item = new HTML_Template_Platon($ezin_sys['tmpl']['section_item'].$ezin_tmpl_key, |
| HTML_TEMPLATE_PLATON_METHOD_VAR_KEEP); |
HTML_TEMPLATE_PLATON_METHOD_VAR_KEEP); |
| Line 302 if ($ezin_tmpl_main->isVar('section_item |
|
| Line 302 if ($ezin_tmpl_main->isVar('section_item |
|
| } |
} |
| //$cache_ar['content'] = Platon::tilde_replace($cache_ar['content']); |
//$cache_ar['content'] = Platon::tilde_replace($cache_ar['content']); |
| unset($sections); |
unset($sections); |
| ezin_cache_save('S'.@$ezin_cgi['lang'], $cache_ar['content'], $cache_ar['var_var']); |
ezin_cache_save('S'.$ezin_tmpl_key, $cache_ar['content'], $cache_ar['var_var']); |
| } |
} |
| $ezin_tmpl_main->setCode('section_items', $cache_ar['content']); |
$ezin_tmpl_main->setCode('section_items', $cache_ar['content']); |
| if ($cache_ar['var_var']) { |
if ($cache_ar['var_var']) { |
| Line 315 if ($ezin_tmpl_main->isVar('section_item |
|
| Line 315 if ($ezin_tmpl_main->isVar('section_item |
|
| */ |
*/ |
| |
|
| if ($ezin_tmpl_main->isVar('article_items') && ($ezin_db_section != '' || $ezin_db_author != '')) { /* {{{ */ |
if ($ezin_tmpl_main->isVar('article_items') && ($ezin_db_section != '' || $ezin_db_author != '')) { /* {{{ */ |
| $cache_id = $ezin_db_section != '' ? 'S'.@$ezin_db_section['section_id'] |
$cache_id = $ezin_db_section != '' ? 'S'.@$ezin_db_section['section_id'].$ezin_tmpl_key |
| : 'U'.@$ezin_db_author['author_id'].$ezin_cgi['lang']; |
: 'U'.@$ezin_db_author['author_id'].$ezin_tmpl_key; |
| $cache_ar = ezin_cache_load($cache_id); |
$cache_ar = ezin_cache_load($cache_id); |
| $section_id = $ezin_db_section != '' && $ezin_db_section['section_type'] != 'global' ? $ezin_db_section['section_id'] : 0; |
$section_id = $ezin_db_section != '' && $ezin_db_section['section_type'] != 'global' ? $ezin_db_section['section_id'] : 0; |
| $author_id = $ezin_db_author != '' ? $ezin_db_author['search'] : ''; |
$author_id = $ezin_db_author != '' ? $ezin_db_author['search'] : ''; |