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
5ff331c3
Commit
5ff331c3
authored
May 22, 2023
by
liumengfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into production
parents
53284d1c
12cc178f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
126 additions
and
19 deletions
+126
-19
app/code/Joshine/InstagramFeed/Model/Cache/Type.php
+1
-1
app/code/Joshine/Script/Console/Command/InstagramFeedPull.php
+0
-0
app/code/Joshine/Script/etc/di.xml
+4
-0
app/code/Magento/Checkout/Block/Onepage.php
+9
-0
app/code/Magento/Checkout/view/frontend/web/js/view/checkout-footer.js
+31
-2
app/code/Magento/Checkout/view/frontend/web/template/checkout-index-footer.html
+4
-4
app/code/Magento/Cms/Controller/Index/GetPage.php
+37
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage.phtml
+36
-10
app/design/frontend/Joshine/breeze/web/css/_custom.less
+2
-2
pub/.htaccess
+2
-0
No files found.
app/code/Joshine/InstagramFeed/Model/Cache/Type.php
View file @
5ff331c3
...
@@ -10,7 +10,7 @@ class Type extends TagScope
...
@@ -10,7 +10,7 @@ class Type extends TagScope
const
CACHE_TAG
=
'INSTAGRAM_FEED'
;
const
CACHE_TAG
=
'INSTAGRAM_FEED'
;
const
CACHE_LIFETIME
=
60
*
60
;
const
CACHE_LIFETIME
=
60
*
60
*
24
;
/**
/**
* @param FrontendPool $cacheFrontendPool
* @param FrontendPool $cacheFrontendPool
...
...
app/code/Joshine/Script/Console/Command/InstagramFeedPull.php
0 → 100644
View file @
5ff331c3
This diff is collapsed.
Click to expand it.
app/code/Joshine/Script/etc/di.xml
View file @
5ff331c3
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
<argument
name=
"commands"
xsi:type=
"array"
>
<argument
name=
"commands"
xsi:type=
"array"
>
<item
name=
"reviews-import"
xsi:type=
"object"
>
Joshine\Script\Console\Command\ReviewsImporter
</item>
<item
name=
"reviews-import"
xsi:type=
"object"
>
Joshine\Script\Console\Command\ReviewsImporter
</item>
</argument>
</argument>
<argument
name=
"commands"
xsi:type=
"array"
>
<item
name=
"instagram-pull"
xsi:type=
"object"
>
Joshine\Script\Console\Command\InstagramFeedPull
</item>
</argument>
</arguments>
</arguments>
</type>
</type>
</config>
</config>
\ No newline at end of file
app/code/Magento/Checkout/Block/Onepage.php
View file @
5ff331c3
...
@@ -128,6 +128,15 @@ class Onepage extends \Magento\Framework\View\Element\Template
...
@@ -128,6 +128,15 @@ class Onepage extends \Magento\Framework\View\Element\Template
{
{
return
$this
->
_scopeConfigInterface
->
getValue
(
'carriers/freeshipping/free_shipping_subtotal'
);
return
$this
->
_scopeConfigInterface
->
getValue
(
'carriers/freeshipping/free_shipping_subtotal'
);
}
}
public
function
getCopyright
()
{
$copyright
=
$this
->
_scopeConfig
->
getValue
(
'design/footer/copyright'
,
\Magento\Store\Model\ScopeInterface
::
SCOPE_STORE
);
return
$copyright
;
}
/**
/**
* Get base url for block.
* Get base url for block.
*
*
...
...
app/code/Magento/Checkout/view/frontend/web/js/view/checkout-footer.js
View file @
5ff331c3
...
@@ -6,13 +6,42 @@
...
@@ -6,13 +6,42 @@
define
([
define
([
'jquery'
,
'jquery'
,
'uiComponent'
,
'uiComponent'
,
'mage/mage'
'Magento_Ui/js/modal/alert'
,
],
function
(
$
,
Component
)
{
'mage/mage'
,
],
function
(
$
,
Component
,
modalAlert
)
{
'use strict'
;
'use strict'
;
return
Component
.
extend
({
return
Component
.
extend
({
defaults
:
{
defaults
:
{
template
:
'Magento_Checkout/checkout-index-footer'
template
:
'Magento_Checkout/checkout-index-footer'
},
initialize
:
function
()
{
this
.
initStep
();
this
.
_super
();
return
this
;
},
initStep
:
function
()
{
$
(
document
).
on
(
'click'
,
'.cf-link'
,
function
(){
var
dataKey
=
$
(
this
).
attr
(
'data-key'
);
if
(
!
dataKey
)
{
return
false
;
}
$
.
ajax
({
url
:
'/cms/index/getPage'
,
type
:
'POST'
,
data
:
{
'identifier'
:
dataKey
},
dataType
:
'json'
,
success
:
function
(
result
)
{
modalAlert
({
title
:
result
.
title
,
content
:
result
.
content
,
button
:[]
});
}
});
});
}
}
});
});
});
});
app/code/Magento/Checkout/view/frontend/web/template/checkout-index-footer.html
View file @
5ff331c3
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
<footer
id=
"policy-description"
class=
"checkout_policy_description"
trade-btn-event-name=
"trade:showPolicyModal"
data-testid=
"checkout-dtv5i"
>
<footer
id=
"policy-description"
class=
"checkout_policy_description"
trade-btn-event-name=
"trade:showPolicyModal"
data-testid=
"checkout-dtv5i"
>
<ul>
<ul>
<li>
<li>
<a
class=
"custom-link-color
"
href=
"/return-exchange-policy"
target=
"_blank
"
>
Refund Policy
</a>
<a
class=
"custom-link-color
cf-link"
href=
"javascript:;"
data-key=
"return-exchange-policy
"
>
Refund Policy
</a>
</li>
</li>
<li>
<li>
<a
class=
"custom-link-color
"
href=
"/shipping-policy"
target=
"_blank
"
>
Shipping policy
</a>
<a
class=
"custom-link-color
cf-link"
href=
"javascript:;"
data-key=
"shipping-policy
"
>
Shipping policy
</a>
</li>
</li>
<li>
<li>
<a
class=
"custom-link-color
"
href=
"/security-privacy-policy"
target=
"_blank
"
>
Privacy Policy
</a>
<a
class=
"custom-link-color
cf-link"
href=
"javascript:;"
data-key=
"security-privacy-policy
"
>
Privacy Policy
</a>
</li>
</li>
<li>
<li>
<a
class=
"custom-link-color
"
href=
"/terms-of-use"
target=
"_blank
"
>
Terms of service
</a>
<a
class=
"custom-link-color
cf-link"
href=
"javascript:;"
data-key=
"terms-of-use
"
>
Terms of service
</a>
</li>
</li>
</ul>
</ul>
</footer>
</footer>
...
...
app/code/Magento/Cms/Controller/Index/GetPage.php
0 → 100644
View file @
5ff331c3
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace
Magento\Cms\Controller\Index
;
use
Magento\Framework\App\ObjectManager
;
use
Magento\Framework\Controller\Result\JsonFactory
;
class
GetPage
extends
\Magento\Framework\App\Action\Action
{
protected
$resultJsonFactory
;
/**
* @param \Magento\Framework\App\Action\Context $context
*/
public
function
__construct
(
\Magento\Framework\App\Action\Context
$context
,
JsonFactory
$resultJsonFactory
)
{
$this
->
resultJsonFactory
=
$resultJsonFactory
;
parent
::
__construct
(
$context
);
}
public
function
execute
()
{
$identifier
=
$this
->
getRequest
()
->
getParam
(
'identifier'
);
$objectManager
=
\Magento\Framework\App\ObjectManager
::
getInstance
();
$CmsPage
=
$objectManager
->
get
(
\Magento\Cms\Model\Page
::
class
);
$CmsPage
->
load
(
$identifier
,
'identifier'
);
$data
=
[];
$data
[
'title'
]
=
$CmsPage
->
getTitle
();
$data
[
'content'
]
=
$CmsPage
->
getContent
();
$resultPage
=
$this
->
resultJsonFactory
->
create
();
$resultPage
->
setHttpResponseCode
(
200
);
$resultPage
->
setData
(
$data
);
return
$resultPage
;
}
}
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage.phtml
View file @
5ff331c3
...
@@ -14,7 +14,7 @@ $full_free = $block->getFullFreeShip();
...
@@ -14,7 +14,7 @@ $full_free = $block->getFullFreeShip();
$_helper
=
$objectManager
->
get
(
'Magento\Framework\Pricing\Helper\Data'
);
$_helper
=
$objectManager
->
get
(
'Magento\Framework\Pricing\Helper\Data'
);
$full_free_ship
=
$_helper
->
currency
(
$full_free
,
true
,
false
);
$full_free_ship
=
$_helper
->
currency
(
$full_free
,
true
,
false
);
$free_price
=
$_helper
->
currency
(
0
,
true
,
false
);
$free_price
=
$_helper
->
currency
(
0
,
true
,
false
);
$copyright
=
$block
->
getCopyright
();
$logoUrl
=
$block
->
getLogoUrl
();
$logoUrl
=
$block
->
getLogoUrl
();
$mobileDetect
=
$objectManager
->
get
(
\Joshine\Common\Lib\MobileDetect\MobileDetect
::
class
);
$mobileDetect
=
$objectManager
->
get
(
\Joshine\Common\Lib\MobileDetect\MobileDetect
::
class
);
$isMobile
=
$mobileDetect
->
isMobile
();
$isMobile
=
$mobileDetect
->
isMobile
();
...
@@ -81,7 +81,7 @@ $isMobile = $mobileDetect->isMobile();
...
@@ -81,7 +81,7 @@ $isMobile = $mobileDetect->isMobile();
.header.content
.secure-wrapper
.icon-safepay
:before
{
.header.content
.secure-wrapper
.icon-safepay
:before
{
content
:
"\e644"
;
content
:
"\e644"
;
}
}
.checkout-index-index
footer
.modal-footer
{
margin-top
:
unset
;}
.checkout-index-index
footer
.modal-footer
{
margin-top
:
unset
;
padding
:
5px
;
}
.header.content
{
height
:
60px
;
padding-top
:
10px
;
padding-bottom
:
10px
;}
.header.content
{
height
:
60px
;
padding-top
:
10px
;
padding-bottom
:
10px
;}
@media
(
min-width
:
640px
){
@media
(
min-width
:
640px
){
.header.content
{
padding-top
:
15px
!important
;
margin-bottom
:
0px
!important
;}
.header.content
{
padding-top
:
15px
!important
;
margin-bottom
:
0px
!important
;}
...
@@ -1088,9 +1088,31 @@ $isMobile = $mobileDetect->isMobile();
...
@@ -1088,9 +1088,31 @@ $isMobile = $mobileDetect->isMobile();
.checkout-index-index
.authentication-wrapper
.action.action-auth-toggle
{
.checkout-index-index
.authentication-wrapper
.action.action-auth-toggle
{
color
:
#0000ff
!important
;
color
:
#0000ff
!important
;
}
}
.modal-inner-wrap
{
max-width
:
100%
;
width
:
766px
;
border-radius
:
8px
;
max-height
:
80%
;
height
:
auto
;
}
}
.checkout-index-index
.modal-footer
.action-primary.action-accept
{
display
:
none
;
}
.checkout-index-index
.modal-header
{
border-bottom
:
1px
solid
#ddddd8
;
padding
:
20px
;
}
.checkout-index-index
.modal-title
{
margin
:
0
auto
;
}
.checkout-index-index
.modal-content
{
padding-top
:
1rem
;
}
.checkout-index-index
.authentication-wrapper
.modal-header
{
border-bottom
:
none
;
padding
:
0
;
}
}
.checkout-index-index
#shipping
.field.street
,
.checkout-index-index
.billing-address-form
.field.street
{
.checkout-index-index
#shipping
.field.street
,
.checkout-index-index
.billing-address-form
.field.street
{
min-height
:
7rem
;
min-height
:
7rem
;
}
}
...
@@ -1671,10 +1693,7 @@ $isMobile = $mobileDetect->isMobile();
...
@@ -1671,10 +1693,7 @@ $isMobile = $mobileDetect->isMobile();
background
:
#f2f2f2
;
background
:
#f2f2f2
;
margin-top
:
15px
;
margin-top
:
15px
;
}
}
#policy-description
li
a
{
font-size
:
12px
;
color
:
#276EAF
;
}
.jkl
{
.jkl
{
width
:
17px
;
width
:
17px
;
height
:
17px
;
height
:
17px
;
...
@@ -1695,8 +1714,11 @@ $isMobile = $mobileDetect->isMobile();
...
@@ -1695,8 +1714,11 @@ $isMobile = $mobileDetect->isMobile();
@keyframes
fadenum
{
@keyframes
fadenum
{
100
%
{
transform
:
rotate
(
360deg
);}
100
%
{
transform
:
rotate
(
360deg
);}
}
}
#policy-description
li
a
{
/********************************************address from end****************************************************/
font-size
:
12px
;
color
:
#666666
;
}
/***************************************dddddddddddd*****address from end****************************************************/
...
@@ -1718,6 +1740,7 @@ $isMobile = $mobileDetect->isMobile();
...
@@ -1718,6 +1740,7 @@ $isMobile = $mobileDetect->isMobile();
window.checkoutConfig.flatrate_price = '{$flatraPrice}';
window.checkoutConfig.flatrate_price = '{$flatraPrice}';
window.checkoutConfig.full_free_ship = '{$full_free_ship}';
window.checkoutConfig.full_free_ship = '{$full_free_ship}';
window.checkoutConfig.free_price = '{$free_price}';
window.checkoutConfig.free_price = '{$free_price}';
window.checkoutConfig.copyright = '{$copyright}';
window.checkoutConfig.addressVisible = true;
window.checkoutConfig.addressVisible = true;
window.checkoutConfig.shippingVisible = false;
window.checkoutConfig.shippingVisible = false;
window.checkoutConfig.paymentVisible = false;
window.checkoutConfig.paymentVisible = false;
...
@@ -1740,6 +1763,7 @@ script;
...
@@ -1740,6 +1763,7 @@ script;
<?=
/* @noEscape */
$secureRenderer
->
renderTag
(
'script'
,
[],
$scriptString
,
false
)
?>
<?=
/* @noEscape */
$secureRenderer
->
renderTag
(
'script'
,
[],
$scriptString
,
false
)
?>
</div>
</div>
<script>
<script>
require
([
'jquery'
],
function
(
$
)
{
require
([
'jquery'
],
function
(
$
)
{
var
isMobile
=
window
.
matchMedia
(
"(pointer:coarse)"
).
matches
;
var
isMobile
=
window
.
matchMedia
(
"(pointer:coarse)"
).
matches
;
/*
/*
...
@@ -1872,4 +1896,5 @@ script;
...
@@ -1872,4 +1896,5 @@ script;
});
});
</script>
</script>
\ No newline at end of file
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
5ff331c3
...
@@ -502,7 +502,7 @@ ul {
...
@@ -502,7 +502,7 @@ ul {
position: fixed;
position: fixed;
font-size: larger;
font-size: larger;
bottom: 0;
bottom: 0;
z-index:
1
;
z-index:
2
;
width: 100%;
width: 100%;
margin: 0 auto;
margin: 0 auto;
left: 0;
left: 0;
...
@@ -2661,7 +2661,7 @@ button.action.submit.primary {
...
@@ -2661,7 +2661,7 @@ button.action.submit.primary {
display: block !important;
display: block !important;
position: fixed;
position: fixed;
bottom: 0;
bottom: 0;
z-index:
1
;
z-index:
2
;
}
}
.breeze-gallery .stage .main-image-wrapper > picture{
.breeze-gallery .stage .main-image-wrapper > picture{
display: none;
display: none;
...
...
pub/.htaccess
View file @
5ff331c3
...
@@ -271,4 +271,6 @@ ErrorDocument 403 /errors/404.php
...
@@ -271,4 +271,6 @@ ErrorDocument 403 /errors/404.php
## Prevent clickjacking
## Prevent clickjacking
Header
set
X-Frame-Options SAMEORIGIN
Header
set
X-Frame-Options SAMEORIGIN
Header
add
Access-Control-Allow-Origin "facebook.com"
</
IfModule
>
</
IfModule
>
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