File indexing completed on 2024-12-29 05:24:38

0001 <?php
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  **/
0022 
0023 $helperImage = new Default_View_Helper_Image();
0024 ?>
0025 <div id="slideshow-container">
0026 
0027     <div id="slides">
0028         <?php
0029         $i = 1;
0030         foreach ($this->galleryPictures as $picture): ?>
0031             <img rel="<?php echo $i; ?>"
0032                  src="<?php echo $helperImage->Image($picture, array('width' => '770', 'height' => '540')); ?>"/>
0033             <?php
0034             $i++;
0035         endforeach;
0036         ?>
0037     </div>
0038 
0039     <div id="slideshow-controls">
0040 
0041         <div id="arrows">
0042             <a id="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
0043             <a id="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
0044         </div>
0045 
0046         <div id="navigation">
0047             <?php
0048             $i = 1;
0049             foreach ($this->galleryPictures as $picture): ?>
0050                 <a rel="<?php echo $i; ?>">
0051                     <span></span>
0052                     <figure>
0053                         <img
0054                             src="<?php echo $helperImage->Image($picture, array('width' => '100', 'height' => '100')); ?>"/>
0055                     </figure>
0056                 </a>
0057                 <?php
0058                 $i++;
0059             endforeach;
0060             ?>
0061         </div>
0062 
0063     </div>
0064 
0065 </div>
0066 
0067 <script type="text/javascript">
0068     $(window).load(function () {
0069         var slideShowInterval;
0070         SlideShowRender.setup();
0071         ProductSlideShow.setup();
0072     });
0073 
0074 
0075 </script>