Beispiel (index.html)
Eine einfache index.html könnte wie folgt aussehen:
QuelltextHTML Code:
- <html>
- <head>
- <link rel="shortcut icon" href="{$url_dir}skin/<mandant>/favicon.ico" />
- <link type="text/css" rel="stylesheet" href="{$url_dir}skin/{$site->skin}/style.css" />
- </head>
- <body>
- <table>
- <tr>
- <td>
- <img src="{$url_dir}/skin/{$site->skin}/img/logo.jpg">
- </td>
- <td>
- {navigation id=$site->rootId var=hauptnavigation}
- {foreach from=$hauptnavigation item=seite}
- <a href="{page_url page=$seite}">{$seite->field.name}</a>
- {/foreach}
- </td>
- </tr>
- <tr>
- <td>
- {navigation page=$page show=true var=navigation}
- {foreach from=$navigation item=seite}
- <br/><a href="{page_url page=$seite}">{$seite->field.name}</a>
- {/foreach}
- </td>
- <td>
- <div id="inhalt">
- {if $typeTemplate}
- {include file=$typeTemplate}
- {else}
- <h2><a name="top">{$page->field.title}</a></h2>
- <p><i>{$page->field.short|nl2br}</i></p>
- <p>{$page->field.content}</p>
- {/if}
- </div>
- </td>
- </tr>
- </table>
- </body>
- </html>