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
49d6abd9
Commit
49d6abd9
authored
Mar 06, 2023
by
halweg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 留言相册
parent
39829c19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
21 deletions
+22
-21
app/code/Joshine/Review/Helper/BlockHelper.php
+10
-0
app/code/Joshine/Review/view/frontend/templates/images.phtml
+2
-2
app/code/Joshine/Review/view/frontend/templates/modal.phtml
+0
-16
app/code/Joshine/Review/view/frontend/templates/product/view/list.phtml
+0
-0
app/code/Joshine/Review/view/frontend/web/css/_review.css
+10
-0
app/code/Joshine/Review/view/frontend/web/img/favicon-next.ico
+0
-0
app/code/Joshine/Review/view/frontend/web/img/favicon-pre.ico
+0
-0
app/code/Joshine/Review/view/frontend/web/js/review/js-loader.js
+0
-3
app/design/frontend/Joshine/breeze/web/images/favicon-next.ico
+0
-0
app/design/frontend/Joshine/breeze/web/images/favicon-pre.ico
+0
-0
No files found.
app/code/Joshine/Review/Helper/BlockHelper.php
View file @
49d6abd9
...
...
@@ -72,4 +72,14 @@ class BlockHelper implements \Magento\Framework\Data\CollectionDataSourceInterfa
->
createBlock
(
ToolBar
::
class
)
->
toHtml
();
}
public
function
getReviewImagesBlock
(
$reviewId
,
$productId
)
:
Images
{
return
$this
->
blockFactory
->
createBlock
(
Images
::
class
)
->
setProductId
(
$productId
)
->
setReviewId
(
$reviewId
);
}
}
app/code/Joshine/Review/view/frontend/templates/images.phtml
View file @
49d6abd9
...
...
@@ -2,10 +2,9 @@
/** @var \Joshine\Review\Block\Images $block */
$collection
=
$block
->
getCollection
();
?>
<?php
if
(
$collection
->
getSize
())
:
?>
<?php
foreach
(
$collection
as
$item
)
:
?>
<div
class=
"joshine-review-pic-item joshine-col-xs-4"
data-
amreview-js=
"slider-item"
data-
img-src=
"
<?=
$block
->
getFullImagePath
(
$item
)
?>
"
<div
class=
"joshine-review-pic-item joshine-col-xs-4"
data-img-src=
"
<?=
$block
->
getFullImagePath
(
$item
)
?>
"
data-product-id=
"
<?=
$block
->
getProductId
()
?>
"
data-reviews-id=
"
<?=
$block
->
getReviewId
()
?>
"
>
<img
class=
"review-image rounded"
src=
"
<?=
$block
->
getResizedImagePath
(
$item
)
?>
"
/>
...
...
@@ -14,3 +13,4 @@ $collection = $block->getCollection();
<?php
endif
;
?>
app/code/Joshine/Review/view/frontend/templates/modal.phtml
View file @
49d6abd9
<style>
.joshine-model-warp
.joshine-mask
{
z-index
:
1000
;
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,
.8
);
}
</style>
<div
class=
"joshine-model-warp joshine-hidden"
>
Place Your Contents Here
<div
class=
"joshine-mask"
></div>
</div>
app/code/Joshine/Review/view/frontend/templates/product/view/list.phtml
View file @
49d6abd9
This diff is collapsed.
Click to expand it.
app/code/Joshine/Review/view/frontend/web/css/_review.css
View file @
49d6abd9
...
...
@@ -236,4 +236,13 @@
.joshine-review-container-mobile
.joshine-review-item
.fit-item
.joshine-process
.joshine-process-active
{
background-color
:
#222
;
border-radius
:
4px
;
}
.modal-reviews-details__image-swiper
.swiper-button-next
{
cursor
:
url(static/frontend/Joshine/breeze/en_US/Joshine_Review/img/favicon-next.ico)
,
auto
;
}
.modal-reviews-details__image-swiper
.swiper-button-prev
{
cursor
:
url(static/frontend/Joshine/breeze/en_US/Joshine_Review/img/favicon-pre.ico)
,
auto
;
}
\ No newline at end of file
app/code/Joshine/Review/view/frontend/web/img/favicon-next.ico
0 → 100644
View file @
49d6abd9
File added
app/code/Joshine/Review/view/frontend/web/img/favicon-pre.ico
0 → 100644
View file @
49d6abd9
File added
app/code/Joshine/Review/view/frontend/web/js/review/js-loader.js
View file @
49d6abd9
...
...
@@ -14,9 +14,6 @@ define([
handler
.
handlePage
(
$
(
this
),
event
);
});
/*$(document).on('click', '.joshine-review-pic-item', function (event) {
handler.handleReviewsImgClick($(this), event);
});*/
},
});
return
$
.
mage
.
joshineReview
...
...
app/design/frontend/Joshine/breeze/web/images/favicon-next.ico
0 → 100644
View file @
49d6abd9
File added
app/design/frontend/Joshine/breeze/web/images/favicon-pre.ico
0 → 100644
View file @
49d6abd9
File added
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