Commits

Anonymous committed 3772bf7

Added simple slideshow for photosets.

Comments (0)

Files changed (5)

en-GB.com_joomlaflickr.ini

 JF_PAGE=Page
 JF_PREV=Previous
 JF_NEXT=Next
+JF_SLIDESHOW=Presentazione

it-IT.com_joomlaflickr.ini

 JF_PHOTOS=foto
 JF_PAGE=Pagina
 JF_PREV=Precedente
-JF=Successivo
+JF_NEXT=Successiva
+JF_SLIDESHOW=Slideshow

site/models/joomlaflickr.php

 			$photoObject = array('photoTitle' => $photoTitle, 'photoURL' => $photoURL, 'thumbnailURL' => $thumbnailURL);
 			$photosList[] = $photoObject;
 		}
-		return array('albumTitle' => $albumTitle, 'numPhotos' => $numPhotos, 'photosList' => $photosList);
+		return array('albumId' => $albumId, 'albumTitle' => $albumTitle, 'numPhotos' => $numPhotos, 'photosList' => $photosList);
 	}
 
 }

site/views/album/tmpl/default.php

 
 echo "<h1>" . $this->albumTitle  . "</h1>";
 
-echo JText::_('Jf_album_contains') . " <strong>" . $this->numPhotos . "</strong> " . JText::_('Jf_photos');
+echo JText::_('Jf_album_contains') . " <strong>" . $this->numPhotos . "</strong> " . JText::_('Jf_photos');
+echo " (<a href='http://www.flickr.com/photos/". $this->nsid . "/sets/" . $this->albumId . "/show/" . "'>" . JText::_('Jf_slideshow') . "</a>)";
 
-echo "<div align=center>";
+echo "<div align='center'>";
 
 echo " " . JText::_('Jf_page') . " " . $currentPage . "/" . $totPages . " <br />";
 

site/views/album/view.html.php

 		$this->assignRef( 'params', $params );
 
 		$album = $this->get('Album');
+                $nsid = $this->get('Nsid');
+                $this->assignRef('nsid', $nsid['id']);
 		$this->assignref('albumTitle', $album['albumTitle']);
+		$this->assignref('albumId', $album['albumId']);
 		$this->assignref('numPhotos', $album['numPhotos']);
 		$this->assignref('photosList', $album['photosList']);