74068603c6e2fd79052548c822026a44778198bf.file.index.lbi.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?php /* Smarty version Smarty-3.1.7, created on 2016-12-20 16:40:37
  2. compiled from "D:/phpStudy/WWW_krpano100/template\default\index\index.lbi" */ ?>
  3. <?php /*%%SmartyHeaderCode:215305858ee85900429-68970872%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '74068603c6e2fd79052548c822026a44778198bf' =>
  8. array (
  9. 0 => 'D:/phpStudy/WWW_krpano100/template\\default\\index\\index.lbi',
  10. 1 => 1478172078,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '215305858ee85900429-68970872',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'i' => 0,
  21. 'recommend' => 0,
  22. ),
  23. 'has_nocache_code' => false,
  24. 'version' => 'Smarty-3.1.7',
  25. 'unifunc' => 'content_5858ee85b697b',
  26. ),false); /*/%%SmartyHeaderCode%%*/?>
  27. <?php if ($_valid && !is_callable('content_5858ee85b697b')) {function content_5858ee85b697b($_smarty_tpl) {?><style>
  28. body{
  29. background-color: #efefef;
  30. }
  31. .inline.hidden-xs {
  32. display: inline !important;
  33. }
  34. .chosen_wrap{
  35. }
  36. .img_list{
  37. margin-bottom: 10px;
  38. cursor: pointer;
  39. }
  40. .title_cover{
  41. height: 30px;
  42. background-color: rgba(138,137,137,0.5);
  43. position: absolute;
  44. bottom: 0px;
  45. width: 100%;
  46. color: #fff;
  47. line-height: 30px;
  48. font-size: 14px;
  49. padding-left: 10px;
  50. }
  51. .more{
  52. margin-top: 10px;
  53. text-align: right;
  54. display: block;
  55. }
  56. .of_hide{
  57. display: block;
  58. overflow: hidden;
  59. text-overflow: ellipsis;
  60. }
  61. .padding0{
  62. padding: 0;
  63. }
  64. .cards .card .card-content span{
  65. width: 100%;
  66. height: 20px;
  67. }
  68. .content_nav{
  69. /*margin-top: 18px;*/
  70. }
  71. .content_nav .col-md-2 div{
  72. height: 60px;
  73. line-height: 60px;
  74. text-align: center;
  75. font-size: 23px;
  76. border-radius: 8px;
  77. cursor: pointer;
  78. color:#fff;
  79. }
  80. .content_nav .col-xs-4{
  81. margin-top: 10px;
  82. }
  83. .kf_block{
  84. background-color: #EA644A;
  85. }
  86. .gj_block{
  87. background-color: #F1A325;
  88. }
  89. .ly_block{
  90. background-color: #38B03F;
  91. }
  92. .jz_block{
  93. background-color: #03B8CF;
  94. }
  95. .jy_block{
  96. background-color: #BD7B46;
  97. }
  98. .xw_block{
  99. background-color: #8666B8;
  100. }
  101. </style>
  102. <script>
  103. $(function(){
  104. $("#top_frame").load(function() {
  105. console.log($(this).contents().find("body").height());
  106. $(this).height($(window).height()*0.7);
  107. })
  108. })
  109. </script>
  110. <div class="container">
  111. <div class="row">
  112. <div class="col-md-3">
  113. <h2 class="text-muted">精选全景<small style="margin-left:10px;">优质的全景作品赏析</small></h2>
  114. </div>
  115. </div>
  116. <div class="row chosen_wrap">
  117. <div class="col-md-5" style="height:380px;">
  118. <div id="myNiceCarousel" class="carousel slide" data-ride="carousel">
  119. <!-- 轮播项目 -->
  120. <div class="carousel-inner">
  121. <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['i']->value = 0;
  122. if ($_smarty_tpl->tpl_vars['i']->value<3){ for ($_foo=true;$_smarty_tpl->tpl_vars['i']->value<3; $_smarty_tpl->tpl_vars['i']->value++){
  123. ?>
  124. <div class="item <?php if ($_smarty_tpl->tpl_vars['i']->value==0){?>active<?php }?>">
  125. <a target="_blank" href="/tour/<?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['view_uuid'];?>
  126. ">
  127. <img src="<?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['thumb_path'];?>
  128. " class="img-responsive" style="width: 100%;max-height: 420px;">
  129. </a>
  130. <div class="carousel-caption">
  131. <h3><?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['name'];?>
  132. </h3>
  133. </div>
  134. </div>
  135. <?php }} ?>
  136. </div>
  137. <!-- 项目切换按钮 -->
  138. <a class="left carousel-control" href="#myNiceCarousel" data-slide="prev">
  139. <span class="icon icon-chevron-left"></span>
  140. </a>
  141. <a class="right carousel-control" href="#myNiceCarousel" data-slide="next">
  142. <span class="icon icon-chevron-right"></span>
  143. </a>
  144. </div>
  145. </div>
  146. <div class="col-md-7">
  147. <div class="row chosen_wrap">
  148. <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['i']->value = 3;
  149. if ($_smarty_tpl->tpl_vars['i']->value<9){ for ($_foo=true;$_smarty_tpl->tpl_vars['i']->value<9; $_smarty_tpl->tpl_vars['i']->value++){
  150. ?>
  151. <div class="col-md-4 col-sm-4 col-xs-6 img_list">
  152. <a href="/tour/<?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['view_uuid'];?>
  153. " target="_blank">
  154. <img src="<?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['thumb_path'];?>
  155. " class="img-responsive">
  156. </a>
  157. <div style="position:relative">
  158. <div class="title_cover of_hide"><?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['name'];?>
  159. </div>
  160. </div>
  161. </div>
  162. <?php }} ?>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="row">
  167. <div class="col-xs-12">
  168. <h2 class="text-muted">推荐全景<small style="margin-left:10px;">为您推荐的优质作品</small><a href="/pictures"><small class="text-muted pull-right more">更多>></small></a></h2>
  169. </div>
  170. </div>
  171. <!--一个卡片列表行-->
  172. <div class="row">
  173. <div class="cards" style="margin:0;">
  174. <!--卡片列表循环-->
  175. <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['i']->value = 8;
  176. if ($_smarty_tpl->tpl_vars['i']->value<20){ for ($_foo=true;$_smarty_tpl->tpl_vars['i']->value<20; $_smarty_tpl->tpl_vars['i']->value++){
  177. ?>
  178. <div class="col-md-3 col-sm-3 col-xs-6 col-lg-3">
  179. <div class="card" href="###">
  180. <a target="_blank" href="/tour/<?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['view_uuid'];?>
  181. "><img src="<?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['thumb_path'];?>
  182. " alt="<?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['name'];?>
  183. "></a>
  184. <div class="card-heading">
  185. <div class="col-md-9 col-xs-8 of_hide padding0">
  186. <strong class="text-primary"><?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['name'];?>
  187. </strong>
  188. </div>
  189. <div class="col-md-3 col-xs-4 of_hide padding0">
  190. <div class="pull-right text-danger"><i class="icon-heart-empty"></i> <?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['browsing_num'];?>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="card-content text-muted">
  195. <span class="of_hide"><?php echo $_smarty_tpl->tpl_vars['recommend']->value[$_smarty_tpl->tpl_vars['i']->value]['profile'];?>
  196. </span>
  197. </div>
  198. </div>
  199. </div>
  200. <?php }} ?>
  201. <!--卡片列表循环结束-->
  202. </div>
  203. </div>
  204. <!--一个卡片列表行结束-->
  205. </div><?php }} ?>