2008-08-28 00:04:20 +02:00
|
|
|
<?php
|
2009-07-10 22:55:45 +02:00
|
|
|
/**
|
|
|
|
* @file Startseite für ScrollingJQueryGallery. Diese Datei erledigt
|
|
|
|
* die Ausgabe im Browser.
|
|
|
|
*
|
|
|
|
* @author Jan Dittberner <jan@dittberner.info>, Jeremias Arnstadt
|
2009-07-10 23:12:59 +02:00
|
|
|
* <douth024@googlemail.com>
|
|
|
|
*
|
|
|
|
* @version \$Id$
|
2009-07-10 22:55:45 +02:00
|
|
|
*
|
|
|
|
* Copyright (c) 2008, 2009 Jan Dittberner
|
|
|
|
* Jan Dittberner IT-Consulting & -Solutions
|
|
|
|
* Cottbuser Str. 1, D-01129 Dresden
|
|
|
|
*
|
|
|
|
* Copyright (c) 2008 Jeremias Arnstadt
|
|
|
|
*
|
|
|
|
* This file is part of the ScrollingJQueryGallery component of the
|
|
|
|
* gnuviech-server.de Websitetools
|
|
|
|
*
|
|
|
|
* ScrollingJQueryGallery is free software: you can redistribute it
|
|
|
|
* and/or modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation, either version 3 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* ScrollingJQueryGallery is distributed in the hope that it will be
|
|
|
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
|
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with ScrollingJQueryGallery. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2008-08-28 00:04:20 +02:00
|
|
|
|
2009-07-10 22:55:45 +02:00
|
|
|
/**
|
|
|
|
* Inkludiert die Funktionsbibliothek.
|
|
|
|
*/
|
2008-08-28 16:53:31 +02:00
|
|
|
require 'includes/galleryfunctions.php';
|
2008-08-28 00:04:20 +02:00
|
|
|
|
2008-08-28 16:53:31 +02:00
|
|
|
/**
|
|
|
|
* Name der aktuellen Galerie.
|
|
|
|
*/
|
|
|
|
$gallery = getCurrentGallery();
|
2008-08-28 00:04:20 +02:00
|
|
|
|
2008-08-28 16:53:31 +02:00
|
|
|
/**
|
|
|
|
* Informationen zu den Thumbnail-Bildern der aktuellen Galerie.
|
|
|
|
*/
|
2008-08-28 00:04:20 +02:00
|
|
|
$thumbinfo = getThumbNailInfo($gallery);
|
|
|
|
|
|
|
|
?>
|
2009-07-10 22:55:45 +02:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
|
2008-08-28 00:04:20 +02:00
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2008-08-28 20:17:57 +02:00
|
|
|
<title><?php print getGalleryTitle($thumbinfo); ?></title>
|
2008-08-28 01:25:08 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/main.css" />
|
|
|
|
<link rel="stylesheet" href="css/format.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="css/jquery.lightbox.css" type="text/css" />
|
2009-07-10 22:55:45 +02:00
|
|
|
<script src="js/jquery.js" type="text/javascript" ></script>
|
|
|
|
<script src="js/jquery.colorBlend.js" type="text/javascript"></script>
|
|
|
|
<script src="js/jquery.lightbox.js" type="text/javascript" ></script>
|
2008-08-28 01:25:08 +02:00
|
|
|
<script src="scripts/ourhandlers.js" type="text/javascript" ></script>
|
2008-08-28 00:04:20 +02:00
|
|
|
<style type="text/css">
|
|
|
|
<?php
|
|
|
|
printf("#scrollable { width:%dpx; }", $thumbinfo[0]);
|
|
|
|
?>
|
|
|
|
a {
|
|
|
|
font-size: 9px;
|
|
|
|
}
|
|
|
|
a:link {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:visited {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:active {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- container -->
|
|
|
|
<div id="container">
|
|
|
|
<div id="content">
|
2009-07-10 23:12:59 +02:00
|
|
|
<ul id="menu"><?php
|
2008-08-28 16:53:31 +02:00
|
|
|
foreach (getGalleryLinks() as $data) {
|
2009-07-10 23:12:59 +02:00
|
|
|
printf('<li class="menu%s"><a class="menu" href="%s">%s </a></li>',
|
|
|
|
($data['gallery'] == $gallery) ? ' active' : '',
|
2009-07-10 22:55:45 +02:00
|
|
|
$data['url'], $data['label']);
|
2009-07-10 23:12:59 +02:00
|
|
|
} ?></ul>
|
2008-08-28 00:04:20 +02:00
|
|
|
<div id="content_container">
|
|
|
|
<div id="slider">
|
2008-08-28 16:53:31 +02:00
|
|
|
<div id="arrleft"><img src="css/grafiken/aro-lft.png" alt="nach links"
|
|
|
|
width="10" height="65" /></div>
|
2008-08-28 00:04:20 +02:00
|
|
|
<div id="imgscroller"><div id="scrollable"><?php
|
|
|
|
// zeigt die eingelesenen Thumnails an
|
2008-08-28 22:01:14 +02:00
|
|
|
foreach (getAllThumbnails($thumbinfo) as $thumbdata) {
|
|
|
|
printf('<div class="thumbnail"><img src="%s" alt="%s" %s /></div>',
|
|
|
|
$thumbdata['src'], $thumbdata['alt'], $thumbdata['sizes']);
|
|
|
|
}
|
2008-08-28 00:04:20 +02:00
|
|
|
?></div></div>
|
2008-08-28 16:53:31 +02:00
|
|
|
<div id="arrright"><img src="css/grafiken/aro-rt.png" alt="nach rechts"
|
|
|
|
width="10" height="65" /></div>
|
2008-08-28 00:04:20 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="content_sub">
|
|
|
|
<div id="content_main">
|
|
|
|
<div class="bildposition"><?php
|
|
|
|
// bindet die Bilder in den Hauptbereich ein
|
2008-08-28 22:01:14 +02:00
|
|
|
$data = getFirstPreview($thumbinfo);
|
|
|
|
printf('<a class="lightbox" title="%s" href="%s" rel="lightbox">' .
|
|
|
|
'<img id="contentimg" src="%s" alt="%s" %s /></a>',
|
|
|
|
$data['title'], $data['full'], $data['src'], $data['alt'],
|
|
|
|
$data['sizes']);
|
2008-08-28 00:04:20 +02:00
|
|
|
?></div>
|
|
|
|
</div>
|
|
|
|
<div id="content_nav">
|
2009-07-10 22:55:45 +02:00
|
|
|
<img id="backbtn" src="css/grafiken/back.png" alt="back" class="back" width="10" height="10" /><img id="fwdbtn" src="css/grafiken/next.png" alt="next" class="next" width="10" height="10" />
|
2008-08-28 00:04:20 +02:00
|
|
|
</div>
|
|
|
|
<div class="imgdescription" id="imagedescription"><?php
|
|
|
|
// liest die Bildbeschreibung für das jeweilige Bild (wenn definiert)
|
2008-08-28 22:01:14 +02:00
|
|
|
print getFirstDescription($thumbinfo);
|
2008-08-28 00:04:20 +02:00
|
|
|
?></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /container -->
|
|
|
|
</body>
|
2008-08-26 15:10:33 +02:00
|
|
|
</html>
|