| version 1.29, 2007/03/06 22:28:52 |
version 1.30, 2007/05/20 21:58:02 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/subst.inc.php,v 1.28 2007-02-24 19:27:03 nepto Exp $ */ |
/* $Platon: Metafox/subst.inc.php,v 1.29 2007-03-06 22:28:52 nepto Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 148 if ($ezin_cgi['author_id'] > 0 || $ezin_ |
|
| Line 148 if ($ezin_cgi['author_id'] > 0 || $ezin_ |
|
| } |
} |
| $ezin_tmpl_key .= $ezin_sys['tmpl']['delim'].'author'; |
$ezin_tmpl_key .= $ezin_sys['tmpl']['delim'].'author'; |
| } /* }}} */ |
} /* }}} */ |
| else if ($ezin_cgi['section_id'] > 0 || $ezin_cgi['output'] == 'section') { /* {{{ */ |
|
| $ezin_db_section = ezin_get_section($ezin_cgi['section_id']); |
|
| if (! empty($ezin_db_section['section_link']) && $ezin_cgi['output'] == 'section') { |
|
| ezin_handle_section_link($ezin_db_section['section_link']); |
|
| } |
|
| $ezin_db_section['section_editorial_text'] = Platon::tilde_replace($ezin_db_section['section_editorial_text']); |
|
| $ezin_db_section['section_editorial_title'] = Platon::tilde_replace($ezin_db_section['section_editorial_title']); |
|
| } /* }}} */ |
|
| if (! empty($ezin_cgi['article_id'])) { /* {{{ */ |
if (! empty($ezin_cgi['article_id'])) { /* {{{ */ |
| $ezin_db_article = ezin_get_article($ezin_cgi['article_id']); |
$ezin_db_article = ezin_get_article($ezin_cgi['article_id']); |
| if (! empty($ezin_db_article['article_template_key'])) { |
if (! empty($ezin_db_article['article_template_key'])) { |
| $ezin_tmpl_key .= $ezin_sys['tmpl']['delim'].$ezin_db_article['article_template_key']; |
$ezin_tmpl_key .= $ezin_sys['tmpl']['delim'].$ezin_db_article['article_template_key']; |
| } |
} |
| } /* }}} */ |
} /* }}} */ |
| |
/* {{{ section - always (at least editorial is fetched) */ |
| |
$ezin_db_section = ezin_get_section($ezin_cgi['section_id']); |
| |
if (! empty($ezin_db_section['section_link']) && $ezin_cgi['output'] == 'section') { |
| |
ezin_handle_section_link($ezin_db_section['section_link']); |
| |
} |
| |
$ezin_db_section['section_editorial_text'] =Platon::tilde_replace($ezin_db_section['section_editorial_text']); |
| |
$ezin_db_section['section_editorial_title']=Platon::tilde_replace($ezin_db_section['section_editorial_title']); |
| |
/* }}} */ |
| |
|
| /* |
/* |
| * Main template object |
* Main template object |