Main Page

<?php main_css(); ?>

<?php main_header(); ?>

<?php top_nav(); ?>

<?php display_cats_main(); ?>

<?php content($content); ?>

<?php log_in_form_and_status(); ?>

<?php log_in_form(); ?>

<?php log_in_status(); ?>

<?php main_footer(); ?>


<?php main_css(); ?>

This is where the CSS for the page is inserted. This should always be present in the template file unless you've made the appropriate changes in other parts of the script. Various parts of the application depend on values that are defined in CSS that is inserted here. If you know what you are doing it would be best to put this CSS in it's own file and then call it using something similar to:
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css">
Not cluttering up the top of your html document could help you out in with the search engines.

Top of page



<?php main_header(); ?>

This is the stuff that will appear at the top of the page.

Top of page



<?php top_nav(); ?>

These are the links that the user clicks when they want to perform an action, for instance "edit", "search", "register", etc. . It is also where the "home" link resides. If you know html you can go into this function and change it to suit your needs. Then in your template file you can insert this function call to put the links wherever you want in the page.

Top of page



<?php display_cats_main(); ?>

This is where the links to the top-level categories are displayed.

Top of page



<?php content($content); ?>

This is where the main content for any particular page is displayed. The content depends on which page is currently being displayed. If you are on the search page, then this is where the search results are displayed. If you are browsing ads, this is where the results are displayed. If you are browing categories, it's where the sub-categories are displayed.

Top of page



<?php log_in_form_and_status(); ?>

Shows the login form when the user is not logged in.
Shows the "logged in as" message when the user is logged in.

Top of page



<?php log_in_form(); ?>

Shows the login form only.

Top of page



<?php log_in_status(); ?>

Shows "logged in as" message when user is logged in.
When user is not logged in it shows nothing.

Top of page



<?php main_footer(); ?>

This is the stuff that will appear at the bottom of the page.

Top of page

Main Page