thibaud-rohmer/PhotoShow — Issue #61: I created a page slide show, if it helps
Author: Cyr-ius
Created: 2011-12-12 17:47:22+00:00
State: open

Download Shadowbox and unzip in root folder Photoshow (http://www.shadowbox-js.com/)
Rename Folder shadowbox-x.x.x. to shadowbox

Create Slideshow.php in src with content

class Slideshow implements HTMLObject {
public $path;

public function __construct($path){
$this->path	=	$path;
}

public function toHTML(){

$this->images = Menu::list_files(dirname($this->path));
echo "\n";
echo "\n";
echo "\n";
$firtline = "path)."_small.jpg' rel='shadowbox[collection]'>Slideshow";
echo $firtline;

echo	"

";
foreach($this->images as $img){
$folder = dirname(File::a2r($img));
$name = File::Name($img);
echo	"";
}
echo "

";
}
}

In ImagePanel.php , add

private $Slideshow;

add function _Construct

///Set the Slideshow
$this->slideshow = new Slideshow($file);

add function toHTML

echo "

\n";
$this->slideshow->toHTML();
echo "

\n";

Voilà si cela peu faire avancer le schimblick