[pLog-svn] r2130 - plog/branches/plog-1.0.2/class/template
mark at devel.plogworld.net
mark at devel.plogworld.net
Tue May 31 10:54:35 GMT 2005
Author: mark
Date: 2005-05-31 10:54:35 +0000 (Tue, 31 May 2005)
New Revision: 2130
Modified:
plog/branches/plog-1.0.2/class/template/template.class.php
Log:
Add {dynamic}{/dynamic} support to plog template.class.php .
** it only works for normal smarty function, not works for plog plugin.
Modified: plog/branches/plog-1.0.2/class/template/template.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/template/template.class.php 2005-05-31 10:29:08 UTC (rev 2129)
+++ plog/branches/plog-1.0.2/class/template/template.class.php 2005-05-31 10:54:35 UTC (rev 2130)
@@ -19,6 +19,11 @@
include_once( PLOG_CLASS_PATH.'class/template/smarty/Smarty.class.php' );
include_once( PLOG_CLASS_PATH.'class/config/config.class.php' );
include_once( PLOG_CLASS_PATH.'class/logger/loggermanager.class.php' );
+
+ // Smarty dynamic block function
+ function smarty_block_dynamic($param, $content, &$smarty) {
+ return $content;
+ }
/**
* \ingroup Template
@@ -82,6 +87,9 @@
$this->compile_check = $config->getValue( 'template_compile_check', true );
// this helps if php is running in 'safe_mode'
$this->use_sub_dirs = false;
+
+ // register dynamic block for every template instance
+ $this->register_block('dynamic', 'smarty_block_dynamic', false);
}
/**
More information about the pLog-svn
mailing list