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
362f26a5
Commit
362f26a5
authored
Sep 07, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重新优化
parent
6305091e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
50 deletions
+14
-50
app/design/frontend/Joshine/breeze/Magento_Catalog/layout/catalog_category_view.xml
+1
-1
app/design/frontend/Joshine/breeze/Magento_LayeredNavigation/templates/layer/view.phtml
+13
-49
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/layout/catalog_category_view.xml
View file @
362f26a5
...
...
@@ -47,7 +47,7 @@
</arguments>
</block>
</referenceContainer>
<referenceBlock
name=
"page.main.title"
remove=
"true"
>
<referenceBlock
name=
"page.main.title"
>
<arguments>
<argument
name=
"id"
xsi:type=
"string"
>
page-title-heading
</argument>
<argument
name=
"add_base_attribute_aria"
xsi:type=
"string"
>
page-title-heading toolbar-amount
</argument>
...
...
app/design/frontend/Joshine/breeze/Magento_LayeredNavigation/templates/layer/view.phtml
View file @
362f26a5
...
...
@@ -13,66 +13,30 @@
?>
<?php
if
(
$block
->
canShowBlock
())
:
?>
<div
class=
"block filter"
id=
"layered-filter-block"
data-mage-init=
'
{
"collapsible":
{
"openedState": "active",
"collapsible": true,
"active": false,
"collateral":
{
"openedState": "filter-active",
"element": "body"
}
}
}'
>
<?php
$filtered
=
count
(
$block
->
getLayer
()
->
getState
()
->
getFilters
())
?>
<div
class=
"block filter"
>
<div
class=
"block-content filter-content"
>
<?=
$block
->
getChildHtml
(
'state'
)
?>
<?php
if
(
$block
->
getLayer
()
->
getState
()
->
getFilters
())
:
?>
<div
class=
"block-actions filter-actions"
>
<a
href=
"
<?=
$block
->
escapeUrl
(
$block
->
getClearUrl
())
?>
"
class=
"action clear filter-clear"
>
<span>
<?=
$block
->
escapeHtml
(
__
(
'Clear All'
))
?>
</span>
</a>
<a
href=
"
<?=
$block
->
escapeUrl
(
$block
->
getClearUrl
())
?>
"
class=
"action clear filter-clear"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Clear All'
))
?>
</span></a>
</div>
<?php
endif
;
?>
<?php
$wrapOptions
=
false
;
?>
<?php
foreach
(
$block
->
getFilters
()
as
$filter
)
:
?>
<?php
if
(
!
$wrapOptions
)
:
?>
<strong
role=
"heading"
aria-level=
"2"
class=
"block-subtitle filter-subtitle"
>
<?=
$block
->
escapeHtml
(
__
(
'Shopping Options'
))
?>
</strong>
<dl
class=
"filter-options"
id=
"narrow-by-list"
>
<?php
$wrapOptions
=
true
;
endif
;
?>
<?php
if
(
$filter
->
getItemsCount
())
:
?>
<?php
if
(
!
$wrapOptions
)
:
?>
<strong
role=
"heading"
aria-level=
"2"
class=
"block-subtitle filter-subtitle"
>
<?=
$block
->
escapeHtml
(
__
(
'Shopping Options'
))
?>
</strong>
<div
class=
"filter-options"
id=
"narrow-by-list"
data-role=
"content"
data-mage-init=
'
{
"accordion":
{
"openedState": "active",
"collapsible": true,
"active": false,
"multipleCollapsible": false
}
}'
>
<?php
$wrapOptions
=
true
;
endif
;
?>
<div
data-role=
"collapsible"
class=
"filter-options-item"
>
<div
data-role=
"title"
class=
"filter-options-title"
>
<?=
$block
->
escapeHtml
(
__
(
$filter
->
getName
()))
?>
</div>
<div
data-role=
"content"
class=
"filter-options-content"
>
<?=
/* @noEscape */
$block
->
getChildBlock
(
'renderer'
)
->
render
(
$filter
)
?>
</div>
</div>
<dt
role=
"heading"
aria-level=
"3"
class=
"filter-options-title"
>
<?=
$block
->
escapeHtml
(
__
(
$filter
->
getName
()))
?>
</dt>
<dd
class=
"filter-options-content"
>
<?=
/* @noEscape */
$block
->
getChildBlock
(
'renderer'
)
->
render
(
$filter
)
?>
</dd>
<?php
endif
;
?>
<?php
endforeach
;
?>
<?php
if
(
$wrapOptions
)
:
?>
</div>
<?php
else
:
?>
<script>
require
([
'jquery'
],
function
(
$
)
{
$
(
'#layered-filter-block'
).
addClass
(
'filter-no-options'
);
});
</script>
<?php
endif
;
?>
<?php
endforeach
;
?>
<?php
if
(
$wrapOptions
)
:
?>
</dl>
<?php
endif
;
?>
</div>
</div>
<?php
endif
;
?>
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