Joomla! 1.5 Templates - index.php file
The following is an illustrative example of an index.php file for a Joomla! 1.5 template. It is based on an actual working index.php file compatible with Joomla! 1.5 Production/Stable, 22 January 2008.
<?php 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; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head"/>
<!-- Main stylesheet -->
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/template_css.css"/>
</head>
<body>
<div id="bigbox"> <!-- big box -->
<div id="pathbox">
<jdoc:include type="modules" name="breadcrumb" style="none"/>
</div> <!-- end pathway box -->
<div id="topheader">
<div>
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/logo.png" class="logo" title=" A Joomla! 1.5 Test Site" alt=" A Joomla! 1.5 Test Site"/>
</div>
<div id="searchpos">
<jdoc:include type="modules" name="search" style="none"/>
</div> <!-- end searchpos -->
<div id="datepos">
<div class="date">
<?php echo strftime('%A, %d %B %Y');?>
</div>
</div> <!-- end datepos -->
</div> <!-- end topheader -->
<div id="top_hz_menubox"><jdoc:include type="modules" name="user1" style="none"/>
</div>
<?php if($this->countModules('top')) : ?>
<jdoc:include type="modules" name="top" style="xhtml"/>
<?php endif; ?>
<div id="leftbox"> <!--left-->
<jdoc:include type="modules" name="left" style="xhtml"/>
</div> <!--end leftbox-->
<?php $menu = &JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) : ?>
<!-- do three-column front page style -->
<div id="rightbox"> <!--right-->
<jdoc:include type="modules" name="right" style="xhtml"/>
</div> <!-- close rightbox -->
<div id="centerboxfp">
<?php else : ?><!-- not front page, do two-column style -->
<div id="centerbox">
<?php endif; ?>
<div id="middlebox"> <!-- middle -->
<jdoc:include type="component"/>
</div> <!-- close middlebox -->
<?php if($this->countModules('bottom and advert1')) : ?>
<div id="bottombox"> <!--bottom-->
<jdoc:include type="modules" name="bottom" style="none"/>
<jdoc:include type="modules" name="advert1" style="xmthl"/>
</div> <!--close bottombox -->
<?php endif; ?>
</div> <!--close centerboxfp or centerbox-->
<div align="center" id="footerbox"><?php if($this->countModules('banner')) : ?>
<div align="center"><jdoc:include type="modules" name="banner" style="xhtml"/>
</div>
<?php endif; ?>
<div class="pagestats">
· Powered by <a href="http://www.joomla.org" target="_blank">Joomla</a>, a CMS released under the GNU/GPL License ·
Original content and layout Copyright © 2003 - <?php echo date('Y'); ?>, John Doe, All Rights Reserved.
<a href="javascript: scroll(0,0)" class="topbutton">Top</a><br /><br />
</div> <!-- close pagestats -->
</div> <!-- close footerbox-->
</div> <!-- close bigbox -->
<?php if($this->countModules('user8')) : ?>
<div id="bottom_hz_menubox">
<jdoc:include type="modules" name="user8" style="none"/>
</div>
<?php endif; ?>
</body>
</html>









