diff -ruN components/com_phocagallery_2.5.0/views/detail/tmpl/default.php components/com_phocagallery/views/detail/tmpl/default.php --- components/com_phocagallery_2.5.0/views/detail/tmpl/default.php 2009-07-15 10:47:17.000000000 -0400 +++ components/com_phocagallery/views/detail/tmpl/default.php 2009-07-14 23:41:40.000000000 -0400 @@ -1,11 +1,8 @@ tmpl['largeheight'] + 6 ; - ?>
- - -
+ + + - + diff -ruN components/com_phocagallery_2.5.0/views/detail/tmpl/default_slideshowjs.php components/com_phocagallery/views/detail/tmpl/default_slideshowjs.php --- components/com_phocagallery_2.5.0/views/detail/tmpl/default_slideshowjs.php 2009-07-15 10:47:18.000000000 -0400 +++ components/com_phocagallery/views/detail/tmpl/default_slideshowjs.php 2009-07-15 10:32:08.000000000 -0400 @@ -85,8 +85,34 @@ fadeshow.prototype.populateslide=function(picobj, picindex){ var slideHTML="" if (this.theimages[picindex][1]!="") /*if associated link exists for image*/ -slideHTML='' -slideHTML+='
item->linkthumbnailpath, ''); ?>tmpl['displaydescriptiondetail'] == 1) { ?> -
+
item->description ?>
' +slideHTML='' +slideHTML+=''; +tmpl['displaydescriptiondetail'] == 1) { +?> + if (this.theimages[picindex][3]!="") { /*if image has an associated comment*/ + slideHTML+='' + + '' + } + +slideHTML+='
'; +tmpl['displaydescriptiondetail'] == 2) { +?> + if (this.theimages[picindex][3]!="") { /*if image has an associated comment*/ + slideHTML+='
' + this.theimages[picindex][3] + '
'; + } + +slideHTML+='
' + + + '
'+ + this.theimages[picindex][3]+'
' if (this.theimages[picindex][1]!="") /*if associated link exists for image*/ slideHTML+='
' picobj.innerHTML=slideHTML diff -ruN components/com_phocagallery_2.5.0/views/detail/tmpl/default_slideshow.php components/com_phocagallery/views/detail/tmpl/default_slideshow.php --- components/com_phocagallery_2.5.0/views/detail/tmpl/default_slideshow.php 2009-07-15 10:47:17.000000000 -0400 +++ components/com_phocagallery/views/detail/tmpl/default_slideshow.php 2009-07-15 10:29:03.000000000 -0400 @@ -1,14 +1,21 @@ tmpl['displaydescriptiondetail'] == 1) { + $largeHeight = $this->tmpl['largeheight'] + $this->tmpl['descriptiondetailheight']; +} +else { + $largeHeight = $this->tmpl['largeheight']; +} ?>
- - -
+ + + diff -ruN administrator/components/com_phocagallery_2.5.0/libraries/phocagallery/render/renderdetailbutton.php administrator/components/com_phocagallery/libraries/phocagallery/render/renderdetailbutton.php --- administrator/components/com_phocagallery_2.5.0/libraries/phocagallery/render/renderdetailbutton.php 2009-07-15 10:54:51.000000000 -0400 +++ administrator/components/com_phocagallery/libraries/phocagallery/render/renderdetailbutton.php 2009-07-15 10:22:38.000000000 -0400 @@ -152,22 +152,32 @@ $jsSlideshowData['files'] = ''; //Get filename of all photos - $query = "SELECT filename as filename FROM #__phocagallery WHERE catid=".(int) $catid." AND published=1 ORDER BY ".$imageOrdering; + $query = "SELECT filename as filename, title, description FROM #__phocagallery WHERE catid=".(int) $catid." AND published=1 ORDER BY ".$imageOrdering; $db->setQuery($query); $filenameAll = $db->loadObjectList(); $countImg = 0; if (!empty($filenameAll)) { foreach ($filenameAll as $key => $value) { + + $titleDesc = ''; + if ($params->get( 'display_title_description', 0 ) == 1) { + $titleDesc .= $value->title; + if ($value->description != '' && $titleDesc != '') { + $titleDesc .= ' - '; + } + } + $titleDesc = $titleDesc . $value->description; $fileThumbnail = PhocaGalleryFileThumbnail::getThumbnailName($value->filename, 'large'); if (JFile::exists($fileThumbnail->abs)) { - $jsSlideshowData['files'] .= 'fadeimages['.$countImg.']=["'. JURI::base(true) . '/' . $fileThumbnail->rel.'", "", ""];'; + $fileThumbnail = JURI::base(true) . '/' . $fileThumbnail->rel; } else { $fileThumbnail = JURI::base(true).'/' . "components/com_phocagallery/assets/images/phoca_thumb_l_no_image." . $this->_formaticon; - $jsSlideshowData['files'] .= 'fadeimages['.$countImg.']=["'.$fileThumbnail.'", "", ""];'; } + + $jsSlideshowData['files'] .= 'fadeimages['.$countImg.']=["'.$fileThumbnail.'", "", "", "'.str_replace('"', '\"', $titleDesc).'"];'."\n"; $countImg++; } }