cms_index_widget.index.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="cms-index-module-index1 module-style-<?php echo $value['module_style'];?>">
  3. <div class="cms-index-module-index1-1">
  4. <!-- 封面图 -->
  5. <div class="index1-1-1-content">
  6. <div class="index1-1-1-content-ul-wrap">
  7. <ul id="index1_1_1_content" style="height:260px;" nctype="object_module_edit">
  8. <?php echo html_entity_decode($module_content['index1_1_1_content']);?>
  9. </ul>
  10. </div>
  11. <?php if($output['edit_flag']) { ?>
  12. <div class="cms-index-module-handle"><a nctype="btn_module_image_edit" image_count="2" href="JavaScript:void(0);" class="tip-l" data-title="<?php echo $lang['cms_index_module_image_focus_edit_title'];?>" title="<?php echo $lang['cms_index_module_image_focus_edit_title'];?>"><?php echo $lang['cms_index_module_image_focus_edit'];?></a></div>
  13. <?php } ?>
  14. </div>
  15. <!-- 圈子|专题 -->
  16. <div class="cms-index-module-index1-1-2">
  17. <div id="index1_1_2_content" class="index1-1-2-content" nctype="object_module_edit"> <?php echo html_entity_decode($module_content['index1_1_2_content']);?> </div>
  18. <?php if($output['edit_flag']) { ?>
  19. <div class="cms-index-module-handle">
  20. <a id="btn_module_circle_edit" href="JavaScript:void(0);"><?php echo $lang['cms_index_module_circle_edit'];?></a>
  21. <a class="tip-r" nctype="btn_module_image_edit" image_count="2" href="JavaScript:void(0);" style="left: 90px;" data-title="<?php echo $lang['cms_index_module_image_circle_edit_title'];?>" title="<?php echo $lang['cms_index_module_image_circle_edit_title'];?>"><?php echo $lang['cms_index_module_image_edit'];?></a></div>
  22. <?php } ?>
  23. </div>
  24. </div>
  25. <!-- 文章 -->
  26. <div class="cms-index-module-index1-2">
  27. <div class="cms-index-module-index1-2-1">
  28. <div class="title-bar">
  29. <h3 id="index1_2_1_title" nctype="object_module_edit"><?php echo $module_content['index1_2_1_title'];?></h3>
  30. <?php if($output['edit_flag']) { ?>
  31. <div class="cms-index-module-handle"><a nctype="btn_module_title_edit" href="JavaScript:void(0);" class="tip-r" title="<?php echo $lang['cms_index_module_title_edit'];?>"><?php echo $lang['cms_index_module_title_edit'];?></a></div>
  32. <?php } ?>
  33. </div>
  34. <div class="content-box content-big">
  35. <ul id="index1_2_1_1_content" nctype="object_module_edit">
  36. <?php echo html_entity_decode($module_content['index1_2_1_1_content']);?>
  37. </ul>
  38. <?php if($output['edit_flag']) { ?>
  39. <div class="cms-index-module-handle">
  40. <a nctype="btn_module_article_edit" save_function="article_type_4_save" limit_count="1" href="JavaScript:void(0);" class="tip-l" title="<?php echo $lang['cms_index_module_article_top_edit'];?>"><?php echo $lang['cms_index_module_article_top_edit'];?></a></div>
  41. <?php } ?>
  42. </div>
  43. <div class="content-box content-recommand">
  44. <ul id="index1_2_1_2_content" nctype="object_module_edit">
  45. <?php echo html_entity_decode($module_content['index1_2_1_2_content']);?>
  46. </ul>
  47. <?php if($output['edit_flag']) { ?>
  48. <div class="cms-index-module-handle"><a nctype="btn_module_article_edit" save_function="article_type_6_save" limit_count="4" href="JavaScript:void(0);" class="tip-l" title="<?php echo $lang['cms_index_module_article_edit'];?>"><?php echo $lang['cms_index_module_article_edit'];?></a></div>
  49. <?php } ?>
  50. </div>
  51. </div>
  52. <?php for($i=2; $i<=4; $i++) { ?>
  53. <div class="articel-block">
  54. <div class="title-bar">
  55. <h3 id="index1_2_<?php echo $i;?>_title" nctype="object_module_edit"><?php echo $module_content['index1_2_'.$i.'_title'];?></h3>
  56. <?php if($output['edit_flag']) { ?>
  57. <div class="cms-index-module-handle"><a nctype="btn_module_title_edit" href="JavaScript:void(0);" class="tip-r" title="<?php echo $lang['cms_index_module_title_edit'];?>"><?php echo $lang['cms_index_module_title_edit'];?></a></div>
  58. <?php } ?>
  59. </div>
  60. <div class="content-box content-special">
  61. <ul id="index1_2_<?php echo $i;?>_1_content" nctype="object_module_edit">
  62. <?php echo html_entity_decode($module_content['index1_2_'.$i.'_1_content']);?>
  63. </ul>
  64. <?php if($output['edit_flag']) { ?>
  65. <div class="cms-index-module-handle"><a nctype="btn_module_article_edit" save_function="article_type_3_save" limit_count="1" href="JavaScript:void(0);" class="tip-l" title="<?php echo $lang['cms_index_module_article_image_edit'];?>" ><?php echo $lang['cms_index_module_article_image_edit'];?></a></div>
  66. <?php } ?>
  67. </div>
  68. <div class="content-box content-normal">
  69. <ul id="index1_2_<?php echo $i;?>_2_content" nctype="object_module_edit">
  70. <?php echo html_entity_decode($module_content['index1_2_'.$i.'_2_content']);?>
  71. </ul>
  72. <?php if($output['edit_flag']) { ?>
  73. <div class="cms-index-module-handle"><a nctype="btn_module_article_edit" save_function="article_type_0_save" limit_count="5" href="JavaScript:void(0);"><?php echo $lang['cms_index_module_article_edit'];?></a></div>
  74. <?php } ?>
  75. </div>
  76. </div>
  77. <?php } ?>
  78. </div>
  79. <!-- 商品分类 -->
  80. <div class="cms-index-module-index1-3">
  81. <div class="title-bar">
  82. <h3 id="index1_3_title" nctype="object_module_edit"><?php echo $module_content['index1_3_title'];?></h3>
  83. <?php if($output['edit_flag']) { ?>
  84. <div class="cms-index-module-handle"><a nctype="btn_module_title_edit" href="JavaScript:void(0);" class="tip-r" title="<?php echo $lang['cms_index_module_title_edit'];?>"><?php echo $lang['cms_index_module_title_edit'];?></a></div>
  85. <?php } ?>
  86. </div>
  87. <div class="content-box mall-class">
  88. <div id="index1_3_content" nctype="object_module_edit"> <?php echo html_entity_decode($module_content['index1_3_content']);?> </div>
  89. <?php if($output['edit_flag']) { ?>
  90. <div class="cms-index-module-handle"><a nctype="btn_module_goods_class_edit" href="JavaScript:void(0);"><?php echo $lang['cms_index_module_goods_class_edit'];?></a>
  91. <a class="tip-l" nctype="btn_module_image_edit" image_count="2" href="JavaScript:void(0);" style="right: 90px;" data-title="<?php echo $lang['cms_index_module_image_goods_class_edit_title'];?>" title="<?php echo $lang['cms_index_module_image_goods_class_edit_title'];?>"><?php echo $lang['cms_index_module_image_edit'];?></a></div>
  92. <?php } ?>
  93. <div class="goto-mall"><a href="<?php echo SHOP_SITE_URL;?>" target="_blank"><?php echo $lang['cms_index_enter_shop'];?></a></div>
  94. </div>
  95. <div class="clear"></div>
  96. </div>
  97. </div>
  98. <script type="text/javascript">
  99. $(window).load(function() {
  100. //比例局中裁切显示图片
  101. $(".cms-index-module-index1-1-1 .t-img").VMiddleImg({"width":380,"height":230});
  102. $(".circle-theme-item .t-img").VMiddleImg({"width":160,"height":100});
  103. $(".cms-index-module-index1-2 .t-img").VMiddleImg({"width":120,"height":96});
  104. });
  105. </script>