Hallo,
ich möchte ein Template (basierend auf Mitra-Green) von Joomla 1.0.12 für die Verwendung unter Joomla 1.5B2 portieren.
1) Original Code der index.php (Joomla 1.0.12)
PHP-Code:<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
//needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
//xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) ) ? 2 : 1;
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<!-- <meta **********="Content-Type" content="text/html; charset=utf-8" /> -->
<meta **********="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/mitra/css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin:0">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="950px">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="logo2">
<tr>
<td width="133" valign="bottom" class="logo">
<table border="0" cellpadding="0" cellspacing="0" width="130px">
<tr>
<td valign="bottom" class="ver"> </td>
</tr>
<tr>
<td class="ver"> </td>
</tr>
</table>
</td>
<td valign="top"></td>
<td width="100%" valign="top" class="logo3" align="right">
<table border="0" cellpadding="0" cellspacing="0" width="705" style="height: 217px">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="647" style="height: 25px"> </td>
<td width="50" style="height: 25px"> </td>
<td width="8" style="height: 25px"> </td>
</tr>
<tr>
<td style="height: 25px"> </td>
<td width="50" align="right" style="height: 25px"><?php mosLoadModules ( 'user4'); ?></td>
<td width="8" style="height: 25px"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 163px">
<tr>
<td width="219"> </td>
<td> </td>
</tr>
<tr>
<td width="219"> </td>
<td width="486" style="height: 66px"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-image: url('<?php echo $mosConfig_live_site;?>/templates/mitra/images/top_link_bac.png')">
<tr>
<td width="133">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/left_top_link.jpg" alt="No Image"></img></td>
<td><?php mosLoadModules ( 'user3'); ?></td>
<td width="11">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/right_top_link.png" alt="No Image"></img></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="4"></td>
<td valign="top" width="201">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="bac_module"><?php mosLoadModules ( 'left', -2 ); ?></td>
</tr>
</table>
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="5" valign="top" style="background-image: url('<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/left.png'); height: 664px">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/top_left.png" alt="No Image"></img></td>
<td valign="top" style="background-image: url('<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/top.png'); background-repeat: repeat-x; background-position: top; height: 664px">
<table width="100%" height="0%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-top:10px;"><div align="center"><?php mosLoadModules ( 'middle'); ?></div></td>
</tr>
</table>
<?php mosMainBody(); ?></td>
<td width="4" valign="top" style="background-image: url('<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/right.png'); height: 664px">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/top_right.png" alt="No Image"></img></td>
</tr>
<tr>
<td width="5">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/bot_left.png" alt="No Image"></img></td>
<td style="background-image: url('<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/bot.png')">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/bot.png" alt="No Image"></img></td>
<td width="4">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/box/bot_right.png" alt="No Image"></img></td>
</tr>
</table>
</td>
<?php
if ( mosCountModules ('right') ) {
?>
<td valign="top" width="201">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="bac_module2"><?php mosLoadModules ( 'right', -2 ); ?></td>
</tr>
</table>
</td> <?php
}
?>
<td width="4"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="99%" style="background-image: url('<?php echo $mosConfig_live_site;?>/templates/mitra/images/bac_footer.png')">
<tr>
<td width="12">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/left_footer.png" alt="No Image"></img></td>
<td>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?></td>
<td width="12">
<img border="0" src="<?php echo $mosConfig_live_site;?>/templates/mitra/images/right_footer.png" alt="No Image"></img></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>


LinkBack URL
About LinkBacks
Zitieren


Lesezeichen