Rev Author Line No. Line
347 kaklik 1 <?php
2  
3 /**
4 * Default singapore template.
5 *
6 * @author Tamlyn Rhodes <tam at zenology dot co dot uk>
7 * @copyright (c)2003, 2004 Tamlyn Rhodes
8 * @version 1.0
9 */
10  
11 //include header file
12 include $sg->config->base_path.$sg->config->pathto_current_template."header.tpl.php";
13  
14 switch($sg->action) {
15 case "addcomment" :
16 include $sg->config->base_path.$sg->config->pathto_current_template."addcomment.tpl.php";
17 default :
18 if($sg->isImagePage()) {
19 //this is an 'image' page so include the 'image' template file
20 include $sg->config->base_path.$sg->config->pathto_current_template."image.tpl.php";
21 } elseif($sg->isAlbumPage()) {
22 //this is an 'album' page so include the 'album' template file
23 include $sg->config->base_path.$sg->config->pathto_current_template."album.tpl.php";
24 } else {
25 //this is a 'gallery' page so include the 'gallery' template file
26 include $sg->config->base_path.$sg->config->pathto_current_template."gallery.tpl.php";
27 }
28 }
29 //include footer file
30 include $sg->config->base_path.$sg->config->pathto_current_template."footer.tpl.php";
31  
32 ?>