Skip to content

Commit e915f04

Browse files
committed
Clean code
1 parent 46620df commit e915f04

File tree

4 files changed

+116
-114
lines changed

4 files changed

+116
-114
lines changed

Observer/AddBlock.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function execute(Observer $observer)
8585
$fullActionName = $this->request->getFullActionName();
8686
$output = $observer->getTransport()->getOutput();
8787
foreach ($this->helperData->getActiveSliders() as $slider) {
88-
list($pageType, $location) = explode('.', $slider->getLocation());
88+
[$pageType, $location] = explode('.', $slider->getLocation());
8989
if ($fullActionName == $pageType || $pageType == 'allpage') {
9090
$content = $layout->createBlock($this->productType->getBlockMap($slider->getProductType()))
9191
->setSlider($slider)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"mageplaza/module-core": "^1.4.5"
66
},
77
"type": "magento2-module",
8-
"version": "2.0.5",
8+
"version": "2.0.6",
99
"license": "proprietary",
1010
"authors": [
1111
{

i18n/en_US.csv

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ Edit,Edit
7070
"Add to Cart","Add to Cart"
7171
"In stock","In stock"
7272
"Out of stock","Out of stock"
73+
"Add to Wish List","Add to Wish List"
74+
"Add to Compare","Add to Compare"
7375
"Product Slider","Product Slider"
7476
"General Configuration","General Configuration"
7577
"Select Yes to enable this module","Select Yes to enable this module"
+112-112
Original file line numberDiff line numberDiff line change
@@ -1,112 +1,112 @@
1-
/**
2-
* Mageplaza
3-
*
4-
* NOTICE OF LICENSE
5-
*
6-
* This source file is subject to the Mageplaza.com license that is
7-
* available through the world-wide-web at this URL:
8-
* https://www.mageplaza.com/LICENSE.txt
9-
*
10-
* DISCLAIMER
11-
*
12-
* Do not edit or add to this file if you wish to upgrade this extension to newer
13-
* version in the future.
14-
*
15-
* @category Mageplaza
16-
* @package Mageplaza_Productslider
17-
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
18-
* @license https://www.mageplaza.com/LICENSE.txt
19-
*/
20-
.mp-product-slider-content .owl-nav{
21-
font-size: 80px;
22-
}
23-
24-
.mp-product-slider-content .owl-nav button span{
25-
color: #D6D6D6;
26-
}
27-
28-
.mp-product-slider-content .owl-nav button span:hover{
29-
color: #869791;
30-
}
31-
32-
.mp-product-slider-content .owl-nav .owl-prev{
33-
position: absolute;
34-
top: 40%;
35-
left: 0;
36-
z-index: 999;
37-
text-shadow: none;
38-
background: none;
39-
border: none;
40-
}
41-
42-
.mp-product-slider-content .owl-nav .owl-next{
43-
position: absolute;
44-
top: 40%;
45-
right: 0;
46-
z-index: 999;
47-
text-shadow: none;
48-
background: none;
49-
border: none;
50-
}
51-
52-
.owl-item li.product-slider {
53-
width: 100% !important;
54-
}
55-
56-
.mp-product-slider-title {
57-
font-size: 3.8rem;
58-
position: relative;
59-
z-index: 1;
60-
margin: 0 0 5px;
61-
text-align: center;
62-
display: block;
63-
-webkit-margin-before: 0.83em;
64-
-webkit-margin-after: 0.83em;
65-
-webkit-margin-start: 0px;
66-
-webkit-margin-end: 0px;
67-
}
68-
69-
.mp-product-slider-block {
70-
margin: 0 !important;
71-
}
72-
73-
.mp-ps-info {
74-
font-size: 1.8rem;
75-
position: relative;
76-
z-index: 1;
77-
text-align: center;
78-
display: block;
79-
-webkit-margin-before: 1em;
80-
-webkit-margin-after: 1em;
81-
-webkit-margin-start: 0px;
82-
-webkit-margin-end: 0px;
83-
84-
}
85-
86-
.slider-product-item-info {
87-
width: 80% !important;
88-
}
89-
90-
.slider-product-item-actions {
91-
margin: 0px;
92-
}
93-
94-
.product.details.slider-product-item-details {
95-
margin-left: 10px
96-
}
97-
98-
.mp-ps-info {
99-
color: #bbbbbb;
100-
margin: -15px 0px 10px 0px;
101-
}
102-
.mp-product-slider-block .owl-carousel .owl-nav button.owl-prev,
103-
.mp-product-slider-block .owl-carousel .owl-nav button.owl-next {
104-
font-size: 20px;
105-
}
106-
107-
108-
109-
110-
111-
112-
1+
/**
2+
* Mageplaza
3+
*
4+
* NOTICE OF LICENSE
5+
*
6+
* This source file is subject to the Mageplaza.com license that is
7+
* available through the world-wide-web at this URL:
8+
* https://www.mageplaza.com/LICENSE.txt
9+
*
10+
* DISCLAIMER
11+
*
12+
* Do not edit or add to this file if you wish to upgrade this extension to newer
13+
* version in the future.
14+
*
15+
* @category Mageplaza
16+
* @package Mageplaza_Productslider
17+
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
18+
* @license https://www.mageplaza.com/LICENSE.txt
19+
*/
20+
.mp-product-slider-content .owl-nav{
21+
font-size: 80px;
22+
}
23+
24+
.mp-product-slider-content .owl-nav button span{
25+
color: #D6D6D6;
26+
}
27+
28+
.mp-product-slider-content .owl-nav button span:hover{
29+
color: #869791;
30+
}
31+
32+
.mp-product-slider-content .owl-nav .owl-prev{
33+
position: absolute;
34+
top: 40%;
35+
left: 0;
36+
z-index: 999;
37+
text-shadow: none;
38+
background: none;
39+
border: none;
40+
}
41+
42+
.mp-product-slider-content .owl-nav .owl-next{
43+
position: absolute;
44+
top: 40%;
45+
right: 0;
46+
z-index: 999;
47+
text-shadow: none;
48+
background: none;
49+
border: none;
50+
}
51+
52+
.owl-item li.product-slider {
53+
width: 100% !important;
54+
}
55+
56+
.mp-product-slider-title {
57+
font-size: 3.8rem;
58+
position: relative;
59+
z-index: 1;
60+
margin: 0 0 5px;
61+
text-align: center;
62+
display: block;
63+
-webkit-margin-before: 0.83em;
64+
-webkit-margin-after: 0.83em;
65+
-webkit-margin-start: 0px;
66+
-webkit-margin-end: 0px;
67+
}
68+
69+
.mp-product-slider-block {
70+
margin: 0 !important;
71+
}
72+
73+
.mp-ps-info {
74+
font-size: 1.8rem;
75+
position: relative;
76+
z-index: 1;
77+
text-align: center;
78+
display: block;
79+
-webkit-margin-before: 1em;
80+
-webkit-margin-after: 1em;
81+
-webkit-margin-start: 0px;
82+
-webkit-margin-end: 0px;
83+
84+
}
85+
86+
.slider-product-item-info {
87+
width: 80% !important;
88+
}
89+
90+
.slider-product-item-actions {
91+
margin: 0px;
92+
}
93+
94+
.product.details.slider-product-item-details {
95+
margin-left: 10px
96+
}
97+
98+
.mp-ps-info {
99+
color: #bbbbbb;
100+
margin: -15px 0px 10px 0px;
101+
}
102+
.mp-product-slider-block .owl-carousel .owl-nav button.owl-prev,
103+
.mp-product-slider-block .owl-carousel .owl-nav button.owl-next {
104+
font-size: 20px;
105+
}
106+
107+
108+
109+
110+
111+
112+

0 commit comments

Comments
 (0)