|
From: Markus P. <mar...@us...> - 2005-03-21 20:59:43
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8715 Modified Files: index.php mx_multiple_blocks.php Log Message: Rewritten templates.php script. Now our template class is named mx_Template, it simply extends the phpBB Template class which could be based on the standard one or those in their contrib folder (file or db cache).This is the first step to try to make our template engine also compatible with eXtreme Styles MOD, etc. Index: mx_multiple_blocks.php =================================================================== RCS file: /cvsroot/mxbb/core/mx_multiple_blocks.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mx_multiple_blocks.php 6 Mar 2005 01:10:13 -0000 1.6 --- mx_multiple_blocks.php 21 Mar 2005 20:59:33 -0000 1.7 *************** *** 203,207 **** // echo $module_root_path.$block_file; ! $template = new Template( $template->root, $board_config, $db ); include( $module_root_path . $block_x_file ); --- 203,207 ---- // echo $module_root_path.$block_file; ! $template = new mx_Template( $template->root, $board_config, $db ); include( $module_root_path . $block_x_file ); Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/index.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** index.php 17 Mar 2005 11:30:36 -0000 1.25 --- index.php 21 Mar 2005 20:59:32 -0000 1.26 *************** *** 88,92 **** // Initialize template ! $layouttemplate = new Template( $template->root, $board_config, $db ); $layouttemplate->set_filenames( array( --- 88,92 ---- // Initialize template ! $layouttemplate = new mx_Template( $template->root, $board_config, $db ); $layouttemplate->set_filenames( array( *************** *** 168,172 **** { //$layouttemplate->assign_block_vars( 'layoutcol', array() ); ! $template = new Template( $template->root, $board_config, $db ); $module_root_path = $block_rows[$block]['module_path']; --- 168,172 ---- { //$layouttemplate->assign_block_vars( 'layoutcol', array() ); ! $template = new mx_Template( $template->root, $board_config, $db ); $module_root_path = $block_rows[$block]['module_path']; |