1: <?php
2: /**
3: * The Ansel_View_Slideshow:: class wraps display of the gallery slideshow.
4: *
5: * @author Chuck Hagenbuch <chuck@horde.org>
6: * @author Michael J. Rubinsky <mrubinsk@horde.org>
7: * @package Ansel
8: */
9: class Ansel_View_Slideshow extends Ansel_View_Image
10: {
11: /**
12: * const'r
13: *
14: */
15: public function __construct($params = array())
16: {
17: parent::__construct($params);
18: Horde::addScriptFile('slideshow.js', 'ansel');
19: }
20:
21: protected function _html()
22: {
23: global $registry, $prefs;
24: $imageIndex = $this->_revList[$this->resource->id];
25: Horde::startBuffer();
26: require ANSEL_TEMPLATES . '/view/slideshow.inc';
27: return Horde::endBuffer();
28: }
29:
30: public function viewType()
31: {
32: return 'Slideshow';
33: }
34:
35: }
36: