The purpose of the front page is to provide a customizable platform allowing the system administrator to create a unique appearance for each Photo Organizer installation. Currently the Front Page consists only of a single page that is the default page of the software, but the eventual goal is to extend this mechanism and turn it into a complete customer-modifiable interface.
The front page is composed of three main elements:
The PHP PROLOG should be the first tag of your template. This creates the environment for the PHP primitives that are described in the following paragraph. It has the following static structure:
<?php include_once "include/vars.php"; include_once "include/config.php"; include_once "include/site.php"; include_once "$theme/theme.php"; $database = site_prolog(); ?>
<?php site_logo($align); ?>
This tag displays the logo of your Photo Organizer installation. The logo is customizable, by default it is the PO logo as defined in the theme that comes with the software.
<?php site_navigator_stand_alone($database, $tab); ?>
This tag displays the Photo Organizer navigation bar.
<?php site_navigator_status($left_string, $right_string); ?>
This tag displays the Photo Organizer navigator status that is typically located directly below the navigator bar.
<?php site_display_photo($database, $photo_id, $framed, $version); ?>
This tag displays a single photo linked to the its photo preview. As the Front Page may be accessed by non-registered users, make sure that the photos you display on the Front Page are publicly available.
<?php site_display_random_photos( $database, $type, $identifier, $count, $framed); ?>
This tag displays random photos of a given folder, album or user arranged in a specified geometry.
<?php site_display_user_name( $database, $user_identifier, $link); ?>
This tag displays the name of a user.
<?php site_search_entry( $align, $size); ?>
This tag displays a general search entry that returns the search results in the Search View.
<?php site_credit(); ?>
This tag displays the Photo Organizer credits and the software version.
The PHP EPILOG should be the last tag of your template. Its purpose is to close all connections that were set up by the PHP PROLOG. This has the following static structure:
<?php site_epilog($database); ?>