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
3ec6de8b
Commit
3ec6de8b
authored
Apr 17, 2023
by
liumengfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into production
parents
5f6d8c99
43e6e7c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
45 deletions
+37
-45
app/code/Joshine/CouponPusher/view/frontend/templates/coupon-subscribe-alert.phtml
+3
-1
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/list.phtml
+31
-42
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
+1
-1
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
+2
-1
No files found.
app/code/Joshine/CouponPusher/view/frontend/templates/coupon-subscribe-alert.phtml
View file @
3ec6de8b
...
...
@@ -91,7 +91,9 @@
<div
class=
"j-modal-dialog j-modal-fluid"
>
<div
class=
"j-modal-content"
>
<div
class=
"j-modal-header"
>
<button
title=
"Close (Esc)"
type=
"button"
class=
"sparsh-mfp-close"
id=
"coupon-alert-close"
></button>
<span
class=
"joshine-close"
id=
"coupon-alert-close"
style=
"z-index: 1001;"
>
<svg
t=
"1678760827915"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"2762"
width=
"200"
height=
"200"
><path
d=
"M579.888 512l190.064-190.064a48 48 0 0 0-67.888-67.872L512 444.112 321.936 254.064a48 48 0 1 0-67.872 67.872L444.112 512 254.064 702.064a48 48 0 1 0 67.872 67.872L512 579.888l190.064 190.064a48 48 0 0 0 67.872-67.888L579.888 512z"
fill=
"#000000"
p-id=
"2763"
data-spm-anchor-id=
"a313x.7781069.0.i3"
class=
"selected"
></path></svg>
</span>
</div>
<div
class=
"j-modal-body"
>
<div
class=
"coupon-alt joshine-text-center"
>
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/list.phtml
View file @
3ec6de8b
...
...
@@ -58,34 +58,34 @@ $_helper = $block->getData('outputHelper');
$_objectManager
=
\Magento\Framework\App\ObjectManager
::
getInstance
();
$imageHelper
=
$_objectManager
->
get
(
'\Magento\Catalog\Helper\Image'
);
?>
<style>
.mode-list
{
display
:
none
;
}
.hoverImg
{
display
:
block
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
opacity
:
0
;
height
:
100%
;
-webkit-transition
:
opacity
.5s
;
-moz-transition
:
opacity
.5s
;
-ms-transition
:
opacity
.5s
;
-o-transition
:
opacity
.5s
;
transition
:
opacity
.5s
;
}
<style>
.mode-list
{
display
:
none
;
}
.hoverImg
{
display
:
block
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
opacity
:
0
;
height
:
100%
;
-webkit-transition
:
opacity
.5s
;
-moz-transition
:
opacity
.5s
;
-ms-transition
:
opacity
.5s
;
-o-transition
:
opacity
.5s
;
transition
:
opacity
.5s
;
}
.hoverImg
:hover
{
opacity
:
1
;
-webkit-transition
:
opacity
.5s
;
-moz-transition
:
opacity
.5s
;
-ms-transition
:
opacity
.5s
;
-o-transition
:
opacity
.5s
;
transition
:
opacity
.5s
;
}
</style>
.hoverImg
:hover
{
opacity
:
1
;
-webkit-transition
:
opacity
.5s
;
-moz-transition
:
opacity
.5s
;
-ms-transition
:
opacity
.5s
;
-o-transition
:
opacity
.5s
;
transition
:
opacity
.5s
;
}
</style>
<div
class=
"products wrapper
<?=
/* @noEscape */
$viewMode
?>
products-
<?=
/* @noEscape */
$viewMode
?>
"
>
<ol
class=
"products list items product-items"
>
<?php
/** @var $_product \Magento\Catalog\Model\Product */
?>
...
...
@@ -100,22 +100,11 @@ $_helper = $block->getData('outputHelper');
$baseImageUrl
=
$productImage
->
getImageUrl
();
$allImage
=
$_product
->
getMediaGalleryImages
()
->
getItems
();
$hoverImg
=
''
;
$tm_id
=
0
;
$arr
=
[];
foreach
(
$allImage
as
$index
=>
$img
){
if
(
count
(
$arr
)
>
3
)
{
foreach
(
$allImage
as
$img
){
if
(
basename
(
$baseImageUrl
)
!=
basename
(
$img
->
getUrl
())){
$hoverImg
=
$imageHelper
->
init
(
$_product
,
'product_page_image_large'
)
->
setImageFile
(
$img
->
getFile
())
->
resize
(
$productImage
->
getWidth
(),
$productImage
->
getHeight
())
->
getUrl
();
break
;
}
if
(
in_array
(
$img
->
getData
(
'position'
),[
0
,
1
,
2
]))
{
$arr
[
$img
->
getData
(
'position'
)]
=
$img
;
}
}
if
(
key_exists
(
"0"
,
$arr
))
{
$hoverImg
=
$imageHelper
->
init
(
$_product
,
'product_page_image_large'
)
->
setImageFile
(
$arr
[
1
]
->
getFile
())
->
resize
(
$productImage
->
getWidth
(),
$productImage
->
getHeight
())
->
getUrl
();
}
elseif
(
key_exists
(
"2"
,
$arr
)){
$hoverImg
=
$imageHelper
->
init
(
$_product
,
'product_page_image_large'
)
->
setImageFile
(
$arr
[
2
]
->
getFile
())
->
resize
(
$productImage
->
getWidth
(),
$productImage
->
getHeight
())
->
getUrl
();
}
if
(
$pos
!=
null
)
{
...
...
@@ -128,7 +117,7 @@ $_helper = $block->getData('outputHelper');
class
="
product
photo
product
-
item
-
photo
"
tabindex="
-
1
">
<?php
$productImageRaw
=
$imageHelper->init
(
$_product
,
$imageDisplayArea
)->setImageFile(
$productImage->getFile
())->resize(
$productImage->getWidth
(),
$productImage->getHeight
())->getUrl();
$productImageRaw
=
$imageHelper->init
(
$_product
,
$imageDisplayArea
)->setImageFile(
$productImage->getFile
())->resize(
$productImage->getWidth
(),
$productImage->getHeight
())->getUrl();
?>
<img class="
product
-
image
-
photo
" src="
<?=
$productImageRaw
?>
" loading="lazy" width="
<?=
$productImage
->
getWidth
()
?>
" height="
<?=
$productImage
->
getHeight
()
?>
" alt="Image">
<?php
if
(
$hoverImg
)
:
?>
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
View file @
3ec6de8b
...
...
@@ -197,7 +197,7 @@
@media
(
min-width
:
780px
){
.product-view-description
{
max-height
:
450px
;
max-height
:
250px
!important
;
overflow
:
auto
;
}
...
...
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
View file @
3ec6de8b
...
...
@@ -9,7 +9,8 @@
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Joshine\Banner\Block\Index'
)
->
setTemplate
(
'Joshine_Banner::index.phtml'
)
->
toHtml
();
?>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'home_top_category_thumnail'
)
->
toHtml
();
?>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'home_new_arrivals'
)
->
toHtml
();
?>
<?php
/*echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->toHtml();*/
?>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'flashsaleproduct'
)
->
toHtml
();
?>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Joshine\InstagramFeed\Block\MediaFeed'
)
->
toHtml
();
?>
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