Hallo,
ich muss ein Template wieder auf für Joomla 1.0. downgraden und habe
nun ein Problem!?
Im Template für Joomla 1.5 ist eine "if-else-" Anweisung mit "isFrontPage()" Klasse/Methode.
Wie ist "isFrontPage" in Joomla 1.0. definiert??
Existiert bei Joomla 1.0 eine ähnliche Klasse/Methode??
PHP-Code:<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$siteName = $this->params->get('siteName');
class tjC {
function isFrontPage(){
return (JRequest::getCmd('option')=='com_content' && !JRequest::getInt('id'));
}
}
$TJ = new tjC($this);
?>
........
.......
<div id="contentarea">
<?php if(!$TJ->isFrontPage()) { ?>
<div id="content">
<jdoc:include type="message" />
<jdoc:include type="component" style="xhtml"/>
</div>
<div id="right">
<jdoc:include type="modules" name="myright" style="xhtml" />
</div>
<?php } else { ?>
<div class="spotlight"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/spotlight.jpg" border="0" alt=" " />
<jdoc:include type="modules" name="myspotlight" style="xhtmlxtd" />
</div>
<?php } ?>


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen