No changes between revisions
/photogallery/singapore_gallery_files/templates/index.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/default/gallery.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/default/album.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/default/images/shadow-tl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-tm.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-tabl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-tabm.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-tr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-tabr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/slide-tl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-bl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-bm.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/slide-tr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-br.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/blank.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/header.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-ml.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/slide-bl.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/slide-br.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/images/shadow-mr.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/default/image.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/default/template.ini
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/default/index.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/default/main.css
File deleted
/photogallery/singapore_gallery_files/templates/default/header.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/default/footer.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/modern/album.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/modern/slideshow.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/image.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/css/color_wob.css
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/css/color_wow.css
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/css/ie.css
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/css/layout.css
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/css/color_bob.css
File deleted
/photogallery/singapore_gallery_files/templates/modern/template.ini
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/index.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/readme.txt
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/header.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/img/loader_b.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/modern/img/loader_w.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/modern/footer.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/modern/gallery.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/rss/template.ini
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/rss/index.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/admin.ini
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/admin_default/edituser.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/galleryhits.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/main.css
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/editimage.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/header.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/changethumbnail.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/viewgallery.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/viewalbum.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/newimage.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/confirm.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/footer.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/menu.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/editgallery.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/editprofile.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/index.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/login.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/newgallery.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/view.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/admin_default/imagehits.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/manageusers.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/editpass.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/viewimage.tpl.php
File deleted
\ No newline at end of file
/photogallery/singapore_gallery_files/templates/admin_default/images/blank.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/admin_default/images/header.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/admin_default/images/graph.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/photogallery/singapore_gallery_files/templates/admin_default/multimove.tpl.php
File deleted
/photogallery/singapore_gallery_files/templates/admin_default/editpermissions.tpl.php
File deleted
/photogallery/templates/admin_default/admin.ini
0,0 → 1,88
; singapore admin configuration file <http://singapore.sourceforge.net>
;
; This is a special case of a template.ini file
;
 
[Functionality]
;
; these settings should not be changed
;
 
track_views = false
show_views = true
use_mod_rewrite = off
;mod rewrite doesn't work in admin mode
 
 
[Advanced]
;
; these settings must not be changed
;
 
index_file_url = "admin.php?action=view&amp;"
 
[GET variable names]
;
; these settings must not be changed
;
 
url_gallery = "gallery"
url_image = "image"
url_startat = "startat"
url_action = "action"
url_lang = "lang"
url_template = "template"
 
[Template]
 
;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 = 50
thumb_height_gallery = 50
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 before and
;after current image in image view (eg a value of 2 here
;will result in 5 thumbnails (2 before + current + 2 after)
thumb_width_image = 700
thumb_height_image = 500
/photogallery/templates/admin_default/changethumbnail.tpl.php
0,0 → 1,32
<h1><?php echo $sg->translator->_g("Choose Thumbnail") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="changethumbnail" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<p><?php echo $sg->translator->_g("Choose the filename of the image used to represent this gallery.") ?></p>
 
<?php /*<p><select name="sgThumbName">
<option value="__none__"<?php if($sg->gallery->filename == "__none__") echo ' selected="true"'; ?>><?php echo $sg->translator->_g("thumbnail|None") ?></option>
<option value="__random__"<?php if($sg->gallery->filename == "__random__") echo ' selected="true"'; ?>><?php echo $sg->translator->_g("thumbnail|Random") ?></option>
<?php
foreach($sg->gallery->images as $img) {
echo '<option value="'.$img->idEntities().'"';
if($sg->gallery->filename == $img->id) echo ' selected="true"';
echo '>'.$img->name().' ('.$img->idEntities().")</option>\n ";
}
?>
</select></p> */ ?>
<p>
<label><input type="radio" name="sgThumbName" value="__none__"<?php if($sg->gallery->filename == "__none__") echo ' checked="true"'; ?>><?php echo $sg->translator->_g("thumbnail|None") ?></label>
<label><input type="radio" name="sgThumbName" value="__random__"<?php if($sg->gallery->filename == "__random__") echo ' checked="true"'; ?>><?php echo $sg->translator->_g("thumbnail|Random") ?></label>
<?php
foreach($sg->gallery->images as $img) {
echo '<label><input type="radio" name="sgThumbName" value="'.$img->idEntities().'"';
if($sg->gallery->filename == $img->id) echo ' checked="true"';
echo '>'.$img->thumbnailHTML("", "preview")."</label>\n ";
}
?>
</p>
<p><input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|OK") ?>">
<input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|Cancel") ?>"></p>
</form>
/photogallery/templates/admin_default/confirm.tpl.php
0,0 → 1,15
<h1><?php echo $confirmTitle ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<?php
foreach($_REQUEST as $name => $value)
if(is_array($value))
foreach($value as $subname => $subvalue)
echo "<input type=\"hidden\" name=\"{$name}[{$subname}]\" value=\"$subvalue\" />\n";
else
echo "<input type=\"hidden\" name=\"$name\" value=\"$value\" />\n";
?>
<p><?php echo $confirmMessage ?></p>
<p><input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|OK") ?>">
<input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|Cancel") ?>"></p>
</form>
/photogallery/templates/admin_default/editgallery.tpl.php
0,0 → 1,57
<h1><?php echo $sg->translator->_g("Edit Gallery") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="savegallery" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<input type="hidden" name="sgCategories" value="<?php echo $sg->gallery->categories ?>" />
 
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Thumbnail") ?></td>
<td><div class="inputbox sgImageInput">
<?php
if($sg->gallery->filename == "__random__")
echo nl2br($sg->translator->_g("Random\nthumbnail"));
else
echo $sg->gallery->thumbnailHTML();
?>
<br />
<a href="<?php echo $sg->formatAdminURL("changethumbnail",$sg->gallery->idEncoded()) ?>"><?php echo $sg->translator->_g("thumbnail|Change...") ?></a>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Gallery name") ?></td>
<td><input type="text" name="sgGalleryName" value="<?php echo $sg->gallery->name ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Artist name") ?></td>
<td><input type="text" name="sgArtistName" value="<?php echo $sg->gallery->artist ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Email") ?></td>
<td><input type="text" name="sgArtistEmail" value="<?php echo $sg->gallery->email ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Date") ?></td>
<td><input type="text" name="sgDate" value="<?php echo $sg->gallery->date ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Copyright") ?></td>
<td><input type="text" name="sgCopyright" value="<?php echo $sg->gallery->copyright ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Summary") ?></td>
<td><textarea name="sgSummary" cols="70" rows="3"><?php echo $sg->gallery->summaryStripped() ?></textarea></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Description") ?></td>
<td><textarea name="sgGalleryDesc" cols="70" rows="8"><?php echo $sg->gallery->descriptionStripped() ?></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/editimage.tpl.php
0,0 → 1,67
<h1><?php echo $sg->translator->_g("Edit Image") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="saveimage" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<input type="hidden" name="image" value="<?php echo $sg->image->idEntities() ?>" />
<input type="hidden" name="sgThumbnail" value="<?php echo $sg->image->thumbnail ?>" />
<input type="hidden" name="sgCategories" value="<?php echo $sg->image->categories ?>" />
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Image") ?></td>
<td><div class="inputbox sgImageInput"><?php echo $sg->image->thumbnailHTML() ?></div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Image name") ?></td>
<td><input type="text" name="sgImageName" value="<?php echo $sg->image->name ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Artist name") ?></td>
<td><input type="text" name="sgArtistName" value="<?php echo $sg->image->artist ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Email") ?></td>
<td><input type="text" name="sgArtistEmail" value="<?php echo $sg->image->email ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Location") ?></td>
<td><input type="text" name="sgLocation" value="<?php echo $sg->image->location ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Date") ?></td>
<td><input type="text" name="sgDate" value="<?php echo $sg->image->date ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Copyright") ?></td>
<td><input type="text" name="sgCopyright" value="<?php echo $sg->image->copyright ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Description") ?></td>
<td><textarea name="sgImageDesc" cols="70" rows="8"><?php echo $sg->image->descriptionStripped() ?></textarea></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Camera") ?></td>
<td><input type="text" name="sgField01" value="<?php echo $sg->image->camera ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Lens") ?></td>
<td><input type="text" name="sgField02" value="<?php echo $sg->image->lens ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Film") ?></td>
<td><input type="text" name="sgField03" value="<?php echo $sg->image->film ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Darkroom manipulation") ?></td>
<td><input type="text" name="sgField04" value="<?php echo $sg->image->darkroom ?>" size="40" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Digital manipulation") ?></td>
<td><input type="text" name="sgField05" value="<?php echo $sg->image->digital ?>" size="40" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/editpass.tpl.php
0,0 → 1,25
<h1><?php echo $sg->translator->_g("Change Password") ?></h1>
<p><?php echo $sg->translator->_g("Please choose a new password between 6 and 16 characters in length.") ?></p>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="savepass" />
<input type="hidden" name="sgUsername" value="<?php echo $sg->user->username ?>" />
<table>
<tr>
<td><?php echo $sg->translator->_g("Current password:") ?></td>
<td><input type="password" name="sgOldPass" size="23" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("New password:") ?></td>
<td><input type="password" name="sgNewPass1" size="23" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Confirm password:") ?></td>
<td><input type="password" name="sgNewPass2" size="23" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/editpermissions.tpl.php
0,0 → 1,95
<h1><?php echo $sg->translator->_g("Access Control") ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="savepermissions" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
 
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Owner") ?></td>
<td><?php
if($sg->user->isAdmin())
echo '<input type="text" name="sgOwner" value="'.$sg->gallery->owner.'" />';
else
echo '<strong>'.$sg->gallery->owner.'</strong>';
?></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Groups") ?></td>
<td><input type="text" name="sgGroups" value="<?php echo $sg->gallery->groups ?>" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Read") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_READ) == SG_IHR_READ) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_READ) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_READ) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnRead"><input type="radio" class="radio" id="sgOwnRead" name="sgRead" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpRead"><input type="radio" class="radio" id="sgGrpRead" name="sgRead" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldRead"><input type="radio" class="radio" id="sgWldRead" name="sgRead" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrRead"><input type="radio" class="radio" id="sgIhrRead" name="sgRead" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Edit") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_EDIT) == SG_IHR_EDIT) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_EDIT) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_EDIT) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnEdit"><input type="radio" class="radio" id="sgOwnEdit" name="sgEdit" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpEdit"><input type="radio" class="radio" id="sgGrpEdit" name="sgEdit" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldEdit"><input type="radio" class="radio" id="sgWldEdit" name="sgEdit" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrEdit"><input type="radio" class="radio" id="sgIhrEdit" name="sgEdit" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Add") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_ADD) == SG_IHR_ADD) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_ADD) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_ADD) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnAdd"><input type="radio" class="radio" id="sgOwnAdd" name="sgAdd" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpAdd"><input type="radio" class="radio" id="sgGrpAdd" name="sgAdd" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldAdd"><input type="radio" class="radio" id="sgWldAdd" name="sgAdd" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrAdd"><input type="radio" class="radio" id="sgIhrAdd" name="sgAdd" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("access control|Delete") ?></td>
<td><div class="inputbox">
<?php
if(($sg->gallery->permissions & SG_IHR_DELETE) == SG_IHR_DELETE) $checked = 0;
elseif($sg->gallery->permissions & SG_GRP_DELETE) $checked = 1;
elseif($sg->gallery->permissions & SG_WLD_DELETE) $checked = 2;
else $checked = 3;
?>
<label for="sgOwnDelete"><input type="radio" class="radio" id="sgOwnDelete" name="sgDelete" value="owner" <?php if($checked == 3) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Owner") ?></label>
<label for="sgGrpDelete"><input type="radio" class="radio" id="sgGrpDelete" name="sgDelete" value="group" <?php if($checked == 1) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Group") ?></label>
<label for="sgWldDelete"><input type="radio" class="radio" id="sgWldDelete" name="sgDelete" value="world" <?php if($checked == 2) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|World") ?></label>
<?php if(!$sg->gallery->isRoot()): ?>
<label for="sgIhrDelete"><input type="radio" class="radio" id="sgIhrDelete" name="sgDelete" value="inherit" <?php if($checked == 0) echo 'checked="true" '; ?>/> <?php echo $sg->translator->_g("permissions|Inherit") ?></label>
<?php endif; ?>
</div></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/editprofile.tpl.php
0,0 → 1,27
<h1><?php echo $sg->translator->_g("Edit Profile"); ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<table class="formTable">
<input type="hidden" name="action" value="saveprofile" />
<input type="hidden" name="user" value="<?php echo $sg->user->username; ?>" />
<tr>
<td><?php echo $sg->translator->_g("Username"); ?></td>
<td><strong><?php echo $sg->user->username; ?></strong></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Email"); ?></td>
<td><input type="input" name="sgEmail" value="<?php echo $sg->user->email; ?>" /></td>
</tr>
<tr>
<td><?php echo $sg->translator->_g("Full name"); ?></td>
<td><input type="input" name="sgFullname" value="<?php echo $sg->user->fullname; ?>" /></td>
</tr>
<tr><td><?php echo $sg->translator->_g("Description"); ?></td>
<td><input type="input" name="sgDescription" value="<?php echo $sg->user->description; ?>" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/edituser.tpl.php
0,0 → 1,34
<h1><?php echo $sg->translator->_g("User Management"); ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<table class="formTable">
<input type="hidden" name="action" value="saveuser" />
<input type="hidden" name="user" value="<?php echo $_REQUEST["user"]; ?>" />
<?php
$users = $sg->io->getUsers();
for($i=0; $i<count($users); $i++)
if($users[$i]->username == $_REQUEST["user"]) {
$usr = $users[$i];
break;
}
echo "<tr><td>".$sg->translator->_g("Username")."</td><td><strong>".$usr->username."</strong></td></tr>\n";
if($sg->user->isAdmin())
echo "<tr><td>".$sg->translator->_g("Type").'</td><td>'.
'<label for="sgTypeAdmin"><input type="radio" class="radio" id="sgTypeAdmin" name="sgType" value="admin"'.($usr->permissions & SG_ADMIN ? ' checked="true"' : "").' />'.$sg->translator->_g("Administrator")."</label><br />\n".
'<label for="sgTypeUser"><input type="radio" class="radio" id="sgTypeUser" name="sgType" value="user"'. ($usr->permissions & SG_ADMIN ? "" : ' checked="true"').' />'.$sg->translator->_g("User")."</label></td></tr>\n";
if($sg->user->isAdmin())
echo "<tr><td>".$sg->translator->_g("Groups").'</td><td><input type="input" name="sgGroups" value="'.$usr->groups."\" /></td></tr>\n";
echo "<tr><td>".$sg->translator->_g("Email").'</td><td><input type="input" name="sgEmail" value="'.$usr->email."\" /></td></tr>\n";
echo "<tr><td>".$sg->translator->_g("Full name").'</td><td><input type="input" name="sgFullname" value="'.$usr->fullname."\" /></td></tr>\n";
echo "<tr><td>".$sg->translator->_g("Description").'</td><td><input type="input" name="sgDescription" value="'.$usr->description."\" /></td></tr>\n";
if($sg->user->isAdmin() && !$usr->isGuest())
echo "<tr><td>".$sg->translator->_g("Password").'</td><td><input type="input" name="sgPassword" value="**********" /></td></tr>'."\n";
?>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Save Changes") ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/footer.tpl.php
0,0 → 1,10
 
<div id="footer"><p>
<?php echo $sg->allRightsReserved() ?>
<br />
<?php echo $sg->poweredByText() ?>
<?php echo $sg->scriptExecTimeText() ?>
</p></div>
 
</body>
</html>
/photogallery/templates/admin_default/galleryhits.tpl.php
0,0 → 1,25
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink("showgalleryhits")." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink("showgalleryhits"); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink("showgalleryhits"); ?>
</p>
 
<h1><?php echo $sg->gallery->name(); ?></h1>
 
<div class="sgContainer">
<div class="sgContent">
<table class="sgList">
<tr><th><?php echo $sg->translator->_g("Gallery name") ?></th><th><?php echo $sg->translator->_g("hits table|Hits") ?></th><th><?php echo $sg->translator->_g("hits table|Last hit") ?></th><th><?php echo $sg->translator->_g("hits table|Graph") ?></th></tr>
<?php $maxhits = $sg->getMaxHits($sg->gallery->galleries); ?>
<?php foreach($sg->gallery->galleries as $index => $gal): ?>
<tr class="sgRow<?php echo $index%2 ?>">
<td><?php echo $gal->nameLink($gal->isGallery()?"showgalleryhits":"showimagehits"); ?> (<?php echo $gal->idEntities() ?>)</td>
<td align="right"><?php echo $gal->hits; ?></td>
<td align="right" title="<?php echo $gal->lasthit==0 ? "n/a" : date("Y-m-d H:i:s",$gal->lasthit) ?>"><?php echo $gal->lasthit==0 ? "n/a" : date("D j H:i",$gal->lasthit) ?></td>
<td><img src="<?php echo $sg->config->base_url.$sg->config->pathto_admin_template ?>images/graph.gif" height="8" width="<?php echo $maxhits==0 ? "0" : floor(($gal->hits/$maxhits)*300) ?>" alt="" /></td>
</tr>
<?php endforeach; ?>
</table>
</div>
</div>
/photogallery/templates/admin_default/header.tpl.php
0,0 → 1,39
<!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_admin_template ?>main.css" />
<!--
This page was generated by singapore <http://singapore.sourceforge.net>
singapore is free software licensed under the terms of the GNU GPL.
-->
</head>
 
<body>
 
<div id="crumb">
<?php echo $sg->crumbLine() ?>
</div>
 
<div id="header"><img src="<?php echo $sg->config->base_url.$sg->config->pathto_admin_template ?>images/header.gif" alt="<?php echo $sg->config->gallery_name ?>" /></div>
 
<div id="sgAdminBar">
<?php
$sections = $sg->adminLinksArray();
foreach($sections[0] as $text => $url): ?>
<a href="<?php echo $url ?>"><?php echo $text ?></a>
<?php endforeach; ?>
<?php for($i=1;$i<count($sections);$i++): ?>
<span class="sgAdminBarSeparator"></span>
<?php foreach($sections[$i] as $text => $url): ?>
<a href="<?php echo $url ?>"><?php echo $text ?></a>
<?php endforeach; ?>
<?php endfor; ?>
</div>
 
<?php echo $sg->showMessages(); ?>
 
<!-- start of generated content -->
 
/photogallery/templates/admin_default/imagehits.tpl.php
0,0 → 1,24
<p class="sgNavBar sgTopNavBar">
<?php if($sg->gallery->hasPrev()) echo $sg->gallery->prevLink("showimagehits")." | "; ?>
<?php if(!$sg->gallery->isRoot()) echo $sg->gallery->parentLink("showimagehits"); ?>
<?php if($sg->gallery->hasNext()) echo " | ".$sg->gallery->nextLink("showimagehits"); ?>
</p>
 
<h1><?php echo $sg->gallery->name(); ?></h1>
 
<div class="sgContainer">
<div class="sgContent">
<table class="sgList">
<tr><th><?php echo $sg->translator->_g("Image name") ?></th><th><?php echo $sg->translator->_g("hits table|Hits") ?></th><th><?php echo $sg->translator->_g("hits table|Last hit") ?></th><th><?php echo $sg->translator->_g("hits table|Graph") ?></th></tr>
<?php $maxhits = $sg->getMaxHits($sg->gallery->images); ?>
<?php foreach($sg->gallery->images as $index => $img): ?>
<tr class="sgRow<?php echo $index%2 ?>">
<td><?php echo $img->nameLink(); ?> (<?php echo $img->id ?>)</td>
<td align="right"><?php echo empty($img->hits) ? "0" : $img->hits ?></td>
<td align="right" title="<?php echo empty($img->lasthit) ? "n/a" : date("Y-m-d H:i:s",$img->lasthit) ?>"><?php echo empty($img->lasthit) ? "n/a" : date("D j H:i",$img->lasthit) ?></td>
<td><img src="<?php echo $sg->config->base_url.$sg->config->pathto_admin_template ?>images/graph.gif" height="8" width="<?php echo $maxhits==0 ? "0" : floor(($img->hits/$maxhits)*300) ?>" /></td>
</tr>
<?php endforeach; ?>
</table>
</div>
</div>
/photogallery/templates/admin_default/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/admin_default/images/graph.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/admin_default/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/admin_default/index.tpl.php
0,0 → 1,21
<?php
 
/**
* Default singapore admin 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_admin_template."header.tpl.php";
 
//include selected file
include $sg->config->base_path.$sg->config->pathto_admin_template.$sg->includeFile.".tpl.php";
 
//include footer file
include $sg->config->base_path.$sg->config->pathto_admin_template."footer.tpl.php";
 
?>
/photogallery/templates/admin_default/login.tpl.php
0,0 → 1,22
<h1><?php echo $sg->translator->_g("Log In") ?></h1>
 
<p><?php echo $sg->translator->_g("Please enter your admin username and password below.") ?></p>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="login" />
<p>
<?php echo $sg->translator->_g("Username:") ?> <input type="text" name="sgUsername" />
<?php echo $sg->translator->_g("Password:") ?> <input type="password" name="sgPassword" />
<input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Go") ?>" />
</p>
</form>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="login" />
<input type="hidden" name="sgUsername" value="guest" />
<input type="hidden" name="sgPassword" value="password" />
<p>
<?php echo $sg->translator->_g("If you do not have a username then you may log in as a guest."); ?>
<input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Log in as guest"); ?>" />
</p>
</form>
/photogallery/templates/admin_default/main.css
0,0 → 1,231
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, input.checkbox {
border: none;
background-color: #fff;
}
 
input.button {
font-weight: bold;
border: 1px outset #fff;
color: #fff;
background-color: #f60;
}
 
label {
cursor: default;
}
 
 
#header {
}
 
#crumb {
}
 
#footer {
text-align: center;
}
 
a img {
border: 0;
}
 
/* image or gallery name header */
.sgTitle {
margin-bottom: 0;
}
 
/* image or gallery artist subheader */
.sgSubTitle {
margin-top: 0;
}
 
table.sgList {
background-color: #fff;
border: 1px solid #888;
width: 100%
}
 
tr.sgRow0 {
background-color: #f0f0f0;
margin: 1px;
}
 
tr.sgRow1 {
background-color: #e0e0e0;
margin: 1px;
}
 
table.formTable input, table.formTable textarea, table.formTable .inputbox {
width: 500px;
}
 
table.formTable td {
vertical-align: top;
}
 
table.formTable input.radio, table.formTable input.checkbox {
width: auto;
height: auto;
}
 
.sgImageInput {
text-align: center;
padding: 2px;
}
 
#sgAdminMessages {
background-color: #fff;
border: 1px dashed #000;
margin: 1em 0;
padding: 5px;
font-size: x-small;
}
 
#sgAdminMessages li.adminError {
list-style-image: url(images/error.gif);
margin-left: 20px;
}
 
#sgAdminMessages li.adminMessage {
list-style-image: url(images/message.gif);
margin-left: 20px;
}
 
#sgAdminBar {
background-color: #f0f0f0;
border: 1px solid #000;
margin: 1em 0 1em 0;
padding: 5px;
font-size: x-small;
}
 
#sgAdminBar a:link, #sgAdminBar a:visited, #sgAdminBar a:active {
color: #000;
font: x-small Verdana, sans-serif;
position: relative;
left: 1px;
top: 1px;
border: 1px solid #f0f0f0;
text-decoration: none;
padding: 2px;
}
 
#sgAdminBar a:hover {
position: relative;
left: 0px;
top: 0px;
border: 1px solid #000;
color: #000;
background-color: #fff;
}
 
span.sgAdminBarSeparator {
border-left: 1px solid #888;
width: 0px;
margin-right: 4px;
}
 
div.sgNavBar, p.sgNavBar {
text-align: center;
float: right;
}
 
 
div.sgContainer {
clear: both;
text-align: center;
}
 
div.sgTab {
padding: 0.25em;
text-align: left;
}
 
div.sgContent {
background-color: #f0f0f0;
border: 1px solid #000;
padding: 1em;
text-align: left;
}
 
table.sgContent {
margin-left: auto;
margin-right: auto;
}
 
div.sgGallery, div.sgThumbnail {
margin: 0.5em;
padding: 0.5em;
border: 1px solid #888;
background-color: #fff;
}
 
td.sgGalleryThumbnail {
width: 60px;
text-align: center;
}
 
p.sgGalleryTitle a {
font-weight: bold;
}
 
div.sgThumbnail {
float: left;
}
 
div.sgThumbnail table {
width: 110px;
height: 110px;
text-align: center;
vertical-align: middle;
}
 
div.stretcher {
clear: both;
}
 
img.sgImage {
border: 1px solid #000;
}
 
input.sgImageCheckbox {
position: absolute;
float: left;
z-index: 10;
}
/photogallery/templates/admin_default/manageusers.tpl.php
0,0 → 1,34
<h1><?php echo $sg->translator->_g("User Management"); ?></h1>
 
<?php if(!$sg->user->isAdmin()) echo '<p>'.$sg->translator->_g("You must be an administrator to access this area.").'</p>'; ?>
 
<table>
<?php
$users = $sg->io->getUsers();
foreach($users as $usr) {
echo "<tr>\n ";
echo "<td><strong>".$sg->translator->_g("Username")."</strong> ";
if($usr->permissions & SG_SUSPENDED) echo "<strike>";
if($usr->permissions & SG_ADMIN) echo "<u>";
echo $usr->username;
if($usr->permissions & SG_ADMIN) echo "</u>";
if($usr->permissions & SG_SUSPENDED) echo "</strike>";
echo "</td>\n ";
echo "<td><strong>".$sg->translator->_g("Email")."</strong> ".$usr->email."</td>\n ";
echo "<td><strong>".$sg->translator->_g("Full name")."</strong> ".$usr->fullname."</td>\n ";
echo '<td><a href="'.$sg->formatAdminURL("edituser", null, null, null, "&amp;user=".$usr->username).'">'.$sg->translator->_g("edit")."</a></td>\n ";
echo '<td><a href="'.$sg->formatAdminURL("deleteuser", null, null, null, "&amp;user=".$usr->username).'">'.$sg->translator->_g("delete")."</a></td>\n ";
echo '<td><a href="'.$sg->formatAdminURL("suspenduser", null, null, null, "&amp;user=".$usr->username).'">'.($usr->permissions & SG_SUSPENDED ? $sg->translator->_g("unsuspend") : $sg->translator->_g("suspend"))."</a></td>\n";
echo "</tr>\n";
}
 
?>
</table>
 
<h2><?php echo $sg->translator->_g("Create New User"); ?></h2>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post"><p>
<?php echo $sg->translator->_g("Username"); ?>
<input type="hidden" name="action" value="newuser" />
<input type="input" name="user" />
<input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Create"); ?>" />
</p></form>
/photogallery/templates/admin_default/menu.tpl.php
0,0 → 1,15
<p><?php echo $sg->translator->_g("Please choose an option:") ?></p>
 
<ul>
<li><a href="<?php echo $sg->formatAdminURL("view") ?>"><?php echo $sg->translator->_g("Manage galleries and images") ?></a></li>
<li><a href="<?php echo $sg->formatAdminURL("showgalleryhits") ?>"><?php echo $sg->translator->_g("View gallery hits") ?></a></li>
<?php if(!$sg->user->isGuest()): ?>
<li><a href="<?php echo $sg->formatAdminURL("editpass") ?>"><?php echo $sg->translator->_g("Change password") ?></a></li>
<li><a href="<?php echo $sg->formatAdminURL("editprofile") ?>"><?php echo $sg->translator->_g("My profile") ?></a></li>
<?php endif; ?>
<?php if($sg->user->isAdmin()): ?>
<li><a href="<?php echo $sg->formatAdminURL("manageusers") ?>"><?php echo $sg->translator->_g("Manage users") ?></a></li>
<?php /*<li><a href="<?php echo $sg->formatAdminURL("purgecache") ?>"><?php echo $sg->translator->_g("Purge cached thumbnails") ?></a></li>*/ ?>
<?php endif; ?>
<li><a href="<?php echo $sg->formatAdminURL("logout") ?>"><?php echo $sg->translator->_g("Log out of admin") ?></a></li>
</ul>
/photogallery/templates/admin_default/multimove.tpl.php
0,0 → 1,29
<h1><?php echo $sg->translator->_g("Move or Copy Items") ?></h1>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="multimove" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
<?php
if(isset($_REQUEST["sgGalleries"]))
foreach($_REQUEST["sgGalleries"] as $name => $value)
echo "<input type=\"hidden\" name=\"sgGalleries[$name]\" value=\"$value\" />\n";
elseif(isset($_REQUEST["sgImages"]))
foreach($_REQUEST["sgImages"] as $name => $value)
echo "<input type=\"hidden\" name=\"sgImages[$name]\" value=\"$value\" />\n";
?>
<p>Select the gallery to which you wish to move or copy the selected items.</p>
 
<p><select name="sgMoveTarget">
<?php
foreach($sg->allGalleriesArray() as $gal)
//if(strpos($gal->id, $sg->gallery->id) !== 0)
echo '<option value="'.$gal->idEntities().'">'.$gal->idEntities()." (".$gal->name().")</option>\n";
?>
</select></p>
<p>
<label><input type="radio" name="sgMoveType" value="copy" checked="true" /> <?php /*"*/ echo $sg->translator->_g("Copy") ?></label>
<label><input type="radio" name="sgMoveType" value="move" /> <?php /*"*/ echo $sg->translator->_g("Move") ?></label>
</p>
<p><input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|OK") ?>">
<input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|Cancel") ?>"></p>
</form>
/photogallery/templates/admin_default/newgallery.tpl.php
0,0 → 1,18
<h1><?php echo $sg->translator->_g("New Gallery") ?></h1>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="action" value="addgallery" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
 
<table class="formTable">
<tr>
<td><?php echo $sg->translator->_g("Identifier") ?></td>
<td><input type="text" name="newgallery" value="" size="40" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Create") ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/newimage.tpl.php
0,0 → 1,52
<h1><?php echo $sg->translator->_g("New Image") ?></h1>
 
<?php if($sg->gallery->hasChildGalleries()) echo "<p>".$sg->translator->_g("This image will not be visible because this gallery is not an album: it contains child galleries.")."</p>"; ?>
 
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" method="post">
<input type="hidden" name="action" value="addimage" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
 
<table class="formTable">
<tr>
<td><input type="radio" class="radio" id="sgLocationChoiceSingle" name="sgLocationChoice" value="single" checked="true" /></td>
<td colspan="2"><label for="sgLocationChoiceSingle"><?php echo $sg->translator->_g("Upload single file") ?></label></td>
<tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("Image file to upload:") ?></td>
<td><input type="file" name="sgImageFile" value="" size="40" /></td>
</tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("Identifier:") ?></td>
<td>
<label for="sgNameChoiceSame"><input type="radio" class="radio" id="sgNameChoiceSame" name="sgNameChoice" value="same" checked="true" /> <?php echo $sg->translator->_g("Use filename of uploaded file.") ?></label><br />
<label for="sgNameChoiceNew"><input type="radio" class="radio" id="sgNameChoiceNew" name="sgNameChoice" value="new" /> <?php echo $sg->translator->_g("Specify different filename:") ?></label><br />
<input type="text" name="sgFileName" value="" size="40" /></td>
</tr>
<tr>
<td><input type="radio" class="radio" id="sgLocationChoiceMulti" name="sgLocationChoice" value="multi" /></td>
<td colspan="2"><label for="sgLocationChoiceMulti"><?php echo $sg->translator->_g("Upload multiple files") ?></label></td>
<tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("ZIP file to upload:") ?></td>
<td><input type="file" name="sgArchiveFile" value="" size="40" /></td>
</tr>
<tr>
<td><input type="radio" class="radio" id="sgLocationChoiceRemote" name="sgLocationChoice" value="remote"></td>
<td colspan="2"><label for="sgLocationChoiceRemote"><?php echo $sg->translator->_g("Add remote file") ?></label></td>
<tr>
<tr>
<td></td>
<td><?php echo $sg->translator->_g("URL of image:") ?></td>
<td><input type="text" name="sgImageURL" value="http://" size="40" /></td>
</tr>
<tr>
<td colspan="2"></td>
<td><input type="submit" class="button" value="<?php /*"*/ echo $sg->translator->_g("Create"); ?>" /></td>
</tr>
</table>
</form>
/photogallery/templates/admin_default/view.tpl.php
0,0 → 1,9
<?php
if($sg->isImagePage()) {
include $sg->config->base_path.$sg->config->pathto_admin_template."viewimage.tpl.php";
} elseif($sg->isAlbumPage()) {
include $sg->config->base_path.$sg->config->pathto_admin_template."viewalbum.tpl.php";
} else {
include $sg->config->base_path.$sg->config->pathto_admin_template."viewgallery.tpl.php";
}
?>
/photogallery/templates/admin_default/viewalbum.tpl.php
0,0 → 1,37
<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>
 
<div class="sgContainer">
<div class="sgTab"><?php echo $sg->galleryTab()?></div>
<div class="sgContent">
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="hidden" name="action" value="multi" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities(); ?>" />
<div class="sgGallery">
<?php echo $sg->translator->_g("With selected:"); ?>
<?php /* <input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Copy or move"); ?>" /> */ ?>
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Delete"); ?>" />
</div>
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->imageCountSelected()+$sg->gallery->startat; $index++): ?>
<div class="sgThumbnail">
<input type="checkbox" class="sgImageCheckbox checkbox" name="sgImages[]" value="<?php echo $sg->gallery->images[$index]->idEntities(); ?>" />
<table><tr><td>
<?php echo $sg->gallery->images[$index]->thumbnailLink() ?>
</td></tr></table>
</div>
<?php endfor; ?>
<div class="stretcher"></div>
</div>
</form>
</div>
<p>
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
<strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
<?php endforeach; ?>
</p>
/photogallery/templates/admin_default/viewgallery.tpl.php
0,0 → 1,51
<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>
 
<div class="sgContainer">
<div class="sgTab"><?php echo $sg->galleryTab()?></div>
<div class="sgContent">
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="hidden" name="action" value="multi" />
<input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEncoded(); ?>" />
<div class="sgGallery">
<?php echo $sg->translator->_g("With selected:"); ?>
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Copy or move"); ?>" />
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Delete"); ?>" />
<input type="submit" class="button" name="subaction" value="<?php echo $sg->translator->_g("Re-index"); ?>" />
</div>
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?>
<div class="sgGallery"><table>
<tr valign="top">
<td><input type="checkbox" class="checkbox" name="sgGalleries[]" value="<?php echo $sg->gallery->galleries[$index]->idEntities(); ?>" /></td>
<td class="sgGalleryThumbnail"><?php echo $sg->gallery->galleries[$index]->thumbnailHTML() ?></td>
<td>
<?php echo $sg->gallery->galleries[$index]->name() ?> - <?php echo $sg->gallery->galleries[$index]->itemCountText() ?><br />
<?php
echo '<a href="'.$sg->formatAdminURL("view",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|View gallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("editgallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Edit gallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("editpermissions",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Access control")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("deletegallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Delete gallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("newgallery",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|New subgallery")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("reindex",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Re-index gallery")."</a> |\n";
//echo '<a href="'.$sg->formatAdminURL("newimage",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|New image")."</a> |\n";
echo '<a href="'.$sg->formatAdminURL("changethumbnail",$sg->gallery->galleries[$index]->idEncoded()).'">'.$sg->translator->_g("admin bar|Change thumbnail")."</a>\n";
?>
</td>
</tr>
</table></div>
<?php endfor; ?>
</form>
</div>
</div>
<p>
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
<strong><?php echo $key ?>:</strong> <?php echo $value ?><br />
<?php endforeach; ?>
</p>
/photogallery/templates/admin_default/viewimage.tpl.php
0,0 → 1,30
<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>
<div class="sgContainer">
<table class="sgContent"><tr><td><div class="sgContent">
<?php echo $sg->image->imageHTML() ?>
</div></td></tr></table>
</div>
<div class="sgNavBar sgTopNavBar"><p>
<?php if($sg->image->hasPrev()) echo $sg->image->prevLink()." | "; ?>
<?php echo $sg->image->parentLink(); ?>
<?php if($sg->image->hasNext()) echo " | ".$sg->image->nextLink(); ?>
</p></div>
 
<p><em><?php echo $sg->image->name() ?></em><?php echo $sg->image->byArtistText() ?></p>
<p>
<?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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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/default/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
/photogallery/templates/index.php
0,0 → 1,0
<?php header("Location: ../") ?>
/photogallery/templates/modern/admin.tpl.php
--- templates/modern/album.tpl.php (nonexistent)
+++ templates/modern/album.tpl.php (revision 239)
@@ -0,0 +1,29 @@
+ <h2><?php echo $sg->gallery->name(); ?></h2>
+ <h4><?php echo $sg->gallery->byArtistText(); ?></h4>
+</div>
+
+<div id="sgMain-nav">
+</div>
+
+<div id="sgContent">
+ <p class="sgTab"><?php echo $sg->galleryTab(); ?></p>
+
+ <div class="sgAlbum">
+ <?php for($index = $sg->gallery->startat; $index < $sg->gallery->imageCountSelected()+$sg->gallery->startat; $index++): ?>
+ <?php echo $sg->gallery->images[$index]->thumbnailLink(); ?>
+ <?php endfor; ?>
+ <div class="sgFoot"></div>
+ </div>
+
+ <p class="sgTab"><?php echo $sg->galleryTab(); ?></p>
+
+ <div class="sgDetailsList">
+ <dl>
+ <?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
+ <dt><?php echo $key; ?>:</dt><dd><?php echo $value; ?></dd>
+ <?php endforeach; ?>
+ </dl>
+ </div>
+
+</div>
+
/photogallery/templates/modern/css/color_bob.css
0,0 → 1,173
/*
Black on Black CSS for Modern - Singapore Template v1.3 (www.sgal.org)
by Ross Howard (www.abitcloser.com)
*/
 
/* Structure */
body {
background-color: #111;
}
 
#sgContainer {
border-right-color: #0A0A0A;
border-left-color: #222;
border-top-color: #222;
border-bottom-color: #0A0A0A;
background-color: #1A1A1A;
}
 
#sgHeader {
border-right-color:#111;
}
 
#sgMain-nav {
border-right-color: #111;
color: #444;
}
 
#sgContent {
border-right-color: #111;
border-bottom-color: #111;
border-top-color: #1A1A1A;
}
 
#sgUpdate {
background-color: #222;
border-bottom-color: #111;
color: #666;
}
 
/* Page Elements */
 
.sgCrumb {
color: #444;
}
 
.sgGallery {
border-color: #1E1E1E;
background-color: #111;
}
 
.sgAlbum {
border-color:#1E1E1E;
background-color: #111;
}
 
.sgImageBox {
background-color: #111;
border-color: #222;
border-right-color: #111;
border-bottom-color: #111;
}
 
img.sgImage {
background: #111 url(../img/loader_b.gif) center bottom no-repeat;
}
 
/* Typography */
 
h2 {
color: #DDD;
}
 
h4 {
color: #666;
}
 
p {
color: #666;
}
 
.sgGallery p.sgCount {
color: #AAA;
}
 
.sgPreview p {
color: #999;
}
 
#sgFooter p {
color: #333;
}
 
a {
color: #22628D;
}
 
#sgFooter a {
color: #22628D;
}
 
/* Links and Thumbnails */
 
.sgAlbum a img {
background-color: #181818;
border-color: #222;
}
 
.sgGallery a img {
background-color: #181818;
border-color: #222;
}
 
a:hover img.sgThumbnailAlbum, a:hover img.sgThumbGallery {
border-color: #333;
}
 
.sgPreview a img {
border-color: #333;
color: #CCC;
}
 
.sgPreview a:hover img, .sgPreview a:hover img.sgThumbnailPreviewCurrent{
border-color: #666;
}
 
/* Details */
 
dl {
color: #999;
}
 
dt {
color: #666;
}
 
/* Forms */
 
select{
color: #666;
}
 
/* In-Image Rollovers */
 
.sgImageBox a {
background-color: #111;
}
 
.sgImageBox a.prev {
border-right-color: #111;
}
 
.sgImageBox a.thumb {
border-bottom-color: #111;
}
 
.sgImageBox a.next {
border-left-color: #111;
}
 
.sgImageBox a.control {
border-top-color: #111;
}
 
/* Slideshow */
 
body#slideshow {
background-color: #000;
}
 
#slideshow div.sgImageBox {
background-color: #000;
}
/photogallery/templates/modern/css/color_wob.css
0,0 → 1,173
/*
White on Black CSS for Modern - Singapore Template v1.3 (www.sgal.org)
by Ross Howard (www.abitcloser.com)
*/
 
/* Structure */
body {
background-color: #111;
}
 
#sgContainer {
border-right-color: #0A0A0A;
border-left-color: #222;
border-top-color: #222;
border-bottom-color: #0A0A0A;
background-color: #FFF;
}
 
#sgHeader {
border-right-color: #C3C3C3;
}
 
#sgMain-nav {
border-right-color: #C3C3C3;
color: #999;
}
 
#sgContent {
border-right-color: #C3C3C3;
border-bottom-color: #C3C3C3;
border-top-color: #FFF;
}
 
#sgUpdate {
background-color: #222;
border-bottom-color: #111;
color: #666;
}
 
/* Page Elements */
 
.sgCrumb {
color: #999;
}
 
.sgGallery {
border-color: #CCC;
background-color: #EEE;
}
 
.sgAlbum {
border-color: #CCC;
background-color: #EEE;
}
 
.sgImageBox {
background-color: #EEE;
border-color: #DDD;
border-right-color: #AAA;
border-bottom-color: #AAA;
}
 
img.sgImage {
background: #EEE url(../img/loader_w.gif) center bottom no-repeat;
}
 
/* Typography */
 
h2 {
color: #555;
}
 
h4 {
color: #666;
}
 
p {
color: #666;
}
 
.sgGallery p.sgCount {
color: #AAA;
}
 
.sgPreview p {
color: #999;
}
 
#sgFooter p {
color: #333;
}
 
a {
color: #29A9FF;
}
 
#sgFooter a {
color: #22628D;
}
 
/* Links and Thumbnails */
 
.sgAlbum a img {
background-color: #FFF;
border-color: #DDD;
}
 
.sgGallery a img {
background-color: #FFF;
border-color: #DDD;
}
 
a:hover img.sgThumbnailAlbum, a:hover img.sgThumbGallery {
border-color: #BBB;
}
 
.sgPreview a img {
border-color: #CCC;
color: #CCC;
}
 
.sgPreview a:hover img, .sgPreview a:hover img.sgThumbnailPreviewCurrent{
border-color: #29A9FF;
}
 
/* Details */
 
dl {
color: #999;
}
 
dt {
color: #666;
}
 
/* Forms */
 
select{
color: #666;
}
 
/* In-Image Rollovers */
 
.sgImageBox a {
background-color: #222;
}
 
.sgImageBox a.prev {
border-right-color: #111;
}
 
.sgImageBox a.thumb {
border-bottom-color: #111;
}
 
.sgImageBox a.next {
border-left-color: #111;
}
 
.sgImageBox a.control {
border-top-color: #111;
}
 
/* Slideshow */
 
body#slideshow {
background-color: #000;
}
 
#slideshow div.sgImageBox {
background-color: #000;
}
/photogallery/templates/modern/css/color_wow.css
0,0 → 1,173
/*
White on White CSS for Modern - Singapore Template v1.3 (www.sgal.org)
by Ross Howard (www.abitcloser.com)
*/
 
/* Structure */
body {
background-color: #E5E5E5;
}
 
#sgContainer {
border-right-color: #DEDEDE;
border-left-color: #DEDEDE;
border-top-color: #DEDEDE;
border-bottom-color: #DEDEDE;
background-color: #FFF;
}
 
#sgHeader {
border-right-color: #C3C3C3;
}
 
#sgMain-nav {
border-right-color: #C3C3C3;
color: #999;
}
 
#sgContent {
border-right-color: #C3C3C3;
border-bottom-color: #C3C3C3;
border-top-color: #FFF;
}
 
#sgUpdate {
background-color: #FFF;
border-bottom-color: #DEDEDE;
color: #666;
}
 
/* Page Elements */
 
.sgCrumb {
color: #999;
}
 
.sgGallery {
border-color: #CCC;
background-color: #EEE;
}
 
.sgAlbum {
border-color: #CCC;
background-color: #EEE;
}
 
.sgImageBox {
background-color: #EEE;
border-color: #DDD;
border-right-color: #AAA;
border-bottom-color: #AAA;
}
 
img.sgImage {
background: #EEE url(../img/loader_w.gif) center bottom no-repeat;
}
 
/* Typography */
 
h2 {
color: #555;
}
 
h4 {
color: #666;
}
 
p {
color: #666;
}
 
.sgGallery p.sgCount {
color: #AAA;
}
 
.sgPreview p {
color: #999;
}
 
#sgFooter p {
color: #AAA;
}
 
a {
color: #29A9FF;
}
 
#sgFooter a {
color: #29A9FF;
}
 
/* Links and Thumbnails */
 
.sgAlbum a img {
background-color: #FFF;
border-color: #DDD;
}
 
.sgGallery a img {
background-color: #FFF;
border-color: #DDD;
}
 
a:hover img.sgThumbnailAlbum, a:hover img.sgThumbGallery {
border-color: #BBB;
}
 
.sgPreview a img {
border-color: #CCC;
color: #CCC;
}
 
.sgPreview a:hover img, .sgPreview a:hover img.sgThumbnailPreviewCurrent{
border-color: #29A9FF;
}
 
/* Details */
 
dl {
color: #999;
}
 
dt {
color: #666;
}
 
/* Forms */
 
select{
color: #666;
}
 
/* In-Image Rollovers */
 
.sgImageBox a {
background-color: #222;
}
 
.sgImageBox a.prev {
border-right-color: #111;
}
 
.sgImageBox a.thumb {
border-bottom-color: #111;
}
 
.sgImageBox a.next {
border-left-color: #111;
}
 
.sgImageBox a.control {
border-top-color: #111;
}
 
/* Slideshow */
 
body#slideshow {
background-color: #000;
}
 
#slideshow div.sgImageBox {
background-color: #000;
}
/photogallery/templates/modern/css/ie.css
0,0 → 1,46
/* IE Hacks */
body {
text-align: center;
}
 
.sgAlbum, #sgContent, h3, .sgGallery p {
height: 1%;
}
 
#sgContent div.sgImageWrapper {
text-align: center;
}
 
p.sgTab {
position: relative;
margin-top: 0px;
}
 
#sgContainer {
text-align: left;
}
 
.sgAlbum a {
display: inline;
margin: 0 18px 20px 19px;
}
 
.sgPreview a:hover img, a:hover img.sgThumbnailAlbum, a:hover img.sgThumbGallery {
filter: alpha(opacity=100);
}
 
img.sgThumbnailPreviewCurrent {
filter: alpha(opacity=60);
}
 
.sgImageBox a {
filter: alpha(opacity=0);
}
 
.sgImageBox a:hover {
filter: alpha(opacity=90);
}
 
.sgGalleryFloat {
display: inline;
}
/photogallery/templates/modern/css/layout.css
0,0 → 1,348
/*
Layout CSS for Modern - Singapore Template v1.3 (www.sgal.org)
by Ross Howard (www.abitcloser.com)
*/
 
/* Structure */
/* For editing and customisation read these notes */
body {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif; /* Set the font here to effect entire template */
}
 
#sgContainer {
width: 740px; /* This is the page width, if you want a full-screen/liquid layout use 'auto' */
border-right: 4px solid; /* If you use full-screen/liquid layout you probably want to set all borders to 'none' */
border-left: 1px solid;
border-top: 1px solid;
border-bottom: 4px solid;
margin: 24px auto 0 auto;
}
 
#sgHeader {
border-right: 1px solid;
}
 
#sgOptions {
text-align: right;
float: right;
margin: 6px 0 0 0;
}
 
#sgMain-nav {
border-right: 1px solid;
padding-top: 12px;
margin: 0 0 0 26px;
font-size: 11px;
}
 
#sgContent {
border-right: 1px solid;
border-bottom: 1px solid;
border-top: 1px solid;
}
 
#sgFooter {
width: 760px;
margin: 16px auto 0 auto;
padding: 0 0 16px 0;
text-align: center;
}
 
#sgUpdate {
font-size: 11px;
padding: 8px 0 8px 0;
text-align: center;
border-bottom: 1px solid;
}
 
 
/* Page Elements */
 
.sgCrumb {
font-size: 11px;
line-height: 16px;
padding: 20px 0 16px 26px;
}
 
.sgGallery {
border: 1px solid;
margin: 18px 24px 24px 24px;
padding: 12px 12px 10px 12px;
}
 
.sgGalleryFloat {
margin: 18px 4px 12px 24px;
float: left;
width: 304px;
}
 
.sgAlbum {
border: 1px solid;
margin: 18px 24px 32px 24px;
padding: 22px 0 0 0;
clear: both;
}
 
.sgImageBox {
margin: 24px auto 24px auto;
position: relative;
font-size: 11px;
padding: 5px;
border: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
}
 
img.sgImage {
display: block;
}
 
.sgPreview {
text-align: center;
margin: 28px 0 24px 0;
}
 
.sgFoot {
clear: both;
}
 
 
/* Typography */
 
h2 {
font-size: 32px;
line-height: 32px;
font-weight: normal;
margin: 0 200px 0 24px;
padding: 0;
}
 
h3 {
font-size: 16px;
line-height: 18px;
font-weight: normal;
margin: 0px 0 6px 130px;
padding: 0;
}
 
h4 {
font-size: 11px;
line-height: 12px;
font-weight: normal;
margin: 0 0 0 26px;
padding: 0;
}
 
p {
font-size: 11px;
line-height: 16px;
margin: 6px 16px 4px 16px;
}
 
.sgGallery p {
border: none;
margin: 0 0 4px 130px;
}
 
#sgFooter p {
text-align: center;
}
 
p.sgLinks {
margin: 24px 0 -38px 24px;
padding: 0 0 6px 0;
}
 
p.sgTab {
line-height: 16px;
text-align: right;
margin: -16px 32px 0 24px;
padding: 0 0 0 0;
clear: both;
}
 
p.sgTab a{
margin-right: 0px;
}
 
p.sgFullsize {
text-align: center;
margin: 0;
padding: 0;
}
 
a {
text-decoration: none;
}
 
a:hover {
text-decoration: underline;
}
 
/* Links and Thumbnails */
 
.sgAlbum a {
width: 134px; /* This equals template.ini 'thumb_width_album' + padding and borders of inside img */
height: 134px; /* This equals template.ini 'thumb_height_album' + padding and borders of inside img */
float: left;
text-align: center;
margin: 0 19px 20px 19px;
}
 
.sgAlbum a img {
padding: 16px; /* 16px x 2 = 32px */
border: 1px solid ; /* 1px x 2 = 2px = 34px */
}
 
.sgGallery a img {
padding: 16px;
border: 1px solid;
float: left;
margin: 0 -150px 0 0;
}
 
a:hover img.sgThumbnailAlbum, a:hover img.sgThumbGallery {
border: 1px solid;
}
 
.sgPreview a {
border: none;
}
 
.sgPreview a img {
border: 1px solid;
margin: 0 4px 0 4px;
padding: 2px;
}
 
img.sgThumbnailPreviewCurrent {
opacity: .6;
}
 
.sgPreview a:hover img, .sgPreview a:hover img.sgThumbnailPreviewCurrent{
border: 1px solid;
opacity: 1;
}
 
/* Details */
 
dl {
font-size: 11px;
line-height: 16px;
margin: 12px 64px 24px 64px;
padding: 0;
text-align: center;
}
 
dt {
display: inline;
margin: 0 4px 0 0;
padding: 0;
}
 
dd {
display: inline;
margin: 0;
padding: 0;
}
 
/* Forms */
 
#sgOptions form{
border: none;
margin: 0 0 0 12px;
padding: 0 12px 0 0;
font-size: 10px;
display: inline;
}
 
input {
font-size: 10px;
margin: 12px 0 0 0;
}
 
select{
font-size: 10px;
}
 
/* Utility */
 
.clear {
display: block;
clear:both;
float: none;
}
 
/* In-Image Rollovers */
 
.sgImageBox a {
display: block;
position: absolute;
text-indent: -3000px;
font-size: 15px;
opacity: .0;
width: 80px;
text-align: center;
}
 
.sgImageBox a:hover {
opacity: .9;
text-indent: 0px;
text-decoration: none;
}
 
.sgImageBox a span{
display: block;
}
 
.sgImageBox a.thumb span, .sgImageBox a.control span{
margin-top: 22px;
}
 
.sgImageBox a.prev {
top: 5px;
left: 5px;
border-right: 1px solid;
}
 
.sgImageBox a.thumb {
top: 5px;
left: 5px;
height: 60px;
border-bottom: 1px solid;
}
 
.sgImageBox a.next {
top: 5px;
right: 5px;
border-left: 1px solid;
}
 
.sgImageBox a.control {
left: 5px;
bottom: 4px;
height: 60px;
border-top: 1px solid;
}
 
/* Slideshow */
 
body#slideshow div.sgImageWrapper{
position: absolute;
top: 50%;
left: 0px;
width: 100%;
}
 
#slideshow div.sgImageBox {
margin: 0 auto 0 auto;
font-size: 11px;
padding: 5px;
border: none;
}
 
body#slideshow div img{
margin: 0px auto 0px;
}
/photogallery/templates/modern/footer.tpl.php
0,0 → 1,17
<!-- start of footer.tpl.php -->
</div>
<div id="sgFooter">
<p>
<?php echo $sg->allRightsReserved(); ?>
<?php echo $sg->licenseText(); ?>
<br />
<?php echo $sg->poweredByText(); ?>
<?php echo $sg->scriptExecTimeText(); ?> |
<?php echo $sg->adminLink(); ?>
</p>
</div>
<?php
if (!defined('EXTERNAL')) {
echo '</body>
</html>';
}
/photogallery/templates/modern/gallery.tpl.php
0,0 → 1,41
<h2><?php echo $sg->gallery->name(); ?></h2>
<h4><?php echo $sg->gallery->byArtistText(); ?></h4>
</div>
 
<div id="sgMain-nav">
<?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(); ?>
</div>
 
<div id="sgContent">
<p class="sgTab"><?php echo $sg->galleryTab(); ?></p>
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?>
<div class="sgGallery <?php if ($sg->config->thumb_float_gallery == 1) { echo 'sgGalleryFloat';} ?>">
<?php echo $sg->gallery->galleries[$index]->thumbnailLink(); ?>
<h3 title="View Gallery"><?php echo $sg->gallery->galleries[$index]->nameLink(); ?></h3>
<p><?php echo $sg->gallery->galleries[$index]->summary(); ?></p>
<p class="sgCount"><?php echo $sg->gallery->galleries[$index]->itemCountText(); ?></p>
<?php if ($sg->config->show_slideshowURL == 1) { ?>
<?php if ($sg->gallery->galleries[$index]->hasImages() && !$sg->gallery->galleries[$index]->hasChildGalleries()) { ?>
<p><a href="<?php echo $sg->gallery->galleries[$index]->images[0]->URL(); if (!strstr($sg->gallery->galleries[$index]->images[0]->URL(), '?')) { echo '?'; } else { echo '&'; } ?>action=slideshow">View Slideshow</a></p>
<?php } ?>
<?php } ?>
<div class="sgFoot"></div>
</div>
<?php // The number below equals the number of boxes before a new line starts. 1 will never echo the clear
if($index % 2) {echo '<div class="clear"></div>';} ?>
<?php endfor; ?>
 
<p class="sgTab"><?php echo $sg->galleryTab(); ?></p>
<div class="sgDetailsList">
<dl>
<?php foreach($sg->gallery->detailsArray() as $key => $value): ?>
<dt><?php echo $key; ?>:</dt><dd><?php echo $value; ?></dd>
<?php endforeach; ?>
</dl>
</div>
 
</div>
/photogallery/templates/modern/header.tpl.php
0,0 → 1,36
<?php
if (!defined('EXTERNAL')) {
echo '<!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>'.$sg->config->gallery_name.' - '.$sg->pageTitle().'</title>
<style type="text/css">@import url('.$sg->config->base_url.$sg->config->pathto_current_template.'css/layout.css);</style>
<style type="text/css">@import url('.$sg->config->base_url.$sg->config->pathto_current_template.'css/color_'.$sg->config->template_scheme.'.css);</style>
<!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="'.$sg->config->base_url.$sg->config->pathto_current_template.'css/ie.css"><![endif]-->
<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" />
'.$sg->navigationLinks().'</head>
<body>
';
}
if (!isset($_GET["gallery"]) && $sg->config->update_check == 1 && $sg->isLoggedIn()) {
$handle = fopen($sg->config->update_url."update.php", "r");
$buffer = fgets($handle);
$thisBuffer = str_replace(' ', '', $buffer);
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>'; };
fclose($handle);
}
?>
 
<!--
This page was generated by singapore <http://singapore.sourceforge.net>
singapore is free software licensed under the terms of the GNU GPL.
 
Modern Template <? echo $sg->config->current_version ?> by Ross Howard
http://www.abitcloser.com/projects/singapore
-->
<div id="sgContainer">
<div id="sgHeader">
<div id="sgOptions"><?php echo $sg->languageFlipper(); ?><?php echo $sg->templateFlipper(); ?></div>
<div class="sgCrumb"><?php echo $sg->crumbLine(); ?></div>
<!-- end of header.tpl.php -->
/photogallery/templates/modern/image.tpl.php
0,0 → 1,36
<h2><?php echo $sg->image->name(); ?></h2>
<h4><?php echo $sg->image->byArtistText(); ?></h4>
</div>
<div id="sgContent">
 
<div class="sgImageWrapper">
<div class="sgImageBox" style="width: <?php echo $sg->image->width(); ?>px; ">
<?php echo $sg->image->imageHTML() ?>
<a class="thumb" style="width: <?php echo $sg->image->width().'px;" href="'.$sg->image->parent->URL().'"><span>'.$sg->translator->_g("image|Thumbnails").'</span></a>'; ?>
<?php if($sg->image->hasPrev()) {echo '<a class="prev" style="height:'.$sg->image->height().'px;" href="'.$sg->image->prevURL().'"><span style="margin-top:'.floor(($sg->image->height())/2).'px;">'.$sg->translator->_g("image|Previous").'</span></a>'; } ?>
<?php if($sg->image->hasNext()) {echo '<a class="next" style="height:'.$sg->image->height().'px;" href="'.$sg->image->nextURL().'"><span style="margin-top:'.floor(($sg->image->height())/2).'px;">'.$sg->translator->_g("image|Next").'</span></a>'; } ?>
</div>
</div>
 
<?php if ($sg->config->show_fullsizeURL == 1) { ?>
<p class="sgFullsize"><a href="<?php echo $sg->image->realURL(); ?>"><?php echo $sg->translator->_g("image|View Full Size Image"); ?></a> <a href="<?php echo $sg->image->realURL(); ?>" target="_new">[+]</a></p>
<?php } ?>
 
<div class="sgDetailsList">
<dl>
<?php foreach($sg->image->detailsArray() as $key => $value): ?>
<dt><?php echo $key; ?>:</dt><dd><?php echo $value; ?></dd>
<?php endforeach; ?>
</dl>
</div>
 
<div class="sgPreview">
<?php echo $sg->previewThumbnails(); ?>
<p>
<?php if($sg->image->hasPrev()) echo "&#8249; ".$sg->image->prevLink()." &nbsp;&nbsp; "; ?>
<?php echo $sg->image->parentLink(); ?>
<?php if($sg->image->hasNext()) echo " &nbsp;&nbsp; ".$sg->image->nextLink()." &#8250;"; ?>
</p>
</div>
</div>
<?php echo $sg->imageMap() ?>
/photogallery/templates/modern/img/loader_b.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/modern/img/loader_w.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/modern/index.tpl.php
0,0 → 1,49
<?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 external
if($sg->action == 'slideshow') {$embed = true;}
 
//include header file
if ($embed == false) {
include $sg->config->base_path.$sg->config->pathto_current_template."header.tpl.php";
}
 
//watch actions and pagetypes
switch($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 file
include $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 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
if ($embed == false) {
include $sg->config->base_path.$sg->config->pathto_current_template."footer.tpl.php";
}
?>
/photogallery/templates/modern/readme.txt
0,0 → 1,60
Modern - singapore template v1.3.2
by Ross Howard (www.abitcloser.com/projects/singapore)
 
Modern is a lightweight xHTML/CSS template for singapore.
 
It includes gallery, album and image pages, and also has
a built-in slideshow, and full-size image pop-up ability.
 
It uses common naming conventions (albeit with an sg prefix)
and a clean div structure to allow you to easily and simply customise
it to suit your needs.
 
It supports both fixed-width, and scaling page sizes, and is intended to
be web standard compliant and render correctly on a wide range of browsers.
These include Mozilla/Firefox 1.5, Safari, Opera and IE6.
 
Modern comes standard with a default 'black on black' colour scheme, but also
includes CSS files for 'white on black' and 'white on white'.
 
By default, Modern uses the 'Arial, Helvetica, sans-serif;' font family, as
declared for the body CSS. Simply changing this one line will effect the
entire template.
 
If you make any changes to template.ini please make sure to check the CSS file
too, in case you need to adjust page or thumbnail block widths.
 
TODO - Future Versions
 
Add Javascript UI library
Add AJAX Slideshow
 
CHANGELOG
 
1.3.2 - NEW RSS included as <link> in each page - Uses RSS template
1.3.2 - NEW Update check system checks for new version of Modern when logged in and viewing root public page
1.3.2 - NEW versioning number system
 
1.3 - FIX stop slideshow link for galleries with child galleries
1.3 - FIX template.ini thumb_force_size renamed to thumb_crop_
1.3 - FIX CSS image urls
1.3 - FIX Slideshow rollovers wrong size with resized images
1.3 - FIX slideshow links for galleries with no images
1.3 - Rewrote CSS to separate structure from colour
 
1.2 - Added 'Loading' GIF
1.2 - Added Play/Pause for Slideshow
1.2 - All text now utilised translator
1.2 - Added ability to use old image map in image page (not in slideshow) but have set it as off in template.ini which overwrites singapore.ini
1.2 - Rewrite URL coding to work without mod_rewrite and handles variable stack detection in URL
1.2 - Set colour scheme to 'black on black' by default, can be set via template.ini
1.2 - Added ability to float galleries next to each other via template.ini
1.2 - Added simple HTML slideshow that can be enabled via template.ini
1.2 - Added link to full size image when current image is resized, can enabled via template.ini
1.2 - Added rollover behaviour for image navigation which replaces imagemap
 
1.1 - Added support for external.php and prefixed selectors with sg
 
1.0 - Added IE conditional comments
 
0.9 - Original working build
/photogallery/templates/modern/slideshow.tpl.php
0,0 → 1,34
<!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->translator->_g("image|Slideshow").' - '.$sg->pageTitle(); ?></title>
<style type="text/css">@import url("<?php echo $sg->config->base_url.$sg->config->pathto_current_template.'css/layout.css");</style>'; ?>
<style type="text/css">@import url("<?php echo $sg->config->base_url.$sg->config->pathto_current_template.'css/color_'.$sg->config->template_scheme.'.css");</style>'; ?>
<!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="<?php echo $sg->config->base_url.$sg->config->pathto_current_template; ?>css/ie.css"><![endif]-->
<?php if($sg->image->hasNext() && !isset($control)) {
echo '<meta http-equiv="refresh" content="5;url='.$sg->image->nextURL('slideshow').'" />';
} ?>
</head>
<body id="slideshow">
<!--
This page was generated by singapore <http://singapore.sourceforge.net>
singapore is free software licensed under the terms of the GNU GPL.
-->
<div class="sgImageWrapper">
<div class="sgImageBox" style="width: <?php echo $sg->image->width(); ?>px; margin-top:-<?php echo floor($sg->image->height()/2); ?>px;" title="<?php foreach($sg->image->detailsArray() as $key => $value): ?><?php echo $key; ?>: <?php echo $value; ?><?php endforeach; ?>">
<?php echo $sg->image->imageHTML() ?>
<a class="thumb" style="width: <?php echo $sg->image->width(); ?>px;" href="<?php echo $sg->image->parent->URL().'"><span>'.$sg->translator->_g("image|Thumbnails").'</span></a>'; ?>
<?php if($sg->image->hasPrev()) {echo '<a class="prev" style="height:'.$sg->image->height().'px;" href="'.$sg->image->prevURL(); if (!strstr($sg->image->prevURL(), '?')) { echo '?'; } else { echo '&'; } echo 'action=slideshow"><span style="margin-top:'.floor(($sg->image->height())/2).'px;">'.$sg->translator->_g("image|Previous").'</span></a>';}?>
<?php if($sg->image->hasNext()) {echo '<a class="next" style="height:'.$sg->image->height().'px;" href="'.$sg->image->nextURL(); if (!strstr($sg->image->nextURL(), '?')) { echo '?'; } else { echo '&'; } echo 'action=slideshow"><span style="margin-top:'.floor(($sg->image->height())/2).'px;">'.$sg->translator->_g("image|Next").'</span></a>';}?>
<?php if (!isset($control)) {
echo '<a class="control" style="width:'.$sg->image->width().'px;" href="'.$sg->image->URL(); if (!strstr($sg->image->URL(), '?')) { echo '?'; } else { echo '&'; } echo 'action=slideshow&control=pause"><span>'.$sg->translator->_g("image|Pause").'</span></a>';
}
else {
echo '<a class="control" style="width:'.$sg->image->width().'px;" href="'.$sg->image->URL(); if (!strstr($sg->image->URL(), '?')) { echo '?'; } else { echo '&'; } echo 'action=slideshow"><span>'.$sg->translator->_g("image|Play").'</span></a>';
}
?>
</div>
</div>
</body>
</html>
/photogallery/templates/modern/template.ini
0,0 → 1,69
;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_force_size_* option (see below).
;
;thumb_height_*
; Height in pixels of thumbnails generated by the script.
; This option is affected by the thumb_force_size_* option (see below).
;
;thumb_force_size_*
; 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
 
template_scheme = bob
;bob - black on black, wob - white on black, wow - white on white
imagemap_navigation = off
; typically set in singapore.ini but set here to stop cursor behaviour
 
thumb_width_gallery = 80
thumb_height_gallery = 80
thumb_force_size_gallery = off
thumb_number_gallery = 10
;Maximum number of galleries to show on one gallery page.
thumb_float_gallery = on
;Float gallery blocks side-by-side
 
thumb_width_album = 100
thumb_height_album = 100
thumb_force_size_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_force_size_preview = off
thumb_number_preview = 3
;Maximum number of preview thumbnails to display (including
;current image). An odd number is usually preferred.
 
show_fullsizeURL = on
;Turn this on to display link to the full size image
 
show_slideshowURL = on
;Turn this on to show a link to slideshow on gallery page
 
thumb_width_image = 700
thumb_height_image = 500
 
;Modern Update Checker - Connects to my site to check for new version
update_check = yes
update_url = http://www.abitcloser.com/files/
current_version = modern-v1.3.2
/photogallery/templates/rss/index.tpl.php
0,0 → 1,56
<?php
 
/**
* RSS 2.0 output for singapore.
*
* @author Ross Howard <abitcloser.com
* @copyright (c)2006 Tamlyn Rhodes
* @version 0.8
*/
 
if(headers_sent())
die("ERROR: Unable to send XML content-type header.");
else
header("Content-type: application/rss+xml; charset=".$sg->character_set);
 
echo '<?xml version="1.0" encoding="ISO-8859-1"?>'; ?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title><?php echo $sg->gallery->name(); ?></title>
<link><?php echo "http://".$_SERVER['HTTP_HOST'].($sg->config->use_mod_rewrite ? '' : dirname($_SERVER['PHP_SELF']).'/').str_replace("template=rss", "", $sg->gallery->URL()); ?></link>
<description><?php echo $sg->gallery->name(); ?> Feed</description>
<?php if(($timestamp = @strtotime($sg->gallery->date())) !== false && $timestamp != -1)
echo '<pubDate>'.date('r', $timestamp).'</pubDate>'; ?>
<generator>http://www.sgal.org/</generator>
<?php if($sg->isAlbumPage()) { ?>
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->imageCountSelected()+$sg->gallery->startat; $index++): ?>
<item>
<title><?php echo $sg->gallery->images[$index]->name; ?></title>
<link><?php echo "http://".$_SERVER['HTTP_HOST'].str_replace("?template=rss", "", $sg->gallery->images[$index]->url()); ?></link>
<?php if(($timestamp = @strtotime($sg->gallery->images[$index]->date())) !== false && $timestamp != -1)
echo '<pubDate>'.date('r', $timestamp).'</pubDate>'; ?>
<dc:creator><?php echo $sg->gallery->images[$index]->artist(); ?></dc:creator>
<description>
<![CDATA[ <?php echo $sg->gallery->images[$index]->description(); ?> ]]>
</description>
</item>
<?php endfor; ?>
<?php } elseif($sg->isGalleryPage()) { ?>
<?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?>
<item>
<title><![CDATA[<?php echo $sg->gallery->galleries[$index]->name(); ?> ]]></title>
<link><?php echo "http://".$_SERVER['HTTP_HOST'].str_replace("?template=rss", "", $sg->gallery->galleries[$index]->url()); ?></link>
<?php if(($timestamp = @strtotime($sg->gallery->date())) !== false && $timestamp != -1)
echo '<pubDate>'.date('r', $timestamp).'</pubDate>'; ?>
<dc:creator><?php echo $sg->gallery->galleries[$index]->artist(); ?></dc:creator>
<description>
<![CDATA[ <?php echo $sg->gallery->galleries[$index]->description(); ?>]]>
</description>
</item>
<?php endfor; ?>
<?php } ?>
</channel>
</rss>
/photogallery/templates/rss/template.ini
0,0 → 1,10
 
thumb_number_gallery = 100
;Maximum number of gallery items to show in one feed.
 
thumb_number_album = 100
;Maximum number of image items to show in one feed.
track_views = false
;Turn off hit logging as we don't want to count every hit
;to the RSS feed