The Main Template
The main template looks familiar. Here we have already added some slots for administration tasks which means that we must write the modules! Please comment out all the stuff that is not there yet – you can use the Smarty comment delimiters
{* *}
main.tpl
... wait a moment...
For now we have all the selection logic in one template. Some could be isolated to subtemplates but I will leave it to you to finish.
The CSS definition
Because we will not be using a right sidebar here we can make the following change to the styles file:
#maincontent{margin-left: 0px;border-left: 1px solid gray;margin-right: 0px;border-right: 1px dotted gray;padding: 1em;min-height:500px;
}
The administration menu
The administration menu needs to be changed seldom. When it does we can always do that by hand. That is why there is no point creating a database-driven menu for the administration. Let's simply use a the quickiest way of creating it - an HTML file:
top_menu.tpl
... wait a moment...
Save this as
/admin/templates/top_menu.tpl. As you can see this cruel menu that only shows the option "Log in" when the user has not logged in yet.
Okay, thats all for the general layout. Now some real administration tools!