Rev 228 Rev 229
1 <?php 1 <?php
2 if (!defined('EXTERNAL')) { 2 if (!defined('EXTERNAL')) {
3 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head> 6 <head>
7 <title>'.$sg->config->gallery_name.' - '.$sg->pageTitle().'</title> 7 <title>'.$sg->config->gallery_name.' - '.$sg->pageTitle().'</title>
8 <style type="text/css">@import url('.$sg->config->base_url.$sg->config->pathto_current_template.'css/layout.css);</style> 8 <style type="text/css">@import url('.$sg->config->base_url.$sg->config->pathto_current_template.'css/layout.css);</style>
9 <style type="text/css">@import url('.$sg->config->base_url.$sg->config->pathto_current_template.'css/color_'.$sg->config->template_scheme.'.css);</style> 9 <style type="text/css">@import url('.$sg->config->base_url.$sg->config->pathto_current_template.'css/color_'.$sg->config->template_scheme.'.css);</style>
10 <!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="'.$sg->config->base_url.$sg->config->pathto_current_template.'css/ie.css"><![endif]--> 10 <!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="'.$sg->config->base_url.$sg->config->pathto_current_template.'css/ie.css"><![endif]-->
11 <link rel="alternate" type="application/rss+xml" title="'.$sg->pageTitle().'" href="'.$_SERVER["PHP_SELF"]; if (isset($_GET["gallery"])) { echo '?gallery='.$_GET["gallery"];} echo '&template=rss" /> 11 <link rel="alternate" type="application/rss+xml" title="'.$sg->pageTitle().'" href="'.$_SERVER["PHP_SELF"]; if (isset($_GET["gallery"])) { echo '?gallery='.$_GET["gallery"];} echo '&template=rss" />
12 '.$sg->navigationLinks().'</head> 12 '.$sg->navigationLinks().'</head>
13 <body> 13 <body>
14 '; 14 ';
15 } 15 }
16 if (!isset($_GET["gallery"]) && $sg->config->update_check == 1 && $sg->isLoggedIn()) { 16 if (!isset($_GET["gallery"]) && $sg->config->update_check == 1 && $sg->isLoggedIn()) {
17 $handle = fopen($sg->config->update_url."update.php", "r"); 17 $handle = fopen($sg->config->update_url."update.php", "r");
18 $buffer = fgets($handle); 18 $buffer = fgets($handle);
19 $thisBuffer = str_replace(' ', '', $buffer); 19 $thisBuffer = str_replace(' ', '', $buffer);
20 if ($thisBuffer != $sg->config->current_version) { echo '<div id="sgUpdate">There is a new version of Modern ('.$thisBuffer.') - <a href="'.$sg->config->update_url.$thisBuffer.'.zip">Download</a> - <a href="http://www.abitcloser.com/projects/singapore/">Read More</a></div>'; }; 20 if ($thisBuffer != $sg->config->current_version) { echo '<div id="sgUpdate">There is a new version of Modern ('.$thisBuffer.') - <a href="'.$sg->config->update_url.$thisBuffer.'.zip">Download</a> - <a href="http://www.abitcloser.com/projects/singapore/">Read More</a></div>'; };
21 fclose($handle); 21 fclose($handle);
22 } 22 }
23 ?> 23 ?>
24   24  
25 <!-- 25 <!--
26 This page was generated by singapore <http://singapore.sourceforge.net> 26 This page was generated by singapore <http://singapore.sourceforge.net>
27 singapore is free software licensed under the terms of the GNU GPL. 27 singapore is free software licensed under the terms of the GNU GPL.
28   28  
29 Modern Template <? echo $sg->config->current_version ?> by Ross Howard 29 Modern Template <? echo $sg->config->current_version ?> by Ross Howard
30 http://www.abitcloser.com/projects/singapore 30 http://www.abitcloser.com/projects/singapore
31 --> 31 -->
32 <div id="sgContainer"> 32 <div id="sgContainer">
33 <div id="sgHeader"> 33 <div id="sgHeader">
34 <div id="sgOptions"><?php echo $sg->languageFlipper(); ?><?php echo $sg->templateFlipper(); ?></div> 34 <div id="sgOptions"><?php echo $sg->languageFlipper(); ?><?php echo $sg->templateFlipper(); ?></div>
35 <div class="sgCrumb"><?php echo $sg->crumbLine(); ?></div> 35 <div class="sgCrumb"><?php echo $sg->crumbLine(); ?></div>
36 <!-- end of header.tpl.php --> 36 <!-- end of header.tpl.php -->