Custom Template giving me "Server Error" - Joomla! Forum - community, help and support
i have coded custom template based around 1 wrote joomla 2.5 template.
i know it's lot, , first post here. if breaking rules or has been covered apologize. guidance why giving me "server error 500" super helpful; or related documentation.
thanks joomla!
code: select all
<?php
//prevent direct access file
defined('_jexec') or die;
$app = jfactory::getapplication();
?>
<!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>
<?php $active = jfactory::getapplication()->getmenu()->getactive(); ?>
</head>
<body>
<body class="<?php echo $active->alias; ?> ">
<div class="row-fluid">
<div id="topbanner">
<div id="toplogo"
<jdoc:include type="modules" name="top" />
</div>
</div>
</div>
<div class="row-fluid">
<?php
if($this->params->get('setlayout')== 'default')): // change regular post template// ?>
<div id="sidebar-1" class="span3 offset1">
<div class="row-fluid">
<?php if($this->params->get('setlayout')== 'mainhome')): ?>
<div id="topnav" class="span12">
<jdoc:include type="modules" name="topnav" />
</div>
<div id="showcase" class="span12">
<jdoc:include type="modules" name="showcase" />
</div>
<div id="banner1" class"span12">
<jdoc:include tpye="modules" name="banner1" />
</div>
<div id="maincol1" class"span3">
<jdoc:include type="modules" name="colmain1" />
</div>
<div id="maincol2" class="span3 offset3">
<jdoc:include tpye="modules" name="colmain2" />
</div>
<div id="maincol3" class="span3 offset6">
<jdoc:include tpye="modules" name="colmain3" />
</div>
<div id="maincol4" class="span3 offset9">
<jdoc:include tpye="modules" name="colmain4" />
</div>
<div id="banner2" class="span12">
<jdoc:include tpye="modules" name="banner2" />
</div>
<div id="banner3" class="span12">
<jdoc:include tpye="modules" name="banner3" />
</div>
<div id="mediabanner" class="span12">
<jdoc:include tpye="modules" name="mediabanner" />
</div>
<div id="footer" div class="span12">
<jdoc:include type="modules" name="footer" />
</div>
<jdoc:include type="module" name="debug" />
</div>
<?php endif;?>
<?php if($this->params->get('setlayout'))== 'login'): // new templates appeneded here// ?>
<div id="login" class="span4 offset4">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/webtools-logo.png">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</div>
<?php endif;?>
</div>
<div class="row-fluid">
<div id="footer" class="span12">
<jdoc:include type="modules" name="footer" />
<jdoc:include type="modules" name="debug" />
</div>
</div>
</body>
</html>i know it's lot, , first post here. if breaking rules or has been covered apologize. guidance why giving me "server error 500" super helpful; or related documentation.
thanks joomla!
Comments
Post a Comment