Authored by hf

clear goods list compile php files

1 -<?php return function ($in, $debugopt = 1) {  
2 - $cx = array(  
3 - 'flags' => array(  
4 - 'jstrue' => false,  
5 - 'jsobj' => false,  
6 - 'spvar' => true,  
7 - 'prop' => false,  
8 - 'method' => false,  
9 - 'mustlok' => true,  
10 - 'echo' => false,  
11 - 'debug' => $debugopt,  
12 - ),  
13 - 'constants' => array(),  
14 - 'helpers' => array(),  
15 - 'blockhelpers' => array(),  
16 - 'hbhelpers' => array(),  
17 - 'partials' => array(),  
18 - 'scopes' => array(),  
19 - 'sp_vars' => array('root' => $in),  
20 - 'lcrun' => 'Plugin\LCRun3',  
21 -  
22 - );  
23 -  
24 - return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('new')), $in, false, function($cx, $in) {return ''.' '.((Plugin\LCRun3::ifvar($cx, $in)) ? '  
25 - <div class="good-info" data-id="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('id')), ENT_QUOTES, 'UTF-8').'">  
26 - <div class="tag-container clearfix">  
27 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('tags')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_new')), $in, false, function($cx, $in) {return ' <p class="good-tag new-tag">NEW</p>  
28 -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_advance')), $in, false, function($cx, $in) {return ' <p class="good-tag renew-tag">再到着</p>  
29 -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_discount')), $in, false, function($cx, $in) {return ' <p class="good-tag sale-tag">SALE</p>  
30 -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_yohoood')), $in, false, function($cx, $in) {return ' <div class="good-tag yohood-tag"></div>  
31 -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_limited')), $in, false, function($cx, $in) {return ' <p class="good-tag limit-tag">限量商品</p>  
32 -';}).'';}).' </div>  
33 - <div class="good-detail-img">  
34 - <a class="good-thumb" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'">  
35 - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('thumb')), ENT_QUOTES, 'UTF-8').'">  
36 - </a>  
37 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_soon_sold_out')), $in, false, function($cx, $in) {return ' <p class="few-tag">即将售罄</p>  
38 -';}).' </div>  
39 - <div class="good-detail-text">  
40 - <div class="name">  
41 - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').'</a>  
42 - </div>  
43 - <div class="price">  
44 - <span class="sale-price '.((Plugin\LCRun3::isec($cx, Plugin\LCRun3::v($cx, $in, array('price')))) ? 'no-price' : '').'">¥'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('salePrice')), ENT_QUOTES, 'UTF-8').'</span>  
45 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('price')), $in, false, function($cx, $in) {return ' <span class="market-price">¥'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</span>  
46 -';}).' </div>  
47 - </div>  
48 - </div>  
49 - ' : '').''.'';}).'';  
50 -}  
51 -?>  
@@ -186,6 +186,8 @@ @@ -186,6 +186,8 @@
186 ' : '').' 186 ' : '').'
187 '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('query')))) ? ' <input id="query" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('query')), ENT_QUOTES, 'UTF-8').'> 187 '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('query')))) ? ' <input id="query" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('query')), ENT_QUOTES, 'UTF-8').'>
188 ' : '').' 188 ' : '').'
  189 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('style')))) ? ' <input id="style" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('style')), ENT_QUOTES, 'UTF-8').'>
  190 +' : '').'
189 '.' <div id="suspend-cart" class="suspend-cart"> 191 '.' <div id="suspend-cart" class="suspend-cart">
190 <a href='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('cartUrl')), ENT_QUOTES, 'UTF-8').'> 192 <a href='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('cartUrl')), ENT_QUOTES, 'UTF-8').'>
191 <span class="iconfont">&#xe62c;</span> 193 <span class="iconfont">&#xe62c;</span>
@@ -139,7 +139,7 @@ class TemplateLayout implements View_Interface @@ -139,7 +139,7 @@ class TemplateLayout implements View_Interface
139 // 取得模板的最后修改时间戳 139 // 取得模板的最后修改时间戳
140 $lastModifyTime = filemtime($viewName); 140 $lastModifyTime = filemtime($viewName);
141 // 使用MD5生成唯一的键名 141 // 使用MD5生成唯一的键名
142 - $makeKey = md5($viewName . strval($lastModifyTime)); 142 + $makeKey = md5($viewName . strval($lastModifyTime)); //echo $makeKey;
143 // 模板编译成PHP文件所存放的目录 143 // 模板编译成PHP文件所存放的目录
144 $compilePath = $config->template->compile; 144 $compilePath = $config->template->compile;
145 // 模板编译成PHP文件所存放的文件路径 145 // 模板编译成PHP文件所存放的文件路径