Hi,
I just typed out a long, descriptive question/explanation and your server crashed or something (2 times) and I found myself on a 404 not found page.
Dreamweaver is showing me a syntax error on line 102. However, being that I don't know PHP I thought that perhaps the error was in the code and not at the </footer> tag. But I can't figure it out. Any help is appreciated.
Here is the code because I also seem unable to attach the index.php file:
<?php
defined('_JEXEC') or die;
/* check for left/right sidebars (3 cols each) and adjust article width */
$article_width = "grid_12";
if($this->countModules('left and right')) {
/*both left and right columns present */
$article_width = "grid_6";
}
else {
if($this->countModules('left or right')) {
/*only one sidebar */
$article_width = "grid_9";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
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="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type ="text/css"/>
</head>
<body>
<div id="container" class="container_12">
<div id="header" class="grid_12">
<jdoc:include type="modules" name="header" style="xhtml" />
<div id="topmenu">
<jdoc:include type="modules" name="topmenu" style="xhtml" />
</div> <!-- top menu -->
</div><!-- header -->
<?php if ($this->countModules('top1')) { ?>
<div id="top-wrapper" class="grid_12">
<div id="top1-wrapper" class ="grid_4">
<div id="top1">
<jdoc:include type="modules" name="top1" style="xhtml" />
</div> <!-- top1 -->
</div> <!-- top1-wrapper -->
<div id="top2-wrapper" class ="grid_4">
<div id="top2">
<jdoc:include type="modules" name="top2" style="xhtml" />
</div> <!-- top2 -->
</div> <!-- top2-wrapper -->
<div id="top3-wrapper" class ="grid_4">
<div id="top3">
<jdoc:include type="modules" name="top3" style="xhtml" />
</div> <!-- top3 -->
</div> <!-- top3-wrapper -->
</div> <!-- top wrapper -->
<?php }; ?>
<div id="content-wrapper" class ="grid_12">
<?php if ($this->countModules('left')) { ?>
<div id="left-wrapper" class="grid_3">
<div id="left">
<jdoc:include type="modules" name="left" style="xhtml" />
</div> <!-- left -->
</div> <!-- left wrapper -->
<?php }; ?>
<div id="article-wrapper" class="<?php echo $article_width ?>">
<div id="article">
<!-- articles are handled differently than modules so don't include: <jdoc:include type="modules" name="topmenu" style="xhtml" /> -->
<jdoc:include type="component" />
<jdoc:include type="message" />
</div> <!-- article -->
</div> <!-- article-wrapper -->
<? if ($this->countModules('right')) { ?>
<div id="right-wrapper" class="grid_3">
<div id="right">
<jdoc:include type="modules" name="right" style="xhtml" />
</div> <!-- right -->
</div> <!-- right wrapper -->
<?php {; ?>
</div> <!-- content wrapper -->
<div class="clear"></div>
<div id="footer" class="grid_12">
<?php if ($this->countModules('footer')) { ?>
<jdoc:include type="modules" name="footer" style="xhtml" />
<?php } else { ?>
<p>no footer module published</p>
<?php }; ?>
</div> <!-- footer -->
</div> <!-- container -->
</body>
</html>
Thanks,
Eric