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
9b7a8ae0
Commit
9b7a8ae0
authored
Mar 15, 2023
by
wd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
顶部图片链接不存在时不添加属性进行网络请求
parent
53b3a4ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
app/code/Sparsh/FreeShippingBar/view/frontend/templates/free_shipping_bar.phtml
+10
-2
No files found.
app/code/Sparsh/FreeShippingBar/view/frontend/templates/free_shipping_bar.phtml
View file @
9b7a8ae0
...
...
@@ -28,7 +28,11 @@ endif;
.sparsh-free-shipping-bar-goal-message
{
width
:
100%
;
height
:
60px
;
background-image
:
url
(
"
<?=
$block
->
getImgUrl
(
$barData
[
'background_img'
])
?>
");
<?php
if
(
$barData
[
'background_img'
]){
echo
'background-image: url("'
.
$block
->
getImgUrl
(
$barData
[
'background_img'
])
.
'");'
;
}
?>
line-height
:
60px
;
background-size
:
100%
100%
!important
;
background-repeat
:
no-repeat
;
...
...
@@ -36,7 +40,11 @@ endif;
@media
(
max-width
:
768px
)
{
.sparsh-free-shipping-bar-goal-message
{
background-image: url("
<?=
$block
->
getImgUrl
(
$barData
[
'background_img_phone'
])
?>
"
);
<?php
if
(
$barData
[
'background_img_phone'
]){
echo
'background-image: url("'
.
$block
->
getImgUrl
(
$barData
[
'background_img_phone'
])
.
'");'
;
}
?>
width
:
100%
;
height
:
40px
;
line-height
:
40px
;
...
...
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