Jan Dittberner
fcea03a800
* gallery.ini: - remove theme specific configuration - add default theme name * includes/galleryfunctions.php: - implement theme initialization - configure common parameters from theme * includes/theme.class.php: - implement a simple theme class * index.php: - assign $gallery to template * themes/default_horizontal/theme.ini: - add theme specific configuration * themes/default_horizontal/theme.php: - use $content['gallery'] instead of undefined $gallery
94 lines
No EOL
2.6 KiB
PHP
94 lines
No EOL
2.6 KiB
PHP
<?php
|
|
/**
|
|
* @file Startseite für ScrollingJQueryGallery. Diese Datei erledigt
|
|
* die Ausgabe im Browser.
|
|
*
|
|
* @author Jan Dittberner <jan@dittberner.info>, Jeremias Arnstadt
|
|
* <douth024@googlemail.com>
|
|
*
|
|
* @version $Id$
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
/**
|
|
* Inkludiert die Funktionsbibliothek.
|
|
*/
|
|
require('includes/galleryfunctions.php');
|
|
|
|
/**
|
|
* Name der aktuellen Galerie.
|
|
*/
|
|
$gallery = getCurrentGallery();
|
|
|
|
/**
|
|
* Informationen zu den Thumbnail-Bildern der aktuellen Galerie.
|
|
*/
|
|
$thumbinfo = getThumbNailInfo($gallery);
|
|
|
|
require('includes/template.class.php');
|
|
|
|
$template = new Template();
|
|
|
|
$scripts = array('js/jquery.js',
|
|
'js/jquery.colorBlend.js',
|
|
'js/jquery.lightbox.js',
|
|
'scripts/ourhandlers.js');
|
|
$styles = array('css/jquery.lightbox.css');
|
|
|
|
$inlinestyles = sprintf("\n#scrollable { width:%dpx; }\n", $thumbinfo[0]);
|
|
|
|
$inlinestyles .= <<<EOD
|
|
a {
|
|
font-size: 9px;
|
|
}
|
|
a:link {
|
|
text-decoration: none;
|
|
}
|
|
a:visited {
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: none;
|
|
}
|
|
a:active {
|
|
text-decoration: none;
|
|
}
|
|
EOD;
|
|
|
|
$template->assign('scripts', $scripts);
|
|
$template->assign('styles', $styles);
|
|
$template->assign('inlinestyle', $inlinestyles);
|
|
$template->assign('title', getGalleryTitle($thumbinfo));
|
|
$template->assign('gallerylinks', getGalleryLinks());
|
|
$template->assign('thumbnails', getAllThumbnails($thumbinfo));
|
|
$template->assign('firstpreview', getFirstPreview($thumbinfo));
|
|
$template->assign('firstdescription', getFirstDescription($thumbinfo));
|
|
$template->assign('lang', 'de');
|
|
$template->assign('themepath', 'themes/default_horizontal');
|
|
$template->assign('gallery', $gallery);
|
|
|
|
$template->display('themes/default_horizontal/theme.php');
|
|
|
|
?>
|