No changes between revisions
/photogallery/singapore.ini
26,7 → 26,7
;this is the text that will appear in the title bar of all
;generated pages and also the root node of the crumb line
default_template = "modern"
default_template = "MLAB"
;the name of the template to use when none is specified
default_language = "en"
128,7 → 128,7
;format generated URLs for use with Apache mod_rewrite
;you need to enable mod_rewrite and create an appropriate .htaccess file
detect_language = off
detect_language = on
;attempt to detect user language from browser information
;if this fails the default_language will be used
208,7 → 208,7
; mysql = MySQL database (configure sql_* settings above and in secret.ini.php)
; sqlite = SQLite database (does not require any further configuration)
allow_dir_upload = 0
allow_dir_upload = 1
;allow uploading archives containing arbitrary files.
; 0 = allow no one
; 1 = allow all registered users
/photogallery/templates/MLAB/album.tpl.php
0,0 → 1,60
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink()." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink(); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink(); ?>
</p>
 
<h2 class="sgTitle"><?php echo $sg->gallery->name(); ?></h2>
<h4 class="sgSubTitle"><?php echo $sg->gallery->byArtistText(); ?></h4>
 
<div class="sgShadow"><table class="sgShadow" cellspacing="0">
<tr>
<td class="tabl"></td>
<td class="tabm">
<div><?php echo $sg->galleryTab(); ?></div>
</td>
<td class="tabr"></td>
</tr>
<tr>
<td class="tl"></td>
<td class="tm"></td>
<td class="tr"></td>
</tr>
<tr>
<td class="ml"></td>
<td class="mm">
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->imageCountSelected()+$sg->gallery->startat; $index++): ?>
<div class="sgThumbnail">
<div class="sgThumbnailContent">
<img class="borderTL" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-tl.gif" alt="" />
<img class="borderTR" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-tr.gif" alt="" />
<table><tr><td>
<?php echo $sg->gallery->images[$index]->thumbnailLink(); ?>
</td></tr></table>
<div class="roundedCornerSpacer">&nbsp;</div>
</div>
<div class="bottomCorners">
<img class="borderBL" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-bl.gif" alt="" />
<img class="borderBR" src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/slide-br.gif" alt="" />
</div>
</div>
<?php endfor; ?>
</td>
<td class="mr"></td>
</tr>
<tr>
<td class="bl"></td>
<td class="bm"></td>
<td class="br"></td>
</tr>
</table></div>
<p class="sgDetailsList">
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
<strong><?php echo $key; ?>:</strong> <?php echo $value; ?><br />
<?php endforeach; ?>
</p>
/photogallery/templates/MLAB/footer.tpl.php
0,0 → 1,12
 
<div id="footer"><p>
<?php echo $sg->allRightsReserved(); ?>
<?php echo $sg->licenseText(); ?>
<br />
<?php echo $sg->poweredByText(); ?>
<?php echo $sg->scriptExecTimeText(); ?> |
<?php echo $sg->adminLink(); ?>
</p></div>
 
</body>
</html>
/photogallery/templates/MLAB/gallery.tpl.php
0,0 → 1,56
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink()." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink(); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink(); ?>
</p>
 
<h2 class="sgTitle"><?php echo $sg->gallery->name(); ?></h2>
<h4 class="sgSubTitle"><?php echo $sg->gallery->byArtistText(); ?></h4>
 
<div class="sgShadow"><table class="sgShadow" cellspacing="0">
<tr>
<td class="tabl"></td>
<td class="tabm">
<div><?php echo $sg->galleryTab(); ?></div>
</td>
<td class="tabr"></td>
</tr>
<tr>
<td class="tl"></td>
<td class="tm"></td>
<td class="tr"></td>
</tr>
<tr>
<td class="ml"></td>
<td class="mm">
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?>
<div class="sgGallery"><table class="sgGallery"><tr valign="top">
<td class="sgGalleryThumb">
<?php echo $sg->gallery->galleries[$index]->thumbnailLink(); ?>
</td>
<td>
<p><strong><?php echo $sg->gallery->galleries[$index]->nameLink(); ?></strong></p>
<p><?php echo $sg->gallery->galleries[$index]->summary(); ?></p>
<p>[<?php echo $sg->gallery->galleries[$index]->itemCountText(); ?>]</p>
</td>
</tr></table></div>
<?php endfor; ?>
 
</td>
<td class="mr"></td>
</tr>
<tr>
<td class="bl"></td>
<td class="bm"></td>
<td class="br"></td>
</tr>
</table></div>
 
<p class="sgDetailsList">
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
<strong><?php echo $key; ?>:</strong> <?php echo $value; ?><br />
<?php endforeach; ?>
</p>
/photogallery/templates/MLAB/header.tpl.php
0,0 → 1,25
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $sg->pageTitle(); ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>main.css" />
<?php echo $sg->navigationLinks(); ?>
<!--
This page was generated by singapore <http://singapore.sourceforge.net>
singapore is free software licensed under the terms of the GNU GPL.
-->
</head>
 
<body>
 
<?php echo $sg->languageFlipper(); ?>
<?php echo $sg->templateFlipper(); ?>
 
<div id="crumb"><?php echo $sg->crumbLine(); ?></div>
 
<div id="header"><img src="<?php echo $sg->config->base_url.$sg->config->pathto_current_template ?>images/header.gif" alt="<?php echo$sg->config->gallery_name ?>" /></div>
 
<!-- start of generated content -->
 
/photogallery/templates/MLAB/image.tpl.php
0,0 → 1,45
<p class="sgNavBar sgTopNavBar">
<?php echo $sg->previewThumbnails(); ?>
<br />
<?php if($sg->image->hasPrev()) echo $sg->image->prevLink()." | "; ?>
<?php echo $sg->image->parentLink(); ?>
<?php if($sg->image->hasNext()) echo " | ".$sg->image->nextLink(); ?>
</p>
<h2 class="sgTitle"><?php echo $sg->image->name(); ?></h2>
<h4 class="sgSubTitle"><?php echo $sg->image->byArtistText(); ?></h4>
<div class="sgShadow"><table class="sgShadow" cellspacing="0">
<tr>
<td class="tl"></td>
<td class="tm"></td>
<td class="tr"></td>
</tr>
<tr>
<td class="ml"></td>
<td class="mm">
<?php echo $sg->image->imageHTML() ?>
</td>
<td class="mr"></td>
</tr>
<tr>
<td class="bl"></td>
<td class="bm"></td>
<td class="br"></td>
</tr>
</table></div>
<p class="sgNavBar sgBottomNavBar">
<?php if($sg->image->hasPrev()) echo $sg->image->prevLink()." | "; ?>
<?php echo $sg->image->parentLink(); ?>
<?php if($sg->image->hasNext()) echo " | ".$sg->image->nextLink(); ?>
</p>
 
<h4 class="sgNameByArtist"><em><?php echo $sg->image->name() ?></em><?php echo $sg->image->byArtistText() ?></h4>
<p class="sgDetailsList">
<?php foreach($sg->image->detailsArray() as $key => $value): ?>
<strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
<?php endforeach; ?>
</p>
 
<?php echo $sg->imageMap() ?>
/photogallery/templates/MLAB/images/Thumbs.db
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/blank.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/header.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-bl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-bm.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-br.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-ml.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-mr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-tabl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-tabm.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-tabr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-tl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-tm.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/shadow-tr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/slide-bl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/slide-br.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/slide-tl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/images/slide-tr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/photogallery/templates/MLAB/index.tpl.php
0,0 → 1,32
<?php
 
/**
* Default singapore template.
*
* @author Tamlyn Rhodes <tam at zenology dot co dot uk>
* @copyright (c)2003, 2004 Tamlyn Rhodes
* @version 1.0
*/
 
//include header file
include $sg->config->base_path.$sg->config->pathto_current_template."header.tpl.php";
 
switch($sg->action) {
case "addcomment" :
include $sg->config->base_path.$sg->config->pathto_current_template."addcomment.tpl.php";
default :
if($sg->isImagePage()) {
//this is an 'image' page so include the 'image' template file
include $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 file
include $sg->config->base_path.$sg->config->pathto_current_template."album.tpl.php";
} else {
//this is a 'gallery' page so include the 'gallery' template file
include $sg->config->base_path.$sg->config->pathto_current_template."gallery.tpl.php";
}
}
//include footer file
include $sg->config->base_path.$sg->config->pathto_current_template."footer.tpl.php";
 
?>
/photogallery/templates/MLAB/main.css
0,0 → 1,232
/* * * * * * * * * * */
/* Generic elements */
/* * * * * * * * * * */
 
body {
margin: 1em;
font: small sans-serif;
color: #000;
background-color: #fff;
}
 
p, td, th, li, h4 {
font: small sans-serif;
}
 
h1, h2, h3 {
color: #f60;
}
 
h1 {
font-size: large;
}
 
a:link, a:visited {
color: #09f;
text-decoration: underline;
}
 
a:hover {
text-decoration: none;
}
 
input, textarea, select, .inputbox {
border: 1px solid #f60;
color: #000;
background-color: #fff;
}
 
input.radio {
border: none;
background-color: #fff;
}
 
input.button {
font-weight: bold;
border: 1px outset #fff;
color: #fff;
background-color: #f60;
}
 
a img {
border: 0;
}
 
 
/* * * * * * * * * * */
/* Elements with IDs */
/* * * * * * * * * * */
 
 
/* header: image and/or title */
#header { }
 
/* crumb line: (You are here: ...) */
#crumb { }
 
/* footer: copyright notices */
#footer {
text-align: center;
}
 
 
/* * * * * * * * * */
/* Custom classes */
/* * * * * * * * * */
 
 
/* image or gallery name header */
.sgTitle {
margin-bottom: 0;
}
 
/* image or gallery artist subheader */
.sgSubTitle {
margin-top: 0;
}
 
/* image and artist name displayed beneath image */
p.sgNameByArtist { }
 
/* image and gallery details such as date, location, camera model, hits etc. */
p.sgDetailsList { }
 
/* language select box and template select box respectively */
div.sgLanguageFlipper, div.sgTemplateFlipper {
float: right;
clear: right;
}
 
div.sgClear {
clear: both;
}
 
/* wraps the drop-shadow table to allow IE to center it */
div.sgShadow {
text-align: center;
padding: 1em;
}
 
/* the main content table that does the drop-shadow effect */
table.sgShadow {
margin-left: auto;
margin-right: auto;
clear: both;
}
 
table.sgShadow {
background-color: #f0f0f0;
padding: 0;
text-align: left;
}
 
table.sgShadow td {
padding: 0;
margin: 0;
}
 
/* div containing each gallery sub-gallery on a gallery page */
div.sgGallery {
margin: 5px;
padding: 5px;
border: 1px solid #ccc;
background-color: #fff;
}
 
/* the table cell containing the gallery thumbnail */
td.sgGalleryThumb {
width: 100px;
text-align: center;
}
 
/* the gallery thumbnail itself */
img.sgGalleryThumb {
border: 1px solid #000;
}
 
/* the descriptive text (title, summary, contents) */
div.sgGallery p {
margin-top: 0;
margin-bottom: 2px;
}
 
 
/* full size image on an image page*/
img.sgImage {
border: none;
}
 
/* the preview thumbnails and previous, thumbnails, next links */
p.sgTopNavBar, p.sgBottomNavBar {
text-align: center;
float: right;
}
 
/* wraps the thumbnail and rounded-corner code on an album page */
div.sgThumbnail {
width: 124px;
height: 124px;
margin: 10px 5px;
float: left;
padding: 0px;
text-align: center;
}
 
div.sgThumbnail table {
width: 114px;
height: 114px;
margin: 0px;
text-align: center;
vertical-align: middle;
}
 
.sgThumbnailContent {
background: #fff;
margin: 0px;
padding: 0px;
border: 1px solid #ccc;
}
 
 
/* the following code does the rounded corners of the 35mm slide effect on
the album pages. Taken from http://www.albin.net/CSS/roundedCorners/ */
.roundedCornerSpacer {
margin: 0px; padding: 0px; border: 0px;
clear: both;
font-size: 1px; line-height: 1px;
}
.borderTL, .borderTR, .borderBL, .borderBR {
width: 5px; height: 5px;
padding: 0px; border: 0px;
z-index: 99;
}
.borderTL, .borderBL { float: left; clear: both; }
.borderTR, .borderBR { float: right; clear: right; }
.borderTL { margin: -1px 0px 0px -1px; }
.borderTR { margin: -1px -1px 0px 0px; }
.borderBL { margin: -5px 0px 0px 0px; }
.borderBR { margin: -5px 0px 0px 0px; }
 
 
/* appropriate background images for drop-shadow effect */
table.sgShadow td.tabl { background-image: url('images/shadow-tabl.gif'); width: 16px; height: 16px; }
table.sgShadow td.tabm { background-color: #fff; }
table.sgShadow td.tabr { background-color: #fff; }
 
table.sgShadow td.tl { background-image: url('images/shadow-tl.gif'); width: 32px; height: 16px; }
table.sgShadow td.tm { background-image: url('images/shadow-tm.gif');}
table.sgShadow td.tr { background-image: url('images/shadow-tr.gif');}
table.sgShadow td.ml { background-image: url('images/shadow-ml.gif');}
table.sgShadow td.mm { padding: 10px;} /* cell containing image */
table.sgShadow td.mr { background-image: url('images/shadow-mr.gif');}
table.sgShadow td.bl { background-image: url('images/shadow-bl.gif');}
table.sgShadow td.bm { background-image: url('images/shadow-bm.gif');}
table.sgShadow td.br { background-image: url('images/shadow-br.gif'); width: 32px; height: 32px; }
 
/* the bit with previous, next */
table.sgShadow td.tabm div {
font-size: 13px;
background: #f0f0f0 url('images/shadow-tabm.gif') top right;
padding-right: 30px;
float: left;
}
/photogallery/templates/MLAB/template.ini
0,0 → 1,50
;Option descriptions have been grouped together here.
;Do not uncomment the following lines, they are for illustration only.
;
;thumb_width_*
; Width in pixels of thumbnails generated by the script.
; This option is affected by the thumb_crop_* option (see below).
;
;thumb_height_*
; Height in pixels of thumbnails generated by the script.
; This option is affected by the thumb_crop_* option (see below).
;
;thumb_crop_*
; By default, width and height are maximum dimensions and images will be
; resized, maintaining the same aspect ratio, to fit within these limits.
; Turn force_size on to make the script crop images to the specified size.
;
;*_gallery
; These options affect gallery pages (those that contain sub-galleries).
;
;*_album
; These options affect album pages (those that contain only images).
;
;*_preview
; These options affect the preview thumbnails displayed on image pages.
;
;*_image
; These options affect full size display images and are only used if
; full_image_resize is on in singapore.ini
 
thumb_width_gallery = 80
thumb_height_gallery = 80
thumb_crop_gallery = off
thumb_number_gallery = 10
;Maximum number of galleries to show on one gallery page.
 
thumb_width_album = 100
thumb_height_album = 100
thumb_crop_album = off
thumb_number_album = 20
;Maximum number of image thumbnails to show on one album page.
 
thumb_width_preview = 50
thumb_height_preview = 50
thumb_crop_preview = off
thumb_number_preview = 5
;Maximum number of preview thumbnails to display (including
;current image). An odd number is usually preferred.
thumb_width_image = 700
thumb_height_image = 500