<?php/*** Modern Template by Ross Howard* http://www.abitcloser.com/projects/singapore*///debugging code//error_reporting(E_ALL);// set embed to false$embed = false;//load user details (must be done after session_start)$sg->loadUser();//if slideshow then set externalif($sg->action == 'slideshow') {$embed = true;}//include header fileif ($embed == false) {include $sg->config->base_path.$sg->config->pathto_current_template."header.tpl.php";}//watch actions and pagetypesswitch($sg->action) {case "addcomment" :include $sg->config->base_path.$sg->config->pathto_current_template."addcomment.tpl.php";default :if($sg->action == 'slideshow') {//this is an 'slideshow' page so include the 'slideshow' template fileinclude $sg->config->base_path.$sg->config->pathto_current_template."slideshow.tpl.php";} elseif($sg->isImagePage()) {//this is an 'image' page so include the 'image' template fileinclude $sg->config->base_path.$sg->config->pathto_current_template."image.tpl.php";} elseif($sg->isAlbumPage()) {//this is an 'album' page so include the 'album' template fileinclude $sg->config->base_path.$sg->config->pathto_current_template."album.tpl.php";} else {//this is a 'gallery' page so include the 'gallery' template fileinclude $sg->config->base_path.$sg->config->pathto_current_template."gallery.tpl.php";}}//include footer fileif ($embed == false) {include $sg->config->base_path.$sg->config->pathto_current_template."footer.tpl.php";}?>