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
yyq
9 years ago
Commit
2e85892966894973256738a0881b6659e0d31746
1 parent
e5521f40
outlets 头部样式
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
8 deletions
template/www.yohobuy.com/partials/layout/page-header.phtml
web-static/img/header/cart/outlets.png
web-static/sass/_header.css
yohobuy/www.yohobuy.com/application/models/Index/Home.php
template/www.yohobuy.com/partials/layout/page-header.phtml
View file @
2e85892
...
...
@@ -74,13 +74,17 @@
<div
class=
"header-navcontent"
>
<ul
class=
"first-nav-list float-left"
>
{
{#
navbars
}
}
<li
class=
"first-nav-item {{classname}}"
>
<h
3
class=
"name-cn"
>
<a
href=
"{{link}}"
>
{
{name_cn
}
}</a>
</h
3
>
<h
3
class=
"name-en"
>
<a
href=
"{{link}}"
>
{
{name_en
}
}</a>
</h
3
>
<li
class=
"first-nav-item {{classname}}"
{
{#if
showIcon
}
}
style=
"background: url({{icon}}) no-repeat center center"
{
{/if
}
}>
{
{#if
showIcon
}
}
<a
href=
"{{link}}"
class=
"menu-ico"
></a>
{
{^
}
}
<h
3
class=
"name-cn"
>
<a
href=
"{{link}}"
>
{
{name_cn
}
}</a>
</h
3
>
<h
3
class=
"name-en"
>
<a
href=
"{{link}}"
>
{
{name_en
}
}</a>
</h
3
>
{
{/if
}
}
<div
class='sub-nav-wrapper'>
<ul
class=
"sub-nav-list"
>
{
{#
subnav
}
}
...
...
web-static/img/header/cart/outlets.png
0 → 100644
View file @
2e85892
360 Bytes
web-static/sass/_header.css
View file @
2e85892
...
...
@@ -389,6 +389,12 @@
.first-nav-item
{
float
:
left
;
padding
:
8px
23px
0
;
.menu-ico
{
width
:
84px
;
height
:
32px
;
display
:
block
;
}
}
.all
a
,
...
...
@@ -464,6 +470,9 @@
.gobuylifestyle
{
background
:
url(/header/cart/lifestyle.png)
no-repeat
;
}
.gobuyoutlets
{
background
:
url(/header/cart/outlets.png)
no-repeat
;
}
.searchcatelifestyle
{
.searchinput
{
border
:
1px
solid
#5e4b3c
!important
...
...
@@ -1152,7 +1161,7 @@
background
:
none
;
}
.first-nav-item
>
h3
{
.first-nav-item
>
h3
{
display
:
none
;
}
...
...
yohobuy/www.yohobuy.com/application/models/Index/Home.php
View file @
2e85892
...
...
@@ -91,6 +91,11 @@ class HomeModel
'is_new'
=>
$val
[
'is_new'
]
==
'Y'
?
true
:
false
,
// 'subnav' => array()
);
if
(
strtolower
(
$val
[
'sort_name_en'
])
===
'outlets'
)
{
$item
[
'showIcon'
]
=
true
;
};
$indexSub
=
0
;
foreach
(
$val
[
'sub'
]
as
$sub
)
{
// 二级
$subnav
=
array
(
...
...
Please
register
or
login
to post a comment