[phpMP-CVS] CVS: phpMP/templates/TealMP block_left.tpl,NONE,1.1 block_right.tpl,NONE,1.1 modules.tpl
Status: Pre-Alpha
Brought to you by:
heimidal
Update of /cvsroot/phpmp/phpMP/templates/TealMP
In directory usw-pr-cvs1:/tmp/cvs-serv26475/templates/TealMP
Modified Files:
index.tpl
Added Files:
block_left.tpl block_right.tpl modules.tpl overall_footer.tpl
overall_header.tpl
Removed Files:
block.tpl box.tpl
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.
--- NEW FILE: block_left.tpl ---
<td valign="top" width="150">
{foreach from=$left_side item=item key=key}
<table width="150" cellspacing="0" cellpadding="0">
<tr>
<td height="20" class="tabletitle">
<table width="100%" class="tabletitle" bordercolor=black background="{$mpuri}/templates/{$tpl_name}/images/navbg.gif"><tr><td width="100%" class="tabletitle" bordercolor=black>
<font color=white><small>{$key}</small></font>
</td></tr></table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="tableborder" bordercolor=black><tr><td>
{$item}
</td></tr></table>
</td>
</tr>
</table>
{/foreach}
</td>
--- NEW FILE: block_right.tpl ---
<td valign="top" width="150">
{foreach from=$right_side item=item key=key}
<table width="150" cellspacing="0" cellpadding="0">
<tr>
<td height="20" class="tabletitle">
<table width="100%" class="tabletitle" bordercolor=black background="{$mpuri}/templates/{$tpl_name}/images/navbg.gif"><tr><td width="100%" class="tabletitle" bordercolor=black>
<font color=white><small>{$key}</small></font>
</td></tr></table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="tableborder" bordercolor=black><tr><td>
{$item}
</td></tr></table>
</td>
</tr>
</table>
{/foreach}
</td>
--- NEW FILE: modules.tpl ---
{* phpMP Template - TealMP - modules.tpl *}
{include file=overall_header.tpl}
<table width="100%" bgcolor="#9fc2c6" cellspacing="0" cellpadding="2">
<tr>
{include file=block_left.tpl}
<td valign="top">
{$module_content}
</td>
{include file=block_right.tpl}
{include file=overall_footer.tpl}
--- NEW FILE: overall_footer.tpl ---
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table class="header" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" bgcolor=black colspan="2"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
</tr>
<tr>
<td width="100%" colspan="2" align="center" bgcolor="#C0C0C0">
<font size="2">
{$l_nav_bar}
</font>
</td>
</tr>
<tr>
<td width="100%" bgcolor=black colspan="2"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor=black align="center">
<tr>
<td height="25" width="100%" background="{$mpuri}/templates/{$tpl_name}/images/footer_bottom.gif" bgcolor="#000000;"></td>
</tr>
<tr>
<td height="1" bgcolor="#000000;"></td>
</tr>
<tr>
<table border="0" cellspacing="0" width="100%" cellpadding="0">
<tr>
<td width="100" align="left" background="{$mpuri}/templates/{$tpl_name}/images/footer_left.gif"></td>
<td width="*" align="center"><font size="-2">{$l_powered_by}<br />{$l_copyright}<br />{$debug_info}</font></td>
<td width="100" align="right" background="{$mpuri}/templates/{$tpl_name}/images/footer_right.gif"></td>
</tr>
</table>
</tr>
<tr>
<td height="1" bgcolor="#000000;"></td>
</tr>
<tr>
<td height="25" width="100%" background="{$mpuri}/templates/{$tpl_name}/images/footer_top.gif" bgcolor="#000000;"></td>
</tr>
<tr>
<td width="100%" height="*" valign="bottom" align="right"><a href="http://www.trevorj.com" class="tjcopyright">:: design by trevorj ::</a>
</tr>
</table>
</td>
</tr>
</td>
</tr>
</table>
</body>
</html>
--- NEW FILE: overall_header.tpl ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>.:: {$site_name} :: {$l_home} ::.</title>
<script src="{$mpuri}/templates/{$tpl_name}/js/fade.js" language="Javascript"></script>
<link rel="stylesheet" href="{$mpuri}/templates/{$tpl_name}/css/tpl_style.css" type="text/css" />
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table class="header" width="100%" bgcolor="#0f9fbc" cellpadding="0" cellspacing="0">
<tr>
<td width="300" align="left"><img src="{$mpuri}/templates/{$tpl_name}/images/logo.jpg" /></td>
<td width="100%" align="center" background="{$mpuri}/templates/{$tpl_name}/images/topbg.jpg"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
<td width="25" align="right" background="{$mpuri}/templates/{$tpl_name}/images/grad_ld_lr.gif"><img src="{$mpuri}/templates/{$tpl_name}/images/grad_ld_lr.gif" /></td>
</tr>
<tr>
<td width="100%" bgcolor=black colspan="5"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
</tr>
<tr>
<td width="100%" colspan="5" align="center" bgcolor="#C0C0C0"><font size="2">
{$l_nav_bar}
</font>
</td>
</tr>
<tr>
<td width="100%" bgcolor=black colspan="5"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
</tr>
</table>
Index: index.tpl
===================================================================
RCS file: /cvsroot/phpmp/phpMP/templates/TealMP/index.tpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** index.tpl 25 Jul 2002 11:06:26 -0000 1.1
--- index.tpl 25 Jul 2002 20:50:07 -0000 1.2
***************
*** 1,30 ****
! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
! <html>
! <head>
! <title>.:: {$site_name} :: Home ::.</title>
! <script src="{$mpuri}/templates/{$tpl_name}/js/fade.js" language="Javascript"></script>
! <link rel="stylesheet" href="{$mpuri}/templates/{$tpl_name}/css/tpl_style.css" type="text/css" />
! </head>
! <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
! <table class="header" width="100%" bgcolor="#0f9fbc" cellpadding="0" cellspacing="0">
! <tr>
! <td width="300" align="left"><img src="{$mpuri}/templates/{$tpl_name}/images/logo.jpg" /></td>
! <td width="100%" align="center" background="{$mpuri}/templates/{$tpl_name}/images/topbg.jpg"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
! <td width="25" align="right" background="{$mpuri}/templates/{$tpl_name}/images/grad_ld_lr.gif"><img src="{$mpuri}/templates/{$tpl_name}/images/grad_ld_lr.gif" /></td>
! </tr>
! <tr>
! <td width="100%" bgcolor=black colspan="5"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
! </tr>
! <tr>
! <td width="100%" colspan="5" align="center" bgcolor="#C0C0C0"><font size="2">
! <a href="{$mpuri}/index.php">home</a> {$bullet_html} <a href="/features.php">features</a> {$bullet_html} <a href="/forums/index.php">forums</a> {$bullet_html} <a href="/downloads.php">downloads</a> {$bullet_html} <a href="/support.php">support</a> {$bullet_html} <a href="/about.php">about</a> {$bullet_html} <a href="http://phpmp.sourceforge.net/team.php">team</a> {$bullet_html} <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmp/phpMP/">cvs</a> {$bullet_html} <a href="http://phpmp.sourceforge.net/devworld/modules/index.php?action=list">modules</a> {$bullet_html} <a href="http://www.sourceforge.net/">sourceforge</a>
! </font>
! </td>
! </tr>
! <tr>
! <td width="100%" bgcolor=black colspan="5"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
! </tr>
! </table>
<table width="100%" bgcolor="#9fc2c6" cellspacing="0" cellpadding="2">
--- 1,5 ----
! {* phpMP Template - TealMP - index.tpl *}
! {include file=overall_header.tpl}
<table width="100%" bgcolor="#9fc2c6" cellspacing="0" cellpadding="2">
***************
*** 32,36 ****
! {* include file=box.tpl *}
--- 7,11 ----
! {include file=block_left.tpl}
***************
*** 42,46 ****
<tr>
<td width="100%" class="tabletitle" bordercolor=black>
! <font color=white><small>.:: {$site_name} :: Home ::.</small></font>
</td>
</tr>
--- 17,21 ----
<tr>
<td width="100%" class="tabletitle" bordercolor=black>
! <font color=white><small>.:: {$site_name} :: {$l_home} ::.</small></font>
</td>
</tr>
***************
*** 64,126 ****
! {* include file=box.tpl *}
!
! </tr>
! <tr>
! <td colspan="3">
! <table width="100%" cellpadding="0" cellspacing="0">
! <tr>
! <td>
!
! <table class="header" width="100%" cellpadding="0" cellspacing="0">
! <tr>
! <td width="100%" bgcolor=black colspan="2"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
! </tr>
! <tr>
! <td width="100%" colspan="2" align="center" bgcolor="#C0C0C0">
! <font size="2">
! <a href="{$mpuri}/index.php">home</a> {$bullet_html} <a href="/features.php">features</a> {$bullet_html} <a href="/forums/index.php">forums</a> {$bullet_html} <a href="/downloads.php">downloads</a> {$bullet_html} <a href="/support.php">support</a> {$bullet_html} <a href="/about.php">about</a> {$bullet_html} <a href="http://phpmp.sourceforge.net/team.php">team</a> {$bullet_html} <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmp/phpMP/">cvs</a> {$bullet_html} <a href="http://phpmp.sourceforge.net/devworld/modules/index.php?action=list">modules</a> {$bullet_html} <a href="http://www.sourceforge.net/">sourceforge</a>
! </font>
! </td>
! </tr>
! <tr>
! <td width="100%" bgcolor=black colspan="2"><img src="{$mpuri}/templates/{$tpl_name}/images/pixel.gif" /></td>
! </tr>
! </table>
!
! <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
! <tr>
! <td height="25" width="100%" background="{$mpuri}/templates/{$tpl_name}/images/footer_bottom.gif" bgcolor="#000000"></td>
! </tr>
! <tr>
! <td height="1" bgcolor="#000000"></td>
! </tr>
! <tr>
! <table border="0" cellspacing="0" width="100%" cellpadding="0" class="copyright">
! <tr>
! <td width="100" align="left" background="{$mpuri}/templates/{$tpl_name}/images/footer_left.gif"></td>
! <td width="*" align="center"><font size="-2">{$copyright}<br>{$debug_info}</font></td>
! <td width="100" align="right" background="{$mpuri}/templates/{$tpl_name}/images/footer_right.gif"></td>
! </tr>
! </table>
! </tr>
! <tr>
! <td height="1" bgcolor="#000000"></td>
! </tr>
! <tr>
! <td height="25" width="100%" background="{$mpuri}/templates/{$tpl_name}/images/footer_top.gif" bgcolor="#000000"></td>
! </tr>
! <tr>
! <td width="100%" height="*" valign="bottom" align="right" class="copyright"><a href="http://www.trevorj.com" class="tjcopyright">:: design by trevorj ::</a>
! </tr>
! </table>
! </td>
! </tr>
! </table>
!
! </td>
! </tr>
! </table>
! </body>
! </html>
\ No newline at end of file
--- 39,43 ----
! {include file=block_right.tpl}
! {include file=overall_footer.tpl}
\ No newline at end of file
--- block.tpl DELETED ---
--- box.tpl DELETED ---
|