pshow.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <extend name="Public:base" />
  2. <block name="head_script">
  3. <link rel='stylesheet' href='__PUBLIC__/masterslider/css/masterslider.css' type='text/css' media='all' />
  4. <link rel='stylesheet' href='__PUBLIC__/masterslider/css/ms-showcase2.css' type='text/css' media='all' />
  5. <link rel='stylesheet' href='__PUBLIC__/masterslider/css/masterslider.main.css' type='text/css' media='all' />
  6. <script src="__PUBLIC__/masterslider/js/modernizr-2.6.2.min.js"></script>
  7. <script src='__PUBLIC__/masterslider/js/masterslider.min.js'></script>
  8. <script src='__PUBLIC__/masterslider/js/jquery.easing.min.js'></script>
  9. <script>
  10. var ms_grabbing_curosr='__PUBLIC__/masterslider/images/grab.png',ms_grab_curosr='__PUBLIC__/masterslider/images/grab.png';
  11. </script>
  12. <script type="text/javascript">
  13. $(document).ready(function(){
  14. var slider = new MasterSlider();
  15. slider.setup('masterslider' , {
  16. width:800,
  17. height:800,
  18. space:5,
  19. view:'basic'
  20. });
  21. slider.control('arrows');
  22. slider.control('scrollbar' , {dir:'h'});
  23. slider.control('thumblist' , {autohide:false ,dir:'v',arrows:false});
  24. });
  25. </script>
  26. </block>
  27. <block name="content">
  28. <div class="container clearfix mb20">
  29. <div class="ms-showcase2-template ms-dir-v">
  30. <!-- masterslider -->
  31. <div class="master-slider ms-skin-default" id="masterslider">
  32. <volist name="goods_image" id="d">
  33. <div class="ms-slide"> <img src="__PUBLIC__/masterslider/masterslider/loading-2.gif" data-src="__ROOT__/Uploads/image/{$d.image}" title="{$goods.name}" alt="{$goods.name}" /> <img class="ms-thumb" src="__ROOT__/{$d.thumb}" title="{$goods.name}" alt="{$goods.name}" /> </div>
  34. </volist>
  35. </div>
  36. <!-- end of masterslider -->
  37. </div>
  38. </div>
  39. <div class="container">
  40. <?php if(!empty($goods['summary'])){ ?>
  41. <div class="container well">
  42. <div class="row">
  43. <div class="col-md-12 goods-description"><?php echo htmlspecialchars_decode($goods['summary']); ?></div>
  44. </div>
  45. </div>
  46. <?php } ?>
  47. <div class="container">
  48. <div class="row">
  49. <volist name="other_goods" id="v">
  50. <div class="col-md-2">
  51. <a class="img-thumbnail center-block" href="{:U('/gallery/'.$v['goods_id'])}"><img class="img-responsive center-block" src="__ROOT__/{$v.image}" /></a>
  52. </div>
  53. </volist>
  54. </div>
  55. </div>
  56. </div>
  57. </block>