Also ich habe jetzt alles Deaktiviert was nach Superfish klingt. Das Menu wird jetzt als reines Text Menu angezeigt. Das bekomme ich nicht weg...
Ein Auszug aus der index.php
Code:
<?php
defined( '_JEXEC' ) or die( 'Access to this location is RESTRICTED.' );
?>
<!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>
<?
// Remove mootools.js and caption.js für Gäste
$user =& JFactory::getUser();
if ( $user->guest ) {
//if ( $user->usertype == null || $user->usertype == '' ){
$menu =& JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
$headerstuff = $this->getHeadData();
unset ($headerstuff['scripts'][$this->baseurl . '/media/system/js/mootools.js']) ;
unset ($headerstuff['scripts'][$this->baseurl. '/media/system/js/caption.js']) ;
$this->setHeadData($headerstuff);
}
}
?>
<jdoc:include type="head" />
<!-- <link rel="stylesheet" href="templates/<?php echo $this->template ?>/superfish/css/superfish.css" type="text/css" /> -->
<!-- <link rel="stylesheet" href="templates/<?php echo $this->template ?>/superfish/css/superfish-navbar.css" type="text/css" /> -->
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!-- <link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/typography.css" type="text/css" /> -->
<!-- <link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/menu.css" type="text/css" /> -->
<!--[if lte IE 7]>
<link href="templates/<?php echo $this->template ?>/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!-- <script type="text/javascript" src="templates/<?php echo $this->template ?>/superfish/js/jquery-1.2.6.min.js"></script> -->
<!-- <script type="text/javascript" src="templates/<?php echo $this->template ?>/superfish/js/hoverIntent.js"></script> -->
<!-- <script type="text/javascript" src="templates/<?php echo $this->template ?>/superfish/js/superfish.js"></script> -->
<!-- <script type="text/javascript"> -->
<!-- jQuery(document).ready(function(){ jQuery("ul.menu-sf").superfish({pathClass: 'current', delay: 500, autoArrows: 1, speed: 'normal', dropShadows: 0, disableHI: 0}); }); -->
<!-- </script> -->
</head>
<body>
<?php if($this->countModules('absolute')) : ?>
<div id="absolute">
<jdoc:include type="modules" name="absolute" style="xhtml" />
</div>
<?php endif; ?>
<div id="wrapper" class="clearfix">
<div id="topwrapper" class="clearfix">
<?php if($this->countModules('logo')) : ?>
<div id="logo">
<jdoc:include type="modules" name="logo" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('header')) : ?>
<div id="top-msg">
<jdoc:include type="modules" name="header" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('topmenu')) : ?>
<div id="top-menu">
<jdoc:include type="modules" name="topmenu" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('newsflash')) : ?>
<div id="newsflash">
<jdoc:include type="modules" name="newsflash" style="xhtml" />
</div>
<?php endif; ?>
</div>
<?php if($this->countModules('menu')) : ?>
<div id="menu">
<jdoc:include type="modules" name="menu" style="xhtml" />
</div>
<?php endif; ?>
<div id="wrapper2" class="clearfix">
<?php if($this->countModules('top')) : ?>
<div id="top">
<jdoc:include type="modules" name="top" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('left')) : ?>
<div id="left">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<?php endif; ?>
<div id="main">
<?php if($this->countModules('main-top')) : ?>
<div id="main-top">
<jdoc:include type="modules" name="main-top" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('right')) : ?>
<div id="right">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<?php endif; ?>
<div id="content">
<?php if($this->countModules('content-top')) : ?>
<div id="content-top">
<jdoc:include type="modules" name="content-top" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('breadcrumb')) : ?>
<div id="breadcrumb">
<jdoc:include type="modules" name="breadcrumb" style="xhtml" />
</div>
<?php endif; ?>
<div id="inhalt">
<jdoc:include type="component" />
</div>
<?php if($this->countModules('content-bottom')) : ?>
<div id="content-bottom">
<jdoc:include type="modules" name="content-bottom" style="xhtml" />
</div>
<?php endif; ?>
</div>
<?php if($this->countModules('main-bottom')) : ?>
<div id="main-bottom">
<jdoc:include type="modules" name="main-bottom" style="xhtml" />
</div>
<?php endif; ?>
</div>
<?php if($this->countModules('bottom')) : ?>
<div id="bottom">
<jdoc:include type="modules" name="bottom" style="xhtml" />
</div>
<?php endif; ?>
</div>
</div>
<div id="out" class="clearfix">
<?php if($this->countModules('legals')) : ?>
<div id="legals">
<jdoc:include type="modules" name="legals" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('footer')) : ?>
<div id="footer">
<jdoc:include type="modules" name="footer" style="xhtml" />
</div>
<jdoc:include type="modules" name="user1" />
<?php endif; ?>
<br><br>
<?php
?>
</div>
<jdoc:include type="modules" name="debug" style="xhtml" />
</body>
</html>
Es muss wohl an diesem Block liegen:
Code:
<?
// Remove mootools.js and caption.js für Gäste
$user =& JFactory::getUser();
if ( $user->guest ) {
//if ( $user->usertype == null || $user->usertype == '' ){
$menu =& JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
$headerstuff = $this->getHeadData();
unset ($headerstuff['scripts'][$this->baseurl . '/media/system/js/mootools.js']) ;
unset ($headerstuff['scripts'][$this->baseurl. '/media/system/js/caption.js']) ;
$this->setHeadData($headerstuff);
}
}
?>
Allerdings wenn ich den auskommentiere geht die Seite gar nicht mehr.
Lesezeichen