Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
77264437a97e01529f9e63a4d88d6b71b7b59b01
1 parent
fff85b3c
clear goods list compile php files
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
52 deletions
compile/m.yohobuy.com/1.1.8/1b8db279a08a19fea5c4d19b757b72a5.php
compile/m.yohobuy.com/1.1.8/1c526644c979455e6df7c4ed21118d5d.php
library/Plugin/TemplateLayout.php
compile/m.yohobuy.com/1.1.8/1b8db279a08a19fea5c4d19b757b72a5.php
deleted
100644 → 0
View file @
fff85b3
<?php
return
function
(
$in
,
$debugopt
=
1
)
{
$cx
=
array
(
'flags'
=>
array
(
'jstrue'
=>
false
,
'jsobj'
=>
false
,
'spvar'
=>
true
,
'prop'
=>
false
,
'method'
=>
false
,
'mustlok'
=>
true
,
'echo'
=>
false
,
'debug'
=>
$debugopt
,
),
'constants'
=>
array
(),
'helpers'
=>
array
(),
'blockhelpers'
=>
array
(),
'hbhelpers'
=>
array
(),
'partials'
=>
array
(),
'scopes'
=>
array
(),
'sp_vars'
=>
array
(
'root'
=>
$in
),
'lcrun'
=>
'Plugin\LCRun3'
,
);
return
''
.
Plugin\LCRun3
::
sec
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'new'
)),
$in
,
false
,
function
(
$cx
,
$in
)
{
return
''
.
' '
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
$in
))
?
'
<div class="good-info" data-id="'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'id'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'">
<div class="tag-container clearfix">
'
.
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>
'
;})
.
''
.
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>
'
;})
.
''
.
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>
'
;})
.
''
.
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>
'
;})
.
''
.
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>
'
;})
.
''
;})
.
' </div>
<div class="good-detail-img">
<a class="good-thumb" href="'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'url'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'">
<img class="lazy" data-original="'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'thumb'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'">
</a>
'
.
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>
'
;})
.
' </div>
<div class="good-detail-text">
<div class="name">
<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>
</div>
<div class="price">
<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>
'
.
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>
'
;})
.
' </div>
</div>
</div>
'
:
''
)
.
''
.
''
;})
.
''
;
}
?>
\ No newline at end of file
compile/m.yohobuy.com/1.1.8/1c526644c979455e6df7c4ed21118d5d.php
View file @
7726443
...
...
@@ -186,6 +186,8 @@
'
:
''
)
.
'
'
.
((
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'
)
.
'>
'
:
''
)
.
'
'
.
((
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'
)
.
'>
'
:
''
)
.
'
'
.
' <div id="suspend-cart" class="suspend-cart">
<a href='
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'cartUrl'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'>
<span class="iconfont"></span>
...
...
library/Plugin/TemplateLayout.php
View file @
7726443
...
...
@@ -139,7 +139,7 @@ class TemplateLayout implements View_Interface
// 取得模板的最后修改时间戳
$lastModifyTime
=
filemtime
(
$viewName
);
// 使用MD5生成唯一的键名
$makeKey
=
md5
(
$viewName
.
strval
(
$lastModifyTime
));
$makeKey
=
md5
(
$viewName
.
strval
(
$lastModifyTime
));
//echo $makeKey;
// 模板编译成PHP文件所存放的目录
$compilePath
=
$config
->
template
->
compile
;
// 模板编译成PHP文件所存放的文件路径
...
...
Please
register
or
login
to post a comment