Inhaltsverzeichnis EGOTEC Templates Das Haupttemplate Beispiel (index.html)

Beispiel (index.html)

Eine einfache index.html könnte wie folgt aussehen:

QuelltextHTML Code:
  1. <html> 
  2. <head> 
  3.     <link rel="shortcut icon" href="{$url_dir}skin/<mandant>/favicon.ico" /> 
  4.     <link type="text/css" rel="stylesheet" href="{$url_dir}skin/{$site->skin}/style.css" /> 
  5. </head> 
  6.     <body> 
  7.        <table> 
  8.           <tr> 
  9.              <td> 
  10.                 <img src="{$url_dir}/skin/{$site->skin}/img/logo.jpg"> 
  11.              </td> 
  12.              <td> 
  13.                 {navigation id=$site->rootId var=hauptnavigation} 
  14.                 {foreach from=$hauptnavigation item=seite} 
  15.                    <a href="{page_url page=$seite}">{$seite->field.name}</a>&nbsp;&nbsp; 
  16.                 {/foreach} 
  17.              </td> 
  18.           </tr> 
  19.           <tr> 
  20.              <td> 
  21.                 {navigation page=$page show=true var=navigation} 
  22.                 {foreach from=$navigation item=seite} 
  23.                    <br/><a href="{page_url page=$seite}">{$seite->field.name}</a> 
  24.                 {/foreach} 
  25.              </td> 
  26.              <td> 
  27.                 <div id="inhalt"> 
  28.                 {if $typeTemplate} 
  29.                    {include file=$typeTemplate} 
  30.                 {else} 
  31.                    <h2><a name="top">{$page->field.title}</a></h2> 
  32.                    <p><i>{$page->field.short|nl2br}</i></p> 
  33.                    <p>{$page->field.content}</p> 
  34.                 {/if} 
  35.                </div> 
  36.              </td> 
  37.           </tr> 
  38.        </table> 
  39.     </body> 
  40. </html>