WooCommerce Variation Swatches - Version 1.0.3

Version Description

  • Added css class on body based on settings
  • tooltip and frontend css changed
  • add_theme_support( 'woo-variation-swatches', array( 'tooltip' => FALSE, 'stylesheet' => FALSE ) ); for theme developer default setting control.
Download this release

Release Info

Developer EmranAhmed
Plugin Icon 128x128 WooCommerce Variation Swatches
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

README.txt CHANGED
@@ -16,7 +16,7 @@ Beautiful Color, Image and Buttons Variation Swatches For WooCommerce Product At
16
17
Woo Variation Swatches is easy to use WooCommerce product variation swatches plugin. It offers an aesthetic and professional experience to select attributes for variation products. It turns the product variation select options fields into radio images, colors, and label. It means with the help of this powerful WooCommerce color or image variation swatches plugin, you can show product variation items in images, colors, and label. So, you can say goodbye to dropdown product attribute fields.
18
19
- Woo Variation Swatches not only offers the color, image and label attributes in the single WooCommerce product. It also enables them in product quick view. If you're using WooCommerce themes like Flatsome that comes with default Quick View option, you don’t need to hassle to load color and image swatches for variable product attributes in quick view separately.
20
21
In the free WooCommerce attribute variation plugin, besides creating size, brand, image, color, and label variation swatches, you can handle the swatches shape style <strong>Rounded and Circle</strong>. On top of that, it allows you beautiful tooltips on variation swatch hover. Based on your requirement you enable and disable hover from the settings. To maximize and personalize your development process, the product attributes swatches comes an option to disable default plugin stylesheet so that you can personally write your own CSS.
22
@@ -29,23 +29,21 @@ In the free WooCommerce attribute variation plugin, besides creating size, brand
29
* Enable attributes into label/text/button swatches
30
* Control attribute setting globally.
31
* Compatible with popular themes and plugins
32
- * Option to select ROUNDED and CIRCLED variation shape.
33
- * Flexible tooltip insert and dispaly settings
34
- * Option to disable plugin stylesheet.
35
* No extra option and no conclusion.
36
37
= Sites Built With Woo Variation Swatches Plugin =
38
<blockquote>
39
<ul>
40
- <li> <a href="http://bit.ly/woovs-demo-01">plotnikoff.ru</a></li>
41
</ul>
42
43
</blockquote>
44
45
- = Officially tested WooCommerce Themes =
46
-
47
- * [Flatsome Theme](http://bit.ly/flatsomeyoutube)
48
-
49
= Officially tested plugins =
50
51
* WPML
@@ -132,6 +130,12 @@ Yes, it supports any kinds of product quick view.
132
133
== Changelog ==
134
135
= 1.0.2 =
136
137
* Added tooltip
16
17
Woo Variation Swatches is easy to use WooCommerce product variation swatches plugin. It offers an aesthetic and professional experience to select attributes for variation products. It turns the product variation select options fields into radio images, colors, and label. It means with the help of this powerful WooCommerce color or image variation swatches plugin, you can show product variation items in images, colors, and label. So, you can say goodbye to dropdown product attribute fields.
18
19
+ WooCommerce Variation Swatches not only offers the color, image and label attributes in the single WooCommerce product. It also enables them in product quick view. If you're using WooCommerce themes like Flatsome that comes with default Quick View option, you don’t need to hassle to load color and image swatches for variable product attributes in quick view separately.
20
21
In the free WooCommerce attribute variation plugin, besides creating size, brand, image, color, and label variation swatches, you can handle the swatches shape style <strong>Rounded and Circle</strong>. On top of that, it allows you beautiful tooltips on variation swatch hover. Based on your requirement you enable and disable hover from the settings. To maximize and personalize your development process, the product attributes swatches comes an option to disable default plugin stylesheet so that you can personally write your own CSS.
22
29
* Enable attributes into label/text/button swatches
30
* Control attribute setting globally.
31
* Compatible with popular themes and plugins
32
+ * Option to select ROUNDED and SQUARED variation shape.
33
+ * Flexible tooltip insert and display settings
34
+ * Option to disable default plugin stylesheet for theme developer.
35
* No extra option and no conclusion.
36
37
= Sites Built With Woo Variation Swatches Plugin =
38
<blockquote>
39
<ul>
40
+ <li><a href="http://bit.ly/woovs-demo-02">loja2passos.com.br</a> | Built With: Flatsome Theme | Niche: Shoe Store </li>
41
+ <li><a href="http://bit.ly/woovs-demo-01">plotnikoff.ru</a> Built With: Uncode Theme | Niche: Furniture and Home Appliances Store </li>
42
+ <li><a href="http://bit.ly/woovs-demo-03">robinsongarden.co.uk</a> Built With: Labomba Theme | Niche: Bespoke Furniture Store</li>
43
</ul>
44
45
</blockquote>
46
47
= Officially tested plugins =
48
49
* WPML
130
131
== Changelog ==
132
133
+ = 1.0.3 =
134
+
135
+ * Added css class on body based on settings
136
+ * tooltip and frontend css changed
137
+ * `add_theme_support( 'woo-variation-swatches', array( 'tooltip' => FALSE, 'stylesheet' => FALSE ) );` for theme developer default setting control.
138
+
139
= 1.0.2 =
140
141
* Added tooltip
assets/css/admin.css CHANGED
@@ -1,8 +1,8 @@
1
/*!
2
- * Woo Variation Swatches v1.0.2
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:48
6
* Released under the GPLv3 license.
7
*/
8
.button.button-danger {
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:30
6
* Released under the GPLv3 license.
7
*/
8
.button.button-danger {
assets/css/admin.min.css CHANGED
@@ -1,8 +1,8 @@
1
/*!
2
- * Woo Variation Swatches v1.0.2
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:54
6
* Released under the GPLv3 license.
7
*/
8
.button.button-danger{color:#fff;background-color:#af2d2b;border-color:#a62d2b;-webkit-box-shadow:0 1px 0 #a72d2b;box-shadow:0 1px 0 #a72d2b;vertical-align:top}.button.button-danger.active,.button.button-danger:active,.button.button-danger:focus,.button.button-danger:hover{color:#fff;background:#c9302c}[data-depends]{display:none}.meta-image-field-wrapper{display:table}.meta-image-field-wrapper .button{margin:5px 0;display:block}.meta-image-field-wrapper .image-preview{display:table-cell;width:60px;padding-right:10px}.meta-image-field-wrapper .button-wrapper{display:table-cell;vertical-align:top}.gwp-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px}.gwp-rate-stars svg,.gwp-rate-stars svg a{fill:#ffb900;stroke:#ffb900;cursor:pointer}.gwp-rate-stars svg:hover,.gwp-rate-stars svg a:hover{fill:#ffb900}.gwp-rate-stars svg:hover~svg,.gwp-rate-stars svg:hover~svg a,.gwp-rate-stars svg a:hover~svg,.gwp-rate-stars svg a:hover~svg a{fill:none}
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:35
6
* Released under the GPLv3 license.
7
*/
8
.button.button-danger{color:#fff;background-color:#af2d2b;border-color:#a62d2b;-webkit-box-shadow:0 1px 0 #a72d2b;box-shadow:0 1px 0 #a72d2b;vertical-align:top}.button.button-danger.active,.button.button-danger:active,.button.button-danger:focus,.button.button-danger:hover{color:#fff;background:#c9302c}[data-depends]{display:none}.meta-image-field-wrapper{display:table}.meta-image-field-wrapper .button{margin:5px 0;display:block}.meta-image-field-wrapper .image-preview{display:table-cell;width:60px;padding-right:10px}.meta-image-field-wrapper .button-wrapper{display:table-cell;vertical-align:top}.gwp-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px}.gwp-rate-stars svg,.gwp-rate-stars svg a{fill:#ffb900;stroke:#ffb900;cursor:pointer}.gwp-rate-stars svg:hover,.gwp-rate-stars svg a:hover{fill:#ffb900}.gwp-rate-stars svg:hover~svg,.gwp-rate-stars svg:hover~svg a,.gwp-rate-stars svg a:hover~svg,.gwp-rate-stars svg a:hover~svg a{fill:none}
assets/css/frontend-tooltip.css CHANGED
@@ -1,8 +1,8 @@
1
/*!
2
- * Woo Variation Swatches v1.0.2
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:48
6
* Released under the GPLv3 license.
7
*/
8
.variable-items-wrapper [data-tooltip] {
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:30
6
* Released under the GPLv3 license.
7
*/
8
.variable-items-wrapper [data-tooltip] {
assets/css/frontend-tooltip.min.css CHANGED
@@ -1,8 +1,8 @@
1
/*!
2
- * Woo Variation Swatches v1.0.2
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:54
6
* Released under the GPLv3 license.
7
*/
8
.variable-items-wrapper [data-tooltip]{position:relative;cursor:pointer}.variable-items-wrapper [data-tooltip]:after,.variable-items-wrapper [data-tooltip]:before{visibility:hidden;opacity:0;pointer-events:none;-webkit-box-sizing:inherit;box-sizing:inherit;position:absolute;bottom:130%;left:50%;z-index:9}.variable-items-wrapper [data-tooltip]:before{margin-bottom:5px;margin-left:-50px;padding:7px;width:100px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-tooltip);text-align:center;font-size:14px;line-height:1.2}.variable-items-wrapper [data-tooltip]:after{margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid rgba(51,51,51,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.variable-items-wrapper [data-tooltip]:hover:after,.variable-items-wrapper [data-tooltip]:hover:before{visibility:visible;opacity:1}
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:35
6
* Released under the GPLv3 license.
7
*/
8
.variable-items-wrapper [data-tooltip]{position:relative;cursor:pointer}.variable-items-wrapper [data-tooltip]:after,.variable-items-wrapper [data-tooltip]:before{visibility:hidden;opacity:0;pointer-events:none;-webkit-box-sizing:inherit;box-sizing:inherit;position:absolute;bottom:130%;left:50%;z-index:9}.variable-items-wrapper [data-tooltip]:before{margin-bottom:5px;margin-left:-50px;padding:7px;width:100px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-tooltip);text-align:center;font-size:14px;line-height:1.2}.variable-items-wrapper [data-tooltip]:after{margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid rgba(51,51,51,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.variable-items-wrapper [data-tooltip]:hover:after,.variable-items-wrapper [data-tooltip]:hover:before{visibility:visible;opacity:1}
assets/css/frontend.css CHANGED
@@ -1,8 +1,8 @@
1
/*!
2
- * Woo Variation Swatches v1.0.2
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:48
6
* Released under the GPLv3 license.
7
*/
8
.variable-items-wrapper {
@@ -11,18 +11,14 @@
11
display: flex;
12
-ms-flex-wrap: wrap;
13
flex-wrap: wrap;
14
}
15
16
.variable-items-wrapper .variable-item {
17
-webkit-box-sizing: border-box;
18
box-sizing: border-box;
19
list-style: none;
20
- padding: 2px;
21
- margin: 2px;
22
cursor: pointer;
23
- border: 1px solid rgba(0, 0, 0, 0.2);
24
- width: 30px;
25
- height: 30px;
26
display: -webkit-box;
27
display: -ms-flexbox;
28
display: flex;
@@ -34,29 +30,56 @@
34
align-items: center;
35
}
36
37
- .variable-items-wrapper .variable-item.color-variable-item.rounded-style,
38
- .variable-items-wrapper .variable-item.button-variable-item.rounded-style {
39
- border-radius: 50%;
40
}
41
42
- .variable-items-wrapper .variable-item.color-variable-item.rounded-style span,
43
- .variable-items-wrapper .variable-item.button-variable-item.rounded-style span {
44
- border-radius: 50%;
45
}
46
47
- .variable-items-wrapper .variable-item.color-variable-item.squared-style,
48
- .variable-items-wrapper .variable-item.button-variable-item.squared-style {
49
- border-radius: 0;
50
}
51
52
- .variable-items-wrapper .variable-item.color-variable-item.squared-style span,
53
- .variable-items-wrapper .variable-item.button-variable-item.squared-style span {
54
- border-radius: 0;
55
}
56
57
- .variable-items-wrapper .variable-item span {
58
- padding: 10px;
59
- font-size: small;
60
}
61
62
.variable-items-wrapper .variable-item:last-of-type {
@@ -67,6 +90,13 @@
67
border: 1px solid #000000;
68
}
69
70
.variable-items-wrapper .variable-item.selected,
71
.variable-items-wrapper .variable-item.selected:hover {
72
border: 1px solid #000000;
@@ -78,5 +108,39 @@
78
opacity: 0.5;
79
}
80
81
82
- /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2Nzcy9mcm9udGVuZC5jc3MiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc2Nzcy9zcmMvc2Nzcy9mcm9udGVuZC5zY3NzIiwid2VicGFjazovLy8uL2Zyb250ZW5kLnNjc3MiXSwic291cmNlc0NvbnRlbnQiOlsiLnZhcmlhYmxlLWl0ZW1zLXdyYXBwZXIge1xuICBkaXNwbGF5ICAgOiBmbGV4O1xuICBmbGV4LXdyYXAgOiB3cmFwO1xuXG4gIC52YXJpYWJsZS1pdGVtIHtcbiAgICBib3gtc2l6aW5nICAgICAgOiBib3JkZXItYm94O1xuICAgIGxpc3Qtc3R5bGUgICAgICA6IG5vbmU7XG4gICAgcGFkZGluZyAgICAgICAgIDogMnB4O1xuICAgIG1hcmdpbiAgICAgICAgICA6IDJweDtcbiAgICBjdXJzb3IgICAgICAgICAgOiBwb2ludGVyO1xuICAgIGJvcmRlciAgICAgICAgICA6IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMik7XG4gICAgd2lkdGggICAgICAgICAgIDogMzBweDtcbiAgICBoZWlnaHQgICAgICAgICAgOiAzMHB4O1xuICAgIGRpc3BsYXkgICAgICAgICA6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50IDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zICAgICA6IGNlbnRlcjtcbiAgICAmLmNvbG9yLXZhcmlhYmxlLWl0ZW0sXG4gICAgJi5idXR0b24tdmFyaWFibGUtaXRlbSB7XG4gICAgICAmLnJvdW5kZWQtc3R5bGUge1xuICAgICAgICBib3JkZXItcmFkaXVzIDogNTAlO1xuICAgICAgICBzcGFuIHtcbiAgICAgICAgICBib3JkZXItcmFkaXVzIDogNTAlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgJi5zcXVhcmVkLXN0eWxlIHtcbiAgICAgICAgYm9yZGVyLXJhZGl1cyA6IDA7XG4gICAgICAgIHNwYW4ge1xuICAgICAgICAgIGJvcmRlci1yYWRpdXMgOiAwO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxu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Q0E7QUFpQ0E7QUFDQTtBQ1FBO0FBQ0E7QUR2Q0E7QUFrQ0E7QUNRQTtBQUNBO0FEM0NBO0FBcUNBO0FDU0E7QUFDQTtBRG5EQTs7QUE4Q0E7QUNTQTtBQUNBO0FEcERBOztBQThDQTtBQUNBO0FDVUE7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=*/
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:30
6
* Released under the GPLv3 license.
7
*/
8
.variable-items-wrapper {
11
display: flex;
12
-ms-flex-wrap: wrap;
13
flex-wrap: wrap;
14
+ margin: 0;
15
}
16
17
.variable-items-wrapper .variable-item {
18
-webkit-box-sizing: border-box;
19
box-sizing: border-box;
20
list-style: none;
21
cursor: pointer;
22
display: -webkit-box;
23
display: -ms-flexbox;
24
display: flex;
30
align-items: center;
31
}
32
33
+ .variable-items-wrapper .variable-item.color-variable-item {
34
+ padding: 2px;
35
+ margin: 2px;
36
+ width: 30px;
37
+ height: 30px;
38
+ border: 1px solid rgba(0, 0, 0, 0.2);
39
}
40
41
+ .variable-items-wrapper .variable-item.color-variable-item span {
42
+ width: 20px;
43
+ height: 20px;
44
+ position: relative;
45
}
46
47
+ .variable-items-wrapper .variable-item.color-variable-item span::after {
48
+ position: absolute;
49
+ content: "";
50
+ width: 20px;
51
+ height: 20px;
52
+ border-radius: 100%;
53
+ -webkit-box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.5);
54
+ box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.5);
55
}
56
57
+ .variable-items-wrapper .variable-item.button-variable-item {
58
+ padding: 2px;
59
+ margin: 2px;
60
+ width: 36px;
61
+ height: 36px;
62
+ border: 1px solid rgba(0, 0, 0, 0.2);
63
+ }
64
+
65
+ .variable-items-wrapper .variable-item.button-variable-item span {
66
+ font-size: 10px;
67
+ line-height: 1;
68
+ }
69
+
70
+ .variable-items-wrapper .variable-item.button-variable-item.selected,
71
+ .variable-items-wrapper .variable-item.button-variable-item.selected:hover {
72
+ border: 1px solid #000;
73
+ background: #000;
74
+ color: #fff;
75
}
76
77
+ .variable-items-wrapper .variable-item.image-variable-item {
78
+ padding: 2px;
79
+ margin: 2px;
80
+ width: 40px;
81
+ height: 40px;
82
+ border: 1px solid rgba(0, 0, 0, 0.2);
83
}
84
85
.variable-items-wrapper .variable-item:last-of-type {
90
border: 1px solid #000000;
91
}
92
93
+ .variable-items-wrapper .variable-item.color-variable-item.selected,
94
+ .variable-items-wrapper .variable-item.color-variable-item.selected:hover,
95
+ .variable-items-wrapper .variable-item.image-variable-item.selected,
96
+ .variable-items-wrapper .variable-item.image-variable-item.selected:hover {
97
+ border: 1px solid #000;
98
+ }
99
+
100
.variable-items-wrapper .variable-item.selected,
101
.variable-items-wrapper .variable-item.selected:hover {
102
border: 1px solid #000000;
108
opacity: 0.5;
109
}
110
111
+ .variable-items-wrapper [data-tooltip]:before {
112
+ background: rgba(0, 0, 0, 0.99) !important;
113
+ }
114
+
115
+ .variable-items-wrapper [data-tooltip]:after {
116
+ border-top-color: rgba(0, 0, 0, 0.99) !important;
117
+ }
118
+
119
+ .woo-variation-swatches-style-rounded .variable-item {
120
+ border-radius: 100%;
121
+ }
122
+
123
+ .woo-variation-swatches-style-rounded .variable-item span,
124
+ .woo-variation-swatches-style-rounded .variable-item img {
125
+ border-radius: 100%;
126
+ }
127
+
128
+ .woo-variation-swatches-style-squared .variable-item {
129
+ border-radius: 0;
130
+ }
131
+
132
+ .woo-variation-swatches-style-squared .variable-item.button-variable-item {
133
+ width: auto;
134
+ }
135
+
136
+ .woo-variation-swatches-style-squared .variable-item.button-variable-item span {
137
+ width: auto;
138
+ padding: 0 10px;
139
+ }
140
+
141
+ .woo-variation-swatches-style-squared .variable-item.color-variable-item span::after {
142
+ border-radius: 0;
143
+ }
144
+
145
146
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2Nzcy9mcm9udGVuZC5jc3MiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvc2Nzcy9zcmMvc2Nzcy9mcm9udGVuZC5zY3NzIiwid2VicGFjazovLy8uL2Zyb250ZW5kLnNjc3MiXSwic291cmNlc0NvbnRlbnQiOlsiLnZhcmlhYmxlLWl0ZW1zLXdyYXBwZXIge1xuICBkaXNwbGF5ICAgOiBmbGV4O1xuICBmbGV4LXdyYXAgOiB3cmFwO1xuICBtYXJnaW46IDA7XG5cbiAgLnZhcmlhYmxlLWl0ZW0ge1xuICAgIGJveC1zaXppbmcgICAgICA6IGJvcmRlci1ib3g7XG4gICAgbGlzdC1zdHlsZSAgICAgIDogbm9uZTtcbiAgICBjdXJzb3IgICAgICAgICAgOiBwb2ludGVyO1xuICAgIGRpc3BsYXkgICAgICAgICA6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50IDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zICAgICA6IGNlbnRlcjtcblxuICAgICYuY29sb3ItdmFyaWFibGUtaXRlbSB7XG4gICAgICBwYWRkaW5nICAgICAgICAgOiAycHg7XG4gICAgICBtYXJnaW4gICAgICAgICAgOiAycHg7XG4gICAgICB3aWR0aCAgICAgICAgICAgOiAzMHB4O1xuICAgICAgaGVpZ2h0ICAgICAgICAgIDogMzBweDtcbiAgICAgIGJvcmRlciAgICAgICAgICA6IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMik7XG5cbiAgICAgIHNwYW57XG4gICAgICAgIHdpZHRoOiAyMHB4O1xuICAgICAgICBoZWlnaHQ6IDIwcHg7XG4gICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAgICAgICAmOjphZnRlcntcbiAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgY29udGVudDogXCJcIjtcbiAgICAgICAgICB3aWR0aDogMjBweDtcbiAgICAgICAgICBoZWlnaHQ6IDIwcHg7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogMTAwJTtcbiAgICAgICAgICBib3gtc2hhZG93OiBpbnNldCAwIDAgMXB4IDAgcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgJi5idXR0b24tdmFyaWFibGUtaXRlbXtcbiAgICAgIHBhZGRpbmcgICAgICAgICA6IDJweDtcbiAgICAgIG1hcmdpbiAgICAgICAgICA6IDJweDtcbiAgICAgIHdpZHRoICAgICAgICAgICA6IDM2cHg7XG4gICAgICBoZWlnaHQgICAgICAgICAgOiAzNnB4O1xuICAgICAgYm9yZGVyICAgICAgICAgIDogMXB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4yKTtcblxuICAgICAgc3BhbntcbiAgICAgICAgZm9udC1zaXplOiAxMHB4O1xuICAgICAgICBsaW5lLWhlaWdodDogMTtcbiAgICAgICAgfVxuICAgICAgJi5zZWxlY3RlZCxcbiAgICAgICYuc2VsZWN0ZWQ6aG92ZXIge1xuICAgICAgICBib3JkZXIgOiAxcHggc29saWQgIzAwMDtcbiAgICAgICAgYmFja2dyb3VuZDogIzAwMDtcbiAgICAgICAgY29sb3I6ICNmZmY7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICYuaW1hZ2UtdmFyaWFibGUtaXRlbXtcbiAgICAgIHBhZGRpbmcgICAgICAgICA6IDJweDtcbiAgICAgIG1hcmdpbiAgICAgICAgICA6IDJweDtcbiAgICAgIHdpZHRoICAgICAgICAgICA6IDQwcHg7XG4gICAgICBoZWlnaHQgICAgICAgICAgOiA0MHB4O1xuICAgICAgYm9yZGVyICAgICAgICAgIDogMXB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4yKTtcbiAgICAgIH1cblxuXG4gICAgJjpsYXN0LW9mLXR5cGUge1xuICAgICAgbWFyZ2luLXJpZ2h0IDogMDtcbiAgICAgIH1cbiAgICAmOmhvdm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0VBO0FDSUE7QUFDQTtBRHBFQTs7OztBQXNFQTtBQ0lBO0FBQ0E7QUQzRUE7O0FBNEVBO0FDR0E7QUFDQTtBRGhGQTs7QUFnRkE7QUFDQTtBQ0lBO0FBQ0E7QUQzRkE7QUE4RkE7QUNBQTtBQUNBO0FERUE7QUFDQTtBQ0FBO0FBQ0E7QURJQTtBQUVBO0FDSEE7QUFDQTtBRElBOztBQUVBO0FDRkE7QUFDQTtBRE1BO0FBQ0E7QUNKQTtBQUNBO0FEQ0E7QUFJQTtBQ0ZBO0FBQ0E7QURFQTtBQUNBO0FBQ0E7QUNBQTtBQUNBO0FEUkE7QUFhQTtBQ0ZBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9*/
assets/css/frontend.min.css CHANGED
@@ -1,8 +1,8 @@
1
/*!
2
- * Woo Variation Swatches v1.0.2
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:54
6
* Released under the GPLv3 license.
7
*/
8
- .variable-items-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.variable-items-wrapper .variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;padding:2px;margin:2px;cursor:pointer;border:1px solid rgba(0,0,0,.2);width:30px;height:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.variable-items-wrapper .variable-item.button-variable-item.rounded-style,.variable-items-wrapper .variable-item.button-variable-item.rounded-style span,.variable-items-wrapper .variable-item.color-variable-item.rounded-style,.variable-items-wrapper .variable-item.color-variable-item.rounded-style span{border-radius:50%}.variable-items-wrapper .variable-item.button-variable-item.squared-style,.variable-items-wrapper .variable-item.button-variable-item.squared-style span,.variable-items-wrapper .variable-item.color-variable-item.squared-style,.variable-items-wrapper .variable-item.color-variable-item.squared-style span{border-radius:0}.variable-items-wrapper .variable-item span{padding:10px;font-size:small}.variable-items-wrapper .variable-item:last-of-type{margin-right:0}.variable-items-wrapper .variable-item.selected,.variable-items-wrapper .variable-item.selected:hover,.variable-items-wrapper .variable-item:hover{border:1px solid #000}.variable-items-wrapper .variable-item.disabled,.variable-items-wrapper .variable-item.disabled:hover{cursor:not-allowed;opacity:.5}
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:35
6
* Released under the GPLv3 license.
7
*/
8
+ .variable-items-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0}.variable-items-wrapper .variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.variable-items-wrapper .variable-item.color-variable-item{padding:2px;margin:2px;width:30px;height:30px;border:1px solid rgba(0,0,0,.2)}.variable-items-wrapper .variable-item.color-variable-item span{width:20px;height:20px;position:relative}.variable-items-wrapper .variable-item.color-variable-item span:after{position:absolute;content:"";width:20px;height:20px;border-radius:100%;-webkit-box-shadow:inset 0 0 1px 0 rgba(0,0,0,.5);box-shadow:inset 0 0 1px 0 rgba(0,0,0,.5)}.variable-items-wrapper .variable-item.button-variable-item{padding:2px;margin:2px;width:36px;height:36px;border:1px solid rgba(0,0,0,.2)}.variable-items-wrapper .variable-item.button-variable-item span{font-size:10px;line-height:1}.variable-items-wrapper .variable-item.button-variable-item.selected,.variable-items-wrapper .variable-item.button-variable-item.selected:hover{border:1px solid #000;background:#000;color:#fff}.variable-items-wrapper .variable-item.image-variable-item{padding:2px;margin:2px;width:40px;height:40px;border:1px solid rgba(0,0,0,.2)}.variable-items-wrapper .variable-item:last-of-type{margin-right:0}.variable-items-wrapper .variable-item.color-variable-item.selected,.variable-items-wrapper .variable-item.color-variable-item.selected:hover,.variable-items-wrapper .variable-item.image-variable-item.selected,.variable-items-wrapper .variable-item.image-variable-item.selected:hover,.variable-items-wrapper .variable-item.selected,.variable-items-wrapper .variable-item.selected:hover,.variable-items-wrapper .variable-item:hover{border:1px solid #000}.variable-items-wrapper .variable-item.disabled,.variable-items-wrapper .variable-item.disabled:hover{cursor:not-allowed;opacity:.5}.variable-items-wrapper [data-tooltip]:before{background:rgba(0,0,0,.99)!important}.variable-items-wrapper [data-tooltip]:after{border-top-color:rgba(0,0,0,.99)!important}.woo-variation-swatches-style-rounded .variable-item,.woo-variation-swatches-style-rounded .variable-item img,.woo-variation-swatches-style-rounded .variable-item span{border-radius:100%}.woo-variation-swatches-style-squared .variable-item{border-radius:0}.woo-variation-swatches-style-squared .variable-item.button-variable-item{width:auto}.woo-variation-swatches-style-squared .variable-item.button-variable-item span{width:auto;padding:0 10px}.woo-variation-swatches-style-squared .variable-item.color-variable-item span:after{border-radius:0}
assets/js/admin.js CHANGED
@@ -1,8 +1,8 @@
1
/*!
2
- * Woo Variation Swatches v1.0.2
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:48
6
* Released under the GPLv3 license.
7
*/
8
/******/ (function(modules) { // webpackBootstrap
@@ -248,4 +248,4 @@ var PluginHelper = function ($) {
248
249
/***/ })
250
/******/ ]);
251
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2FkbWluLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL3dlYnBhY2svYm9vdHN0cmFwIGM0ZThkODk0ODU3OGZmZDM2Y2QxIiwid2VicGFjazovLy9zcmMvanMvYmFja2VuZC5qcyIsIndlYnBhY2s6Ly8vc3JjL2pzL1BsdWdpbkhlbHBlci5qcyIsIndlYnBhY2s6Ly8vLi9zcmMvc2Nzcy9iYWNrZW5kLnNjc3M/YmU2MSIsIndlYnBhY2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YmFja2VuZC5qcyIsIi8qZ2xvYmFsIFdWU1BsdWdpbk9iamVjdCwgd3AqL1xuXG5jb25zdCBQbHVnaW5IZWxwZXIgPSAoKCQpID0+IHtcbiAgICBjbGFzcyBQbHVnaW5IZWxwZXIge1xuXG4gICAgICAgIHN0YXRpYyBJbWFnZVVwbG9hZGVyKCkge1xuICAgICAgICAgICAgJChkb2N1bWVudCkub2ZmKCdjbGljaycsICdidXR0b24ud3ZzX3VwbG9hZF9pbWFnZV9idXR0b24nKTtcbiAgICAgICAgICAgICQoZG9jdW1lbnQpLm9uKCdjbGljaycsICdidXR0b24ud3ZzX3VwbG9hZF9pbWFnZV9idXR0b24nLCB0aGlzLkFkZEltYWdlKTtcbiAgICAgICAgICAgICQoZG9jdW1lbnQpLm9uKCdjbGljaycsICdidXR0b24ud3ZzX3JlbW92ZV9pbWFnZV9idXR0b24nLCB0aGlzLlJlbW92ZUltYWdlKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN0YXRpYyBBZGRJbWFnZShldmVudCkge1xuXG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgZXZlbnQuc3RvcFByb3BhZ2F0aW9uKCk7XG5cbiAgICAgICAgICAgIGxldCBmaWxlX2ZyYW1lO1xuXG4gICAgICAgICAgICBpZiAodHlwZW9mIHdwICE9PSAndW5kZWZpbmVkJyAmJiB3cC5tZWRpYSAmJiB3cC5tZWRpYS5lZGl0b3IpIHtcblxuICAgICAgICAgICAgICAgIC8vIElmIHRoZSBtZWRpYSBmcmFtZSBhbHJlYWR5IGV4aXN0cywgcmVvcGVuIGl0LlxuICAgICAgICAgICAgICAgIGlmIChmaWxlX2ZyYW1lKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGVfZnJhbWUub3BlbigpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gQ3JlYXRlIHRoZSBtZWRpYSBmcmFtZS5cbiAgICAgICAgICAgICAgICBmaWxlX2ZyYW1lID0gd3AubWVkaWEuZnJhbWVzLnNlbGVjdF9pbWFnZSA9IHdwLm1lZGlhKHtcbiAgICAgICAgICAgICAgICAgICAgdGl0bGUgICAgOiBXVlNQbHVnaW5PYmplY3QubWVkaWFfdGl0bGUsXG4gICAgICAgICAgICAgICAgICAgIGJ1dHRvbiAgIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dCA6IFdWU1BsdWdpbk9iamVjdC5idXR0b25fdGl0bGVcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlwbGUgOiBmYWxzZSxcbiAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgIC8vIFdoZW4gYW4gaW1hZ2UgaXMgc2VsZWN0ZWQsIHJ1biBhIGNhbGxiYWNrLlxuICAgICAgICAgICAgICAgIGZpbGVfZnJhbWUub24oJ3NlbGVjdCcsICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGF0dGFjaG1lbnQgPSBmaWxlX2ZyYW1lLnN0YXRlKCkuZ2V0KCdzZWxlY3Rpb24nKS5maXJzdCgpLnRvSlNPTigpO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmICgkLnRyaW0oYXR0YWNobWVudC5pZCkgIT09ICcnKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCB1cmwgPSAoIHR5cGVvZihhdHRhY2htZW50LnNpemVzLnRodW1ibmFpbCkgPT09ICd1bmRlZmluZWQnICkgPyBhdHRhY2htZW50LnNpemVzLmZ1bGwudXJsIDogYXR0YWNobWVudC5zaXplcy50aHVtYm5haWwudXJsO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAkKHRoaXMpLnByZXYoKS52YWwoYXR0YWNobWVudC5pZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAkKHRoaXMpLmNsb3Nlc3QoJy5tZXRhLWltYWdlLWZpZWxkLXdyYXBwZXInKS5maW5kKCdpbWcnKS5hdHRyKCdzcmMnLCB1cmwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5uZXh0KCkuc2hvdygpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vZmlsZV9mcmFtZS5jbG9zZSgpO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgLy8gV2hlbiBvcGVuIHNlbGVjdCBzZWxlY3RlZFxuICAgICAgICAgICAgICAgIGZpbGVfZnJhbWUub24oJ29wZW4nLCAoKSA9PiB7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gR3JhYiBvdXIgYXR0YWNobWVudCBzZWxlY3Rpb24gYW5kIGNvbnN0cnVjdCBhIEpTT04gcmVwcmVzZW50YXRpb24gb2YgdGhlIG1vZGVsLlxuICAgICAgICAgICAgICAgICAgICBsZXQgc2VsZWN0aW9uICA9IGZpbGVfZnJhbWUuc3RhdGUoKS5nZXQoJ3NlbGVjdGlvbicpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgY3VycmVudCAgICA9ICQodGhpcykucHJldigpLnZhbCgpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgYXR0YWNobWVudCA9IHdwLm1lZGlhLmF0dGFjaG1lbnQoY3VycmVudCk7XG4gICAgICAgICAgICAgICAgICAgIGF0dGFjaG1lbnQuZmV0Y2goKTtcbiAgICAgICAgICAgICAgICAgICAgc2VsZWN0aW9uLmFkZChhdHRhY2htZW50ID8gW2F0dGFjaG1lbnRdIDogW10pO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgLy8gRmluYWxseSwgb3BlbiB0aGUgbW9kYWwuXG4gICAgICAgICAgICAgICAgZmlsZV9mcmFtZS5vcGVuKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzdGF0aWMgUmVtb3ZlSW1hZ2UoZXZlbnQpIHtcblxuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuXG4gICAgICAgICAgICBsZXQgcGxhY2Vob2xkZXIgPSAkKHRoaXMpLmNsb3Nlc3QoJy5tZXRhLWltYWdlLWZpZWxkLXdyYXBwZXInKS5maW5kKCdpbWcnKS5kYXRhKCdwbGFjZWhvbGRlcicpO1xuICAgICAgICAgICAgJCh0aGlzKS5jbG9zZXN0KCcubWV0YS1pbWFnZS1maWVsZC13cmFwcGVyJykuZmluZCgnaW1nJykuYXR0cignc3JjJywgcGxhY2Vob2xkZXIpO1xuICAgICAgICAgICAgJCh0aGlzKS5wcmV2KCkucHJldigpLnZhbCgnJyk7XG4gICAgICAgICAgICAkKHRoaXMpLmhpZGUoKTtcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN0YXRpYyBTZWxlY3RXb28oc2VsZWN0b3IgPSAnc2VsZWN0Lnd2cy1zZWxlY3R3b28nKSB7XG4gICAgICAgICAgICBpZiAoJCgpLnNlbGVjdFdvbykge1xuICAgICAgICAgICAgICAgICQoc2VsZWN0b3IpLnNlbGVjdFdvbyh7XG4gICAgICAgICAgICAgICAgICAgIGFsbG93Q2xlYXIgOiB0cnVlXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzdGF0aWMgQ29sb3JQaWNrZXIoc2VsZWN0b3IgPSAnaW5wdXQud3ZzLWNvbG9yLXBpY2tlcicpIHtcbiAgICAgICAgICAgICQoc2VsZWN0b3IpLndwQ29sb3JQaWNrZXIoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN0YXRpYyBGaWVsZERlcGVuZGVuY3koc2VsZWN0b3IgPSAnW2RhdGEtZGVwZW5kc10nKSB7XG4gICAgICAgICAgICAkKHNlbGVjdG9yKS5Gb3JtRmllbGREZXBlbmRlb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0FBQ0E7QUFsRkE7QUFBQTtBQUFBO0FBb0ZBO0FBQ0E7QUFBQTtBQUNBO0FBdEZBO0FBQUE7QUFBQTtBQXdGQTtBQUNBO0FBQUE7QUFDQTtBQTFGQTtBQUNBO0FBREE7QUFBQTtBQUNBO0FBNEZBO0FBQ0E7QUFDQTs7Ozs7OztBQ2pHQTs7Ozs7O0FDQUE7Ozs7OztBQ0FBOzs7QSIsInNvdXJjZVJvb3QiOiIifQ==
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:30
6
* Released under the GPLv3 license.
7
*/
8
/******/ (function(modules) { // webpackBootstrap
248
249
/***/ })
250
/******/ ]);
251
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2FkbWluLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL3dlYnBhY2svYm9vdHN0cmFwIDUwZjYwZGYyYzgwMmVjYmU1ODhlIiwid2VicGFjazovLy9zcmMvanMvYmFja2VuZC5qcyIsIndlYnBhY2s6Ly8vc3JjL2pzL1BsdWdpbkhlbHBlci5qcyIsIndlYnBhY2s6Ly8vLi9zcmMvc2Nzcy9iYWNrZW5kLnNjc3M/YmU2MSIsIndlYnBhY2s6Ly8vLi9zcmMvc2Nzcy9mcm9udGVuZC5zY3NzIiwid2VicGFjazovLy8uL3NyYy9zY3NzL3Rvb2x0aXAuc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyIgXHQvLyBUaGUgbW9kdWxlIGNhY2hlXG4gXHR2YXIgaW5zdGFsbGVkTW9kdWxlcyA9IHt9O1xuXG4gXHQvLyBUaGUgcmVxdWlyZSBmdW5jdGlvblxuIFx0ZnVuY3Rpb24gX193ZWJwYWNrX3JlcXVpcmVfXyhtb2R1bGVJZCkge1xuXG4gXHRcdC8vIENoZWNrIGlmIG1vZHVsZSB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ZzX3VwbG9hZF9pbWFnZV9idXR0b24nLCB0aGlzLkFkZEltYWdlKTtcbiAgICAgICAgICAgICQoZG9jdW1lbnQpLm9uKCdjbGljaycsICdidXR0b24ud3ZzX3JlbW92ZV9pbWFnZV9idXR0b24nLCB0aGlzLlJlbW92ZUltYWdlKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN0YXRpYyBBZGRJbWFnZShldmVudCkge1xuXG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgZXZlbnQuc3RvcFByb3BhZ2F0aW9uKCk7XG5cbiAgICAgICAgICAgIGxldCBmaWxlX2ZyYW1lO1xuXG4gICAgICAgICAgICBpZiAodHlwZW9mIHdwICE9PSAndW5kZWZpbmVkJyAmJiB3cC5tZWRpYSAmJiB3cC5tZWRpYS5lZGl0b3IpIHtcblxuICAgICAgICAgICAgICAgIC8vIElmIHRoZSBtZWRpYSBmcmFtZSBhbHJlYWR5IGV4aXN0cywgcmVvcGVuIGl0LlxuICAgICAgICAgICAgICAgIGlmIChmaWxlX2ZyYW1lKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGVfZnJhbWUub3BlbigpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gQ3JlYXRlIHRoZSBtZWRpYSBmcmFtZS5cbiAgICAgICAgICAgICAgICBmaWxlX2ZyYW1lID0gd3AubWVkaWEuZnJhbWVzLnNlbGVjdF9pbWFnZSA9IHdwLm1lZGlhKHtcbiAgICAgICAgICAgICAgICAgICAgdGl0bGUgICAgOiBXVlNQbHVnaW5PYmplY3QubWVkaWFfdGl0bGUsXG4gICAgICAgICAgICAgICAgICAgIGJ1dHRvbiAgIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dCA6IFdWU1BsdWdpbk9iamVjdC5idXR0b25fdGl0bGVcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlwbGUgOiBmYWxzZSxcbiAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgIC8vIFdoZW4gYW4gaW1hZ2UgaXMgc2VsZWN0ZWQsIHJ1biBhIGNhbGxiYWNrLlxuICAgICAgICAgICAgICAgIGZpbGVfZnJhbWUub24oJ3NlbGVjdCcsICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGF0dGFjaG1lbnQgPSBmaWxlX2ZyYW1lLnN0YXRlKCkuZ2V0KCdzZWxlY3Rpb24nKS5maXJzdCgpLnRvSlNPTigpO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmICgkLnRyaW0oYXR0YWNobWVudC5pZCkgIT09ICcnKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCB1cmwgPSAoIHR5cGVvZihhdHRhY2htZW50LnNpemVzLnRodW1ibmFpbCkgPT09ICd1bmRlZmluZWQnICkgPyBhdHRhY2htZW50LnNpemVzLmZ1bGwudXJsIDogYXR0YWNobWVudC5zaXplcy50aHVtYm5haWwudXJsO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAkKHRoaXMpLnByZXYoKS52YWwoYXR0YWNobWVudC5pZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAkKHRoaXMpLmNsb3Nlc3QoJy5tZXRhLWltYWdlLWZpZWxkLXdyYXBwZXInKS5maW5kKCdpbWcnKS5hdHRyKCdzcmMnLCB1cmwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5uZXh0KCkuc2hvdygpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vZmlsZV9mcmFtZS5jbG9zZSgpO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgLy8gV2hlbiBvcGVuIHNlbGVjdCBzZWxlY3RlZFxuICAgICAgICAgICAgICAgIGZpbGVfZnJhbWUub24oJ29wZW4nLCAoKSA9PiB7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gR3JhYiBvdXIgYXR0YWNobWVudCBzZWxlY3Rpb24gYW5kIGNvbnN0cnVjdCBhIEpTT04gcmVwcmVzZW50YXRpb24gb2YgdGhlIG1vZGVsLlxuICAgICAgICAgICAgICAgICAgICBsZXQgc2VsZWN0aW9uICA9IGZpbGVfZnJhbWUuc3RhdGUoKS5nZXQoJ3NlbGVjdGlvbicpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgY3VycmVudCAgICA9ICQodGhpcykucHJldigpLnZhbCgpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgYXR0YWNobWVudCA9IHdwLm1lZGlhLmF0dGFjaG1lbnQoY3VycmVudCk7XG4gICAgICAgICAgICAgICAgICAgIGF0dGFjaG1lbnQuZmV0Y2goKTtcbiAgICAgICAgICAgICAgICAgICAgc2VsZWN0aW9uLmFkZChhdHRhY2htZW50ID8gW2F0dGFjaG1lbnRdIDogW10pO1xuICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgLy8gRmluYWxseSwgb3BlbiB0aGUgbW9kYWwuXG4gICAgICAgICAgICAgICAgZmlsZV9mcmFtZS5vcGVuKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzdGF0aWMgUmVtb3ZlSW1hZ2UoZXZlbnQpIHtcblxuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuXG4gICAgICAgICAgICBsZXQgcGxhY2Vob2xkZXIgPSAkKHRoaXMpLmNsb3Nlc3QoJy5tZXRhLWltYWdlLWZpZWxkLXdyYXBwZXInKS5maW5kKCdpbWcnKS5kYXRhKCdwbGFjZWhvbGRlcicpO1xuICAgICAgICAgICAgJCh0aGlzKS5jbG9zZXN0KCcubWV0YS1pbWFnZS1maWVsZC13cmFwcGVyJykuZmluZCgnaW1nJykuYXR0cignc3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( emran.bd.08@gmail.com )
5
- * Date: 2018-1-9 02:17:48
6
* Released under the GPLv3 license.
7
*/
8
/******/ (function(modules) { // webpackBootstrap
@@ -240,4 +240,4 @@ var CustomVariationSelect = function ($) {
240
/***/ })
241
242
/******/ });
243
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2Zyb250ZW5kLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL3dlYnBhY2svYm9vdHN0cmFwIGM0ZThkODk0ODU3OGZmZDM2Y2QxIiwid2VicGFjazovLy9zcmMvanMvZnJvbnRlbmQuanMiLCJ3ZWJwYWNrOi8vL3NyYy9qcy9DdXN0b21WYXJpYXRpb25TZWxlY3QuanMiXSwic291cmNlc0NvbnRlbnQiOlsiIFx0Ly8gVGhlIG1vZHVsZSBjYWNoZVxuIFx0dmFyIGluc3RhbGxlZE1vZHVsZXMgPSB7fTtcblxuIFx0Ly8gVGhlIHJlcXVpcmUgZnVuY3Rpb25cbiBcdGZ1bmN0aW9uIF9fd2VicGFja19yZXF1aXJlX18obW9kdWxlSWQpIHtcblxuIFx0XHQvLyBDaGVjayBpZiBtb2R1bGUgaXMgaW4gY2FjaGVcbiBcdFx0aWYoaW5zdGFsbGVkTW9kdWxlc1ttb2R1bGVJZF0pIHtcbiBcdFx0XHRyZXR1cm4gaW5zdGFsbGVkTW9kdWxlc1ttb2R1bGVJZF0uZXhwb3J0cztcbiBcdFx0fVxuIFx0XHQvLyBDcmVhdGUgYSBuZXcgbW9kdWxlIChhbmQgcHV0IGl0IGludG8gdGhlIGNhY2hlKVxuIFx0XHR2YXIgbW9kdWxlID0gaW5zdGFsbGVkTW9kdWxlc1ttb2R1bGVJZF0gPSB7XG4gXHRcdFx0aTogbW9kdWxlSWQsXG4gXHRcdFx0bDogZmFsc2UsXG4gXHRcdFx0ZXhwb3J0czoge31cbiBcdFx0fTtcblxuIFx0XHQvLyBFeGVjdXRlIHRo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BJbml0IG9uIEFqYXggUG9wdXAgOilcbiAgICAgICAgJChkb2N1bWVudCkub24oJ3djX3ZhcmlhdGlvbl9mb3JtJywgJy52YXJpYXRpb25zX2Zvcm0nLCBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAkKHRoaXMpLkN1c3RvbVZhcmlhdGlvblNlbGVjdCgpO1xuICAgICAgICB9KTtcbiAgICB9KTtcbn0pOyAgLy8gZW5kIG9mIGpxdWVyeSBtYWluIHdyYXBwZXJcblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gc3JjL2pzL2Zyb250ZW5kLmpzIiwiLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gV29vQ29tbWVyY2UgVmFyaWF0aW9uIENoYW5nZVxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBDdXN0b21WYXJpYXRpb25TZWxlY3QgPSAoKCQpID0+IHtcblxuICAgIGNvbnN0IERlZmF1bHQgPSB7fTtcblxuICAgIGNsYXNzIEN1c3RvbVZhcmlhdGlvblNlbGVjdCB7XG5cbiAgICAgICAgY29uc3RydWN0b3IoZWxlbWVudCwgY29uZmlnKSB7XG5cbiAgICAgICAgICAgIC8vIEFzc2lnblxuICAgICAgICAgICAgdGhpcy5fZWxlbWVudCA9ICQoZWxlbWVudCk7XG4gICAgICAgICAgICB0aGlzLl9jb25maWcgID0gJC5leHRlbmQoe30sIERlZmF1bHQsIGNvbmZpZyk7XG5cbiAgICAgICAgICAgIC8vIENhbGxcbiAgICAgICAgICAgIC8vdGhpcy5hZGRJbnB1dE1hcmt1cCgpO1xuICAgICAgICAgICAgdGhpcy53cmFwcGVyQWN0aW9uKCk7XG4gICAgICAgICAgICB0aGlzLnJlc2V0RGF0YUFjdGlvbigpO1xuICAgICAgICAgICAgdGhpcy51cGRhdGVWYXJpYXRpb25WYWx1ZUFjdGlvbigpO1xuXG4gICAgICAgICAgICAkKGRvY3VtZW50KS50cmlnZ2VyKCdjdXN0b21fdmFyaWF0aW9uX3NlbGVjdCcpO1xuICAgICAgICB9XG5cbiAgICAgICAgc3RhdGljIF9qUXVlcnlJbnRlcmZhY2UoY29uZmlnKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5lYWNoKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICBuZXcgQ3VzdG9tVmFyaWF0aW9uU2VsZWN0KHRoaXMsIGNvbmZpZylcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICB3cmFwcGVyQWN0aW9uKCkge1xuICAgICAgICAgICAgdGhpcy5fZWxlbWVudC5maW5kKCd1bC52YXJpYWJsZS1pdGVtcy13cmFwcGVyJykuZWFjaChmdW5jdGlvbiAoaSwgZWwpIHtcblxuICAgICAgICAgICAgICAgIGxldCBzZWxlY3QgPSAkKHRoaXMpLnByZXYoJ3NlbGVjdCcpLFxuICAgICAgICAgICAgICAgICAgICBsaSAgICAgPSAkKHRoaXMpLmZpbmQoJ2xpJyk7XG5cbiAgICAgICAgICAgICAgICAkKHRoaXMpLm9uKCdjbGljaycsICdsaScsIGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICAgICAgZS5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHZhbHVlID0gJCh0aGlzKS5kYXRhKCd2YWx1ZScpO1xuICAgICAgICAgICAgICAgICAgICBzZWxlY3QudmFsKHZhbHVlKS50cmlnZ2VyKCdjaGFuZ2UnKTtcbiAgICAgICAgICAgICAgICAgICAgc2VsZWN0LnRyaWdnZXIoJ2NsaWNrJyk7XG4gICAgICAgICAgICAgICAgICAgIHNlbGVjdC50cmlnZ2VyKCdmb2N1c2luJyk7XG4gICAgICAgICAgICAgICAgICAgIHNlbGVjdC50cmlnZ2VyKCd0b3VjaHN0YXJ0Jyk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJlc2V0RGF0YUFjdGlvbigpIHtcbiAgICAgICAgICAgIHRoaXMuX2VsZW1lbnQub24oJ3Jlc2V0X2RhdGEnLCBmdW5jdGlvbiAoZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAkKHRoaXMpLmZpbmQoJ3VsLnZhcmlhYmxlLWl0ZW1zLXdyYXBwZXInKS5lYWNoKGZ1bmN0aW9uICgpIHtcblxuICAgICAgICAgICAgICAgICAgICBsZXQgbGkgPSAkKHRoaXMpLmZpbmQoJ2xpJyk7XG4gICAgICAgICAgICAgICAgICAgIGxpLmVhY2goZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5yZW1vdmVDbGFzcygnc2VsZWN0ZWQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICQodGhpcykucmVtb3ZlQ2xhc3MoJ2Rpc2FibGVkJyk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICB1cGRhdGVWYXJpYXRpb25WYWx1ZUFjdGlvbigpIHtcbiAgICAgICAgICAgIHRoaXMuX2VsZW1lbnQub24oJ3dvb2NvbW1lcmNlX3VwZGF0ZV92YXJpYXRpb25fdmFsdWVzJywgZnVuY3Rpb24gKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgJCh0aGlzKS5maW5kKCd1bC52YXJpYWJsZS1pdGVtcy13cmFwcGVyJykuZWFjaChmdW5jdGlvbiAoKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgbGV0IHNlbGVjdGVkID0gJycsXG4gICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zICA9ICQodGhpcykucHJldignc2VsZWN0JykuZmluZCgnb3B0aW9uJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50ICA9ICQodGhpcykucHJldignc2VsZWN0JykuZmluZCgnb3B0aW9uOnNlbGVjdGVkJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBlcSAgICAgICA9ICQodGhpcykucHJldignc2VsZWN0JykuZmluZCgnb3B0aW9uJykuZXEoMSksXG4gICAgICAgICAgICAgICAgICAgICAgICBsaSAgICAgICA9ICQodGhpcykuZmluZCgnbGknKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdHMgID0gW107XG5cbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5lYWNoKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICgkKHRoaXMpLnZhbCgpICE9PSAnJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdHMucHVzaCgkKHRoaXMpLnZhbCgpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZCA9IGN1cnJlbnQgPyBjdXJyZW50LnZhbCgpIDogZXEudmFsKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgICAgIF8uZGVsYXkoZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGkuZWFjaChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHZhbHVlID0gJCh0aGlzKS5kYXRhKCd2YWx1ZScpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICQodGhpcykucmVtb3ZlQ2xhc3MoJ3NlbGVjdGVkIGRpc2FibGVkJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKF8uY29udGFpbnMoc2VsZWN0cywgdmFsdWUpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQodGhpcykucmVtb3ZlQ2xhc3MoJ2Rpc2FibGVkJyk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSBzZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5hZGRDbGFzcygnc2VsZWN0ZWQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5hZGRDbGFzcygnZGlzYWJsZWQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfSwgMSk7XG5cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICogRGF0YSBBcGkgaW1wbGVtZW50YXRpb25cbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKi9cblxuICAgIC8qKlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGpRdWVyeVxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL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UFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7Ozs7QSIsInNvdXJjZVJvb3QiOiIifQ==
1
/*!
2
+ * Woo Variation Swatches v1.0.3
3
*
4
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
5
+ * Date: 2018-1-16 04:22:30
6
* Released under the GPLv3 license.
7
*/
8
/******/ (function(modules) { // webpackBootstrap
240
/***/ })
241
242
/******/ });
243
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2pzL2Zyb250ZW5kLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL3dlYnBhY2svYm9vdHN0cmFwIDUwZjYwZGYyYzgwMmVjYmU1ODhlIiwid2VicGFjazovLy9zcmMvanMvZnJvbnRlbmQuanMiLCJ3ZWJwYWNrOi8vL3NyYy9qcy9DdXN0b21WYXJpYXRpb25TZWxlY3QuanMiXSwic291cmNlc0NvbnRlbnQiOlsiIFx0Ly8gVGhlIG1vZHVsZSBjYWNoZVxuIFx0dmFyIGluc3RhbGxlZE1vZHVsZXMgPSB7fTtcblxuIFx0Ly8gVGhlIHJlcXVpcmUgZnVuY3Rpb25cbiBcdGZ1bmN0aW9uIF9fd2VicGFja19yZXF1aXJlX18obW9kdWxlSWQpIHtcblxuIFx0XHQvLyBDaGVjayBpZiBtb2R1bGUgaXMgaW4gY2FjaGVcbiBcdFx0aWYoaW5zdGFsbGVkTW9kdWxlc1ttb2R1bGVJZF0pIHtcbiBcdFx0XHRyZXR1cm4gaW5zdGFsbGVkTW9kdWxlc1ttb2R1bGVJZF0uZXhwb3J0cztcbiBcdFx0fVxuIFx0XHQvLyBDcmVhdGUgYSBuZXcgbW9kdWxlIChhbmQgcHV0IGl0IGludG8gdGhlIGNhY2hlKVxuIFx0XHR2YXIgbW9kdWxlID0gaW5zdGFsbGVkTW9kdWxlc1ttb2R1bGVJZF0gPSB7XG4gXHRcdFx0aTogbW9kdWxlSWQ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PiB7XG4gICAgaW1wb3J0KCcuL0N1c3RvbVZhcmlhdGlvblNlbGVjdCcpLnRoZW4oKCkgPT4ge1xuICAgICAgICAvLyBJbml0IG9uIEFqYXggUG9wdXAgOilcbiAgICAgICAgJChkb2N1bWVudCkub24oJ3djX3ZhcmlhdGlvbl9mb3JtJywgJy52YXJpYXRpb25zX2Zvcm0nLCBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAkKHRoaXMpLkN1c3RvbVZhcmlhdGlvblNlbGVjdCgpO1xuICAgICAgICB9KTtcbiAgICB9KTtcbn0pOyAgLy8gZW5kIG9mIGpxdWVyeSBtYWluIHdyYXBwZXJcblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gc3JjL2pzL2Zyb250ZW5kLmpzIiwiLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gV29vQ29tbWVyY2UgVmFyaWF0aW9uIENoYW5nZVxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBDdXN0b21WYXJpYXRpb25TZWxlY3QgPSAoKCQpID0+IHtcblxuICAgIGNvbnN0IERlZmF1bHQgPSB7fTtcblxuICAgIGNsYXNzIEN1c3RvbVZhcmlhdGlvblNlbGVjdCB7XG5cbiAgICAgICAgY29uc3RydWN0b3IoZWxlbWVudCwgY29uZmlnKSB7XG5cbiAgICAgICAgICAgIC8vIEFzc2lnblxuICAgICAgICAgICAgdGhpcy5fZWxlbWVudCA9ICQoZWxlbWVudCk7XG4gICAgICAgICAgICB0aGlzLl9jb25maWcgID0gJC5leHRlbmQoe30sIERlZmF1bHQsIGNvbmZpZyk7XG5cbiAgICAgICAgICAgIC8vIENhbGxcbiAgICAgICAgICAgIC8vdGhpcy5hZGRJbnB1dE1hcmt1cCgpO1xuICAgICAgICAgICAgdGhpcy53cmFwcGVyQWN0aW9uKCk7XG4gICAgICAgICAgICB0aGlzLnJlc2V0RGF0YUFjdGlvbigpO1xuICAgICAgICAgICAgdGhpcy51cGRhdGVWYXJpYXRpb25WYWx1ZUFjdGlvbigpO1xuXG4gICAgICAgICAgICAkKGRvY3VtZW50KS50cmlnZ2VyKCdjdXN0b21fdmFyaWF0aW9uX3NlbGVjdCcpO1xuICAgICAgICB9XG5cbiAgICAgICAgc3RhdGljIF9qUXVlcnlJbnRlcmZhY2UoY29uZmlnKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5lYWNoKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICBuZXcgQ3VzdG9tVmFyaWF0aW9uU2VsZWN0KHRoaXMsIGNvbmZpZylcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICB3cmFwcGVyQWN0aW9uKCkge1xuICAgICAgICAgICAgdGhpcy5fZWxlbWVudC5maW5kKCd1bC52YXJpYWJsZS1pdGVtcy13cmFwcGVyJykuZWFjaChmdW5jdGlvbiAoaSwgZWwpIHtcblxuICAgICAgICAgICAgICAgIGxldCBzZWxlY3QgPSAkKHRoaXMpLnByZXYoJ3NlbGVjdCcpLFxuICAgICAgICAgICAgICAgICAgICBsaSAgICAgPSAkKHRoaXMpLmZpbmQoJ2xpJyk7XG5cbiAgICAgICAgICAgICAgICAkKHRoaXMpLm9uKCdjbGljaycsICdsaScsIGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICAgICAgZS5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHZhbHVlID0gJCh0aGlzKS5kYXRhKCd2YWx1ZScpO1xuICAgICAgICAgICAgICAgICAgICBzZWxlY3QudmFsKHZhbHVlKS50cmlnZ2VyKCdjaGFuZ2UnKTtcbiAgICAgICAgICAgICAgICAgICAgc2VsZWN0LnRyaWdnZXIoJ2NsaWNrJyk7XG4gICAgICAgICAgICAgICAgICAgIHNlbGVjdC50cmlnZ2VyKCdmb2N1c2luJyk7XG4gICAgICAgICAgICAgICAgICAgIHNlbGVjdC50cmlnZ2VyKCd0b3VjaHN0YXJ0Jyk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJlc2V0RGF0YUFjdGlvbigpIHtcbiAgICAgICAgICAgIHRoaXMuX2VsZW1lbnQub24oJ3Jlc2V0X2RhdGEnLCBmdW5jdGlvbiAoZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAkKHRoaXMpLmZpbmQoJ3VsLnZhcmlhYmxlLWl0ZW1zLXdyYXBwZXInKS5lYWNoKGZ1bmN0aW9uICgpIHtcblxuICAgICAgICAgICAgICAgICAgICBsZXQgbGkgPSAkKHRoaXMpLmZpbmQoJ2xpJyk7XG4gICAgICAgICAgICAgICAgICAgIGxpLmVhY2goZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5yZW1vdmVDbGFzcygnc2VsZWN0ZWQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICQodGhpcykucmVtb3ZlQ2xhc3MoJ2Rpc2FibGVkJyk7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICB1cGRhdGVWYXJpYXRpb25WYWx1ZUFjdGlvbigpIHtcbiAgICAgICAgICAgIHRoaXMuX2VsZW1lbnQub24oJ3dvb2NvbW1lcmNlX3VwZGF0ZV92YXJpYXRpb25fdmFsdWVzJywgZnVuY3Rpb24gKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgJCh0aGlzKS5maW5kKCd1bC52YXJpYWJsZS1pdGVtcy13cmFwcGVyJykuZWFjaChmdW5jdGlvbiAoKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgbGV0IHNlbGVjdGVkID0gJycsXG4gICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zICA9ICQodGhpcykucHJldignc2VsZWN0JykuZmluZCgnb3B0aW9uJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50ICA9ICQodGhpcykucHJldignc2VsZWN0JykuZmluZCgnb3B0aW9uOnNlbGVjdGVkJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBlcSAgICAgICA9ICQodGhpcykucHJldignc2VsZWN0JykuZmluZCgnb3B0aW9uJykuZXEoMSksXG4gICAgICAgICAgICAgICAgICAgICAgICBsaSAgICAgICA9ICQodGhpcykuZmluZCgnbGknKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdHMgID0gW107XG5cbiAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5lYWNoKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICgkKHRoaXMpLnZhbCgpICE9PSAnJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdHMucHVzaCgkKHRoaXMpLnZhbCgpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZCA9IGN1cnJlbnQgPyBjdXJyZW50LnZhbCgpIDogZXEudmFsKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgICAgIF8uZGVsYXkoZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGkuZWFjaChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHZhbHVlID0gJCh0aGlzKS5kYXRhKCd2YWx1ZScpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICQodGhpcykucmVtb3ZlQ2xhc3MoJ3NlbGVjdGVkIGRpc2FibGVkJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKF8uY29udGFpbnMoc2VsZWN0cywgdmFsdWUpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQodGhpcykucmVtb3ZlQ2xhc3MoJ2Rpc2FibGVkJyk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSBzZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5hZGRDbGFzcygnc2VsZWN0ZWQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCh0aGlzKS5hZGRDbGFzcygnZGlzYWJsZWQnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfSwgMSk7XG5cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICogRGF0YSBBcGkgaW1wbGVtZW50YXRpb25cbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKi9cblxuICAgIC8qKlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGpRdWVyeVxuICAgICAqIC0tLS0t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tBQURBO0FBQUE7QUFDQTtBQWlHQTs7Ozs7O0FBTUE7Ozs7OztBQU1BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7Ozs7QSIsInNvdXJjZVJvb3QiOiIifQ==
includes/class-wvs-settings-api.php CHANGED
@@ -11,10 +11,11 @@
11
12
class WVS_Settings_API {
13
14
- private $setting_name = 'woo_variation_swatches';
15
private $slug;
16
private $plugin_class;
17
- private $defaults = array();
18
19
private $fields = array();
20
@@ -34,6 +35,8 @@
34
35
add_action( 'admin_init', array( $this, 'settings_init' ), 90 );
36
37
add_filter( 'plugin_action_links_' . $this->plugin_class->basename(), array( $this, 'plugin_action_links' ) );
38
39
add_action( 'wp_before_admin_bar_render', array( $this, 'add_admin_bar' ), 999 );
@@ -43,6 +46,14 @@
43
do_action( 'wvs_setting_api_init', $this );
44
}
45
46
public function admin_inline_js() {
47
?>
48
<script type="text/javascript">
@@ -104,7 +115,7 @@
104
}
105
106
private function set_default( $key, $type, $value ) {
107
- $this->defaults[ $key ] = array( 'type' => $type, 'value' => $value );
108
}
109
110
private function get_default( $key ) {
@@ -128,7 +139,7 @@
128
$section[ 'fields' ] = apply_filters( 'wvs_settings_fields', $section[ 'fields' ], $section, $tab );
129
130
foreach ( $section[ 'fields' ] as $field ) {
131
- $field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : '';
132
$this->set_default( $field[ 'id' ], $field[ 'type' ], $field[ 'default' ] );
133
}
134
}
@@ -137,19 +148,20 @@
137
138
public function get_option( $option ) {
139
$default = $this->get_default( $option );
140
- $options = get_option( $this->settings_name, wp_list_pluck( $this->get_defaults(), 'value' ) );
141
- if ( isset( $options[ $option ] ) ) {
142
- if ( $default[ 'type' ] === 'checkbox' ) {
143
- return apply_filters( 'wvs_settings_get_option', TRUE, $option, $options, $default );
144
- } else {
145
- return apply_filters( 'wvs_settings_get_option', $options[ $option ], $option, $options, $default );
146
- }
147
} else {
148
- if ( $default[ 'type' ] === 'checkbox' ) {
149
- return apply_filters( 'wvs_settings_get_option', FALSE, $option, $options, $default );
150
- } else {
151
- return apply_filters( 'wvs_settings_get_option', $default[ 'value' ], $option, $options, $default );
152
- }
153
}
154
}
155
@@ -188,7 +200,7 @@
188
189
//$field[ 'label_for' ] = $this->settings_name . '[' . $field[ 'id' ] . ']';
190
$field[ 'label_for' ] = $field[ 'id' ] . '-field';
191
- $field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : '';
192
193
// $this->set_default( $field[ 'id' ], $field[ 'default' ] );
194
11
12
class WVS_Settings_API {
13
14
+ private $setting_name = 'woo_variation_swatches';
15
+ private $theme_feature_name = 'woo-variation-swatches';
16
private $slug;
17
private $plugin_class;
18
+ private $defaults = array();
19
20
private $fields = array();
21
35
36
add_action( 'admin_init', array( $this, 'settings_init' ), 90 );
37
38
+ add_action( 'pre_update_option', array( $this, 'before_update' ), 10, 3 );
39
+
40
add_filter( 'plugin_action_links_' . $this->plugin_class->basename(), array( $this, 'plugin_action_links' ) );
41
42
add_action( 'wp_before_admin_bar_render', array( $this, 'add_admin_bar' ), 999 );
46
do_action( 'wvs_setting_api_init', $this );
47
}
48
49
+ public function before_update( $value, $option, $old_value ) {
50
+ if ( $this->settings_name === $option ) {
51
+ // Here We will do magic :D
52
+ }
53
+
54
+ return $value;
55
+ }
56
+
57
public function admin_inline_js() {
58
?>
59
<script type="text/javascript">
115
}
116
117
private function set_default( $key, $type, $value ) {
118
+ $this->defaults[ $key ] = array( 'id' => $key, 'type' => $type, 'value' => $value );
119
}
120
121
private function get_default( $key ) {
139
$section[ 'fields' ] = apply_filters( 'wvs_settings_fields', $section[ 'fields' ], $section, $tab );
140
141
foreach ( $section[ 'fields' ] as $field ) {
142
+ $field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : NULL;
143
$this->set_default( $field[ 'id' ], $field[ 'type' ], $field[ 'default' ] );
144
}
145
}
148
149
public function get_option( $option ) {
150
$default = $this->get_default( $option );
151
+ // $all_defaults = wp_list_pluck( $this->get_defaults(), 'value' );
152
+ $options = get_option( $this->settings_name );
153
+ $is_new = ( ! is_array( $options ) && is_bool( $options ) );
154
+
155
+ // Theme Support
156
+ if ( current_theme_supports( $this->theme_feature_name ) ) {
157
+ $theme_support = get_theme_support( $this->theme_feature_name );
158
+ $default[ 'value' ] = isset( $theme_support[ 0 ][ $option ] ) ? $theme_support[ 0 ][ $option ] : $default[ 'value' ];
159
+ }
160
+
161
+ if ( $is_new ) {
162
+ return ( $default[ 'type' ] === 'checkbox' ) ? ( ! ! $default[ 'value' ] ) : $default[ 'value' ];
163
} else {
164
+ return ( $default[ 'type' ] === 'checkbox' ) ? ( isset( $options[ $option ] ) ? TRUE : FALSE ) : $options[ $option ];
165
}
166
}
167
200
201
//$field[ 'label_for' ] = $this->settings_name . '[' . $field[ 'id' ] . ']';
202
$field[ 'label_for' ] = $field[ 'id' ] . '-field';
203
+ $field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : NULL;
204
205
// $this->set_default( $field[ 'id' ], $field[ 'default' ] );
206
includes/functions.php CHANGED
@@ -19,6 +19,8 @@
19
20
//-------------------------------------------------------------------------------
21
// Add settings
22
//-------------------------------------------------------------------------------
23
24
if ( ! function_exists( 'wvs_settings' ) ):
@@ -31,8 +33,15 @@
31
array(
32
'id' => 'tooltip',
33
'type' => 'checkbox',
34
- 'title' => esc_html__( 'Tooltip', 'woo-variation-swatches' ),
35
- 'desc' => esc_html__( 'Show / Hide tooltip on each product attribute.', 'woo-variation-swatches' ),
36
'default' => TRUE
37
),
38
array(
@@ -46,13 +55,6 @@
46
),
47
'default' => 'rounded'
48
),
49
- array(
50
- 'id' => 'stylesheet',
51
- 'type' => 'checkbox',
52
- 'title' => esc_html__( 'Stylesheet', 'woo-variation-swatches' ),
53
- 'desc' => esc_html__( 'Enable / Disable plugin default Stylesheet', 'woo-variation-swatches' ),
54
- 'default' => TRUE
55
- )
56
)
57
)
58
), TRUE );
@@ -202,7 +204,7 @@
202
$get_term_meta = sanitize_hex_color( get_term_meta( $term->term_id, 'product_attribute_color', TRUE ) );
203
$selected_class = ( sanitize_title( $args[ 'selected' ] ) == $term->slug ) ? 'selected' : '';
204
?>
205
- <li data-toggle="tooltip" data-tooltip="<?php echo esc_html( $term->name ) ?>" data-placement="top" class="variable-item color-variable-item color-variable-item-<?php echo $term->slug ?> <?php echo $selected_class ?> <?php echo woo_variation_swatches()->get_option( 'style' ) ?>-style" title="<?php echo esc_html( $term->name ) ?>" data-value="<?php echo esc_attr( $term->slug ) ?>"><span style="background-color:<?php echo esc_attr( $get_term_meta ) ?>;"></span></li>
206
<?php
207
}
208
}
@@ -276,7 +278,7 @@
276
$image = wp_get_attachment_image_url( $attachment_id );
277
$selected_class = ( sanitize_title( $args[ 'selected' ] ) == $term->slug ) ? 'selected' : '';
278
?>
279
- <li data-toggle="tooltip" data-tooltip="<?php echo esc_html( $term->name ) ?>" data-placement="top" class="variable-item image-variable-item image-variable-item-<?php echo $term->slug ?> <?php echo $selected_class ?> <?php echo woo_variation_swatches()->get_option( 'style' ) ?>-style" title="<?php echo esc_html( $term->name ) ?>" data-value="<?php echo esc_attr( $term->slug ) ?>"><img alt="<?php echo esc_html( $term->name ) ?>" src="<?php echo esc_url( $image ) ?>">
280
</li>
281
<?php
282
}
@@ -349,7 +351,7 @@
349
if ( in_array( $term->slug, $options ) ) {
350
$selected_class = ( sanitize_title( $args[ 'selected' ] ) == $term->slug ) ? 'selected' : '';
351
?>
352
- <li data-toggle="tooltip" data-tooltip="<?php echo esc_html( $term->name ) ?>" data-placement="top" class="variable-item button-variable-item image-variable-item-<?php echo $term->slug ?> <?php echo $selected_class ?> <?php echo woo_variation_swatches()->get_option( 'style' ) ?>-style" title="<?php echo esc_html( $term->name ) ?>" data-value="<?php echo esc_attr( $term->slug ) ?>"><span><?php echo esc_html( $term->name ) ?></span></li>
353
<?php
354
}
355
}
@@ -370,7 +372,7 @@
370
371
$transient = sprintf( 'wvs_get_wc_attribute_taxonomy_%s', $attribute_name );
372
373
- if ( ( defined( 'WP_DEBUG' ) && WP_DEBUG ) || isset( $_GET[ 'wvs_clear' ] ) ) {
374
delete_transient( $transient );
375
}
376
19
20
//-------------------------------------------------------------------------------
21
// Add settings
22
+ // Support:
23
+ // add_theme_support( 'woo-variation-swatches', array( 'tooltip' => FALSE, 'stylesheet' => FALSE, 'style'=>'rounded' ) );
24
//-------------------------------------------------------------------------------
25
26
if ( ! function_exists( 'wvs_settings' ) ):
33
array(
34
'id' => 'tooltip',
35
'type' => 'checkbox',
36
+ 'title' => esc_html__( 'Enable Tooltip', 'woo-variation-swatches' ),
37
+ 'desc' => esc_html__( 'Enable / Disable plugin default tooltip on each product attribute.', 'woo-variation-swatches' ),
38
+ 'default' => TRUE
39
+ ),
40
+ array(
41
+ 'id' => 'stylesheet',
42
+ 'type' => 'checkbox',
43
+ 'title' => esc_html__( 'Enable Stylesheet', 'woo-variation-swatches' ),
44
+ 'desc' => esc_html__( 'Enable / Disable plugin default stylesheet', 'woo-variation-swatches' ),
45
'default' => TRUE
46
),
47
array(
55
),
56
'default' => 'rounded'
57
),
58
)
59
)
60
), TRUE );
204
$get_term_meta = sanitize_hex_color( get_term_meta( $term->term_id, 'product_attribute_color', TRUE ) );
205
$selected_class = ( sanitize_title( $args[ 'selected' ] ) == $term->slug ) ? 'selected' : '';
206
?>
207
+ <li data-toggle="tooltip" data-tooltip="<?php echo esc_html( $term->name ) ?>" data-placement="top" class="variable-item color-variable-item color-variable-item-<?php echo $term->slug ?> <?php echo $selected_class ?>" title="<?php echo esc_html( $term->name ) ?>" data-value="<?php echo esc_attr( $term->slug ) ?>"><span style="background-color:<?php echo esc_attr( $get_term_meta ) ?>;"></span></li>
208
<?php
209
}
210
}
278
$image = wp_get_attachment_image_url( $attachment_id );
279
$selected_class = ( sanitize_title( $args[ 'selected' ] ) == $term->slug ) ? 'selected' : '';
280
?>
281
+ <li data-toggle="tooltip" data-tooltip="<?php echo esc_html( $term->name ) ?>" data-placement="top" class="variable-item image-variable-item image-variable-item-<?php echo $term->slug ?> <?php echo $selected_class ?>" title="<?php echo esc_html( $term->name ) ?>" data-value="<?php echo esc_attr( $term->slug ) ?>"><img alt="<?php echo esc_html( $term->name ) ?>" src="<?php echo esc_url( $image ) ?>">
282
</li>
283
<?php
284
}
351
if ( in_array( $term->slug, $options ) ) {
352
$selected_class = ( sanitize_title( $args[ 'selected' ] ) == $term->slug ) ? 'selected' : '';
353
?>
354
+ <li data-toggle="tooltip" data-tooltip="<?php echo esc_html( $term->name ) ?>" data-placement="top" class="variable-item button-variable-item image-variable-item-<?php echo $term->slug ?> <?php echo $selected_class ?>" title="<?php echo esc_html( $term->name ) ?>" data-value="<?php echo esc_attr( $term->slug ) ?>"><span><?php echo esc_html( $term->name ) ?></span></li>
355
<?php
356
}
357
}
372
373
$transient = sprintf( 'wvs_get_wc_attribute_taxonomy_%s', $attribute_name );
374
375
+ if ( ( defined( 'WP_DEBUG' ) && WP_DEBUG ) || isset( $_GET[ 'wvs_clear_transient' ] ) ) {
376
delete_transient( $transient );
377
}
378
languages/woo-variation-swatches.pot CHANGED
@@ -16,50 +16,54 @@ msgstr ""
16
"X-Poedit-SourceCharset: UTF-8\n"
17
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
19
- #: ../woo-variation-swatches.php:116
20
msgid "Choose an Image"
21
msgstr ""
22
23
- #: ../woo-variation-swatches.php:117
24
msgid "Use Image"
25
msgstr ""
26
27
- #: ../woo-variation-swatches.php:118
28
msgid "Add Media"
29
msgstr ""
30
31
- #: ../woo-variation-swatches.php:173
32
msgid "View Documentation"
33
msgstr ""
34
35
- #: ../woo-variation-swatches.php:173
36
msgid "Documentation"
37
msgstr ""
38
39
- #: ../woo-variation-swatches.php:174, ../woo-variation-swatches.php:174
40
msgid "Support"
41
msgstr ""
42
43
- #: ../woo-variation-swatches.php:175
44
msgid "Review"
45
msgstr ""
46
47
- #: ../woo-variation-swatches.php:205
48
msgid "Please check PHP version requirement."
49
msgstr ""
50
51
- #: ../woo-variation-swatches.php:207
52
msgid "It's required to use latest version of PHP to use <strong>Woo Variation Swatches</strong>."
53
msgstr ""
54
55
- #: ../woo-variation-swatches.php:217
56
msgid "WooCommerce"
57
msgstr ""
58
59
- #: ../woo-variation-swatches.php:219
60
msgid "<strong>Woo Variation Switcher</strong> is an add-on of "
61
msgstr ""
62
63
- #: ../woo-variation-swatches.php:315
64
msgid "Woo Variation Swatches Plugin try to load \"%s\" but template \"%s\" was not found."
65
msgstr ""
16
"X-Poedit-SourceCharset: UTF-8\n"
17
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
19
+ #: ../woo-variation-swatches.php:127
20
msgid "Choose an Image"
21
msgstr ""
22
23
+ #: ../woo-variation-swatches.php:128
24
msgid "Use Image"
25
msgstr ""
26
27
+ #: ../woo-variation-swatches.php:129
28
msgid "Add Media"
29
msgstr ""
30
31
+ #: ../woo-variation-swatches.php:184
32
msgid "View Documentation"
33
msgstr ""
34
35
+ #: ../woo-variation-swatches.php:184
36
msgid "Documentation"
37
msgstr ""
38
39
+ #: ../woo-variation-swatches.php:185, ../woo-variation-swatches.php:185
40
msgid "Support"
41
msgstr ""
42
43
+ #: ../woo-variation-swatches.php:186
44
msgid "Review"
45
msgstr ""
46
47
+ #: ../woo-variation-swatches.php:186
48
+ msgid "Please Rate Us"
49
+ msgstr ""
50
+
51
+ #: ../woo-variation-swatches.php:216
52
msgid "Please check PHP version requirement."
53
msgstr ""
54
55
+ #: ../woo-variation-swatches.php:218
56
msgid "It's required to use latest version of PHP to use <strong>Woo Variation Swatches</strong>."
57
msgstr ""
58
59
+ #: ../woo-variation-swatches.php:228
60
msgid "WooCommerce"
61
msgstr ""
62
63
+ #: ../woo-variation-swatches.php:230
64
msgid "<strong>Woo Variation Switcher</strong> is an add-on of "
65
msgstr ""
66
67
+ #: ../woo-variation-swatches.php:326
68
msgid "Woo Variation Swatches Plugin try to load \"%s\" but template \"%s\" was not found."
69
msgstr ""
webpack.mix.js CHANGED
@@ -60,7 +60,7 @@ if (Mix.inProduction()) {
60
}
61
62
mix.banner({
63
- banner : "Woo Variation Swatches v1.0.2 \n\nAuthor: Emran Ahmed ( emran.bd.08@gmail.com ) \nDate: " + new Date().toLocaleString() + "\nReleased under the GPLv3 license."
64
});
65
66
mix.notification({
60
}
61
62
mix.banner({
63
+ banner : "Woo Variation Swatches v1.0.3 \n\nAuthor: Emran Ahmed ( emran.bd.08@gmail.com ) \nDate: " + new Date().toLocaleString() + "\nReleased under the GPLv3 license."
64
});
65
66
mix.notification({
woo-variation-swatches.php CHANGED
@@ -4,7 +4,7 @@
4
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
5
* Description: WooCommerce Product Variation Swatches
6
* Author: Emran Ahmed
7
- * Version: 1.0.2
8
* Domain Path: /languages
9
* Requires at least: 4.8
10
* Tested up to: 4.9
@@ -20,7 +20,7 @@
20
21
final class Woo_Variation_Swatches {
22
23
- protected $_version = '1.0.2';
24
25
protected static $_instance = NULL;
26
private $_settings_api;
@@ -88,6 +88,17 @@
88
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
89
90
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
91
}
92
93
public function enqueue_scripts() {
@@ -172,7 +183,7 @@
172
$review_url = "https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?rate=5#new-post";
173
$row_meta[ 'documentation' ] = '<a href="' . esc_url( apply_filters( 'wvs_documentation_url', '#' ) ) . '" title="' . esc_attr( esc_html__( 'View Documentation', 'woo-variation-swatches' ) ) . '">' . esc_html__( 'Documentation', 'woo-variation-swatches' ) . '</a>';
174
$row_meta[ 'support' ] = '<a href="' . esc_url( apply_filters( 'wvs_support_url', 'https://wordpress.org/support/plugin/woo-variation-swatches/' ) ) . '" title="' . esc_attr( esc_html__( 'Support', 'woo-variation-swatches' ) ) . '">' . esc_html__( 'Support', 'woo-variation-swatches' ) . '</a>';
175
- $row_meta[ 'rating' ] = sprintf( '<span class="gwp-rate-stars"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg></span>', esc_url( $review_url ), esc_html__( 'Review', 'woo-variation-swatches' ) );
176
177
return array_merge( $links, $row_meta );
178
}
4
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
5
* Description: WooCommerce Product Variation Swatches
6
* Author: Emran Ahmed
7
+ * Version: 1.0.3
8
* Domain Path: /languages
9
* Requires at least: 4.8
10
* Tested up to: 4.9
20
21
final class Woo_Variation_Swatches {
22
23
+ protected $_version = '1.0.3';
24
25
protected static $_instance = NULL;
26
private $_settings_api;
88
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
89
90
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
91
+
92
+ add_filter( 'body_class', array( $this, 'body_class' ) );
93
+ }
94
+
95
+ public function body_class( $classes ) {
96
+ array_push( $classes, 'woo-variation-swatches' );
97
+ array_push( $classes, sprintf( 'woo-variation-swatches-style-%s', $this->get_option( 'style' ) ) );
98
+ array_push( $classes, sprintf( 'woo-variation-swatches-tooltip-%s', $this->get_option( 'tooltip' ) ? 'enabled' : 'disabled' ) );
99
+ array_push( $classes, sprintf( 'woo-variation-swatches-stylesheet-%s', $this->get_option( 'stylesheet' ) ? 'enabled' : 'disabled' ) );
100
+
101
+ return $classes;
102
}
103
104
public function enqueue_scripts() {
183
$review_url = "https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?rate=5#new-post";
184
$row_meta[ 'documentation' ] = '<a href="' . esc_url( apply_filters( 'wvs_documentation_url', '#' ) ) . '" title="' . esc_attr( esc_html__( 'View Documentation', 'woo-variation-swatches' ) ) . '">' . esc_html__( 'Documentation', 'woo-variation-swatches' ) . '</a>';
185
$row_meta[ 'support' ] = '<a href="' . esc_url( apply_filters( 'wvs_support_url', 'https://wordpress.org/support/plugin/woo-variation-swatches/' ) ) . '" title="' . esc_attr( esc_html__( 'Support', 'woo-variation-swatches' ) ) . '">' . esc_html__( 'Support', 'woo-variation-swatches' ) . '</a>';
186
+ $row_meta[ 'rating' ] = sprintf( '<a target="_blank" href="%1$s">%3$s</a> <span class="gwp-rate-stars"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><a xlink:href="%1$s" title="%2$s" target="_blank"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></a></svg></span>', esc_url( $review_url ), esc_html__( 'Review', 'woo-variation-swatches' ), esc_html__( 'Please Rate Us', 'woo-variation-swatches' ) );
187
188
return array_merge( $links, $row_meta );
189
}