Hallo,
nach mehreren Monaten Joomla! und Joomla! Fieber hab ich mich, nachdem ich nun 3 Templates stark abgeändert hatte und eins nach Design neu aufgebaut habe (mit einem Augenkrebserzeugenden PHP-Code) nun dran gemacht ein komplett eigenes Template zu erstellen.
Link dazu:
http://www.j1bsp.hanz.bplaced.de/
Mich würde es auch freuen, wenn ihr mir sagt, wie es technisch aufgebaut ist, oder ob das Verbesserungen vorgenommen werden sollte. (Code am Ende)
Einige Sachen sind im Übrigen noch nicht fertiggestellt, darüber bitte nicht wundern (bsp: Weiterlesen... auf Startseite)
Freue mich über Kritik, sobald sie nicht dahingeschnulzt à la, "Gott sieht das Scheiße aus, hau das doch in die Tonne" daherkommt. Bitte mit Verbesserungsvorschlägen und konstruktiven Ideen.
Eine Frage dazu noch. Darf man die beez Overrides benutzen, ohne das irgendwo im Quellcode/Impressum, o.ä. zu nennen?
Ach ja, eigentlich gehört über den grauen Kasten noch ein Logo, das habe ich zur Zeit aber deaktiviert
lg, HansZ
PHP-Code:<?php
defined( '_JEXEC' ) or die( 'Access to this location is RESTRICTED.' ); //verhindert direkten Aufruf der index.php
$template_path=$this->baseurl . '/templates/' . $this->template; //setzt den aktuellen Template-Pfad
# CHANGE SPACES TO TABS
$document = JFactory::getDocument();
$document->setTab("\t \t");
# CHANGE ROBOT TAGS
$doc =& JFactory::getDocument( );
$doc->setMetaData( 'robots', 'noindex, nofollow' );
# REMOVE MOOTOOLS AND CAPTION
$mcremove=$this->getHeadData();
reset($mcremove['scripts']);
unset($mcremove['scripts'][$this->baseurl . '/media/system/js/mootools.js']);
unset($mcremove['scripts'][$this->baseurl . '/media/system/js/caption.js']);
$this->setHeadData($mcremove);
# DETERMINE WIDTHS FOR MIDDLE PART
if ($this->countModules('left and right')) {
$left = 'left-small';
$right = 'right-small';
$content = 'content-small';
}
else if ($this->countModules('left *** right')) {
$left = 'left-medium';
$content = 'content-medium';
$right = 'right-medium';
}
else {
$content = 'content-large';
}
#DETERMINE USER POSITION
$has_user1 = ($this->countModules('user1')) ? 1 : 0;
$has_user2 = ($this->countModules('user2')) ? 1 : 0;
$has_user3 = ($this->countModules('user3')) ? 1 : 0;
if ( ($has_user1 + $has_user2 + $has_user3) == 1 ) {
$user1 = 'user1large';
$user2 = 'user2large';
$user3 = 'user3large';
} else if ( ($has_user1 + $has_user2 + $has_user3) == 2 ) {
$user1 = 'user1medium';
$user2 = 'user2medium';
$user3 = 'user3medium';
} else {
$user1 = 'user1small';
$user2 = 'user2small';
$user3 = 'user3small';
}
?>
<!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" /> <link href="templates/system/css/system.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $template_path ?>/css/template.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $template_path ?>/css/beez.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $template_path ?>/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!--[if IE ]>
<link href="<?php echo $template_path ?>/css/ie.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $template_path ?>/src/ie.js" type="text/javascript"></script>
<![endif]-->
</head>
<body>
<div id="all">
<?php if($this->params->get('logo')) : ?>
<div id="logo">
<a href="<?php echo $baseurl; ?>"></a>
<h1><?php echo $this->params->get('logotext'); ?></h1>
</div>
<?php endif; ?>
<div id="wrapper">
<!-- start top -->
<div id="top">
<?php if ($this->countModules('top')) : ?>
<jdoc:include type="modules" name="top" style="xhtml" />
<?php endif; ?>
</div>
<!-- end top -->
<div id="box">
<?php if ($this->countModules('left')) : ?>
<!-- start left -->
<div id="<?php echo $left ?>">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<!-- end left -->
<?php endif; ?>
<div id="<?php echo $content ?>">
<?php if ($this->countModules('breadcrumb')) : ?>
<!-- start breadcrumb -->
<div id="breadcrumb">
<jdoc:include type="modules" name="breadcrumb" style="xhtml" />
</div>
<!-- end breadcrumb -->
<?php endif; ?>
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<!-- start content -->
<jdoc:include type="component" />
<!-- end content -->
<?php endif; ?>
</div>
<?php if ($this->countModules('right')) : ?>
<!-- start right -->
<div id="<?php echo $right ?>">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<!-- end right -->
<?php endif; ?>
<div id="users">
<?php if ($this->countModules('user1')) : ?>
<!-- start user1 -->
<div id="<?php echo $user1; ?>">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<!-- end user1 -->
<?php endif; ?>
<?php if ($this->countModules('user2')) : ?>
<!-- start user2 -->
<div id="<?php echo $user2; ?>"<?php if ($this->countModules('user1') and $user2 == 'user2medium' ) echo ' style="float:right;"'?> >
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<!-- end user2 -->
<?php endif; ?>
<?php if ($this->countModules('user3')) : ?>
<!-- start user3 -->
<div id="<?php echo $user3; ?>">
<jdoc:include type="modules" name="user3" style="xhtml" />
</div>
<!-- end user3 -->
<?php endif; ?>
</div>
<div class="clr"></div>
</div>
<div id="footer"><?php if($this->params->get('footer')) : ?>© copyright by <?php echo $this->params->get('copyright'); ?> <?php echo $this->params->get('year'); ?><?php endif; ?></div>
</div>
</div>
<?php if ($this->countModules('debug')) : ?>
<pre>
<jdoc:include type="modules" name="debug" />
</pre>
<?php endif; ?>
</body>
</html>


LinkBack URL
About LinkBacks
Zitieren

Lesezeichen