<?php
/*
# ------------------------------------------------------------------------
# Extensions for Joomla 2.5.x - Joomla 3.x
# ------------------------------------------------------------------------
# Copyright (C) 2009-2014 za-studio.net, za-studio.ru. All Rights Reserved.
# @license - PHP files are GNU/GPL V2.
# Author: Za Studio
# Websites:  http://www.za-studio.net
# Date modified: 10/03/2014
# ------------------------------------------------------------------------
*/
    defined( '_JEXEC' ) or die( 'Restricted access' ); 
?>
<div class="wrapper_s3d<?php echo $moduleclass_sfx;?>" style="max-width:<?php echo $width;?>px; <?php echo $backgroud; ?>">

                            <ul id="sb-slider" class="sb-slider">
                                    <?php
                                    foreach ($images as $image) {
                                    ?>    
                                    <li>
                                        <?php 
                                        if  ($image['link']  != '') {
                                            echo "<a href='".$image['link']."' target='".$linktarget."'>";
                                        }    
                                        ?>
                                        <img src="<?php echo $image['path']; ?>" alt=""/>
                                        <?php echo (($image['link']  != '') ? "</a>":"");
                                        if ($image['description'] != '') {
                                        ?>
                                            <div class="sb-description">
                                                    <h3><?php echo $image['description'];?></h3>
                                            </div>
                                        <?php };?>
                                    </li> 
                                    <?php
                                    };
                                    ?>
                            </ul>
                            <?php
                            if ($showshadow) { ?>
                            <div id="shadow" class="shadow"></div>
                            <?php }; ?>
                            <?php if ($showarrows) { ?>
                            <div id="nav-arrows" class="nav-arrows">
                                    <a href="#" <?php echo $bgcontrolcolor; ?>>Next</a>
                                    <a href="#" <?php echo $bgcontrolcolor; ?>>Previous</a>
                            </div>
                            <?php } ?>
                            
                            <?php if ($shownavigation) { 
                                echo $bgactive;
                             ?>
                            <div id="nav-dots" class="nav-dots" style="text-align: <?php echo $navigationalign;?>; ">
                                    <?php
                                    $first = TRUE;
                                    foreach ($images as $image) {
                                    ?>    
                                    <span <?php echo (($first) ? " class='nav-dot-current'" :  ""); $first = FALSE; ?> <?php echo $bgcontrolcolor; ?>></span>
                                    <?php
                                    };
                                    ?>
                            </div>
                            <?php }; ?>
<div style="display:none";><?php echo JText::_("Design by <a href='http://www.za-studio.ru' title='Extensions for Joomla' target='_blank'>Za </a><a href='http://www.za-studio.net' title='Extensions, templates for Joomla' target='_blank'>Studio</a>");?></div>
                    </div><!-- /wrapper -->