Jasne, plik wygląda tak.
Kod:
<?php
// dostęp bezpośredni jest niedozwolony
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" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/style.css" type="text/css" />
</head>
<body>
<div id="topcolor"></div>
<div id="wrapper">
<div id="header">
<a href="./"><img src="templates/<?php echo $this->template ?>/img/logo.png" alt="Swieze teksty.pl dajemy ci słowo, które wyróżnia"/></a>
<div id="navi">
<jdoc:include type="modules" name="topnavigation" style="xhtml" />
</div>
</div>
<div id="showcase">
<jdoc:include type="modules" name="imagerotator" style="xhtml" />
</div>
<div id="offers">
<div id="offer1" class="offer"><jdoc:include type="modules" name="offerleft" style="xhtml" />
</div>
<div id="offer2" class="offer"><jdoc:include type="modules" name="offermiddle" style="xhtml" />
</div>
<div id="offer3" class="offer"><jdoc:include type="modules" name="offerright" style="xhtml" />
</div><
</div>
<div id="content">
<div id="leftbar"> <jdoc:include type="modules" name="leftcolumn" style="xhtml" />
</div>
<div id="right">
<jdoc:include type="component" />
</div>
</div>
</div>
<div id="footer-big">
<div id="footer-small">
<div id="foot1" class="foots"><jdoc:include type="modules" name="userfoot1" style="xhtml" />
</div>
<div id="foot2" class="foots"><jdoc:include type="modules" name="userfoot2" style="xhtml" />
</div>
<div id="foot3" class="foots"><jdoc:include type="modules" name="userfoot3" style="xhtml" />
</div>
<div id="foot4" class="foots"><jdoc:include type="modules" name="userfoot4" style="xhtml" />
</div>
<div id="copyfooter">
<jdoc:include type="modules" name="copyright" style="xhtml" />
</div>
</div>
</div><
</body>
</html>
Css wygląda tak:
Kod:
* {
margin: 0;
padding: 0;
text-decoration: none;}
body {
font-family:Verdana, Geneva, sans-serif;
font-size: 14px;
background: url(img/body.png)}
@font-face {
font-family: 'QuicksandLight';
src: url('Quicksand_Light-webfont.eot');
src: url('Quicksand_Light-webfont.eot?#iefix') format('embedded-opentype'),
url('Quicksand_Light-webfont.woff') format('woff'),
url('Quicksand_Light-webfont.ttf') format('truetype'),
url('Quicksand_Light-webfont.svg#QuicksandLight') format('svg');
font-weight: bold;
font-style: normal;}
#topcolor {
height: 10px;
background: #40ad23;
border-bottom: 1px white solid;}
#wrapper {
margin: 0 auto;
width: 940px;
min-height: 300px;
overflow: hiiden;
background: red;
}
#header {
height: 100px;}
#header img {
display: block;
float: left;
margin-top:20px;}
#navi {
height:60px;
width: 600px;
float: right;
background: gray;}
#showcase {
height: 260px;
background: yellow;}
#offers {
margin-top: 20px;
background:gray;
overflow: hidden;
}
.offer {
background: gray;
width: 33.33333333333%;
height: 200px;
float: left;
}
#offer1 {
background:#C00}
#offer2 {
background:#C32}
#offer3 {
background:#C67}
#content {
margin-top: 20px;
width: 920px;
min-height: 400px;
background: green;
overflow: hidden;
clear: both;
}
#leftbar {
min-height: 500px;
background:blue;
width: 30%;
margin-right:3%;
float: left;}
#right {
min-height: 500px;
background: blue;
width:67%;
float: right;}
#footer-big {
margin-top:30px;
background: #666;
border-top: 1px #CCC solid;
overflow: hidden;}
#footer-small {
margin: 0 auto;
width: 940px;
background: #666;
overflow: auto;}
.foots {
min-height:100px;
width: 24%;
float: left;
background: blue;}
#foot1 {
background:#cda}
#foot2 {
background:#cdc}
#foot3 {
background:#444}
#foot4 {
background: #F63}
#copyfooter {
width: 940px;
height: 40px;
background:yellow;
clear: both;}
Chyba, że chodzi CI o to czy mogę go wrzucić na serwer w takiej formie? bo jeżeli tak to też wróciłem.
I co mnie najbardziej dziwi, że na innych podstronach footer jest w dobrym miejscu, a na stronie głównej w złym. Stało mi się tak raz wczoraj i nie umiałem sobie z tym poradzić, więc dzisiaj napisałem szkielt szablonu zupełnie od nowa, i działa poprawnie na locahoscie, oraz na joomli 1,5. Zaczynam myśleć, że to wina mojej instalacji na serwerze zewnętrznym, ale mam identyczną wersję na komputerze i w sieci.