Advertisement
Guest User

homeslider.tpl

a guest
Jul 20th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.21 KB | None | 0 0
  1. {*
  2. * 2007-2012 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to license@prestashop.com so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. *  @author PrestaShop SA <contact@prestashop.com>
  21. *  @copyright  2007-2012 PrestaShop SA
  22. *  @version  Release: $Revision: 14973 $
  23. *  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  24. *  International Registered Trademark & Property of PrestaShop SA
  25. *}
  26.  
  27. <!-- Module HomeSlider -->
  28. {if isset($homeslider)}
  29. <script type="text/javascript">
  30. {if isset($homeslider_slides) && $homeslider_slides|@count > 1}
  31.     {if $homeslider.loop == 1}
  32.         var homeslider_loop = true;
  33.     {else}
  34.         var homeslider_loop = false;
  35.     {/if}
  36. {else}
  37.     var homeslider_loop = false;
  38. {/if}
  39. var homeslider_speed = {$homeslider.speed};
  40. var homeslider_pause = {$homeslider.pause};
  41. </script>
  42. {/if}
  43. {if isset($homeslider_slides)}
  44. <ul id="homeslider">
  45. {foreach from=$homeslider_slides item=slide}
  46.     {if $slide.active}
  47.         <li>                                                           
  48.             <a href="{$slide.url}" title="{$slide.description}"><img src="{$smarty.const._MODULE_DIR_}/homeslider/images/{$slide.image}" alt="{$slide.legend}" title="{$slide.description}" height="{$homeslider.height}" width="{$homeslider.width}" /></a>
  49.             <div class="caption">
  50.                 <p class="legend">{$slide.legend}</p>
  51.                 <p class="description">{$slide.description}</p>
  52.                 <a class="leo_shop_now" href="#">{l s='Kup teraz' mod='homeslider'}</a>
  53.             </div>
  54.         </li>
  55.     {/if}
  56. {/foreach}
  57. </ul>
  58. {/if}
  59. <!-- /Module HomeSlider -->
  60. <img src="http://www.iiacanadanationalconference.com/wp-content/uploads/2013/01/test.jpg" alt="Smiley face" height="200" width="200">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement