Commits

Anonymous committed f437319

Added random tilt effect to photos.

Comments (0)

Files changed (1)

site/views/album/tmpl/default.php

 $maxPhotosPerPage = $this->params->get('flickrMaxPhotosPerPage');
 $currentPage = $db->getEscaped(JRequest::getVar('page'));
 $totPages = ceil ($this->numPhotos / $maxPhotosPerPage);
+$tiltArray=array("itiltleft", "itiltnone", "itiltright");
 
 $db =& JFactory::getDBO();
 
 	echo ">";
 	echo "<img ";
 	if ($this->params->get('flickrInstantEnabled') == '1')
-		echo " class=\"instant\" ";
+		echo " class=\"instant " . $tiltArray[array_rand($tiltArray)] . "\" ";
 	echo "src='" . $photo['thumbnailURL'] . "' alt='". $photo['photoTitle'] . "' /></a>";
 	echo "</td>";
 	if ( ($i + $this->params->get('flickrMaxPhotosPerRow') + 1) % $this->params->get('flickrMaxPhotosPerRow') == 0)