No changes between revisions
/photogallery/templates/modern/admin.tpl.php |
---|
--- album.tpl.php (nonexistent) |
+++ 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 "‹ ".$sg->image->prevLink()." "; ?> |
<?php echo $sg->image->parentLink(); ?> |
<?php if($sg->image->hasNext()) echo " ".$sg->image->nextLink()." ›"; ?> |
</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 |