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