Version Description
- Improve: Frontend Visual Appearance
- Fix: Some known issues
Download this release
Release Info
Developer | EmranAhmed |
Plugin | WooCommerce Variation Swatches |
Version | 1.0.24 |
Comparing to | |
See all releases |
Code changes from version 1.0.23 to 1.0.24
- README.txt +5 -1
- assets/css/admin.css +2 -2
- assets/css/admin.min.css +2 -2
- assets/css/frontend-tooltip.css +2 -2
- assets/css/frontend-tooltip.min.css +2 -2
- assets/css/frontend.css +2 -2
- assets/css/frontend.min.css +2 -2
- assets/css/wvs-customize-heading-control.css +2 -2
- assets/css/wvs-customize-heading-control.min.css +2 -2
- assets/css/wvs-theme-override.css +2 -2
- assets/css/wvs-theme-override.min.css +2 -2
- assets/js/admin.js +2 -2
- assets/js/frontend.js +2 -2
- images/advanced-screenshot.png +0 -0
- images/archive-pro.png +0 -0
- images/placeholder.png +0 -0
- includes/class-wvs-customizer.php +8 -0
- includes/class-wvs-settings-api.php +40 -6
- includes/functions.php +85 -0
- includes/hooks.php +8 -1
- languages/woo-variation-swatches.pot +10 -10
- package.json +1 -1
- webpack.mix.js +1 -1
- woo-variation-swatches.php +2 -2
README.txt
CHANGED
@@ -174,12 +174,16 @@ Just call this javascript function on ajax load event `$('.variations_form').wc_
|
|
174 |
|
175 |
== Changelog ==
|
176 |
|
|
|
|
|
|
|
|
|
|
|
177 |
= 1.0.23 =
|
178 |
|
179 |
* Improve: Frontend Visual Appearance
|
180 |
* Add: **Flatsome** Theme shortcode override
|
181 |
|
182 |
-
|
183 |
= 1.0.22 =
|
184 |
|
185 |
* Add: **OceanWP** Theme Compatibility
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
+
= 1.0.24 =
|
178 |
+
|
179 |
+
* Improve: Frontend Visual Appearance
|
180 |
+
* Fix: Some known issues
|
181 |
+
|
182 |
= 1.0.23 =
|
183 |
|
184 |
* Improve: Frontend Visual Appearance
|
185 |
* Add: **Flatsome** Theme shortcode override
|
186 |
|
|
|
187 |
= 1.0.22 =
|
188 |
|
189 |
* Add: **OceanWP** Theme Compatibility
|
assets/css/admin.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents {
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:31
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents {
|
assets/css/admin.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents{padding-right:38px;position:relative}.gwp-live-feed-contents .gwp-live-feed-close{text-decoration:none}.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}#wvs-meta-preview{width:30px}.wvs-preview{width:30px;height:30px;border:1px solid #000}
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:36
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents{padding-right:38px;position:relative}.gwp-live-feed-contents .gwp-live-feed-close{text-decoration:none}.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}#wvs-meta-preview{width:30px}.wvs-preview{width:30px;height:30px;border:1px solid #000}
|
assets/css/frontend-tooltip.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper [data-wvstooltip] {
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:31
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper [data-wvstooltip] {
|
assets/css/frontend-tooltip.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper [data-wvstooltip]{position:relative;cursor:pointer;outline:none}.variable-items-wrapper [data-wvstooltip]:after,.variable-items-wrapper [data-wvstooltip]:before{visibility:hidden;opacity:0;pointer-events:none;-webkit-box-sizing:inherit;box-sizing:inherit;position:absolute;bottom:120%;left:50%;z-index:99;-webkit-transform:translateZ(0);transform:translateZ(0)}.variable-items-wrapper [data-wvstooltip]:before{margin-bottom:5px;margin-left:-50px;padding:7px;min-width:100px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-wvstooltip);text-align:center;font-size:14px;line-height:1.2}.variable-items-wrapper [data-wvstooltip]: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-wvstooltip]:active:after,.variable-items-wrapper [data-wvstooltip]:active:before,.variable-items-wrapper [data-wvstooltip]:focus:after,.variable-items-wrapper [data-wvstooltip]:focus:before,.variable-items-wrapper [data-wvstooltip]:hover:after,.variable-items-wrapper [data-wvstooltip]:hover:before{visibility:visible;opacity:1}
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:36
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper [data-wvstooltip]{position:relative;cursor:pointer;outline:none}.variable-items-wrapper [data-wvstooltip]:after,.variable-items-wrapper [data-wvstooltip]:before{visibility:hidden;opacity:0;pointer-events:none;-webkit-box-sizing:inherit;box-sizing:inherit;position:absolute;bottom:120%;left:50%;z-index:99;-webkit-transform:translateZ(0);transform:translateZ(0)}.variable-items-wrapper [data-wvstooltip]:before{margin-bottom:5px;margin-left:-50px;padding:7px;min-width:100px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-wvstooltip);text-align:center;font-size:14px;line-height:1.2}.variable-items-wrapper [data-wvstooltip]: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-wvstooltip]:active:after,.variable-items-wrapper [data-wvstooltip]:active:before,.variable-items-wrapper [data-wvstooltip]:focus:after,.variable-items-wrapper [data-wvstooltip]:focus:before,.variable-items-wrapper [data-wvstooltip]:hover:after,.variable-items-wrapper [data-wvstooltip]:hover:before{visibility:visible;opacity:1}
|
assets/css/frontend.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-stylesheet-enabled .woo-variation-raw-select {
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:31
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-stylesheet-enabled .woo-variation-raw-select {
|
assets/css/frontend.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-stylesheet-enabled .woo-variation-raw-select{display:none!important}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0;padding:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item{margin:0;padding:0;list-style:none;-webkit-transition:all .2s ease;transition:all .2s ease}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item img{margin:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper{display:block}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;list-style:none;cursor:pointer;margin:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{cursor:pointer}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{width:auto;margin-right:5px}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{font-weight:400;font-size:14px;display:inline-block}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item){-webkit-box-sizing:border-box;box-sizing:border-box;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;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.3);box-shadow:0 0 0 1px rgba(0,0,0,.3);padding:2px;margin:4px 8px 4px 0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item):last-of-type{margin-right:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.1);box-shadow:0 0 0 3px rgba(0,0,0,.1)}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover{-webkit-box-shadow:0 0 0 2px rgba(0,0,0,.9);box-shadow:0 0 0 2px rgba(0,0,0,.9)}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item span{width:100%;height:100%;position:relative}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item span:after{position:absolute;content:"";width:100%;height:100%;top:0;left:0;-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)}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{text-align:center}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item img,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item span,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item span:after{border-radius:100%}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item{border-radius:2px}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item.button-variable-item{width:auto}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item.button-variable-item span{padding:0 5px}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item.color-variable-item span:after{border-radius:0}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover{cursor:not-allowed;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.05);box-shadow:0 0 0 1px rgba(0,0,0,.05);pointer-events:none;position:relative;overflow:hidden}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover span,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled span{opacity:.3}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{position:absolute;content:" "!important;width:100%;height:1px;background:red!important;left:0;right:0;bottom:0;top:50%;visibility:visible;opacity:1;border:0;margin:0!important;padding:0!important;min-width:auto;-webkit-transform-origin:center;transform-origin:center}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover input,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover label,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled input,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled label{cursor:not-allowed;text-decoration:line-through;opacity:.5}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:before,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-hide .variable-item.disabled{opacity:0;visibility:hidden;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center;transform-origin:center;width:0!important;height:0!important;padding:0!important;margin:0!important;min-width:0!important;min-height:0!important}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-hide .variable-item.disabled.radio-variable-item{width:auto!important}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled .radio-variable-item[data-wvstooltip]:before{left:10px;bottom:100%}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:50%}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:90%}
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:36
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-stylesheet-enabled .woo-variation-raw-select{display:none!important}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0;padding:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item{margin:0;padding:0;list-style:none;-webkit-transition:all .2s ease;transition:all .2s ease}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item img{margin:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper{display:block}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;list-style:none;cursor:pointer;margin:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{cursor:pointer}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{width:auto;margin-right:5px}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{font-weight:400;font-size:14px;display:inline-block}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item){-webkit-box-sizing:border-box;box-sizing:border-box;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;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.3);box-shadow:0 0 0 1px rgba(0,0,0,.3);padding:2px;margin:4px 8px 4px 0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item):last-of-type{margin-right:0}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.1);box-shadow:0 0 0 3px rgba(0,0,0,.1)}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover{-webkit-box-shadow:0 0 0 2px rgba(0,0,0,.9);box-shadow:0 0 0 2px rgba(0,0,0,.9)}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item span{width:100%;height:100%;position:relative}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item span:after{position:absolute;content:"";width:100%;height:100%;top:0;left:0;-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)}.woo-variation-swatches-stylesheet-enabled .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{text-align:center}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item img,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item span,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-rounded .variable-items-wrapper .variable-item span:after{border-radius:100%}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item{border-radius:2px}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item.button-variable-item{width:auto}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item.button-variable-item span{padding:0 5px}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-style-squared .variable-items-wrapper .variable-item.color-variable-item span:after{border-radius:0}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover{cursor:not-allowed;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.05);box-shadow:0 0 0 1px rgba(0,0,0,.05);pointer-events:none;position:relative;overflow:hidden}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover span,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled span{opacity:.3}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{position:absolute;content:" "!important;width:100%;height:1px;background:red!important;left:0;right:0;bottom:0;top:50%;visibility:visible;opacity:1;border:0;margin:0!important;padding:0!important;min-width:auto;-webkit-transform-origin:center;transform-origin:center}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover input,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover label,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled input,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled label{cursor:not-allowed;text-decoration:line-through;opacity:.5}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:before,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-blur .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-hide .variable-item.disabled{opacity:0;visibility:hidden;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center;transform-origin:center;width:0!important;height:0!important;padding:0!important;margin:0!important;min-width:0!important;min-height:0!important}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-attribute-behavior-hide .variable-item.disabled.radio-variable-item{width:auto!important}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled .radio-variable-item[data-wvstooltip]:before{left:10px;bottom:100%}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:50%}.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches-stylesheet-enabled.woo-variation-swatches-tooltip-enabled.woo-variation-swatches-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:90%}
|
assets/css/wvs-customize-heading-control.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.accordion-section-content li:nth-child(2).customize-control-wvs-heading .wvs-customize-heading-control-title {
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:31
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.accordion-section-content li:nth-child(2).customize-control-wvs-heading .wvs-customize-heading-control-title {
|
assets/css/wvs-customize-heading-control.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.accordion-section-content li:nth-child(2).customize-control-wvs-heading .wvs-customize-heading-control-title{margin-top:-15px;margin-bottom:0}.wvs-customize-heading-control-title{background-color:#191e23;padding:10px 15px;color:#fff;margin:5px -15px;font-size:1rem;font-weight:200;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:36
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.accordion-section-content li:nth-child(2).customize-control-wvs-heading .wvs-customize-heading-control-title{margin-top:-15px;margin-bottom:0}.wvs-customize-heading-control-title{background-color:#191e23;padding:10px 15px;color:#fff;margin:5px -15px;font-size:1rem;font-weight:200;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
assets/css/wvs-theme-override.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-theme-sober .product form.cart .variations div {
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:31
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-theme-sober .product form.cart .variations div {
|
assets/css/wvs-theme-override.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-theme-sober .product form.cart .variations div{margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.woo-variation-swatches-theme-sober .product form.cart .variations .label{display:block;text-align:right;margin-right:10px}.woo-variation-swatches-theme-sober .product form.cart .variations .value{-webkit-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset}.woo-variation-swatches-theme-sober .product form.cart .variations select{border:1px solid #e4e6eb;padding:.5em 1em;text-align:left;text-align-last:left;-webkit-appearance:menulist-button}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item{margin:5px;text-align:left}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item:last-child{margin-right:0}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item label{padding-left:30px;margin:0}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item label:before{top:0;border-radius:100%}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item label:after{top:8px}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations div{display:block}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations .label{display:block;text-align:center;margin-bottom:10px}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations .label label{border-bottom:1px solid #eee}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations .variable-items-wrapper{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.woo-variation-swatches-theme-shophistic-lite.woocommerce #main .entry-summary .variations{display:block!important}.woo-variation-swatches-theme-shophistic-lite .ql_custom_variations{display:none!important}.woo-variation-swatches-theme-shophistic-lite .radio-variable-item input[type=radio]{display:inline-block;margin:0}.woo-variation-swatches-theme-flatsome .variations .reset_variations{position:relative;bottom:0;left:0}
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:36
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches-theme-sober .product form.cart .variations div{margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.woo-variation-swatches-theme-sober .product form.cart .variations .label{display:block;text-align:right;margin-right:10px}.woo-variation-swatches-theme-sober .product form.cart .variations .value{-webkit-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset}.woo-variation-swatches-theme-sober .product form.cart .variations select{border:1px solid #e4e6eb;padding:.5em 1em;text-align:left;text-align-last:left;-webkit-appearance:menulist-button}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item{margin:5px;text-align:left}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item:last-child{margin-right:0}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item label{padding-left:30px;margin:0}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item label:before{top:0;border-radius:100%}.woo-variation-swatches-theme-sober .product form.cart .radio-variable-item label:after{top:8px}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations div{display:block}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations .label{display:block;text-align:center;margin-bottom:10px}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations .label label{border-bottom:1px solid #eee}.woo-variation-swatches-theme-sober.product-style-4 .product form.cart .variations .variable-items-wrapper{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.woo-variation-swatches-theme-shophistic-lite.woocommerce #main .entry-summary .variations{display:block!important}.woo-variation-swatches-theme-shophistic-lite .ql_custom_variations{display:none!important}.woo-variation-swatches-theme-shophistic-lite .radio-variable-item input[type=radio]{display:inline-block;margin:0}.woo-variation-swatches-theme-flatsome .variations .reset_variations{position:relative;bottom:0;left:0}
|
assets/js/admin.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:31
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
assets/js/frontend.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* WooCommerce Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2018-5-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
1 |
/*!
|
2 |
+
* WooCommerce Variation Swatches v1.0.24
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2018-5-21 14:10:31
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
images/advanced-screenshot.png
ADDED
Binary file
|
images/archive-pro.png
ADDED
Binary file
|
images/placeholder.png
CHANGED
Binary file
|
includes/class-wvs-customizer.php
CHANGED
@@ -54,6 +54,10 @@
|
|
54 |
|
55 |
foreach ( $panel[ 'sections' ] as $section ) {
|
56 |
|
|
|
|
|
|
|
|
|
57 |
if ( ! isset( $section[ 'customize_hidden' ] ) || ! $section[ 'customize_hidden' ] ) {
|
58 |
new WVS_Customize_Heading( $wp_customize, $section_id, $section[ 'title' ] );
|
59 |
}
|
@@ -61,6 +65,10 @@
|
|
61 |
|
62 |
foreach ( $section[ 'fields' ] as $field ) {
|
63 |
|
|
|
|
|
|
|
|
|
64 |
$setting_id = sprintf( '%s[%s]', $this->_settings_name, $field[ 'id' ] );
|
65 |
|
66 |
$default_value = $field[ 'default' ];
|
54 |
|
55 |
foreach ( $panel[ 'sections' ] as $section ) {
|
56 |
|
57 |
+
if ( isset( $section[ 'pro' ] ) ) {
|
58 |
+
continue;
|
59 |
+
}
|
60 |
+
|
61 |
if ( ! isset( $section[ 'customize_hidden' ] ) || ! $section[ 'customize_hidden' ] ) {
|
62 |
new WVS_Customize_Heading( $wp_customize, $section_id, $section[ 'title' ] );
|
63 |
}
|
65 |
|
66 |
foreach ( $section[ 'fields' ] as $field ) {
|
67 |
|
68 |
+
if ( isset( $field[ 'pro' ] ) ) {
|
69 |
+
continue;
|
70 |
+
}
|
71 |
+
|
72 |
$setting_id = sprintf( '%s[%s]', $this->_settings_name, $field[ 'id' ] );
|
73 |
|
74 |
$default_value = $field[ 'default' ];
|
includes/class-wvs-settings-api.php
CHANGED
@@ -158,6 +158,9 @@
|
|
158 |
$section[ 'fields' ] = apply_filters( 'wvs_settings_fields', $section[ 'fields' ], $section, $tab );
|
159 |
|
160 |
foreach ( $section[ 'fields' ] as $field ) {
|
|
|
|
|
|
|
161 |
$field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : NULL;
|
162 |
$this->set_default( $field[ 'id' ], $field[ 'type' ], $field[ 'default' ] );
|
163 |
}
|
@@ -230,6 +233,12 @@
|
|
230 |
|
231 |
foreach ( $section[ 'fields' ] as $field ) {
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
//$field[ 'label_for' ] = $this->settings_name . '[' . $field[ 'id' ] . ']';
|
234 |
$field[ 'label_for' ] = $field[ 'id' ] . '-field';
|
235 |
$field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : NULL;
|
@@ -241,6 +250,7 @@
|
|
241 |
}
|
242 |
|
243 |
add_settings_field( $this->settings_name . '[' . $field[ 'id' ] . ']', $field[ 'title' ], array( $this, 'field_callback' ), $tab[ 'id' ] . $section[ 'id' ], $tab[ 'id' ] . $section[ 'id' ], $field );
|
|
|
244 |
}
|
245 |
}
|
246 |
}
|
@@ -273,6 +283,10 @@
|
|
273 |
$this->post_select_field_callback( $field );
|
274 |
break;
|
275 |
|
|
|
|
|
|
|
|
|
276 |
default:
|
277 |
$this->text_field_callback( $field );
|
278 |
break;
|
@@ -352,6 +366,18 @@
|
|
352 |
echo $html;
|
353 |
}
|
354 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
public function color_field_callback( $args ) {
|
356 |
$value = esc_attr( $this->get_option( $args[ 'id' ] ) );
|
357 |
// $size = isset( $args[ 'size' ] ) && ! is_null( $args[ 'size' ] ) ? $args[ 'size' ] : 'regular';
|
@@ -534,15 +560,23 @@
|
|
534 |
|
535 |
printf( '<tr id="%s" %s %s>', $wrapper_id, $custom_attributes, $dependency );
|
536 |
|
537 |
-
if (
|
538 |
-
echo '<
|
|
|
|
|
539 |
} else {
|
540 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
}
|
542 |
|
543 |
-
echo '<td>';
|
544 |
-
call_user_func( $field[ 'callback' ], $field[ 'args' ] );
|
545 |
-
echo '</td>';
|
546 |
echo '</tr>';
|
547 |
}
|
548 |
}
|
158 |
$section[ 'fields' ] = apply_filters( 'wvs_settings_fields', $section[ 'fields' ], $section, $tab );
|
159 |
|
160 |
foreach ( $section[ 'fields' ] as $field ) {
|
161 |
+
if ( isset( $field[ 'pro' ] ) ) {
|
162 |
+
continue;
|
163 |
+
}
|
164 |
$field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : NULL;
|
165 |
$this->set_default( $field[ 'id' ], $field[ 'type' ], $field[ 'default' ] );
|
166 |
}
|
233 |
|
234 |
foreach ( $section[ 'fields' ] as $field ) {
|
235 |
|
236 |
+
if ( isset( $field[ 'pro' ] ) ) {
|
237 |
+
$field[ 'id' ] = uniqid( 'pro' );
|
238 |
+
$field[ 'type' ] = '';
|
239 |
+
$field[ 'title' ] = '';
|
240 |
+
}
|
241 |
+
|
242 |
//$field[ 'label_for' ] = $this->settings_name . '[' . $field[ 'id' ] . ']';
|
243 |
$field[ 'label_for' ] = $field[ 'id' ] . '-field';
|
244 |
$field[ 'default' ] = isset( $field[ 'default' ] ) ? $field[ 'default' ] : NULL;
|
250 |
}
|
251 |
|
252 |
add_settings_field( $this->settings_name . '[' . $field[ 'id' ] . ']', $field[ 'title' ], array( $this, 'field_callback' ), $tab[ 'id' ] . $section[ 'id' ], $tab[ 'id' ] . $section[ 'id' ], $field );
|
253 |
+
|
254 |
}
|
255 |
}
|
256 |
}
|
283 |
$this->post_select_field_callback( $field );
|
284 |
break;
|
285 |
|
286 |
+
case 'pro':
|
287 |
+
$this->pro_field_callback( $field );
|
288 |
+
break;
|
289 |
+
|
290 |
default:
|
291 |
$this->text_field_callback( $field );
|
292 |
break;
|
366 |
echo $html;
|
367 |
}
|
368 |
|
369 |
+
public function pro_field_callback( $args ) {
|
370 |
+
|
371 |
+
$image = esc_url( $args[ 'screen_shot' ] );
|
372 |
+
$link = esc_url( $args[ 'product_link' ] );
|
373 |
+
$width = isset( $args[ 'width' ] ) ? $args[ 'width' ] : '70%';
|
374 |
+
|
375 |
+
$html = sprintf( '<a target="_blank" href="%s"><img style="width: %s" src="%s" /></a>', $link, $width, $image );
|
376 |
+
$html .= $this->get_field_description( $args );
|
377 |
+
|
378 |
+
echo $html;
|
379 |
+
}
|
380 |
+
|
381 |
public function color_field_callback( $args ) {
|
382 |
$value = esc_attr( $this->get_option( $args[ 'id' ] ) );
|
383 |
// $size = isset( $args[ 'size' ] ) && ! is_null( $args[ 'size' ] ) ? $args[ 'size' ] : 'regular';
|
560 |
|
561 |
printf( '<tr id="%s" %s %s>', $wrapper_id, $custom_attributes, $dependency );
|
562 |
|
563 |
+
if ( isset( $field[ 'args' ][ 'pro' ] ) ) {
|
564 |
+
echo '<td colspan="2" style="padding: 0; margin: 0">';
|
565 |
+
$this->pro_field_callback( $field[ 'args' ] );
|
566 |
+
echo '</td>';
|
567 |
} else {
|
568 |
+
|
569 |
+
if ( ! empty( $field[ 'args' ][ 'label_for' ] ) ) {
|
570 |
+
echo '<th scope="row"><label for="' . esc_attr( $field[ 'args' ][ 'label_for' ] ) . '">' . $field[ 'title' ] . '</label></th>';
|
571 |
+
} else {
|
572 |
+
echo '<th scope="row">' . $field[ 'title' ] . '</th>';
|
573 |
+
}
|
574 |
+
|
575 |
+
echo '<td>';
|
576 |
+
call_user_func( $field[ 'callback' ], $field[ 'args' ] );
|
577 |
+
echo '</td>';
|
578 |
}
|
579 |
|
|
|
|
|
|
|
580 |
echo '</tr>';
|
581 |
}
|
582 |
}
|
includes/functions.php
CHANGED
@@ -221,11 +221,34 @@
|
|
221 |
'min' => 8,
|
222 |
'max' => 24,
|
223 |
'suffix' => 'px'
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
)
|
225 |
) )
|
226 |
)
|
227 |
), apply_filters( 'wvs_advanced_setting_default_active', FALSE ) );
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
do_action( 'after_wvs_settings', woo_variation_swatches() );
|
230 |
}
|
231 |
endif;
|
@@ -797,4 +820,66 @@
|
|
797 |
return apply_filters( 'wvs_variation_attribute_options_html', $data, $args );
|
798 |
}
|
799 |
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
800 |
|
221 |
'min' => 8,
|
222 |
'max' => 24,
|
223 |
'suffix' => 'px'
|
224 |
+
),
|
225 |
+
'advanced-pro' => array(
|
226 |
+
'pro' => TRUE,
|
227 |
+
'width' => '41%',
|
228 |
+
'screen_shot' => woo_variation_swatches()->images_uri( 'advanced-screenshot.png' ),
|
229 |
+
'product_link' => 'http://bit.ly/woos-settings',
|
230 |
)
|
231 |
) )
|
232 |
)
|
233 |
), apply_filters( 'wvs_advanced_setting_default_active', FALSE ) );
|
234 |
|
235 |
+
if ( ! class_exists( 'Woo_Variation_Swatches_Pro' ) ) {
|
236 |
+
woo_variation_swatches()->add_setting( 'archive', esc_html__( 'Archive / Shop', 'woo-variation-swatches-pro' ), array(
|
237 |
+
array(
|
238 |
+
'pro' => TRUE,
|
239 |
+
'title' => esc_html__( 'Visual Section', 'woo-variation-swatches-pro' ),
|
240 |
+
'desc' => esc_html__( 'Advanced change some visual styles', 'woo-variation-swatches-pro' ),
|
241 |
+
'fields' => apply_filters( 'wvs_pro_archive_setting_fields', array(
|
242 |
+
array(
|
243 |
+
'pro' => TRUE,
|
244 |
+
'width' => '45%',
|
245 |
+
'screen_shot' => woo_variation_swatches()->images_uri( 'archive-pro.png' ),
|
246 |
+
'product_link' => 'http://bit.ly/woos-settings',
|
247 |
+
),
|
248 |
+
) )
|
249 |
+
)
|
250 |
+
), apply_filters( 'wvs_pro_archive_setting_default_active', FALSE ) );
|
251 |
+
}
|
252 |
do_action( 'after_wvs_settings', woo_variation_swatches() );
|
253 |
}
|
254 |
endif;
|
820 |
return apply_filters( 'wvs_variation_attribute_options_html', $data, $args );
|
821 |
}
|
822 |
endif;
|
823 |
+
|
824 |
+
|
825 |
+
function add_wvs_pro_preview_tab( $tabs ) {
|
826 |
+
$tabs[ 'woo-variation-swatches-pro' ] = array(
|
827 |
+
'label' => __( 'Swatches Settings', 'woo-variation-swatches-pro' ),
|
828 |
+
'target' => 'wvs-pro-product-variable-swatches-options',
|
829 |
+
'class' => array( 'show_if_variable', 'variations_tab' ),
|
830 |
+
'priority' => 65,
|
831 |
+
);
|
832 |
+
|
833 |
+
return $tabs;
|
834 |
+
}
|
835 |
+
|
836 |
+
function add_wvs_pro_preview_tab_panel() {
|
837 |
+
ob_start();
|
838 |
+
?>
|
839 |
+
<div id="wvs-pro-product-variable-swatches-options" class="panel wc-metaboxes-wrapper hidden">
|
840 |
+
<style type="text/css">
|
841 |
+
.gwp-pro-features-wrapper {
|
842 |
+
padding : 20px;
|
843 |
+
margin : 10px;
|
844 |
+
background-color : #f1f1f1;
|
845 |
+
}
|
846 |
+
|
847 |
+
.gwp-pro-features-wrapper li span {
|
848 |
+
color : #15ce5c;
|
849 |
+
}
|
850 |
+
|
851 |
+
.gwp-pro-features-wrapper p, .gwp-pro-features-wrapper ul {
|
852 |
+
padding: 10px 0;
|
853 |
+
}
|
854 |
+
|
855 |
+
.gwp-pro-button span {
|
856 |
+
padding-top : 10px;
|
857 |
+
}
|
858 |
+
</style>
|
859 |
+
<div class="gwp-pro-features-wrapper">
|
860 |
+
<h3>Upgrade to Woocommerce Variation Swatches - Pro</h3>
|
861 |
+
<p>With the premium version of Woocommerce Variation Swatches, you can do:</p>
|
862 |
+
<ul>
|
863 |
+
<li><span class="dashicons dashicons-yes"></span> Enable attribute variations into radio button.</li>
|
864 |
+
<li><span class="dashicons dashicons-yes"></span> Individual product basis swatches customization.</li>
|
865 |
+
<li><span class="dashicons dashicons-yes"></span> Enable attributes swatch in archives / shop page.</li>
|
866 |
+
<li><span class="dashicons dashicons-yes"></span> Control swatches width and height on archive page.</li>
|
867 |
+
<li><span class="dashicons dashicons-yes"></span> Archive swatches positioning.</li>
|
868 |
+
<li><span class="dashicons dashicons-yes"></span> Archive swatches alignment.</li>
|
869 |
+
<li><span class="dashicons dashicons-yes"></span> Tooltip display setting on archive page.</li>
|
870 |
+
<li><span class="dashicons dashicons-yes"></span> Variation clear button display setting.</li>
|
871 |
+
<li><span class="dashicons dashicons-yes"></span> Customize tooltip text and background color.</li>
|
872 |
+
<li><span class="dashicons dashicons-yes"></span> Customize font size, swatches height and width.</li>
|
873 |
+
<li><span class="dashicons dashicons-yes"></span> Customize swatches colors.</li>
|
874 |
+
<li><span class="dashicons dashicons-yes"></span> Automatic updates and exclusive technical support.</li>
|
875 |
+
</ul>
|
876 |
+
<a class="button button-primary button-hero gwp-pro-button" href="http://bit.ly/woos-settings">Okay, I need the features! <span class="dashicons dashicons-external"></span></a>
|
877 |
+
</div>
|
878 |
+
</div>
|
879 |
+
<?php
|
880 |
+
|
881 |
+
echo ob_get_clean();
|
882 |
+
|
883 |
+
|
884 |
+
}
|
885 |
|
includes/hooks.php
CHANGED
@@ -16,4 +16,11 @@
|
|
16 |
|
17 |
add_filter( 'woocommerce_ajax_variation_threshold', 'wvs_ajax_variation_threshold', 8 );
|
18 |
|
19 |
-
add_filter( 'woocommerce_dropdown_variation_attribute_options_html', 'wvs_variation_attribute_options_html', 200, 2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
add_filter( 'woocommerce_ajax_variation_threshold', 'wvs_ajax_variation_threshold', 8 );
|
18 |
|
19 |
+
add_filter( 'woocommerce_dropdown_variation_attribute_options_html', 'wvs_variation_attribute_options_html', 200, 2 );
|
20 |
+
|
21 |
+
if ( ! class_exists( 'Woo_Variation_Swatches_Pro' ) ) {
|
22 |
+
add_filter( 'woocommerce_product_data_tabs', 'add_wvs_pro_preview_tab' );
|
23 |
+
|
24 |
+
add_filter( 'woocommerce_product_data_panels', 'add_wvs_pro_preview_tab_panel' );
|
25 |
+
}
|
26 |
+
|
languages/woo-variation-swatches.pot
CHANGED
@@ -44,11 +44,11 @@ msgstr ""
|
|
44 |
msgid "Remove image"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../includes/functions.php:28, ../includes/functions.php:
|
48 |
msgid "Color"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../includes/functions.php:34, ../includes/functions.php:
|
52 |
msgid "Image"
|
53 |
msgstr ""
|
54 |
|
@@ -175,35 +175,35 @@ msgstr ""
|
|
175 |
msgid "Single product variation item font size"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: ../includes/functions.php:
|
179 |
msgid "Choose a color"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: ../includes/functions.php:
|
183 |
msgid "Choose an Image"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: ../includes/functions.php:
|
187 |
msgid "Select terms"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: ../includes/functions.php:
|
191 |
msgid "Select all"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: ../includes/functions.php:
|
195 |
msgid "Select none"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: ../includes/functions.php:
|
199 |
msgid "Add new %s"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: ../includes/functions.php:
|
203 |
msgid "Add new"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: ../includes/functions.php:
|
207 |
msgid "Choose an option"
|
208 |
msgstr ""
|
209 |
|
44 |
msgid "Remove image"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../includes/functions.php:28, ../includes/functions.php:267
|
48 |
msgid "Color"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../includes/functions.php:34, ../includes/functions.php:276
|
52 |
msgid "Image"
|
53 |
msgstr ""
|
54 |
|
175 |
msgid "Single product variation item font size"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: ../includes/functions.php:268
|
179 |
msgid "Choose a color"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: ../includes/functions.php:277, ../woo-variation-swatches.php:242
|
183 |
msgid "Choose an Image"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: ../includes/functions.php:338
|
187 |
msgid "Select terms"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: ../includes/functions.php:349
|
191 |
msgid "Select all"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: ../includes/functions.php:350
|
195 |
msgid "Select none"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: ../includes/functions.php:355
|
199 |
msgid "Add new %s"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: ../includes/functions.php:355, ../includes/functions.php:357
|
203 |
msgid "Add new"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: ../includes/functions.php:516, ../includes/functions.php:588, ../includes/functions.php:661, ../includes/functions.php:732
|
207 |
msgid "Choose an option"
|
208 |
msgstr ""
|
209 |
|
package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"package": "WooCommerce Variation Swatches",
|
3 |
"name": "woo-variation-swatches",
|
4 |
-
"version": "1.0.
|
5 |
"author": "Emran Ahmed <emran.bd.08@gmail.com>",
|
6 |
"contact": "emran.bd.08@gmail.com",
|
7 |
"license": "GNU General Public License v3",
|
1 |
{
|
2 |
"package": "WooCommerce Variation Swatches",
|
3 |
"name": "woo-variation-swatches",
|
4 |
+
"version": "1.0.24",
|
5 |
"author": "Emran Ahmed <emran.bd.08@gmail.com>",
|
6 |
"contact": "emran.bd.08@gmail.com",
|
7 |
"license": "GNU General Public License v3",
|
webpack.mix.js
CHANGED
@@ -61,7 +61,7 @@ if (Mix.inProduction()) {
|
|
61 |
}
|
62 |
|
63 |
mix.banner({
|
64 |
-
banner : "WooCommerce Variation Swatches v1.0.
|
65 |
});
|
66 |
|
67 |
mix.notification({
|
61 |
}
|
62 |
|
63 |
mix.banner({
|
64 |
+
banner : "WooCommerce Variation Swatches v1.0.24 \n\nAuthor: Emran Ahmed ( emran.bd.08@gmail.com ) \nDate: " + new Date().toLocaleString() + "\nReleased under the GPLv3 license."
|
65 |
});
|
66 |
|
67 |
mix.notification({
|
woo-variation-swatches.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
|
5 |
* Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 3.2+
|
6 |
* Author: Emran Ahmed
|
7 |
-
* Version: 1.0.
|
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.
|
24 |
|
25 |
protected static $_instance = NULL;
|
26 |
private $_settings_api;
|
4 |
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
|
5 |
* Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 3.2+
|
6 |
* Author: Emran Ahmed
|
7 |
+
* Version: 1.0.24
|
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.24';
|
24 |
|
25 |
protected static $_instance = NULL;
|
26 |
private $_settings_api;
|