| version 1.53, 2012/09/28 18:49:48 |
version 1.54, 2012/10/09 12:35:23 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/subst.inc.php,v 1.52 2012-09-28 16:23:20 igor Exp $ */ |
/* $Platon: Metafox/subst.inc.php,v 1.53 2012-09-28 18:49:48 nepto Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 584 if (count($boxes) > 0) { |
|
| Line 584 if (count($boxes) > 0) { |
|
| $boxes_val = ezin_get_boxes($boxes); |
$boxes_val = ezin_get_boxes($boxes); |
| foreach($boxes_val as $val) { |
foreach($boxes_val as $val) { |
| $cache_id = $box_prefix.$ezin_cfg['theme']['name'].'_'.$val['name']; |
$cache_id = $box_prefix.$ezin_cfg['theme']['name'].'_'.$val['name']; |
| ezin_handle_special_tags($val['bodytext']); |
$bodytext = $val['bodytext']; |
| |
ezin_handle_special_tags($bodytext); |
| |
ezin_process_text_flags($bodytext, 'article_bodytext'); |
| |
$bodytext = Platon::tilde_replace($bodytext); |
| $template_key = (strlen($val['template_key']) > 0) ? '.'.$val['template_key'] : ''; |
$template_key = (strlen($val['template_key']) > 0) ? '.'.$val['template_key'] : ''; |
| $box = new HTML_Template_Platon($ezin_sys['tmpl']['box'].$template_key, |
$box = new HTML_Template_Platon($ezin_sys['tmpl']['box'].$template_key, |
| HTML_TEMPLATE_PLATON_METHOD_VAR_KEEP); |
HTML_TEMPLATE_PLATON_METHOD_VAR_KEEP); |
| $box->set('bodytext', $val['bodytext']); |
$box->set('bodytext', $bodytext); |
| $output = $box->getCode(); |
$output = $box->getCode(); |
| ezin_cache_save($cache_id, $output); |
ezin_cache_save($cache_id, $output); |
| $ezin_tmpl_main->setCode($box_prefix.$val['name'], $output); |
$ezin_tmpl_main->setCode($box_prefix.$val['name'], $output); |