Dokumentations- und Codestylearbeiten sowie Funktionserweiterung
* Die Funktion getGalleryLinks() in includes/galleryfunctions.php liefert die Menüeinträge und in index.php werden diese gerendert (fixes #16) * Der PHP-Code wurde so formatiert, dass phpcs --standard=Zend keine Fehler mehr findet (fixes #3) * Der PHP-Code wurde vollständig mit Doxygen dokumentiert und eine Doxygen-Konfiguration in doc/doxygen.conf hinterlegt (fixes #27)
This commit is contained in:
parent
e06f95874b
commit
a86aa84b6b
5 changed files with 1663 additions and 89 deletions
109
index.php
109
index.php
|
@ -1,53 +1,55 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright (c) 2008 Jan Dittberner <jan@dittberner.info>
|
||||
* Jan Dittberner IT-Consulting & -Solutions
|
||||
* Cottbuser Str. 1, D-01129 Dresden
|
||||
*
|
||||
* Copyright (c) 2008 Jeremias Arnstadt <douth024@googlemail.com>
|
||||
*
|
||||
* 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/>.
|
||||
*
|
||||
* Version: $Id$
|
||||
/**
|
||||
* @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 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();
|
||||
|
||||
// Name des Menüpunktes
|
||||
$menupunkt = "Beispielbilder 1";
|
||||
|
||||
// greift auf die Funktionen der ausgelagerten Datei um die Thumbnails
|
||||
// einzulesen
|
||||
include ("includes/galleryfunctions.php");
|
||||
|
||||
$gallery = getCurrentGallery();
|
||||
/**
|
||||
* Informationen zu den Thumbnail-Bildern der aktuellen Galerie.
|
||||
*/
|
||||
$thumbinfo = getThumbNailInfo($gallery);
|
||||
|
||||
// bezieht sich auf die Hauptmenükategorie (für Anzeige von aktivem
|
||||
// Link notwendig)
|
||||
$kategorie = ($bilder_kat = 1);
|
||||
|
||||
// bezieht sich auf die Submenükategorie (für Anzeige von aktivem Link
|
||||
// notwendig)
|
||||
$nav_auswahl = ($bilder_kat_sub = 1);
|
||||
|
||||
// bezieht sich auf das Auswahlmenü
|
||||
$aquarelle = ($menu = 14);
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!DOCTYPE HTML PUBLIC
|
||||
"-//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Bilderframework</title>
|
||||
|
@ -83,15 +85,23 @@ a:active {
|
|||
<!-- container -->
|
||||
<div id="container">
|
||||
<div id="content">
|
||||
<div id="menu"><? getGalleryLinks(); ?></div>
|
||||
<div id="menu"><?php
|
||||
foreach (getGalleryLinks() as $data) {
|
||||
if ($data['gallery'] == $gallery) {
|
||||
$active = ' class="active"';
|
||||
}
|
||||
printf('<a href="%s"%s>%s</a>', $data['url'], $active, $data['label']);
|
||||
} ?></div>
|
||||
<div id="content_container">
|
||||
<div id="slider">
|
||||
<div id="arrleft"><img src="css/grafiken/aro-lft.png" alt="nach links" width="10" height="65" /></div>
|
||||
<div id="arrleft"><img src="css/grafiken/aro-lft.png" alt="nach links"
|
||||
width="10" height="65" /></div>
|
||||
<div id="imgscroller"><div id="scrollable"><?php
|
||||
// zeigt die eingelesenen Thumnails an
|
||||
showThumbNails($thumbinfo);
|
||||
?></div></div>
|
||||
<div id="arrright"><img src="css/grafiken/aro-rt.png" alt="nach rechts" width="10" height="65" /></div>
|
||||
<div id="arrright"><img src="css/grafiken/aro-rt.png" alt="nach rechts"
|
||||
width="10" height="65" /></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content_sub">
|
||||
|
@ -102,7 +112,10 @@ a:active {
|
|||
?></div>
|
||||
</div>
|
||||
<div id="content_nav">
|
||||
<img id="backbtn" src="css/grafiken/back.jpg" alt="back" class="back" width="10" height="10" top="0"><img id="fwdbtn" src="css/grafiken/next.jpg" alt="next" class="next" width="10" height="10" top="0">
|
||||
<img id="backbtn" src="css/grafiken/back.jpg" alt="back" class="back"
|
||||
width="10" height="10" top="0"><img id="fwdbtn"
|
||||
src="css/grafiken/next.jpg" alt="next" class="next" width="10"
|
||||
height="10" top="0">
|
||||
</div>
|
||||
<div class="imgdescription" id="imagedescription"><?php
|
||||
// liest die Bildbeschreibung für das jeweilige Bild (wenn definiert)
|
||||
|
|
Reference in a new issue