Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
microTT
9 years ago
Commit
c88f2ff17ab29b16dd81e989e725aaa1622dc341
2 parents
11cd0e87
5aec2f80
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
website/controller/admin/Index.class.php
website/view/script/default/index.php
website/controller/admin/Index.class.php
View file @
c88f2ff
...
...
@@ -15,7 +15,7 @@ class Controller_Admin_Index extends Controller_Admin_Base
$this
->
_view
[
'data'
]
=
$info
;
$this
->
_view
[
'type'
]
=
$type
;
$this
->
_view
[
'typeDescription'
]
=
array
(
1
=>
'banner'
,
2
=>
'广告'
,
3
=>
'广告'
,
4
=>
'广告'
);
$this
->
_view
[
'sizeDescription'
]
=
array
(
1
=>
'980x474 [移动端:
320x155
]'
,
2
=>
'342x420'
,
3
=>
'1180x500px[移动端:320x155]'
,
4
=>
'290x356px'
);
$this
->
_view
[
'sizeDescription'
]
=
array
(
1
=>
'980x474 [移动端:
1180x500
]'
,
2
=>
'342x420'
,
3
=>
'1180x500px[移动端:320x155]'
,
4
=>
'290x356px'
);
$this
->
_view
[
'key'
]
=
Lib_Images
::
genKey
(
'fragmentimg'
);
}
...
...
website/view/script/default/index.php
View file @
c88f2ff
...
...
@@ -108,7 +108,7 @@ EOL;
foreach (
$templates
as
$temp
) {
preg_match_all("
/<
li
>/
i
",
$temp
,
$liLen
, PREG_SET_ORDER);
if(count(
$liLen
) >
16
)
if(count(
$liLen
) >
8
)
{
$temp
= preg_replace('@<div class="
(
.*
)
">(.+)<\/div>@isU', "
\\2
",
$temp
);
$template
.='<div class="
box
big
-
size
clearfix
">'.
$temp
.'</div>';
...
...
@@ -163,7 +163,7 @@ EOL;
// {
//
$template
.='</div>';
// }
echo
$template
;
?>
</div>
...
...
Please
register
or
login
to post a comment