Пытаюсь переделать шаблон
http://demo.snek.gr/index.php?jos_change_template=areia из версии 1.0 в версию 1.5, но после установки шаблона белый экран. Вроде бы все сделал по правилам замены. Помогите, чем сможете. Спасибо. Вот код после моего преобразования:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<script type="text/javascript" src="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/textresizer.js"></script>
</head>
<body>
<div id="entire">
<div id="top">
<div id="topup">
<?php if ($this->countModules('language')) { ?>
<div id="language">
<jdoc:include type="modules" name="language" style="none"/>
</div>
<?php } ?>
<div id="topupright">
<?php if ($this->countModules('user4')) {
<jdoc:include type="modules" name="user4" style="none"/> } ?>
<div id="resizer">
<a href="index.php" title="Increase size" onclick="changeFontSize(1);return false;">
<img src="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/plus.gif" alt="" border="0" /></a>
<a href="index.php" title="Decrease size" onclick="changeFontSize(-1);return false;">
<img src="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/minus.gif" alt="" border="0" /></a>
<a href="index.php" title="Revert styles to default" onclick="revertStyles(); return false;">
<img src="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/reset.gif" alt="" border="0" /></a>
</div><!--end of resizer -->
</div><!--end of topupright-->
</div> <!--end of topup-->
<div id="topdown">
<?php if ($this->countModules('banner')) { ?>
<div id="topdownleft">
<div class="logo">
</div><!-- end of logo-->
<div class="sitename">
<?php echo $mainframe->getCfg('sitename'); ?>
</div><!--end of class sitename-->
</div><!--end of topdownleft-->
<div id="topdownright">
<jdoc:include type="modules" name="banner" style="none"/>
</div><!--end of topdowright-->
<?php }
else { ?>
<div id="topdownleftfull">
<div class="logofull">
</div><!-- end of logofull-->
<div class="sitenamefull">
<?php echo $mainframe->getCfg('sitename'); ?>
</div><!--end of class sitenamefull-->
</div> <!--end of topdownleftfull -->
<?php } ?>
</div> <!--end of topdown-->
</div> <!--end of top-->
<div id="topmodules">
<?php if ($this->countModules('top')) { ?>
<div id="topmodulesleft">
<jdoc:include type="modules" name="top" style="none"/>
</div> <!--end od topmodulesleft-->
<?php } ?>
<div id="topmodulesright">
<?php
if (($this->countModules( 'user1' )) && ($this->countModules( 'user2' ))) {
$usera = 'user1';
$userb = 'user2';
}
else if (($this->countModules( 'user1' )) || ($this->countModules( 'user2' ))) {
$usera = 'userx';
$userb = 'userx';
}
if ($this->countModules( "user1" )) { ?>
<div id="<?php echo $usera; ?>">
<div class="box">
<div class="bi">
<div class="bt">
<div>
</div>
</div><!--end of bt-->
<!--content goes here -->
<jdoc:include type="modules" name="user1" style="xhtml"/>
<!--content -->
<div class="bb">
<div>
</div>
</div><!--end of bb -->
</div><!--end of bi-->
</div><!--end of box-->
</div><!--end of user1-->
<?php }
if ($this->countModules( "user2" )) { ?>
<div id="<?php echo $userb; ?>">
<div class="box">
<div class="bi">
<div class="bt">
<div>
</div>
</div>
<!--content goes here -->
<jdoc:include type="modules" name="user2" style="xhtml"/>
<!--content -->
<div class="bb">
<div>
</div>
</div>
</div>
</div><!--end of box-->
</div><!--end of user2-->
<?php } ?>
</div><!--end of topmodulesright-->
</div><!--end of topmodules -->
<div id="horizmenu">
<jdoc:include type="modules" name="mainpos" style="none"/>
</div> <!--end of horizmenu-->
<div id="contentseparator">
</div> <!--end of contentseparator-->
<div id="content">
<?php if ($this->countModules('left')) {?>
<div id="leftbar">
<jdoc:include type="modules" name="left" style="xhtml"/>
</div><!--end of leftbar-->
<?php } ?>
<?php if ($this->countModules('right')) {?>
<div id="mainbody">
<jdoc:include type="component" />
</div><!--end of mainbody-->
<div id="rightbar">
<jdoc:include type="modules" name="right" style="xhtml"/>
</div><!--end of rightbar-->
<?php }
else { ?>
<div id="mainbodyfull">
<jdoc:include type="component" />
</div><!--end of mainbodyfull-->
<?php } ?>
</div> <!--end of content -->
<div id="footer">
<div class="topmenu">
<?php if ($this->countModules('user3')) {
<jdoc:include type="modules" name="user3" style="none"/> }?>
</div>
<div class="siteinfo">
Copyright © <?php echo JHTML::Date( 'now', '%d | %m | %Y' ); ?>
</div>
<div class="validsite">
<a href="
http://validator.w3.org/check?uri=referer">
<img src="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/validxhtml.png" name="validXHTML1" alt="Valid XHTML 1.0 Transitional" align="middle" border="0"/> </a>
<a href="
http://jigsaw.w3.org/css-validator/check/referer">
<img src="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/validcss.png" alt="Valid CSS!" align="middle" border="0"/>
</a>
</div>
<div class="designedby">
<a href="
http://www.snek.gr">Template designed by snek </a>
</div>
</div><!--end of footer -->
</div> <!--end of entire -->
</body>
</html>