Viewing file: home_def.php (6.75 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $var['rain'] = $GLOBALS; ?>
<script language=javascript>
win1=window.open('popup/popup.html','popup','width=640,height=480');
</script>
<!-- home | generated by RainTPL v 1.0 | www.RainTPL.com -->
<!-- HEADER i -->
<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr background='templates/<?php echo $var["tpl_template"];?>/images/bg-header.gif'>
<td></td>
<td width='70%' valign='bottom'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr >
<td><a href='<?php echo $var["site_url"];?>' title='<?php echo $var["site_name"];?>'><img src='templates/<?php echo $var["tpl_template"];?>/images/logo.jpg' border='0' alt='Logo'></a></td><td align='right' width='1'>
<?php showBanner(1); ?>
</td></tr></table></td>
<td></td>
</tr>
<tr>
<td class='tpl_minihead' height='25'>
<td class='fontheader' background='templates/<?php echo $var["tpl_template"];?>/images/bar.jpg'>
<a href='index.php'>Home</a> ||
<a href='index.php?page=download'> Download</a> ||
<a href='index.php?page=forum'>Forum</a> ||
<a href='index.php?page=gallery'>Gallery</a>
</td>
<td class='tpl_minihead' height='26'>
</tr>
<tr>
<td class='tpl_head_button_left' width='15%'></td>
<td class='tpl_head_button' height='20'> <?php echo $var["showpath"];?></td>
<td class='tpl_head_button_right' width='15%'></td>
</tr>
<!--
<tr>
<td class='tpl_head_red_left'></td>
<td height='20' valign='top' class='tpl_head_red_center'></td>
<td class='tpl_head_red_right'></td>
</tr>
-->
<!-- HEADER e -->
<tr>
<td class='tpl_while_left'> </td>
<td class='tpl_spacer_main'>
<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<?php
if( $var["fullscreen"] < 2 ){
?>
<td width='200' valign='top'>
<div class='tpl_blocks_nav'>
<!-- NAVIGATOR BLOCKS i -->
<?php
if( isset( $var["tpl_blocks_navigator"] ) ){
$counter1 = 0;
foreach( $var["tpl_blocks_navigator"] as $key1 => $value1 ){
?>
<?php
if( $value1["usetitle"] > 0 ){
?>
<div class='tpl_blocks_title'><?php echo $value1["title"];?></div>
<?php
}
?>
<div class='tpl_block'><?php echo $value1["content"];?></div>
<div class='tpl_vspacer'></div>
<?php
$counter1++;
}
}
?>
<!-- NAVIGATOR BLOCKS e -->
</div>
</td>
<?php
}
?>
<?php
if( $var["fullscreen"] < 1 ){
?>
<td valign='top' class='tpl_blocks_main'>
<?php
}
elseif( $var["fullscreen"] < 2 ){
?>
<td valign='top' colspan='2' class='tpl_blocks_main'>
<?php
}
else{
?>
<td valign='top' colspan='3' class='tpl_blocks_main'>
<?php
}
?>
<!-- MAIN CONTENT i -->
<!-- MESSAGES i -->
<?php
if( isset( $var["tpl_messages"] ) ){
$counter1 = 0;
foreach( $var["tpl_messages"] as $key1 => $value1 ){
?>
<div class='tpl_messages_title'><img src='templates/<?php echo $var["tpl_template"];?>/images/arrow_slim.gif' alt='Arrow'> <?php echo $value1["title"];?></div>
<div><?php echo $value1["content"];?></div>
<div class='tpl_vspacer'></div>
<?php
$counter1++;
}
}
?>
<!-- MESSAGES e -->
<!-- CENTRAL BLOCKS i -->
<?php
if( isset( $var["tpl_blocks_central"] ) ){
$counter1 = 0;
foreach( $var["tpl_blocks_central"] as $key1 => $value1 ){
?>
<?php
if( $value1["usetitle"] > 0 ){
?>
<div class='tpl_blocks_title'><?php echo $value1["title"];?></div>
<?php
}
?>
<div class='tpl_block'><?php echo $value1["content"];?></div>
<div class='tpl_vspacer'></div>
<?php
$counter1++;
}
}
?>
<!-- CENTRAL BLOCKS e -->
<!-- PAGE i -->
<?php
if( $var["tpl_page"]["title"] != '' ){
?>
<div class='tpl_page_title'>
<?php
if( $var["tpl_page"]["url"] != '' ){
?>
<img src='templates/<?php echo $var["tpl_template"];?>/images/arrow.gif' alt='Arrow'> <a href='<?php echo $var["tpl_page"]["url"];?>' title='<?php echo $var["tpl_page"]["title"];?>'><b><?php echo $var["tpl_page"]["title"];?></b></a>
<div class='tpl_page_title_line'></div>
<?php
}
else{
?>
<b><?php echo $var["tpl_page"]["title"];?></b>
<div class='tpl_page_title_line'></div>
<?php
}
?>
</div>
<div class='tpl_vspacer'></div>
<?php
}
?>
<?php
if( $var["tpl_page"]["name"] == 'blog' ){
?> <?php
$RainTPL_include_obj = new RainTPL();
$RainTPL_include_obj->assign( $var );
$RainTPL_directory_template_temp = $RainTPL_include_obj->tpl_dir;
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_include_obj->tpl_dir . "/" . dirname( "blog" );
$RainTPL_include_obj->draw( basename( "blog" ) );
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_directory_template_temp;
?> <?php
}
?>
<?php
if( $var["tpl_page"]["name"] == 'news' ){
?> <?php
$RainTPL_include_obj = new RainTPL();
$RainTPL_include_obj->assign( $var );
$RainTPL_directory_template_temp = $RainTPL_include_obj->tpl_dir;
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_include_obj->tpl_dir . "/" . dirname( "news" );
$RainTPL_include_obj->draw( basename( "news" ) );
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_directory_template_temp;
?> <?php
}
?>
<div><?php echo $var["tpl_page"]["content"];?></div>
<!-- PAGE e -->
<!-- MAIN CONTENT e -->
</td>
<?php
if( $var["fullscreen"] < 1 ){
?>
<td width='200' valign='top'>
<div class='tpl_blocks_extra'>
<!-- EXTRA BLOCKS i -->
<?php
if( isset( $var["tpl_blocks_extra"] ) ){
$counter1 = 0;
foreach( $var["tpl_blocks_extra"] as $key1 => $value1 ){
?>
<?php
if( $value1["usetitle"] > 0 ){
?>
<div class='tpl_blocks_title'><?php echo $value1["title"];?></div>
<?php
}
?>
<div class='tpl_block'><?php echo $value1["content"];?></div>
<div class='tpl_vspacer'></div>
<?php
$counter1++;
}
}
?>
<!-- EXTRA BLOCKS e -->
</div>
</td>
<?php
}
?>
</tr>
</table>
</td>
<td class='tpl_while_right'> </td>
</tr>
<tr>
<td class='tpl_head_button_left' width='15%'></td>
<td class='tpl_head_button' height='20'> <?php echo $var["copyright"];?></td>
<td class='tpl_head_button_right' width='15%'></td>
</tr>
</table>
<div align="center"><?php echo $var["footmsg"];?></div>
<div align="center"> </div>
<!--/ home -->
|