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
4d4ea770
Commit
4d4ea770
authored
Sep 16, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化首页最新产品模块样式
parent
c01849b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/widget/new/content/home_news_product.phtml
+25
-1
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
+1
-1
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/widget/new/content/home_news_product.phtml
View file @
4d4ea770
...
@@ -36,7 +36,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
...
@@ -36,7 +36,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
<div
class=
"block-title"
>
<div
class=
"block-title"
>
<strong
role=
"heading"
aria-level=
"2"
>
NEW ARRIVALS
</strong>
<strong
role=
"heading"
aria-level=
"2"
>
NEW ARRIVALS
</strong>
</div>
</div>
<div
class=
"block-content"
>
<div
class=
"block-content
home-new-product
"
>
<?=
/* @noEscape */
'<!-- '
.
$image
.
'-->'
?>
<?=
/* @noEscape */
'<!-- '
.
$image
.
'-->'
?>
<div
class=
"products-
<?=
/* @noEscape */
$mode
?>
<?=
/* @noEscape */
$mode
?>
"
>
<div
class=
"products-
<?=
/* @noEscape */
$mode
?>
<?=
/* @noEscape */
$mode
?>
"
>
<ol
class=
"product-items
<?=
/* @noEscape */
$type
?>
"
>
<ol
class=
"product-items
<?=
/* @noEscape */
$type
?>
"
>
...
@@ -134,3 +134,27 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
...
@@ -134,3 +134,27 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
</div>
</div>
</div>
</div>
<?php
endif
;
?>
<?php
endif
;
?>
<style>
.home-new-product
{
width
:
80%
;
display
:
contents
;
}
.block-title
{
text-align
:
center
;
font-size
:
x-large
;
}
.block-title
>
sto
{
background
:
#fff
;
font-size
:
24px
;
font-weight
:
bold
;
color
:
#000000
;
margin
:
0px
;
padding
:
40px
;
text-align
:
center
;
}
.products-grid
.product-items
{
display
:
flex
;
justify-content
:
space-around
;
align-items
:
flex-end
;
}
</style>
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
View file @
4d4ea770
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<?php
<?php
//<p>{{widget type="Magento\Catalog\Block\Product\Widget\NewWidget" display_type="new_products" show_pager="0" products_count="3" template="product/widget/new/content/new_list.phtml"}}</p>
//<p>{{widget type="Magento\Catalog\Block\Product\Widget\NewWidget" display_type="new_products" show_pager="0" products_count="3" template="product/widget/new/content/new_list.phtml"}}</p>
echo
$this
->
getLayout
()
->
createBlock
(
"Magento\Catalog\Block\Product\Widget\NewWidget"
)
->
setDisplayType
(
"all_products"
)
->
setProductsCount
(
"
3
"
)
->
setTemplate
(
"product/widget/new/content/home_news_product.phtml"
)
->
toHtml
();
?>
echo
$this
->
getLayout
()
->
createBlock
(
"Magento\Catalog\Block\Product\Widget\NewWidget"
)
->
setDisplayType
(
"all_products"
)
->
setProductsCount
(
"
4
"
)
->
setTemplate
(
"product/widget/new/content/home_news_product.phtml"
)
->
toHtml
();
?>
<div
class=
"flash_sale"
>
<div
class=
"flash_sale"
>
...
...
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