Załącznik 3127
Pliki
index.php
Kod:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
if ( $address = JRequest::getVar('view', '0') == 'frontpage'){
include 'wejdz.php'; // kod twojego logo + link
} else {
include 'szablon.php'; // Szablon
}
?>
wejdz.php
Kod:
<?php
// no direct access
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; ?>">
<head>
<jdoc:include type="head" />
</head>
<body>
<h1> witaj na stronie </h1>
<a href="http://adres/index.php?option=com_content&view=category&layout=blog&id=1&Itemid=50">asdfg</a>
</body>
</html>
szablon.php
demo demo