Beim HTML-Template habe ich folgende Korrektur gemacht:
Code: Alles auswählen
<script type="text/javascript" src="js/jquery-1.3.js"></script>
<script type="text/javascript" src="js/jquery.galleriffic.js"></script>
<link rel="stylesheet" href="css/galleriffic.css" type="text/css" />
<script type="text/javascript">
document.write("<style type='text/css'>div.gal_navigation{width:{NAVIWIDTH}px;{NAVIPOS}}div.slideshow{{GALLERYSETTINGS}}div.gal_content{width:{CONTENTWIDTH};}div.controls-adv{width:{CONTROLWIDTH};}</style>");
</script>
<div id="gallery-adv" style="{CONTENTPOS}">
<div id="thumbs-adv" class="gal_navigation">
<ul class="thumbs noscript">
<!-- BEGIN:BLOCK -->
<li>
<a class="thumb" href="{HREFRESIZE}" title="{TITLE}">
<img src="{HREFTHUMB}" alt="{TITLE}" />
</a>
<div class="caption">
<div class="download">
<a href="{HREFORIGINAL}">{DOWNLOADORIGINAL}</a>
</div>
<div class="image-title">{TITLE}</div>
<div class="image-desc">{DESCRIPTION}</div>
</div>
</li>
<!-- END:BLOCK -->
</ul>
</div>
{CONTENTTOP}
{CONTENTBOTTOM}
{CLOSEDIV}
</div>
Dadurch ist es möglich, die Bild-Infobox unter die Anzeige zu setzen, wenn Anzeige und Vorschaubilder neben einander sind. Bei mir funktioniert aber der Download noch nicht; Bildbeschreibung und Medienname werden nicht angezeigt; angezeigt wird der Dateiname. Kann mir bitte jemand auf die Sprünge helfen, was ich hier ändern muss.
Die css-Datei ist jetzt so, dass die Bildausrichtung funktioniert; dieses ist bei hochformatigen Bildern nützlich.
Code: Alles auswählen
/*----Content = Bild-Anzeige, Bild-Steuerung, Bild-Infobox-------------*/
div.content {
/* The display of content is enabled by a javascript generated style on the page.
This is so that the slideshow content won't display unless javascript is enabled. */
margin-right:10px;
}
div.content a, div.navigation a {
text-decoration: none;
color: #777;
}
div.content a:focus, div.content a:hover, div.content a:active {
text-decoration: underline;
}
div.controls {
margin-top: 5px;
height: 23px;
}
div.controls a {
padding: 5px;
}
/*---- Start/Stop SlideShow-------------*/
div.ss-controls {
float: left;
font-weight:bold;
}
/*----SlideShow weiter + zurueck-------------*/
div.nav-controls {
float: right;
font-weight:bold;
}
/*----DiasShow-------------*/
div.loader {
background-image: url('loader.gif');
background-repeat: no-repeat;
background-position: center;
width: 550px;
height: 350px
}
div.slideshow {
clear: both;
}
div.slideshow span.image-wrapper {
float: left;
padding-bottom: 12px;
}
div.slideshow a.advance-link {
padding: 2px;
display: block;
border: 1px solid #ccc;
}
div.slideshow img {
border: none;
display: block;
}
/*----BildInfo-Box-------------*/
div.download {
float: right;
font-weight:bold;
}
div.embox {
clear: both;
border: 1px solid #ccc;
background-color: #eee;
padding:12px;
}
div.image-title {
font-weight: bold;
font-size: 12px;
}
div.image-desc {
line-height: 10px;
padding-top: 10px;
}
/*----Vorschau-Bilder-------------*/
div.navigation {
/* The navigation style is set by a javascript generated style on the page.
This is so that the javascript specific styles won't be applied unless javascript is enabled. */
}
ul.thumbs {
clear: both;
margin: 0;
padding: 0;
}
ul.thumbs li {
float: left;
padding: 0;
margin: 5px 10px 5px 0;
list-style: none;
}
a.thumb {
padding: 2px;
display: block;
border: 1px solid #ccc;
}
ul.thumbs li.selected a.thumb {
background: #000;
}
a.thumb:focus {
outline: none;
}
ul.thumbs img {
border: none;
display: block;
}
/*----Anzeige der Seiten der Vorschaubilder-------------*/
div.pagination {
clear: both;
}
div.navigation div.top {
margin-bottom: 12px;
height: 11px;
}
div.navigation div.bottom {
margin-top: 12px;
}
div.pagination a, div.pagination span.current {
display: block;
float: left;
margin-right: 2px;
padding: 4px 7px 2px 7px;
border: 1px solid #ccc;
}
div.pagination a:hover {
background-color: #eee;
text-decoration: none;
}
div.pagination span.current {
font-weight: bold;
background-color: #000;
border-color: #000;
color: #fff;
}
Und im Output des Moduls habe ich diese Zeilen entfernt:
Code: Alles auswählen
if (round($countFiles+1,0)%$numOfThumbs==0 && $countFiles>0 && $countFiles<sizeof($fContent)) $tpl->set('d','MAKENEWLINE','<br clear="all"/>');
else $tpl->set('d','MAKENEWLINE','');