Update of /cvsroot/phpmp/phpMP
In directory usw-pr-cvs1:/tmp/cvs-serv26475
Modified Files:
index.php modules.php
Log Message:
Fully integrated Smarty (finally). Blocks now work (and quite well, too).
Went ahead and split header and fotter from main template, plus added the module template.
Index: index.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/index.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** index.php 25 Jul 2002 11:06:25 -0000 1.17
--- index.php 25 Jul 2002 20:50:07 -0000 1.18
***************
*** 48,52 ****
$PHPMP->Init();
! $Template->display_template('index');
?>
--- 48,52 ----
$PHPMP->Init();
! $Template->display_template('index.tpl');
?>
Index: modules.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/modules.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** modules.php 25 Jul 2002 06:16:22 -0000 1.8
--- modules.php 25 Jul 2002 20:50:07 -0000 1.9
***************
*** 94,106 ****
$Module->Init();
- $my_page_title = $Module->pagetitle;
}
- $Template->PrintHeader( array(PAGETITLE => $my_page_title) );
-
- $Template->CreateSide('left');
-
- $Template->Blocking('BeginMain');
-
if($ModCheck != 0) {
$Module->MakeContent();
--- 94,99 ----
***************
*** 111,119 ****
}
! $Template->Blocking('EndMain');
!
! $Template->CreateSide('right');
! $Template->PrintFooter( array() );
?>
--- 104,110 ----
}
! $Template->assign( 'module_content', $Module->module_content );
! $Template->display_template('modules.tpl');
?>
|