Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
90745d3b
Commit
90745d3b
authored
Oct 09, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化导航条显示
parent
28724ec9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
app/code/Magento/Theme/view/frontend/layout/default.xml
+25
-23
app/design/frontend/Joshine/breeze/Magento_Theme/layout/default.xml
+1
-1
No files found.
app/code/Magento/Theme/view/frontend/layout/default.xml
View file @
90745d3b
...
...
@@ -30,34 +30,36 @@
</block>
</referenceContainer>
<referenceContainer
name=
"header.container"
>
<container
name=
"header.panel.wrapper"
htmlClass=
"panel wrapper"
htmlTag=
"div"
before=
"-"
>
<container
name=
"header.panel"
label=
"Page Header Panel"
htmlTag=
"div"
htmlClass=
"panel header"
>
<block
class=
"Magento\Framework\View\Element\Template"
name=
"skip_to_content"
template=
"Magento_Theme::html/skip.phtml"
>
<arguments>
<argument
name=
"target"
xsi:type=
"string"
>
contentarea
</argument>
<argument
name=
"label"
translate=
"true"
xsi:type=
"string"
>
Skip to Content
</argument>
</arguments>
</block>
<block
class=
"Magento\Store\Block\Switcher"
name=
"store_language"
as=
"store_language"
template=
"Magento_Store::switch/languages.phtml"
>
<arguments>
<argument
name=
"view_model"
xsi:type=
"object"
>
Magento\Store\ViewModel\SwitcherUrlProvider
</argument>
</arguments>
</block>
<block
class=
"Magento\Customer\Block\Account\Navigation"
name=
"top.links"
>
<container
name=
"header.main.wrapper"
htmlClass=
"header-top header-fixed"
htmlTag=
"div"
>
<container
name=
"header.panel.wrapper"
htmlClass=
"panel wrapper"
htmlTag=
"div"
before=
"-"
>
<container
name=
"header.panel"
label=
"Page Header Panel"
htmlTag=
"div"
htmlClass=
"panel header"
>
<block
class=
"Magento\Framework\View\Element\Template"
name=
"skip_to_content"
template=
"Magento_Theme::html/skip.phtml"
>
<arguments>
<argument
name=
"target"
xsi:type=
"string"
>
contentarea
</argument>
<argument
name=
"label"
translate=
"true"
xsi:type=
"string"
>
Skip to Content
</argument>
</arguments>
</block>
<block
class=
"Magento\Store\Block\Switcher"
name=
"store_language"
as=
"store_language"
template=
"Magento_Store::switch/languages.phtml"
>
<arguments>
<argument
name=
"view_model"
xsi:type=
"object"
>
Magento\Store\ViewModel\SwitcherUrlProvider
</argument>
</arguments>
</block>
<block
class=
"Magento\Customer\Block\Account\Navigation"
name=
"top.links"
>
<arguments>
<argument
name=
"css_class"
xsi:type=
"string"
>
header links
</argument>
</arguments>
</block>
</container>
</container>
<container
name=
"header-wrapper"
label=
"Page Header"
as=
"header-wrapper"
htmlTag=
"div"
htmlClass=
"header content"
>
<block
class=
"Magento\Theme\Block\Html\Header\Logo"
name=
"logo"
>
<arguments>
<argument
name=
"css_class"
xsi:type=
"string"
>
header links
</argument>
<argument
name=
"logoPathResolver"
xsi:type=
"object"
>
Magento\Theme\ViewModel\Block\Html\Header\LogoPathResolver
</argument>
<argument
name=
"logo_size_resolver"
xsi:type=
"object"
>
Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolver
</argument>
</arguments>
</block>
</container>
</container>
<container
name=
"header-wrapper"
label=
"Page Header"
as=
"header-wrapper"
htmlTag=
"div"
htmlClass=
"header content"
>
<block
class=
"Magento\Theme\Block\Html\Header\Logo"
name=
"logo"
>
<arguments>
<argument
name=
"logoPathResolver"
xsi:type=
"object"
>
Magento\Theme\ViewModel\Block\Html\Header\LogoPathResolver
</argument>
<argument
name=
"logo_size_resolver"
xsi:type=
"object"
>
Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolver
</argument>
</arguments>
</block>
</container>
</referenceContainer>
<referenceContainer
name=
"page.top"
>
<block
class=
"Magento\Framework\View\Element\Template"
name=
"navigation.sections"
before=
"-"
template=
"Magento_Theme::html/sections.phtml"
>
...
...
app/design/frontend/Joshine/breeze/Magento_Theme/layout/default.xml
View file @
90745d3b
...
...
@@ -72,7 +72,7 @@
</container>
</referenceContainer>
<!-- <move element="store.menu" destination="navigation.wrapper"/>-->
<move
element=
"navigation.wrapper"
destination=
"header.
contain
er"
after=
"-"
/>
<move
element=
"navigation.wrapper"
destination=
"header.
main.wrapp
er"
after=
"-"
/>
<!-- Before Footer -->
<referenceContainer
name=
"page.bottom.container"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment