Joomla! Wartung/Migration/1.0 zu 1.5/Template-Migration/Index/migrierte index.php
Aus Joomla! Dokumentation
<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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" />
<?phpif (($this->countModules('user1') && $this->countModules('user2')) {
//if both modules are loaded, we need a 50%-layout for them$usera = 'user1';
$userb = 'user2';
} else if ($this->countModules('user1 or user2')) {
// if only one, then 100% no matter which one.$usera = 'user3';
$userb = 'user3';
}?><link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/css_color_green.css" type="text/css" />
</head>
<body>
<div id="accessibility">
<a href="index.php#menu">
Menu</a>
<a href="index.php#content">
Content/Inhalt</a>
</div>
<div id="pagewidth-800" >
<div id="header" >
<div id="top-top">
<?phpif ($this->countModules('user4')) {
?><div id="search">
<jdoc:include type="modules" name="user4" style="none" />
</div>
<?php}?><div id="topmenu">
<?php if ($this->countModules('user3')) { ?>
<jdoc:include type="modules" name="user3" style="none" />
<?php } ?>
</div>
</div>
<div class="clr"></div>
<div id="top-bottom">
<a href="index.php">
<?php echo '<img src="' .$this->baseurl. '/templates/' .$this->template. '/images/logo.gif" border="0" width="250" height="80" alt="logo" />'; ?>
</a>
</div>
<?phpif ($this->countModules('banner')) {
?><div id="banner">
<jdoc:include type="modules" name="banner" style="none" />
</div>
<?php}?></div>
<div id="outer-800" >
<div id="pathway">
<jdoc:include type="modules" name="breadcrumb" />
</div>
<div id="leftcol">
<a name="menu"></a>
<?phpif ($this->countModules('left')) { ?>
<jdoc:include type="modules" name="left" style="rounded" />
<?php } ?>
</div>
<?phpif (($this->countModules('right' or 'top'))) {
?><div id="maincol-broad-800" >
<?php} else {
?><div id="maincol-wide-800" >
<?php}if ($this->countModules('user1')) {
?><div id="<?php echo $usera; ?>">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<?php}if ($this->countModules('user2')) {
?><div id="<?php echo $userb; ?>">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php}?><div class="clr"></div>
<div class="content">
<a name="content"></a>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</div>
<?phpif (($this->countModules('right or top'))) {
?><div id="rightcol-broad">
<jdoc:include type="modules" name="top" style="rounded" />
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php}?><div class="clr"></div>
</div>
<div id="footer-800" >
<jdoc:include type="modules" name="footer" />
<jdoc:include type="modules" name="debug" style="none" />
</div>
</div>
</body>
</html>