| View previous topic :: View next topic |
| Author |
Message |
chandor
Joined: 30 Aug 2008 Posts: 14
|
Posted: Sun Oct 05, 2008 8:38 am Post subject: spezielles Footer-Template für Startseite |
|
|
Hi,
ich möchte ein spezielles Footer-Template erstellen, dass nur auf der Startseite (Seite1) geladen und angezeigt wird.
Das mit dem Template ist nicht das Problem für mich, aber wie steuere ich das im php-Code? Kann mir da jemand behilflich sein?
VG chandor |
|
| Back to top |
|
 |
Paddelberg Site Admin

Joined: 17 Jan 2006 Posts: 797 Location: Worms
|
Posted: Sun Oct 05, 2008 5:31 pm Post subject: |
|
|
Hi
Füge folgenden Code in der index.php nach Zeile 264 ein
| Code: | if (empty ($_GET[$kwholder1]))
{
if(!file_exists("html/".$design."/footer.html"))
{echo "The template file html/".$design."/footer.html does not exist."; exit;}
$fp = fopen("html/".$design."/footer.html","r");
$footer = fread ($fp, filesize ("html/".$design."/footer.html"));
@fclose($fp);
}
else
{$footer = '';}
$zeile=ereg_replace("{footer}",$footer,$zeile); |
in deinem Template Ordner musst du die Datei footer.html erstellen.
In der Datei topsite.html kannst du dann da, wo du den Footer anzeigen willst den Platzhalter {footer} einfügen.
mfg
simon |
|
| Back to top |
|
 |
chandor
Joined: 30 Aug 2008 Posts: 14
|
Posted: Sun Oct 05, 2008 5:45 pm Post subject: |
|
|
Danke für prompte Antwort! Funzt einwandfrei!
VG Chandor |
|
| Back to top |
|
 |
|