From eaae3a998b9d9be8c172ce6a9a15594ed5a3ee96 Mon Sep 17 00:00:00 2001 From: Alexis Salazar Delgado Date: Thu, 2 Jun 2022 11:48:54 +0100 Subject: [PATCH] VERSION 3.9.0 --- includes/class-yith-wcwl-frontend.php | 2 +- init.php | 6 +- languages/yith-woocommerce-wishlist-da_DK.mo | Bin 1230 -> 1185 bytes languages/yith-woocommerce-wishlist-de_DE.mo | Bin 3348 -> 3303 bytes languages/yith-woocommerce-wishlist-es_AR.mo | Bin 2796 -> 2751 bytes languages/yith-woocommerce-wishlist-es_ES.mo | Bin 30012 -> 29967 bytes languages/yith-woocommerce-wishlist-es_MX.mo | Bin 2814 -> 2769 bytes languages/yith-woocommerce-wishlist-fa_IR.mo | Bin 3276 -> 3231 bytes languages/yith-woocommerce-wishlist-fr_FR.mo | Bin 34362 -> 34317 bytes languages/yith-woocommerce-wishlist-he_IL.mo | Bin 2798 -> 2753 bytes languages/yith-woocommerce-wishlist-hr.mo | Bin 3107 -> 3062 bytes languages/yith-woocommerce-wishlist-it_IT.mo | Bin 29295 -> 29250 bytes languages/yith-woocommerce-wishlist-ko_KR.mo | Bin 3365 -> 3320 bytes languages/yith-woocommerce-wishlist-nl_NL.mo | Bin 28345 -> 28300 bytes languages/yith-woocommerce-wishlist-pl_PL.mo | Bin 2556 -> 2511 bytes languages/yith-woocommerce-wishlist-pt_BR.mo | Bin 2706 -> 2661 bytes languages/yith-woocommerce-wishlist-pt_PT.mo | Bin 2685 -> 2640 bytes languages/yith-woocommerce-wishlist-ru_RU.mo | Bin 1915 -> 1870 bytes languages/yith-woocommerce-wishlist-sv_SE.mo | Bin 3091 -> 3046 bytes languages/yith-woocommerce-wishlist-tr_TR.mo | Bin 2826 -> 2781 bytes languages/yith-woocommerce-wishlist-uk_UA.mo | Bin 1469 -> 1424 bytes languages/yith-woocommerce-wishlist-zh_CN.mo | Bin 1638 -> 1593 bytes languages/yith-woocommerce-wishlist-zh_TW.mo | Bin 1638 -> 1593 bytes languages/yith-woocommerce-wishlist.pot | 2 +- plugin-fw/Gruntfile.js | 198 ++++ plugin-fw/assets/css/metaboxes.css | 63 +- plugin-fw/assets/css/scss/yith-plugin-ui.scss | 8 + .../css/scss/yith-plugin-ui/_animations.scss | 92 ++ .../css/scss/yith-plugin-ui/_components.scss | 12 + .../scss/yith-plugin-ui/_head_comment.scss | 6 + .../css/scss/yith-plugin-ui/_tables.scss | 56 + .../css/scss/yith-plugin-ui/_taxonomy.scss | 52 + .../css/scss/yith-plugin-ui/_variables.scss | 121 ++ .../css/scss/yith-plugin-ui/_wp-pages.scss | 88 ++ .../components/_action-button.scss | 80 ++ .../yith-plugin-ui/components/_boxed-row.scss | 14 + .../yith-plugin-ui/components/_buttons.scss | 224 ++++ .../yith-plugin-ui/components/_confirm.scss | 41 + .../components/_list-table-blank-state.scss | 25 + .../yith-plugin-ui/components/_modal.scss | 128 ++ .../scss/yith-plugin-ui/components/_tabs.scss | 51 + .../yith-plugin-ui/components/_tip-tip.scss | 80 ++ .../scss/yith-plugin-ui/mixins/_buttons.scss | 124 ++ .../scss/yith-plugin-ui/mixins/_tables.scss | 159 +++ plugin-fw/assets/css/yith-fields.css | 14 +- plugin-fw/assets/css/yith-icon.css | 24 +- plugin-fw/assets/css/yith-plugin-ui.css | 58 +- plugin-fw/assets/fonts/yith-icon.eot | Bin 16144 -> 17208 bytes plugin-fw/assets/fonts/yith-icon.ttf | Bin 15972 -> 17036 bytes plugin-fw/assets/fonts/yith-icon.woff2 | Bin 7632 -> 8144 bytes plugin-fw/assets/js/metabox.js | 43 +- plugin-fw/assets/js/metabox.min.js | 2 +- plugin-fw/assets/js/yith-fields.js | 46 + plugin-fw/assets/js/yith-fields.min.js | 2 +- plugin-fw/assets/js/yith-ui.js | 38 +- plugin-fw/assets/js/yith-ui.min.js | 2 +- plugin-fw/bin/clean-language-files.js | 36 + .../bin/download-translations-config.json | 32 + plugin-fw/bin/download-translations.js | 57 + plugin-fw/composer.json | 24 + plugin-fw/dist/gutenberg/index.asset.php | 2 +- plugin-fw/dist/gutenberg/index.js | 2 +- plugin-fw/dist/gutenberg/style-index.css | 1 + plugin-fw/docker-compose.yml | 76 ++ .../elementor/class-yith-elementor-widget.php | 2 +- .../gutenberg/class-yith-gutenberg.php | 2 +- .../src/common/actions-to-jquery-events.js | 32 + .../gutenberg/src/common/ajaxFetch.js | 42 + .../gutenberg/src/common/checkForDeps.js | 46 + .../gutenberg/src/common/generateShortcode.js | 42 + .../builders/gutenberg/src/common/icons.js | 12 + .../builders/gutenberg/src/common/index.js | 4 + .../components/color-palette-control/index.js | 96 ++ .../color-palette-control/style.scss | 9 + .../components/color-picker-control/index.js | 53 + .../multiple-select-control/index.js | 56 + .../multiple-select.js | 186 +++ .../multiple-select-control/style.scss | 135 +++ .../src/components/shortcode/index.js | 152 +++ .../src/components/shortcode/style.scss | 64 + .../includes/builders/gutenberg/src/edit.js | 234 ++++ .../includes/builders/gutenberg/src/index.js | 53 + .../class-yit-plugin-panel-woocommerce.php | 1 + plugin-fw/includes/class-yit-plugin-panel.php | 59 +- .../includes/class-yit-plugin-subpanel.php | 8 +- plugin-fw/init.php | 4 +- plugin-fw/languages/yith-plugin-fw-el.po | 120 +- plugin-fw/languages/yith-plugin-fw-es_ES.po | 120 +- plugin-fw/languages/yith-plugin-fw-it_IT.po | 120 +- plugin-fw/languages/yith-plugin-fw-nl_NL.po | 120 +- plugin-fw/languages/yith-plugin-fw-ru_RU.mo | Bin 0 -> 23587 bytes plugin-fw/languages/yith-plugin-fw-ru_RU.po | 1050 +++++++++++++++++ plugin-fw/languages/yith-plugin-fw.pot | 120 +- plugin-fw/license.txt | 740 ++++++++++++ plugin-fw/package.json | 50 + plugin-fw/phpunit.xml.dist | 15 + plugin-fw/templates/fields/country-select.php | 1 - plugin-fw/templates/fields/email.php | 29 + plugin-fw/templates/metaboxes/tab.php | 11 +- plugin-fw/templates/panel/premium-tab.php | 4 +- .../panel/woocommerce/woocommerce-form.php | 9 +- plugin-fw/tests/bootstrap.php | 167 +++ .../framework/fixtures/panel-all-options.php | 240 ++++ .../class-yith-plugin-fw-panels-helper.php | 83 ++ .../plugin-options/wc-panel-options.php | 43 + ...s-yith-plugin-fw-tests-plugin-panel-wc.php | 49 + .../tools/local-env/docker/phpunit/Dockerfile | 12 + plugin-fw/tools/local-env/install-wp-tests.sh | 154 +++ plugin-fw/tools/local-env/mysql-init.sql | 7 + plugin-fw/tools/local-env/phpunit-config.ini | 6 + plugin-fw/tools/local-env/scripts/docker.js | 6 + plugin-fw/tools/local-env/scripts/install.js | 15 + plugin-fw/tools/local-env/scripts/start.js | 7 + .../tools/local-env/yith-plugin-fw-loader.php | 50 + plugin-fw/yit-functions.php | 33 +- plugin-fw/yit-plugin.php | 12 +- readme.md | 5 +- readme.txt | 10 +- 118 files changed, 6313 insertions(+), 478 deletions(-) create mode 100644 plugin-fw/Gruntfile.js create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/_head_comment.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/_taxonomy.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/_wp-pages.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_action-button.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_boxed-row.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_confirm.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_list-table-blank-state.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_modal.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_tabs.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/components/_tip-tip.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_buttons.scss create mode 100644 plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_tables.scss create mode 100644 plugin-fw/bin/clean-language-files.js create mode 100644 plugin-fw/bin/download-translations-config.json create mode 100644 plugin-fw/bin/download-translations.js create mode 100644 plugin-fw/composer.json create mode 100644 plugin-fw/docker-compose.yml create mode 100644 plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/common/ajaxFetch.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/common/generateShortcode.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/common/icons.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/common/index.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/index.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/style.scss create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/color-picker-control/index.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/index.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/multiple-select.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/style.scss create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/shortcode/index.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/components/shortcode/style.scss create mode 100644 plugin-fw/includes/builders/gutenberg/src/edit.js create mode 100644 plugin-fw/includes/builders/gutenberg/src/index.js create mode 100644 plugin-fw/languages/yith-plugin-fw-ru_RU.mo create mode 100644 plugin-fw/languages/yith-plugin-fw-ru_RU.po create mode 100644 plugin-fw/license.txt create mode 100644 plugin-fw/package.json create mode 100644 plugin-fw/phpunit.xml.dist create mode 100644 plugin-fw/templates/fields/email.php create mode 100644 plugin-fw/tests/bootstrap.php create mode 100644 plugin-fw/tests/framework/fixtures/panel-all-options.php create mode 100644 plugin-fw/tests/framework/helpers/class-yith-plugin-fw-panels-helper.php create mode 100644 plugin-fw/tests/framework/plugin-options/wc-panel-options.php create mode 100644 plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php create mode 100644 plugin-fw/tools/local-env/docker/phpunit/Dockerfile create mode 100644 plugin-fw/tools/local-env/install-wp-tests.sh create mode 100644 plugin-fw/tools/local-env/mysql-init.sql create mode 100644 plugin-fw/tools/local-env/phpunit-config.ini create mode 100644 plugin-fw/tools/local-env/scripts/docker.js create mode 100644 plugin-fw/tools/local-env/scripts/install.js create mode 100644 plugin-fw/tools/local-env/scripts/start.js create mode 100644 plugin-fw/tools/local-env/yith-plugin-fw-loader.php diff --git a/includes/class-yith-wcwl-frontend.php b/includes/class-yith-wcwl-frontend.php index 733f3e4..776fe5d 100644 --- a/includes/class-yith-wcwl-frontend.php +++ b/includes/class-yith-wcwl-frontend.php @@ -33,7 +33,7 @@ class YITH_WCWL_Frontend { * @var string * @since 1.0.0 */ - public $version = '3.8.0'; + public $version = '3.9.0'; /** * Plugin database version diff --git a/init.php b/init.php index 53db8c3..135dd8f 100644 --- a/init.php +++ b/init.php @@ -3,13 +3,13 @@ * Plugin Name: YITH WooCommerce Wishlist * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/ * Description: YITH WooCommerce Wishlist gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. Get more plugins for your e-commerce on YITH - * Version: 3.8.0 + * Version: 3.9.0 * Author: YITH * Author URI: https://yithemes.com/ * Text Domain: yith-woocommerce-wishlist * Domain Path: /languages/ - * WC requires at least: 6.2 - * WC tested up to: 6.4 + * WC requires at least: 6.3 + * WC tested up to: 6.5 * * @author YITH * @package YITH\Wishlist diff --git a/languages/yith-woocommerce-wishlist-da_DK.mo b/languages/yith-woocommerce-wishlist-da_DK.mo index 6188e388b3b266b3ef63d0e21e677e44a2612f6f..fa9688c4926d6b5201f1541fa3477774afbbe2d7 100644 GIT binary patch delta 144 zcmX@dxsY?hlzK}h28KtB3=F&s3=A?X3=C{QS_??C18GAb%?YF}fiw^?I0Ffgya!a= zA4szT`H?_c07%CJX$~M=0HlG4p%O@N0qHs*%?+eGq4ZQB4YZPhkAY#cFry3O<`yO| FCIGQN3|RmG delta 187 zcmZ3;d5&|!l=?I#28KtB3=F&s3=Ezu3=C{QIvhx|1L-&*%?YH_fHV*>6aWd3d?{4C z21v64`E5X207&-$X$~Mg7f1sU!!jVj1*BI4X>K6B4N4yZ(m*R2_!t;A3p2VfYK7=J x7o{eaWaj7Tx+IpQS}7PA7#Zmr80s1tDHs}B85vob7-<_ASQ!{>4q@_T0s#GJ8GQf% diff --git a/languages/yith-woocommerce-wishlist-de_DE.mo b/languages/yith-woocommerce-wishlist-de_DE.mo index 72b9fee062aa04c4e9c44040de5bafa8b61d1439..1095fef2b958e9ba67ee51bc6554fb86c7cbd987 100644 GIT binary patch delta 377 zcmXZY%}N4c6vpvq#Ba+QHEdjjZj!)Fv@i%43NC~YFTjm4;0**pn+bH$1+4*XL`vUj1^dAZPR!N@ZLmYL3lFh?=Vr<9Ljk3o(ONn7|wKu!p<&fD`zIln!bC4o)$RyJQ7*aFM1LI-JKt z)c2>zuF^nVxx>f5LTqLCt-m&Yek%Et!IhWyNUAw P6J+V+Ig{jRmyXguD0mss delta 316 zcmXZW!Ab&A7{&2pla)pdic=XxvkQ{JI~Nh0ZLTA#ZG?eAEh@sj=-yTI20nnIt$TxB zpx&U?t^0p8tKU7};@tBd{Y0}`VHgI|=c=?T>3dz;#9%`@#1La_VuWY7kGELC5gyB@K1NW5Qt%-_Y_0hWLwCuvY#b5Tg~hbGv8*&d~-v zVHL-?jjw1uQ?%Y?p1-g_mKN2O)8P0rIeG5)26vASNw+uXXR&wQCoWA=AE#;Neb({~ M=Q8IOSH+v+A1Qt!%m4rY diff --git a/languages/yith-woocommerce-wishlist-es_ES.mo b/languages/yith-woocommerce-wishlist-es_ES.mo index 3e5cfc0bfc2fcd3bbef0adbc3e5bc814a88f690c..c53baaa6fe93f8d3b9dbf3b98ce045fe2c533feb 100644 GIT binary patch delta 2041 zcmXZdeN5F=9LMp`y-koXkOxz^CHGcdoEulP8t5OtL^!L`?94Db0VXNF)%ztV1!|-sNz=7b8RphW1(?9wuoLe=53BGL7UL8~F?Xp{jWI020o;bi z(cVi-NIe)w8}Ci*!%q|PZVb5i0qIscdNBo`#kn|y+4w4!;|FL1TtQ1XxJ;UbrI?A; z_!u@}7+=Fe`~-7x8uL;0&QQH4brDz6@gN>U8+Zy+F{eSgA46zyE6%_UvuEzI}S8vRc7oZZ%b`y54kRGSId!@7l$1zO5rxs~39TAql1=phO)khfT2hmm1 zBHYaA%&8*}Ilsf%#0yx4ZAm3sVr#Gn597^v8Z+=bTID9N9>2l6ZT|2YcX(QG4iENY z2@c~{{2VvnqDMFfcnCQ^s#xpZ8$e6^B-#pdTBUyM!%g@D+VATgm1g2|Xq9~tOPODv z(I6B3foWKHg1y8%jY9&rO!;07$k!x+Jj{r*XuPn^{u z4PrT_;wkj3ahk?CJcl{>JoUCpyo@n?9q+(NT!_JqZm%n_lDHq6@C4d;S1}L&_Twz} zp^!Ka?K518Hc#s&>OY@G4;|S!g!MR#QT!2CVp^v(hOKC&&DiXmi(ExT5vy<~+JDG9n2MLs-oK2N@K1jKHRN}mg1zp0FGriO4XLUQARmB!Lz|#^ySq@@ zFiG5v6h#wAj*8Q1@d;$n%IM?L!rizFzeQW|DlUgv*n#Qx{rA$a0e9nGyn-{aYlpjf zlW2*(g=IK__B{BcJN@ZsaRLi*1s3Bjv`UTO3pj@PnAqtK_j)X{mF}al8c*VEypDS? wleCxPL9_ucVI~F#-099nE-~WzCr?Vw8*cMZ{AnVqz5*Vjt$?5JvD*EXA8xggI3r^RWsSV>cG#aZKPv z)aOd7MP9)K>U!6(7yqdi>;DBeE)|)>#9>UuFE9tsU>5#>A^aV6fvg%k;UKz+*I*`g z;ac2|Ui=Y#_&3f*PpwEEnvU^WOJoxholG?11=LF9)QPyT5~CP*;sHz{9z?Cs0rcQ0 z)Q!fS>vx^&4^b2I)QdcYeq4@?xC-C580bQGP&0GKMas~J&tfNP0>?0hzaVc*vX_al zwlpJEmSJqdUy-H6WS3lnO5ju+dQM~=^9NUmRNy3fnYYXakwr{2a{MlQ8}(iNi7{?y zeqJPq@3A_2%lVbI(@B2@@ha3;(utbbTjFGpf$6RG{XIC1_#|p&zs3Oj z%RL5UB86*2rsE2niK`vEQBTm18*nc^gMZ*I%%|hXQHGHznMB>Fo@{nv6Bgkm)XMye zbJ4q=uZjI7#z4C>iA!)VUcoWc<~hQyALA#eC0yBNFVKn};%ykl{TRS=I1eYBd3U== z0dWQH#x``}O|*1yo58pE7tX>jskc_*do07t_yoE)iY&w+mSa1X;8Bd@Rn+zJse3Ly zi5gd+59?45+Kal+KnL|NU~q_uEIfnS9Ah{iGhgC$U$I&wO|$`Z;a1#@ zTQC(To%si-`=s%$t3^nEOMH`M|9B2D@i-HoV+b$eTzrHzm`jK01MSEMA)nzgy^dOm z`j_oj_YTI0zrzZgve|CZD%1+}qxRNEI1f)-46+&gY^=@H0q36AN(> zY9h@}+=F_ecd-;dKofsP7pA;wKc9h`@GR7MA99~1K?cQ4v|#}EAXSyq$Oj;KTkH*X zV47aX9z2K?OAG>Xl>};h6*;_=_3~4~6Sxhh@l((f??g8aV!D3+hZ*RCC-6o|6(WZLm%-QScD&Vhdr`+pF`RN^JbPfzMl6FiCrUchP`$Ay@&ePldy)GTf>mu~IqNGAGv m&6Y=$G=a5x%?M4yfXLZN6VG%`@Wzw|$WksP!D diff --git a/languages/yith-woocommerce-wishlist-es_MX.mo b/languages/yith-woocommerce-wishlist-es_MX.mo index 10a8298a9bc72c5764b328372a966dca5fd57968..11ff441539723df472da7804602fd06be88e197a 100644 GIT binary patch delta 273 zcmXZXtqQ_m6vpx6bj)qc4|M2cqF9F2VlsIJqSairvCvS*95F~Ay*v{PG>U*Up*DvD7Rq&UC>`glck;I4Cy9@%yN1~?=~s2-W2DvGg! V8?0iA5$<%pI9bP76| z-r_et;s(#qbB_1-n4%5lv56V%Mm{?-Jq*5cV25UC2iEB054yNR`+$=?wvTDL7TLry z-A4P7H?%`Dyubxs;u`PpE9z}>b#vN}RoX%QWzd@ppTHyIdDE3E?+2BG%C&}eO{ O`avn9)ao_SN&EwNuO$-z diff --git a/languages/yith-woocommerce-wishlist-fa_IR.mo b/languages/yith-woocommerce-wishlist-fa_IR.mo index e415388492eb202eed22923ee6c8bfcc38d9bea5..ae6eac95ed90a411ce0d5bdab341dc1087855cf4 100644 GIT binary patch delta 321 zcmXZWyJ|u~6oujC?cgm&ybzBF-U<=a#7+cD!GKuW_!cPy3ppS{3ad0?r`V(u#Zn(3 zRay(%ynvm8|45qohPC(X*+2Hu-gaHipIe&yq?#nhFBNfvb^OH=dIM4(D`@IHe8vx? zMH39;3}0}8LEPdy9?;Z%gijbl8*@Q9kH#j!8$lb>IK&8kVH8(b#vPhPPH5o`8|V#5 zDQuyc)5k1+VgkRhfJaQ?8O{4k=v9hyxe{bB%9>`=Dn|~RXg(bLJKm4nYtO!8O|3ik C&L5Qk delta 364 zcmXZWJxc>Y6ouiV!6nA^157Y0f@>@!39B=Mg)B%4(+JwxXqO@cEfhi;u}G0Ze}Qd4 zI}sF;!phE0J3GsXGqu1zhZ>(F$NY@k6x}^K8w2B{S@dww?PD(3y zh`xS-v)D&k^nf8g;R3#34nJ`hztPtn;WXAT!u_1Oe~m2yL(s-Wyu}%O#yNb$GJc_7 zBs(PqSivo{Si}?bb9%UpL(JnlmT-gx4B5uNFNGV@JeM-T5^kg4^oS$I7Wxmb{=FNV tkKbe}2gy#m+2|afohJ20rNy><8$-x_8B`4?t0>(u}tY65bmA8_K z%XG}G=^w0cV6DI{bF59vHgZ!j=Zdys*;Y7Eme@MZfPkk#PJJpTe&(9{)n!Na*wC zcUc%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=3*uf^*cSN z8M};o8DExoMBc($|Tajc+1?J(G z*oXh1?zzMJ$v@?kA86=6NlhZ}q62joe~W22je0tkyly6zfD!aP$TpEfcn5EzmgMpq zlnHNOAT~Ff40qu=`h#|Vq?!6h6Sz*mfj^_BJg~)_>ktg5|14@oiZKC)u^&fKCz9D} zYFv!^{%+KgG~m~G3Kx%`*G#Ay-Ng5M$^Tj!9}&>hPT&Td!%SRBAvJZoP$%{tYGzKO zKaOHDUO`>iEQVr0n^{0KE~lS|y8BBp1ihGxmPKO?jd3i;UvUaIx0{mq9W*muj?0Kg zqh>4--@$DA`3;PqKZTm1-%tni?J%`Y#7O#WsJ|b;XV5xFLsK@1dR%6)5FaCVgyeS` z&!S#H^R|vIbMZ7`7V(Ry&+noOS957-W=c^r(v3RKAV%Q_MoUI%=#0O|V7!mIl1HeU zE~v+3A{F&RE_7o)reF_l#|!AhIb4A;heV!4C+hEVP)oKGQ?Yze>Tl7|^Zo^<;dkhZ z^Qg6Yh%xAY*!1IVow${FE@q&GI=~p}Ub%|8kZ}yapHMS1gL-^J-V}M7@g;*sJ60gK zs@z1)L^79xuE33NV;-_EQuaK0r-%4TI?SIxz^3AxV;9v<7G_ z?KLSLMqSAn)YCADI@5X7`yr~&tRN1<=$D}$vwGCsKa85GuW%Lqh-dLHJ3e^Sy!SE2 z62Enn^Y5W?kAQBD9mn|V#ahfoIc~1ZJk*tRV>+J1OuU9V&?D3pM)aE!B%oeADOiRs z)QKKP9~?m~?O1=b*}W6?3k&vxw1Kg-aPQ`{J&yc#PhCfox7ATl*Wt;EcR5`yhcn%g Z?ut)O&vLo4+^+RbXO`1B_I_b^&i|~5Qpf-R diff --git a/languages/yith-woocommerce-wishlist-he_IL.mo b/languages/yith-woocommerce-wishlist-he_IL.mo index 2dfd92c77556770d75071879ec5f540d34d1f0d5..fb21dc68a3b25a51d3727aa218995515eb327f9c 100644 GIT binary patch delta 239 zcmXZUzYf7*7=`iUPs7&;5*m?+G#vy}!yQPC1`(^p4VY@Q8VokqVD1$#OU#YYBoUj< z;3=JcIVbOXUe3wce>RV-w9HFANt1$9$2E>{hb_FOKCw$SMajhhdN{*5hFHc6Ht~iv zd}9ZV`S1JalgCDj-%v==r#PUCXG|XM*g)Hss_3N-u|y8AjZ;kSR_Nk3&BrLtRC1AH G#nu<@3K@t1 delta 282 zcmXZUy=uZ>7{&3YBw{RL1J)Lyloto7k-(c5v5>KL@6wL-gW}Mor6H4pdI{cuQ+fyD z;3#+vg3z^VI|~l}Bbk1j!}FYV<*zb3Os*`EH(R73BBQ*>C4S=ruJ8sAnN>&Rj@(9t zJ*?prUogQE?y-taL8Oc|tYaI~{a4f&6{LF_N+>*v4J!P{^uawBxyE~R@hP*9Me-Nk z;uzDrIVxOcdAr!1U0B|;--(8U`2F+4e;mZaP#JBEuLD0YDhNVj!j@@j9csP!wSRI) DfKw#- diff --git a/languages/yith-woocommerce-wishlist-hr.mo b/languages/yith-woocommerce-wishlist-hr.mo index 68c3f7aaadb65d68afe5388fef6615dcc6ed4202..0378f3ac40659ba485ae4a9d151e2e33d7c654a0 100644 GIT binary patch delta 329 zcmXZWJqUqO6vpwxn{W9R@)21L7MbkICWFCfHW`&kQ5F`Pg<>QFqlL`MYLvk!qx=u* z?f&k0-h1vnv*;_bs+qceL*!u*$%x3?E|S2sLnMzSjA08s*he2ukfX9hT4nvux9Fxm zVG1u;#3wp2$D;j3B$BdIy5CKeAVScnyq|T!KO&8;N*>ni>;vt4`j5_H8wQ=|NfLZGEW?;S>o2j*D`2ca=A)){P delta 372 zcmXZWKT88a5Qg#Bg!m^XDn^N-$OSvY!QK)GTw$Y?V3)=+VhSxHNCdm91XEgDNvd>0 zNMU0dzkr~vm4byfinjWU94z~rnVs3)pK@>MrZJXo=B4+7RFPDjl2&mS9UkE_Uf~Q5 zaSrcs5}%M!J!kb7oF@OqHOv*II#!USJvN&^Kw5NKRQeyJ6v`C3Si)c^|nrihUTziT6p(SDj0o8??tS3V+%BE&~7n diff --git a/languages/yith-woocommerce-wishlist-it_IT.mo b/languages/yith-woocommerce-wishlist-it_IT.mo index 1b0c8c73490d9eccb645cef47fa546f64494e3fe..88b3742653856ae2aa0e898bbf0cc941ab30044f 100644 GIT binary patch delta 2040 zcmXZdYfRQ<7{~GJDHV`_@VF2k!8r6tgoq0i@Ck%G6%Z*I5{Cyd%dE)7R&M><$eLSi z^}-dK))YyzA~#w#Q=^(q)`@l4${f9jmNJDG(s8Z&{dfI0X& z#_$VVh)XNYTCk?l0xPA_Phd8V;WYdg)9~8WW^*u%OR)$ua4Tv7d+<6uh$+~Q8u*NV z9(_hvT;-j%a~Out;Gs#L)A_%>PQDsNAoQzGox6DW4M_4EuC%9uqf(GW4HvL zLKV>)*ouGQ0c<31%D|tv0t+{~iFY7twYO16`VVfyU7K76&tp9OaD&@$E@m;mZJBDA zJ&g&x(1&yJ9q(D3MgK>90LL*OH{U~g@mXYTmbjTh!)8px9^8k0I0sAbb;VnUsq{Os zi21GC2Tq^{8p89K-soQZ1AFKvY;ncci<$I~;UfGTi}5l>FssQ`dkw0FS}+6qa65jA z%0vO@9cZN`G)`g_&cpvunV8p1p{As*QK*jPdYQ^U;jLEHB70kz@_&83TVVhfEF3u!gi1V=wAI6QSi9bP& z` z+=hxDMsAw@jEk|L!`+5@)WTu`4Ha9L_jy#Y973h&1nR}JsMP&{I-1Lih3-0bWF9KA3jDD~?QWB`QVjr~$fhIvzqT=qPHy_k90LR5f3~ zQXEGuWC@iv18Y&=H=s7wgmKu3%XI&rpm8ICx4gqh{n@0qo;#->kmDGSgUB2QF^C rj1f%gbpLk6sFYS=6RyWw@dzsABd7)Zg1VLo14AjN^9KgXPc8o+0m~R> delta 2083 zcmXZddrXye9LMqRsknuv5SPIrJt#**J$253AsvL|QidlflhBL~U>p%65k}Ug?paY& zSBcf!sx5Q56zR4G z`(7cY(BFVFai!-v&y9Eo{R6lLk2y4gG_qEh&B3LpjIaqp*n#)p z%NWHe)CK~LW;NK40iW61=)>`qW_QwmHqN53nBYeGogNxxbnIWnx!_4m;=(4*ju)Oq zKfc3(>cg?S&3MK9%%&7}V;1hfTHK4OoiWsrPN9y*$7+?CER0}2&SQRSbQ{)#I@2Ls zgm0pX=yPnx1?1}$+=a?Ou-WVuOrR!y5m~F9M;&SDy=EKnAS#1tE$$J1)|7`Z0u0;gdLutkEjhnZ@vF%)}G8AIC8VH{ItJ?@r7j zK7eJ+ZzEpEBx<0`cpe+qyDyg9Z}t*#1*YN{7UMabi+|x#ENFF$a5bvhx1(z484Tb! zZo=O&9a}kXM=MRzIEsCkhf5M}ChD=Acohcm3D03HBtC_@Ek9x<=C--FrU?s(TfBHH z>PR0$W%3Zt#CO}se-Vuj=}@tJgIe(=oP$;EW)!}y$6Ij{D&*IyB*{xCGxv?cf4xK`9Tq*DsFxa33zib6A5p zoo2V<8mz__Q2l3+8)vhVSE}7wQMbWCEo?{)726@t_fW-h8kM3+)QcBUsY|7#Rip)| zBbbjtticlO#9G{g+R(?S%>0D<{;DqbmgS-{??h+>Xf%2DqEfUEHNXg_;Azx?K0^)o ztr!1;s^$zTs|x+7g{;L?+=2Rj5Vf&An1%;1s{8*sjrnwZ={b$mp%ru2q=QP?*O-n| z$eeZ=AI8LH_sl=R9^$Hp-2P!?D9fW$?>neWe~;S8G-m4lXEI8Hj(k+{Y(q`-9hTuQ zs2$DYppmcOb9Vt*OIUOnd?Zoiu)+(T*8g-80&Z ztjl(yifkH7G1lk)+jXK++J~+9C|2NERLV2^-34T$u4TpO$yvuji<(3A{mG7j?%pk- mhK_+`ED#MxqoHsl6p02RkytbuD~~P?hhyRJ=wS5+<^KcCKp!>$ diff --git a/languages/yith-woocommerce-wishlist-ko_KR.mo b/languages/yith-woocommerce-wishlist-ko_KR.mo index 7659bc5749f250c9db510838e3642bff19e84b22..be7137ab838df9b55434c2a60ac55b6d56e11633 100644 GIT binary patch delta 361 zcmXZXElh$@6vpvK=0ILP6vlL5aL5FkgALdS6gmbr$ON0wS>L3MV6{WSjqRPqakjhryU)2FJ9k>z6c-N%;eSlJi%Zv%hDoV}AvW;U^ADboSMJsg0x3cL z95YzK9M+Mc9#akb*u+P)b91zNAAv$;S$t72e|=+#m*f=|F_qdkaD{fUg$3+l9S2^2 z!VB`m^BY#k@0iCww0GBdipS}Zbi|^X-gkV1_HYO7C%0Z7qcw8x`5Eop3o9}52DsqtXLrhv9_R63EUk@CAjI}C@Q#!P)ZOHR3w{11$TF6adQx} zIk<|mlTPB&NxF)I_5Q}?k<;~@UHxj_O+)6M3O*cK}4=bM9O%N4qtr!#c^^e z*K^L>z#;k#EZ`;*S(|e>*S;@V@$df>Ysm67!|3KOBmt`>IJq? zH@0vRkI>?!?;ml7{N(co*2rHtfkD1^ZirLl)%>o=Fq3TxzAbyG2OpsR$%XH)Q7>}i zbB4O^85#2C{lo_OJA3V)9jxy}YiCI_Jv=#%)|+V(SDbM!GB&cVVr}ePyyO;*iH*rR HK{5CT9&at{ diff --git a/languages/yith-woocommerce-wishlist-nl_NL.mo b/languages/yith-woocommerce-wishlist-nl_NL.mo index ef3cca893423236ac270c8d54126bd871432b069..33af129ad9d80b171d01c1d29b373fac42c09781 100644 GIT binary patch delta 2032 zcmXZcZ%oxy9LMqRb@%2!6wydQ{wO5e0I7==U=UzrVqHYNMuz-RQ>dubV5#unw?=Me zZM1yAvOhl1a@9pE8jkg6`9!uhd*Ul7MqCE>dcno z9_+wA%*06_|6ON+#i(fB;2K`X1;nQ?7tdk_PGA{cMGcVkh+AMeE+*cIY1oB3u@7_b z2h_%HVk&0Vn=Qg3yb~+x1G6>?aVip+#A*yZYBnEhPz!9pdDxE&@iknEZ+TB*lz0@w zIF0J}tM>*jBffdAhoT z7<@uufPxxI*~aax$9sqyFc*8g$52T*g7@KN)IUWzk2Y28B?Dg$4m`?l;X5r!v z5*&+h3$~!zKkW!yhx1gFQSlRM2Wh(*9P^QvW8L0S)REgBH()91B-*eP2YvmwSV=sK zcVTp|`|#ADPCAa7r!Ancl)_7>6%C-S;2l)QlfL~+RC11^PGACcMU%K1Bh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Yiirbsyr7IH3wu81E b2wDNl&bF+OZHE@w1;Jn_7(7!|TxLB3%DNV- diff --git a/languages/yith-woocommerce-wishlist-pl_PL.mo b/languages/yith-woocommerce-wishlist-pl_PL.mo index eed99f1ac82e3a4b945865ea061df566c34c5176..51b830b279f13c0c7082779db26569b0479f10de 100644 GIT binary patch delta 289 zcmXZXKMnz55QpI(yTWF(EE|6k;RFhm#3dA3t;7u|Hwv0PghHW}Y$4GSo#@;^L!;4c z;T@4o=E+Rv`!bV7w`kwX#W_bhyHZ8cr6`s0jgaI|4y(* zJw*=}f0x*#POyR7lH%XMkp`hNse@OvhcB$-2W=6bW*4hybsz1+0k&|2cE}8E!3Emf d3L{LA-L*lR+j(TW>_EdjrNeyar1Qes{Q@U~9IgNW delta 332 zcmXZXze_?<6u|M5Pf>|VeE4HAq^yxh5iKRkX-x& z9EBSE6NJ{HO&t85cyKr$&f(n4IiLQ)U(`;bx+k(uid=}uUs~iGy^IJg$zuvjc#0Lw z;WeJ2!zSJ#AyMoE^VBoU;ym^pOVleY;#WqZ|AB8Bg#3~!xJP|hCKd1sb&(ccVkfR2 zP(OUcGQOf7@`k$L9QEA?`nW=Flnv_KHcQsab~MzVWjm4cZtjEb%WyD$dL9M6!FcGZ a)>s>uFbHim44t*EVQ-Cb#w`1(Y4Qkd-6k*q diff --git a/languages/yith-woocommerce-wishlist-pt_BR.mo b/languages/yith-woocommerce-wishlist-pt_BR.mo index 2980884a7323f5bb5998319247ed7f5b53c04735..4bd2a3623cac6db0010ed12dba0c64c875e6faec 100644 GIT binary patch delta 273 zcmXZWJqp4=5QgC|nxL^T8WS+0_=APLl~tM?As6rjcD5{i7qa@vIsUzu7ky?1g0Y0&hc2%n57#lc64-+(fDaN=!j&@w8 ze#9D{v5R*!|9`NDwyW%47`f7rhZqB#qiI-T8#ibMZwpTtkuMnH8-4sDJFCf5vv7o_ WZ-QpgS&>t;$Wrc?l5)OsJm&`@H5ruv delta 316 zcmXZWF-t;G7{>8OP0WUr>%E|nbX$`P=Nz2wV1v>sV(mH@1W^?3;ummmZtDvOegVHi zqu}D;(%xi4|6{`8{CM8Od){{!&Z9+`nUr$U*NJo?X%BS}R|3h{ywK5&X&Tk2tq1Ds(WQ?z>vOmKx9?YZpy zSm!g2$tBwNUpPV6SN0!7e)ZuT4TB}xg*6Uwi(TB+78sCEXdk@Q`H6Ja2W?@mQxy); T7LDtiphK4Oz)c(Zrup`MfCC!; delta 316 zcmXZWKTCp96vy$O|44&U?6E-;pS9wldoNATqM&Po=nKff!3d>r7iZr>LoXq4?mZN) zEe_32Z5n>BK5)4oe&=uw=PTF+A3(CpB7pb%1c!T=ZO2i~!QpLm9=#5I=58}tj) zr^kGW+^%c%2V3+9x6mKjP4Y9Q$kMW$?qqKIQTuf`n2sjns56)j%Ol-`um)m9clDQ=L diff --git a/languages/yith-woocommerce-wishlist-ru_RU.mo b/languages/yith-woocommerce-wishlist-ru_RU.mo index da969d534fc3c8b4ec8be0cb45206dc46672608f..c516eb71546654e0b6918a48e7a347903e484cb3 100644 GIT binary patch delta 144 zcmey(caCqul=?O%28LQ7Heg_2U}0roZ~)S#Kw1k(mjUT$AiWSs3j*oCKw1Gv^RqE9 zC<18%AngLAgMc(hd^(U;0@6Exv;>g84W+*TX?Y-@mmQ)`7f3S#`9QE)nDIX2W_jiq F761*;5HJ7$ delta 187 zcmX@d_nU9Rl={s~3=FkEY{0<4V93hA-~gnPfV38nUJRt8f%G{bEeNEw*cccTfV2&e zRs_e$N!o0s!Hl8&&`S diff --git a/languages/yith-woocommerce-wishlist-sv_SE.mo b/languages/yith-woocommerce-wishlist-sv_SE.mo index ba11b08cd88f7cd2cdef493842949731968d9b2b..689eefb84bec4b2b5dfe08f66db6a07c8205ea5f 100644 GIT binary patch delta 369 zcmXZXyG{a85XSM3Wp#noh%T_i%MtU@-@t^5LPH591%)PSCyk91JODM}79WMe z7a%cKQdn5|pRmbEerM)nE@xcchKuJ^+;pU;L#ZZdnUOAVgV*?jmcPtO1-wmcBTwpK z8V5-{#3SMtJis@MaEvWnq1An%hr6s|mAU+pIL06+v5Tr$!Umq<4O-!S^4`HbaTjf| z0n$PvJjZvm0W+-N2NrRI*7qAv(eWSlg#~}VafG&U9YefB7duFe9x=c^+JG2O@D(|l SBu>$OJYRo0p}W5Fe%*ikN+Gxa delta 412 zcmXZXJxc>Y5XSMx^NgA(z9)x560i^=hkJ`yT%~9uf*@!u5mE@gA?YFii{S30E7|d+Mn;;J^w}p(q1P`}u!t_d zisQJSdWu}tC3a&gjjwTl_!fKc5sUbY3;2buE}xZpv6NM!fXxhvL0m*;(K_aF3rBGe zU15@*H*uKw9Nl0oq_-Y$5}(jL@Qx+?#tHOtoxTB%5YOedJB3Rm+{A0>Cf>jT9-)s- zq=(LM46o2VaDzj5k1V~UzM}i_NBhky_?69Y`M6fC?;ak6E7f`}E?Z-5XreH(553dEK9d~ht+xV4Y)eS6t@f%gw`>~Vj@cgme>fSxvhZn7G+ZK&7CR94q Url_?w#-5o|rL0oXM^Fm>03UfL8UO$Q diff --git a/languages/yith-woocommerce-wishlist-uk_UA.mo b/languages/yith-woocommerce-wishlist-uk_UA.mo index 0d9732ff9b5cff22a204c28f5eb4baa9b0814048..2804cd2acd6095b5d22114fa495b4516fcf82f9b 100644 GIT binary patch delta 93 zcmdnXJ%M{dj_(I128J3&1_liV28LV~1_o&$Jq<`J0qIRZS`kK|mTLpT2RY2jgZvrhaAsi3SY- delta 136 zcmbQhy_b7Jj;|~;149iX1A_(w1H&v91_o&$eHch90qOfdS`_%1Js7n@be)S*6H7Al^K@MjOH!>Aj0}v7bPWu34UH5G4XuoftW1ow4GgRd L3^xB`oWu+OCKMM% diff --git a/languages/yith-woocommerce-wishlist-zh_CN.mo b/languages/yith-woocommerce-wishlist-zh_CN.mo index 93e3853711a45cdad7b719a32d611cdfed4dade4..fcce5caf8ca93efa500d4491ec7d02dca51a198b 100644 GIT binary patch delta 144 zcmaFHvy*2+PyJ&i1_oy!mSA9DP-kUe;0MwUK-vsQ2LNeHAl(k6If3*+Ak7A(PXlR? zx=TP>6i7b;(n3J`2apD-;|3}M(V{?_2T039X&oTV2;>7P1}-25TDzH>aWCWMuS|u^ E0MqvmRsaA1 delta 187 zcmdnV^NeRgPrU#$1A{XY1A_zu149Ta0|P&h&IQtDK)M!4TLS4VK$;UszXQ^2K>7!e z2C4fGq(y-=KTuEzNUH*AkU9$}?F6KGfP5b)9SNivfqWpvzy-uWYd3Qp(RD6L vO)SaG&(n2DEJ?LeFfuSQ(ls#DH8fH%G_*1@vNAE!HZZU6i7b;(n3J`2apD-;|3}M(V{?_2T039X&oTV2;>7P1}-25TDzH>aWCWMuS|u^ E0MqvmRsaA1 delta 187 zcmdnV^NeRgPrU#$1A{XY1A_zu149Ta0|P&h&IQtDK)M!4TLS4VK$;UszXQ^2K>7!e z2C4fGq(y-=KTuEzNUH*AkU9$}?F6KGfP5b)9SNivfqWpvzy-uWYd3Qp(RD6L vO)SaG&(n2DEJ?LeFfuSQ(ls#DH8fH%G_*1@vNAE!HZZU', + 'language-team' : 'YITH ' + } +}; + +module.exports = function ( grunt ) { + 'use strict'; + + var sass = require( 'node-sass' ); + + grunt.initConfig( { + dirs: { + css : 'assets/css', + scss: 'assets/css/scss', + js : 'assets/js' + }, + + uglify: { + options: { + ie8 : true, + parse : { + strict: false + }, + output: { + comments: /@license|@preserve|^!/ + } + }, + common : { + files: [{ + expand: true, + cwd : '<%= dirs.js %>/', + src : ['*.js', '!*.min.js'], + dest : '<%= dirs.js %>/', + rename: function ( dst, src ) { + // To keep the source js files and make new files as `*.min.js`: + return dst + '/' + src.replace( '.js', '.min.js' ); + } + }] + } + }, + + // Compile all .scss files. + sass: { + compile: { + options: { + implementation: sass, + outputStyle: 'expanded' + }, + files : [{ + expand: true, + cwd : '<%= dirs.scss %>/', + src : ['*.scss'], + dest : '<%= dirs.css %>/', + ext : '.css' + }] + } + }, + + jshint: { + options: { + jshintrc: '.jshintrc' + }, + all : [ + '<%= dirs.js %>/*.js', + '!<%= dirs.js %>/*.min.js' + ] + }, + + + // Watch changes for assets. + watch: { + css: { + files: ['<%= dirs.scss %>/**/*.scss'], + tasks: ['sass'] + } + }, + + makepot : { + options: { + type : 'wp-plugin', + domainPath : 'languages', + domain : 'yith-plugin-fw', + potHeaders : potInfo.headers, + updatePoFiles: false + }, + dist : { + options: { + potFilename: potInfo.filename, + exclude : [ + 'bin/.*', + 'dist/.*', + 'node_modules/.*', + 'tests/.*', + 'tmp/.*', + 'vendor/.*' + ] + } + } + }, + update_po: { + options: { + template: potInfo.languageFolderPath + potInfo.filename + }, + build : { + src: potInfo.languageFolderPath + '*.po' + } + }, + + // PHP Code Sniffer. + phpcs: { + options: { + bin: 'vendor/bin/phpcs' + }, + dist : { + src: [ + '**/*.php', // Include all php files. + '!bin/**', + '!dist/**', + '!node_modules/**', + '!tests/**', + '!tools/**', + '!tmp/**', + '!vendor/**' + ] + } + } + + } ); + + grunt.registerMultiTask( 'update_po', 'This task update .po strings by .pot', function () { + grunt.log.writeln( 'Updating .po files.' ); + + var done = this.async(), + options = this.options(), + template = options.template; + this.files.forEach( function ( file ) { + if ( file.src.length ) { + var counter = file.src.length; + + grunt.log.writeln( 'Processing ' + file.src.length + ' files.' ); + + file.src.forEach( function ( fileSrc ) { + grunt.util.spawn( { + cmd : 'msgmerge', + args: ['-U', fileSrc, template] + }, function ( error, result, code ) { + const output = fileSrc.replace( '.po', '.mo' ); + grunt.log.writeln( 'Updating: ' + fileSrc + ' ...' ); + + if ( error ) { + grunt.verbose.error(); + } else { + grunt.verbose.ok(); + } + + // Updating also the .mo files + grunt.util.spawn( { + cmd : 'msgfmt', + args: [fileSrc, '-o', output] + }, function ( moError, moResult, moCode ) { + grunt.log.writeln( 'Updating MO for: ' + fileSrc + ' ...' ); + counter--; + if ( moError || counter === 0 ) { + done( moError ); + } + } ); + if ( error ) { + done( error ); + } + } ); + } ); + } else { + grunt.log.writeln( 'No file to process.' ); + } + } ); + } ); + + // Load NPM tasks to be used here. + grunt.loadNpmTasks( 'grunt-wp-i18n' ); + grunt.loadNpmTasks( 'grunt-phpcs' ); + grunt.loadNpmTasks( 'grunt-sass' ); + grunt.loadNpmTasks( 'grunt-contrib-watch' ); + + // Use uglify-es (instead of uglify) to uglify also JS for ES6. + grunt.loadNpmTasks( 'grunt-contrib-uglify-es' ); + + // Register tasks. + grunt.registerTask( 'js', ['uglify'] ); + + grunt.registerTask( 'css', ['sass'] ); + grunt.registerTask( 'assets', ['js', 'css'] ); +}; diff --git a/plugin-fw/assets/css/metaboxes.css b/plugin-fw/assets/css/metaboxes.css index ec3cf51..f3b7e86 100644 --- a/plugin-fw/assets/css/metaboxes.css +++ b/plugin-fw/assets/css/metaboxes.css @@ -35,30 +35,6 @@ border : 0; } -.metaboxes-tab ul.metaboxes-tabs { - background : #f1f1f1; - margin : 0; - padding : 10px 0 0 5px; -} - -.metaboxes-tab ul.metaboxes-tabs li { - float : left; - background : #dedede; - margin : 0 0 0 5px; -} - -.metaboxes-tab ul.metaboxes-tabs li a { - color : #555; - text-decoration : none; - padding : 8px 15px; - display : block; - box-shadow : none !important; -} - -.metaboxes-tab ul.metaboxes-tabs li.tabs { - background : #fff; -} - .metaboxes-tab p.field-row { margin : 20px 0; } @@ -186,38 +162,6 @@ padding : 15px 0; } -.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs { - background : transparent; - border-bottom : 1px solid #d8d8d8; - padding : 10px 0 0 0; - margin : 0 10px -} - - -.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li { - background : #fff; - border-top : 1px solid #d8d8d8; - border-left : 1px solid #d8d8d8; - border-right : 1px solid #d8d8d8; - margin : 0 0 -1px -1px; -} - -.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li.tabs { - border-bottom : 1px solid #fff; -} - -.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li a { - color : #336374; - padding : 10px 18px; - text-transform : uppercase; - font-weight : 600; - display : inline-block; -} - -.metaboxes-tab.yith-plugin-ui ul.metaboxes-tabs li.tabs a { - color : #2a8db0; -} - /* sortable table posts */ #the-list.ui-sortable tr:hover { @@ -236,6 +180,13 @@ box-shadow : 0 1px 8px rgba(0, 0, 0, 0.2); } +.yith-plugin-ui.metaboxes-tab .yith-plugin-fw__tabs{ + margin: 10px 10px 0; +} +.yith-plugin-ui.metaboxes-tab .tabs-panel.yith-plugin-fw__tab-panel{ + padding: 0 10px; +} + /************************************** FIELDS ***************************************/ diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui.scss b/plugin-fw/assets/css/scss/yith-plugin-ui.scss new file mode 100644 index 0000000..e4d53ca --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui.scss @@ -0,0 +1,8 @@ +@import "yith-plugin-ui/head_comment"; + +@import "yith-plugin-ui/variables"; +@import "yith-plugin-ui/wp-pages"; +@import "yith-plugin-ui/taxonomy"; +@import "yith-plugin-ui/components"; +@import "yith-plugin-ui/tables"; +@import "yith-plugin-ui/animations"; diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss new file mode 100644 index 0000000..8eafaef --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss @@ -0,0 +1,92 @@ +/** + * YITH Animations + */ + +.yith-plugin-fw-animate__appear-from-bottom{ + animation: yith-plugin-fw-appear-from-bottom .3s forwards; +} + +.yith-plugin-fw-animate__appear-from-top{ + animation: yith-plugin-fw-appear-from-top .3s forwards; +} + +.yith-plugin-fw-animate__fade-in{ + animation: yith-plugin-fw-fade-in .3s forwards; +} + + +@-webkit-keyframes yith-plugin-fw-appear-from-top { + from { + opacity: 0; + transform: translateY(-30%); + -webkit-transform: translateY(-30%); + } + + to { + opacity: 1; + transform: translateY(0); + -webkit-transform: translateY(0); + } +} + +@keyframes yith-plugin-fw-appear-from-top { + from { + opacity: 0; + transform: translateY(-30%); + -webkit-transform: translateY(-30%); + } + + to { + opacity: 1; + transform: translateY(0); + -webkit-transform: translateY(0); + } +} + +@-webkit-keyframes yith-plugin-fw-appear-from-bottom { + from { + opacity: 0; + transform: translateY(+30%); + -webkit-transform: translateY(+30%); + } + + to { + opacity: 1; + transform: translateY(0); + -webkit-transform: translateY(0); + } +} + +@keyframes yith-plugin-fw-appear-from-bottom { + from { + opacity: 0; + transform: translateY(+30%); + -webkit-transform: translateY(+30%); + } + + to { + opacity: 1; + transform: translateY(0); + -webkit-transform: translateY(0); + } +} + +@-webkit-keyframes yith-plugin-fw-fade-in { + from { + opacity: 0; + } + + to { + opacity: 1; + } +} + +@keyframes yith-plugin-fw-fade-in { + from { + opacity: 0; + } + + to { + opacity: 1; + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss new file mode 100644 index 0000000..61ce138 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss @@ -0,0 +1,12 @@ +/** + * YITH Plugin UI - Components + */ + +@import "components/action-button"; +@import "components/buttons"; +@import "components/boxed-row"; +@import "components/confirm"; +@import "components/list-table-blank-state"; +@import "components/modal"; +@import "components/tip-tip"; +@import "components/tabs"; diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_head_comment.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_head_comment.scss new file mode 100644 index 0000000..7149cca --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_head_comment.scss @@ -0,0 +1,6 @@ +/** + * YITH Plugin UI style + * + * IMPORTANT: This file is automatically generated through SCSS files. + * Please don't edit it manually! + */ diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss new file mode 100644 index 0000000..2ed9429 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss @@ -0,0 +1,56 @@ +/** + * YITH Plugin UI - Post Type Style + */ + +@import "mixins/tables"; + +table.yith-plugin-fw__classic-table { + @include classic-table; + + &.wp-list-table{ + @include wp-table-commons; + } +} + +table.yith-plugin-fw__boxed-table { + @include boxed-table; + + &.wp-list-table{ + @include wp-table-commons; + } +} + +// WP List Tables +.yith-plugin-ui--classic-wp-list-style, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style { + + table.wp-list-table { + @include classic-table; + + @include wp-table-commons; + } + + .tablenav.bottom { + display: none; + + .yith-plugin-fw__list-table-blank-state { + display: flex; + } + } +} + +.yith-plugin-ui--boxed-wp-list-style, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style { + + table.wp-list-table { + @include boxed-table; + + @include wp-table-commons; + } + + .tablenav.bottom { + display: none; + + .yith-plugin-fw__list-table-blank-state { + display: flex; + } + } +} diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_taxonomy.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_taxonomy.scss new file mode 100644 index 0000000..cc13e11 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_taxonomy.scss @@ -0,0 +1,52 @@ +/** + * YITH Plugin UI - Taxonomy Style + */ + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type, .yith-plugin-ui--taxonomy-type { + + // List + + #col-container { + display: flex; + } + + #col-left { + padding: 20px; + background: #f1f1f1; + border-radius: 8px; + box-sizing: border-box; + margin-right: 15px; + } + + #col-right { + flex: 1; + } + + h2 { + border: none; + padding: 0; + font-size: 14px; + background: transparent; + } + + // Edit Tax + .wrap h1 { + color: #2a8db0; + font-size: 16px; + font-weight: 600; + } +} + +@media screen and (max-width: 782px) { + .yith-plugin-ui.yith-plugin-ui--taxonomy-type { + #col-container { + display: block; + } + + #col-left, #col-right { + float: none; + width: 100%; + } + } +} + diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss new file mode 100644 index 0000000..d7c728b --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss @@ -0,0 +1,121 @@ +/** + * YITH CSS Variables + */ + +$content_bg: #ffffff; // Content Background. +$content_text: #3c434a; // Content Text. + +$primary: #00799f; // Primary color, for buttons +$primary_hover: #0094c4; // Primary hover color, for buttons +$primary_focus: #bddce6; // Primary focus color, for buttons +$primary_text: #ffffff; // Text on primary color bg + +$delete: #c41d04; // color for delete buttons +$delete_hover: lighten($delete, 5%); // color for delete buttons - hover +$delete_text: #ffffff; // Text on delete buttons +$delete_focus: #f0d2cd; // Delete focus color, for buttons + +// Outline is used to stylize Secondary buttons. +$outline_text: #0087b3; // outline button - text color +$outline_border: #0094c4; // outline button - border color +$outline_bg: rgba(255, 255, 255, 0); // outline button - background color +$outline_bg_hover: rgba(157, 198, 205, .2); // outline button - background color on hover +$outline_border_hover: #007ba3; // outline button - border color on hover +$outline_focus: #dfeef2; // Outline focus color, for buttons + +$delete_outline_text: $delete; // Delete-outline button - text color +$delete_outline_border: $delete; // Delete-outline button - border color +$delete_outline_bg: rgba(205, 157, 157, 0); // Delete-outline button - background color +$delete_outline_bg_hover: rgba(232, 184, 184, 0.15); // Delete-outline button - background color on hover +$delete_outline_border_hover: #db2b11; // Delete-outline button - border color on hover +$delete_outline_focus: #ffe9e7; // Delete-outline focus color, for buttons + +$update: #94aa09; // Update button - background +$update_hover: darken($update, 5%); // Update button - hover +$update_text: #ffffff; // Text on update button background +$update_focus: #e7eccc; // Text on update button background + +$accent: #98aa36; + +$light_bg: #f5fafc; +$light_border_color: #d7e3e7; +$light_shadow: rgba(145, 191, 227, 0.11); +$light_accent: #0073aa; + +$success: #98aa36; +$success_light: lighten($success, 30%); +$success_lighter: lighten($success, 43%); +$success_lightest: lighten($success, 50%); + + +$table_row_highlight: #f0f6fb; +$table_row_striped: #f6f7f7; +$table_border_light: #eff0f0; + +$field_border_color: #d8d8d8; +$field_border_weight: 1px; +$field_border: $field_border_weight solid $field_border_color; + +$link: #0079b0; // Link Color. + +// Extra variables: these will be not converted to CSS Variables +$wp_menu_size: 160px; +$wp_menu_folded_size: 36px; +$wp_menu_mobile_size: 190px; +$wp_top_bar_size: 32px; +$wp_top_bar_mobile_size: 46px; + +// export vars as CSS vars +:root { + --yith-content-bg: #{$content_bg}; + --yith-content-text: #{$content_text}; + --yith-primary: #{$primary}; + --yith-primary-hover: #{$primary_hover}; + --yith-primary-focus: #{$primary_focus}; + --yith-primary-text: #{$primary_text}; + + --yith-delete: #{$delete}; + --yith-delete-hover: #{$delete_hover}; + --yith-delete-text: #{$delete_text}; + --yith-delete-focus: #{$delete_focus}; + + --yith-update: #{$update}; + --yith-update-hover: #{$update_hover}; + --yith-update-text: #{$update_text}; + --yith-update-focus: #{$update_focus}; + + --yith-outline-text: #{$outline_text}; + --yith-outline-border: #{$outline_border}; + --yith-outline-bg: #{$outline_bg}; + --yith-outline-bg-hover: #{$outline_bg_hover}; + --yith-outline-border-hover: #{$outline_border_hover}; + --yith-outline-focus: #{$outline_focus}; + + --yith-delete-outline-text: #{$delete_outline_text}; + --yith-delete-outline-border: #{$delete_outline_border}; + --yith-delete-outline-bg: #{$delete_outline_bg}; + --yith-delete-outline-bg-hover: #{$delete_outline_bg_hover}; + --yith-delete-outline-border-hover: #{$delete_outline_border_hover}; + --yith-delete-outline-focus: #{$delete_outline_focus}; + + --yith-accent: #{$accent}; + + --yith-light-bg: #{$light_bg}; + --yith-light-border-color: #{$light_border_color}; + --yith-light-shadow: #{$light_shadow}; + --yith-light-accent: #{$light_accent}; + + --yith-success: #{$success}; + --yith-success-light: #{$success_light}; + --yith-success-lighter: #{$success_lighter}; + --yith-success-lightest: #{$success_lightest}; + + --yith-table-row-highlight: #{$table_row_highlight}; + --yith-table-row-striped: #{$table_row_striped}; + --yith-table-border-light: #{$table_border_light}; + + --yith-field-border-color: #{$field_border_color}; + --yith-field-border-weight: #{$field_border_color}; + --yith-field-border: #{$field_border}; + --yith-link: #{$link}; +} diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_wp-pages.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_wp-pages.scss new file mode 100644 index 0000000..c0687d7 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_wp-pages.scss @@ -0,0 +1,88 @@ +/** + * YITH Plugin UI - WP Pages + */ + +.yith-plugin-fw-wp-page-wrapper { + + .yith-plugin-fw__back-to-wp-list__wrapper { + margin: -5px 0 15px; + + .yith-plugin-fw__back-to-wp-list { + text-decoration: none; + font-weight: 600; + text-transform: uppercase; + color: var(--yith-link); + vertical-align: middle; + + &:before { + content: "\e901"; + font-family: yith-icon; + margin-right: 5px; + font-size: .8em; + vertical-align: middle; + } + } + } + + .wrap div#message.updated { + display: none; + padding: 15px 40px 15px 45px; + margin: 15px 0 20px; + border-radius: 5px; + background: var(--yith-success-lightest); + border: 1px solid var(--yith-success-light); + font-weight: 600; + font-size: 14px; + text-align: left; + color: var(--yith-content-text); + box-shadow: 1px 1px 2px var(--yith-success-lighter); + + + &:before { + font-family: yith-icon; + content: "\e921"; + position: absolute; + top: 50%; + left: 13px; + font-size: 21px; + font-weight: 400; + transform: translateY(-50%); + color: var(--yith-success); + } + + p { + padding: 0; + margin: 0; + } + + .notice-dismiss { + position: absolute; + top: 50%; + right: 10px; + transform: translateY(-50%); + border-radius: 50%; + color: var(--yith-success); + padding: 7px; + background: transparent; + box-shadow: 0 0 0 5px rgba(0, 0, 0, 0); + transition: all .3s ease-in-out; + + &:before { + font-family: yith-icon; + content: "\e906"; + font-weight: 600; + font-size: 12px; + color: inherit; + } + + &:hover { + box-shadow: 0 0 0 0 var(--yith-success-lighter); + background: var(--yith-success-lighter); + } + + &:hover:before, &:active:before, &:focus:before { + color: inherit; + } + } + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_action-button.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_action-button.scss new file mode 100644 index 0000000..267b1ca --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_action-button.scss @@ -0,0 +1,80 @@ +.yith-plugin-ui .yith-plugin-fw__action-button, .yith-plugin-fw__action-button { + height: 35px; + width: 35px; + background-color: var(--yith-content-bg); + display: inline-block; + border: 0; + border-radius: 50%; + transition: .3s; + cursor: pointer; + box-shadow: 0 2px 7px rgba(170, 198, 222, .5); + outline: none; + position: relative; + margin: 0 5px 5px 0; + vertical-align: middle; + + .yith-plugin-fw__action-button__link { + height: 100%; + width: 100%; + display: inline-block; + } + + .yith-plugin-fw__action-button__icon { + position: absolute; + color: var(--yith-link); + font-size: 17px; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + } + + &.yith-plugin-fw__action-button--trash-action .yith-plugin-fw__action-button__icon, + &.yith-plugin-fw__action-button--delete-action .yith-plugin-fw__action-button__icon { + color: #a10000; + } + + .yith-plugin-fw__action-button__menu { + position: absolute; + display: none; + flex-direction: column; + width: max-content; + right: 0; + margin: 5px 0 0 0; + padding: 8px 0; + background: var(--yith-content-bg); + border-radius: 5px; + box-shadow: 0 2px 7px rgba(170, 198, 222, .5); + z-index: 10; + animation: yith-plugin-fw-appear-from-top .3s forwards; + } + + .yith-plugin-fw__action-button__menu__item { + margin: 0; + display: block; + padding: 7px 25px; + color: var(--yith-content-text); + cursor: pointer; + text-decoration: none; + text-align: right; + + &:hover { + color: var(--yith-link); + } + } + + &.yith-plugin-fw__action-button--has-menu { + .yith-plugin-fw__action-button__icon { + color: var(--yith-content-text); + } + + &.yith-plugin-fw__action-button--opened { + .yith-plugin-fw__action-button__icon { + color: var(--yith-link); + } + + .yith-plugin-fw__action-button__menu { + display: flex; + } + } + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_boxed-row.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_boxed-row.scss new file mode 100644 index 0000000..9688e58 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_boxed-row.scss @@ -0,0 +1,14 @@ + +.yith-plugin-fw__boxed-row, .yith-plugin-fw__boxed-row--hover-highlight { + background: var(--yith-content-bg); + border-radius: 5px; + box-shadow: 0 0 0 1px var(--yith-light-border-color), 0 3px 11px 6px var(--yith-light-shadow); + transition: background-color .2s ease-in-out; + padding: 25px; + margin-bottom: 25px; + margin-top: 25px; +} + +.yith-plugin-fw__boxed-row--hover-highlight:hover { + background: var(--yith-table-row-highlight); +} diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss new file mode 100644 index 0000000..be66111 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss @@ -0,0 +1,224 @@ +@import "../mixins/buttons"; + +.yith-plugin-ui, .wp-core-ui .yith-plugin-ui { + + // WordPress Buttons. + .button-primary, .button-secondary { + border-radius : 3px; + text-transform : none; + box-shadow : none; + border : 1px solid; + font-weight : 600; + padding : 0 12px; + outline : none; + height : auto; + transition : all ease 0.3s; + text-shadow : none; + display : inline-block; + text-decoration : none; + cursor : pointer; + white-space : nowrap; + + &:focus { + outline : none; + box-shadow : none; + } + + &.button-small { + padding : 0 8px; + } + } + + .button-secondary { + @include button-secondary; + } + + .button-primary { + @include button-primary; + } + + .button.action, + #doaction, + #doaction2, + #post-query-submit, + #posts-filter #delete_all, + #search-submit, + .button.filter-button { + @include button; + @include button-secondary; + height : auto; + line-height : 33px; + border-radius : 8px; + padding : 0 15px; + font-weight : 600; + } + + #posts-filter #delete_all { + @include button-delete-outline; + } + + .tablenav .tablenav-pages .button, + .tablenav .tablenav-pages .tablenav-pages-navspan { + @include button-secondary; + } + + @media screen and (max-width : 782px) { + .tablenav .tablenav-pages .button, .tablenav .tablenav-pages .tablenav-pages-navspan { + min-width : 44px; + padding : 12px 8px; + font-size : 18px; + line-height : 1; + } + } + + // YITH Buttons. + .yith-plugin-fw__button, [class^="yith-plugin-fw__button--"], [class*=" yith-plugin-fw__button--"], + .yith-add-button, .yith-edit-button, .yith-update-button, .yith-remove-button, .yith-plugin-fw-upload-button, .yith-save-button, .yith-plugin-fw-select-all, .yith-plugin-fw-deselect-all, .yith-plugin-fw-upload-button-reset // Old buttons. + { + @include button; + } + + .yith-plugin-fw__button--primary { + @include button-primary; + } + + .yith-plugin-fw__button--secondary { + @include button-secondary; + } + + .yith-plugin-fw__button--delete { + @include button-delete; + } + + .yith-plugin-fw__button--add, .yith-add-button { + @include button-primary; + + @include button-with-icon("\f115"); + + &:before { + display : inline-block; + margin : 0 10px 0 -5px; + font-size : .95em; + transition : transform .2s, margin .2s, font-size .2s; + transition-timing-function : ease-in-out; + } + + &.closed { + @include button-secondary; + + &:before { + font-size : 1.15em; + margin : 0 8px 0 -5px; + transform : rotate(-45deg); + } + } + } + + .yith-plugin-fw__button--close { + @include button-secondary; + + @include button-with-icon("\f117"); + } + + .yith-plugin-fw__button--edit, .yith-edit-button { + @include button-secondary; + + @include button-with-icon("\e907"); + } + + .yith-plugin-fw__button--update, .yith-update-button { + @include button-update; + + @include button-with-icon("\e90b"); + } + + .yith-plugin-fw__button--trash, .yith-remove-button { + @include button-delete; + + @include button-with-icon("\e90d"); + } + + .yith-plugin-fw__button--upload, .yith-plugin-fw-upload-button { + @include button-primary; + + @include button-with-icon("\e90c"); + } + + // Old buttons. + .yith-save-button { + @include button-primary; + } + + .yith-plugin-fw-select-all, + .yith-plugin-fw-deselect-all, + .yith-plugin-fw-upload-button-reset { + @include button-secondary; + } + + // with icons. + .button-secondary span.yith-icon { + margin-left : 0; + margin-right : 10px; + line-height : normal; + + &:before { + color : inherit; + font-size : 15px; + font-weight : 400; + } + } + + // With icon + .yith-plugin-fw__button--with-icon { + position : relative; + padding-left : 30px; + + i { + position : absolute; + top : 50%; + left : 10px; + transform : translateY(-50%); + font-size : 1em; + font-weight : 400; + } + } + + + // Button Sizes + .yith-plugin-fw__button--xl, .button-xl { + padding : 0 20px; + font-size : 14px; + line-height : 38px; + + &::before { + margin : 0 10px 0 -5px; + } + + &.yith-plugin-fw__button--with-icon { + padding-left : 40px; + + i { + left : 14px; + } + } + } + + .yith-plugin-fw__button--xxl { + padding : 0 28px; + font-size : 16px; + line-height : 45px; + + &::before { + margin : 0 15px 0 -10px; + } + + &.yith-plugin-fw__button--with-icon { + padding-left : 45px; + + i { + left : 15px; + } + } + } +} + diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_confirm.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_confirm.scss new file mode 100644 index 0000000..4cc22a3 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_confirm.scss @@ -0,0 +1,41 @@ +@import "../mixins/buttons"; + +.yith-plugin-fw__confirm__wrap { + + .yith-plugin-fw__confirm__message { + margin-bottom: 20px; + } + + .yith-plugin-fw__confirm__footer { + text-align: right; + } + + + .yith-plugin-fw__confirm__button { + height: auto; + line-height: 33px; + border-radius: 4px; + padding: 0 20px; + font-weight: 600; + cursor: pointer; + display: inline-block; + margin-right: 10px; + white-space: nowrap; + + &:last-child { + margin-right: 0; + } + + &.yith-plugin-fw__confirm__button--cancel { + @include button-secondary; + } + + &.yith-plugin-fw__confirm__button--confirm { + @include button-primary; + } + + &.yith-plugin-fw__confirm__button--delete { + @include button-delete; + } + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_list-table-blank-state.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_list-table-blank-state.scss new file mode 100644 index 0000000..3bb631c --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_list-table-blank-state.scss @@ -0,0 +1,25 @@ +.yith-plugin-fw__list-table-blank-state { + padding: 30px 30px 0; + text-align: center; + display: flex; + flex-direction: column; + + & > * { + margin-bottom: 30px; + } + + img.yith-plugin-fw__list-table-blank-state__icon { + width: 100px; + margin: 0 auto 30px; + } + + i.yith-plugin-fw__list-table-blank-state__icon { + font-size: 65px; + margin: 0 auto 30px; + } + + .yith-plugin-fw__list-table-blank-state__message { + font-size: 1.4em; + line-height: 1.5; + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_modal.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_modal.scss new file mode 100644 index 0000000..39ed38c --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_modal.scss @@ -0,0 +1,128 @@ +.yith-plugin-fw__modal__wrap { + display: flex; + align-items: center; + justify-content: center; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 999999; + background: rgba(34, 59, 80, 0.7); + animation: yith-plugin-fw-fade-in .3s forwards; + box-sizing: border-box; + + .yith-plugin-fw__modal__main { + position: relative; + background: #fff; + border-radius: 10px; + box-shadow: 1px 3px 16px rgba(0, 22, 59, .4); + animation: yith-plugin-fw-appear-from-top .3s forwards; + overflow: hidden; + max-width: calc(100% - 20px); + max-height: calc(100% - 20px); + display: flex; + flex-direction: column; + } + + .yith-plugin-fw__modal__close { + position: absolute; + top: 0; + right: 0; + padding: 8px; + font-size: 14px; + font-weight: 600; + color: #aaa; + cursor: pointer; + + &:hover { + color: #444; + } + } + + .yith-plugin-fw__modal__title { + padding: 20px 25px; + font-size: 1.5em; + font-weight: 600; + line-height: 1.5em; + color: var(--yith-primary); + } + + .yith-plugin-fw__modal__content { + padding: 0 25px 25px; + } + + .yith-plugin-fw__modal__footer { + padding: 25px; + background: #f7f7f7; + } + + &.yith-plugin-fw__modal__wrap--scroll-content { + .yith-plugin-fw__modal__content { + overflow-y: auto; + } + } +} + +.yith-plugin-fw__modal--opened { + overflow: hidden; +} + +// Allow seeing WP Menu. + +.yith-plugin-fw__modal--allow-wp-menu { + .yith-plugin-fw__modal__wrap { + z-index: 99; + padding-left: $wp_menu_size; + padding-top: $wp_top_bar_size; + } + + #adminmenuback { + z-index: 100; + } +} + +@media only screen and (max-width: 960px) { + .folded { + .yith-plugin-fw__modal__wrap { + padding-left: $wp_menu_folded_size; + } + } + + .auto-fold { + .yith-plugin-fw__modal--allow-wp-menu { + .yith-plugin-fw__modal__wrap { + padding-left: $wp_menu_folded_size; + } + } + } +} + +@media screen and (max-width: 782px) { + .auto-fold { + .yith-plugin-fw__modal--allow-wp-menu { + .yith-plugin-fw__modal__wrap { + z-index: 999999; + width: 100%; + height: 100%; + padding-left: 0; + padding-top: 0; + } + } + + .yith-plugin-fw__modal--allow-wp-menu-in-mobile { + .yith-plugin-fw__modal__wrap { + z-index: 99; + padding-top: $wp_top_bar_mobile_size; + } + + &.wp-responsive-open { + .yith-plugin-fw__modal__wrap { + padding-left: $wp_menu_mobile_size; + } + } + } + + + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tabs.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tabs.scss new file mode 100644 index 0000000..a4c94a7 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tabs.scss @@ -0,0 +1,51 @@ +.yith-plugin-ui .yith-plugin-fw__tabs { + background : transparent; + padding : 0; + margin : 0; + display : flex; + align-items : center; + border-bottom : 1px solid var(--yith-light-border-color); + flex-wrap : wrap; + + .yith-plugin-fw__tab { + border : 0; + margin : 0; + display : block; + } + + .yith-plugin-fw__tab__handler, a.yith-plugin-fw__tab__handler { + background : var(--yith-content-bg); + border : 0; + border-bottom : 3px solid transparent; + padding : 17px 20px 15px; + font-weight : 600; + color : inherit; + text-decoration : none; + display : block; + transition : all .2s ease-in-out; + opacity : .55; + + &:hover { + opacity : 1; + background : var(--yith-light-bg); + color : var(--yith-light-accent); + } + } + + .yith-plugin-fw__tab.yith-plugin-fw__tab--active .yith-plugin-fw__tab__handler, + .yith-plugin-fw__tab__handler.yith-plugin-fw__tab__handler--enabled { + opacity : 1; + color : var(--yith-light-accent); + border-color : var(--yith-light-accent); + } +} + +.yith-plugin-ui .yith-plugin-fw__tab-panel { + padding : 20px; + + &.yith-plugin-fw__tab-panel--outlined { + border-width : 0 1px 1px 1px; + border-style : solid; + border-color : var(--yith-light-border-color); + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tip-tip.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tip-tip.scss new file mode 100644 index 0000000..49d2e63 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tip-tip.scss @@ -0,0 +1,80 @@ +@import "../mixins/buttons"; + +#tiptip_holder { + display: none; + pointer-events: none; /* Fix tip flashing when hover the edge */ + z-index: 8675309; + position: absolute; + top: 0; + + /*rtl:ignore*/ + left: 0; + + + &.tip_top { + padding-bottom: 5px; + + #tiptip_arrow_inner { + margin-top: -7px; + margin-left: -6px; + border-top-color: #333; + } + } + + &.tip_bottom { + padding-top: 5px; + + #tiptip_arrow_inner { + margin-top: -5px; + margin-left: -6px; + border-bottom-color: #333; + } + } + + &.tip_right { + padding-left: 5px; + + #tiptip_arrow_inner { + margin-top: -6px; + margin-left: -5px; + border-right-color: #333; + } + } + + &.tip_left { + padding-right: 5px; + + #tiptip_arrow_inner { + margin-top: -6px; + margin-left: -7px; + border-left-color: #333; + } + } + + + #tiptip_content { + color: #fff; + font-size: 0.8em; + max-width: 150px; + background: #333; + text-align: center; + border-radius: 3px; + padding: 0.618em 1em; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); + + code { + padding: 1px; + background: #888; + } + } + + #tiptip_arrow, + #tiptip_arrow_inner { + position: absolute; + border-color: transparent; + border-style: solid; + border-width: 6px; + height: 0; + width: 0; + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_buttons.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_buttons.scss new file mode 100644 index 0000000..ffbd00a --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_buttons.scss @@ -0,0 +1,124 @@ +@mixin button { + display: inline-block; + height: auto; + line-height: 30px; + border-radius: 4px; + padding: 0 17px; + font-weight: 600; + cursor: pointer; + transition: all .3s ease-in-out; + text-decoration: none; + white-space: nowrap; + + &:focus { + outline: none; + box-shadow: none; + } +} + +@mixin button-primary { + background: var(--yith-primary); + color: var(--yith-primary-text); + border: 1px solid var(--yith-primary); + + &:focus { + background: var(--yith-primary); + color: var(--yith-primary-text); + border: 1px solid var(--yith-primary); + box-shadow: 0 0 0 3px var(--yith-primary-focus); + } + + &:hover, &:active { + background: var(--yith-primary-hover); + color: var(--yith-primary-text); + border: 1px solid var(--yith-primary-hover); + } +} + +@mixin button-secondary { + background: var(--yith-outline-bg); + border: 1px solid var(--yith-outline-border); + color: var(--yith-outline-text); + + &:focus { + background: var(--yith-outline-bg); + border: 1px solid var(--yith-outline-border); + color: var(--yith-outline-text); + box-shadow: 0 0 0 3px var(--yith-outline-focus); + } + + &:hover, &:active { + background: var(--yith-outline-bg-hover); + border-color: var(--yith-outline-border-hover); + color: var(--yith-outline-text); + } +} + +@mixin button-update { + background: var(--yith-update); + color: var(--yith-update-text); + border: 1px solid var(--yith-update); + + &:focus { + background: var(--yith-update); + color: var(--yith-update-text); + border: 1px solid var(--yith-update); + box-shadow: 0 0 0 3px var(--yith-update-focus); + } + + &:hover, &:active { + background: var(--yith-update-hover); + color: var(--yith-update-text); + border: 1px solid var(--yith-update-hover); + } +} + +@mixin button-delete { + background: var(--yith-delete); + color: var(--yith-delete-text); + border: 1px solid var(--yith-delete); + + &:focus { + background: var(--yith-delete); + color: var(--yith-delete-text); + border: 1px solid var(--yith-delete); + box-shadow: 0 0 0 3px var(--yith-delete-focus); + } + + &:hover, &:active { + background: var(--yith-delete-hover); + color: var(--yith-delete-text); + border: 1px solid var(--yith-delete-hover); + } +} + +@mixin button-delete-outline { + background: var(--yith-delete-outline-bg); + border: 1px solid var(--yith-delete-outline-border); + color: var(--yith-delete-outline-text); + + &:focus { + background: var(--yith-delete-outline-bg); + border: 1px solid var(--yith-delete-outline-border); + color: var(--yith-delete-outline-text); + box-shadow: 0 0 0 3px var(--yith-delete-outline-focus); + } + + &:hover, &:active { + background: var(--yith-delete-outline-bg-hover); + border-color: var(--yith-delete-outline-border-hover); + color: var(--yith-delete-outline-text); + } +} + +@mixin button-with-icon($icon) { + + &:before { + font-family: yith-icon; + content: $icon; + margin: 0 8px 0 -5px; + font-size: 1.15em; + font-weight: 400; + vertical-align: top; + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_tables.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_tables.scss new file mode 100644 index 0000000..e0a5085 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/mixins/_tables.scss @@ -0,0 +1,159 @@ +@mixin table-action-buttons { + + thead th.column-actions, tfoot th.column-actions { + visibility: hidden; + } + + th.column-actions, td.column-actions { + text-align: right; + } + + .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) { + opacity: 0; + transition: .3s; + } + + tbody tr:hover .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) { + opacity: 1; + } +} + +@mixin wp-table-commons { + + tfoot { + display: none; + } + + .check-column { + width: 2em; + } + + th.sortable a, th.sorted a { + padding: 0 8px 0 0; + color: inherit; + + &:hover { + color: var(--yith-link); + } + } + + .sorting-indicator { + visibility: visible; + + &:before { + font-family: yith-icon; + content: "\f116"; + color: inherit; + font-size: 10px; + top: 0; + left: 0; + } + } + + th.sorted.asc .sorting-indicator:before, + th.desc:hover span.sorting-indicator:before, + th.desc a:focus span.sorting-indicator:before { + content: "\f113"; + font-weight: 600; + } + + th.sorted.desc .sorting-indicator:before, + th.asc:hover span.sorting-indicator:before, + th.asc a:focus span.sorting-indicator:before { + content: "\f110"; + font-weight: 600; + } + @include table-action-buttons; +} + +@mixin classic-table { + border: 2px solid var(--yith-table-border-light); + background: var(--yith-content-bg); + box-shadow: none; + border-spacing: 0; + + th, thead td, tfoot td { + text-align: left; + line-height: 1.3em; + font-size: 14px; + } + + thead th, thead td { + border-bottom: 0; + } + + tfoot th, tfoot td { + border-top: 0; + } + + tbody tr th, tbody tr td { + vertical-align: middle; + padding: 15px; + } + + tbody tr:hover { + background: var(--yith-table-row-highlight); + } + + thead td, thead th, tfoot td, tfoot th { + padding: 15px; + font-weight: 600; + } + + tbody > :nth-child(odd) { + background-color: var(--yith-table-row-striped); + } +} + + +@mixin boxed-table { + border: 0; + border-spacing: 0 20px; + box-shadow: none; + background: transparent; + + th, thead td, tfoot td { + text-align: left; + line-height: 1.3em; + font-size: 14px; + } + + thead th, thead td { + border-bottom: 0; + padding: 0 0 0 25px; + font-weight: 600; + } + + tbody tr { + background: var(--yith-content-bg); + border-radius: 5px; + box-shadow: 0 0 0 1px var(--yith-light-border-color), 0 3px 11px 6px var(--yith-light-shadow); + transition: background-color .2s ease-in-out; + } + + tbody tr th, tbody tr td { + background: transparent; + vertical-align: middle; + padding: 25px 0 25px 25px; + } + + tbody tr td:last-child { + padding-right: 25px; + } + + tbody tr th:first-child, + tbody tr td:first-child { + border-radius: 5px 0 0 5px; + } + + tbody tr th:last-child, + tbody tr td:last-child { + padding-right: 25px; + border-radius: 0 5px 5px 0; + } + + + tbody tr:hover { + background: var(--yith-table-row-highlight); + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/yith-fields.css b/plugin-fw/assets/css/yith-fields.css index f086d61..e41ccdd 100644 --- a/plugin-fw/assets/css/yith-fields.css +++ b/plugin-fw/assets/css/yith-fields.css @@ -631,12 +631,14 @@ YITH UI } .yith-plugin-ui span.description { + display : block; color : #716269; font-size : 13px; font-style : normal; font-weight : 400; - margin-top : 15px; + margin-top : 10px; margin-left : 0; + line-height : 20px; } #wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper { @@ -750,7 +752,8 @@ YITH UI .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea:not(.wp-editor-area), .woocommerce .yith-plugin-fw table.form-table input[type=password], .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=number], -.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text] { +.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text], +.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=email] { border : 1px solid #d8d8d8; border-radius : 8px; padding : 8px 10px; @@ -1873,13 +1876,6 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div { margin : 0; } -.yith-plugin-ui span.description { - margin-top : 10px; - line-height : 20px; - max-width : 40%; - min-width : min(100%, 360px); -} - .yith-plugin-fw-option-with-description { display : table-cell; width : 90%; diff --git a/plugin-fw/assets/css/yith-icon.css b/plugin-fw/assets/css/yith-icon.css index ce77e5f..0c5b326 100644 --- a/plugin-fw/assets/css/yith-icon.css +++ b/plugin-fw/assets/css/yith-icon.css @@ -6,10 +6,10 @@ /* stylelint-disable function-url-quotes, declaration-colon-newline-after */ @font-face { font-family: yith-icon; - src: url("../fonts/yith-icon.eot?f18470aa7bb66438d58ed5595f31329d"); - src: url("../fonts/yith-icon.eot?f18470aa7bb66438d58ed5595f31329d#iefix") format("embedded-opentype"), - url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAACOAAAsAAAAAPmQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQAAAAFY4xksUY21hcAAAAXwAAAHdAAAFQMuqb0RnbHlmAAADXAAAG+4AADCQkuhUxWhlYWQAAB9MAAAAMAAAADYdmQfiaGhlYQAAH3wAAAAeAAAAJAQ1AjlobXR4AAAfnAAAADAAAAEMg+b/52xvY2EAAB/MAAAAiAAAAIh7GYPYbWF4cAAAIFQAAAAfAAAAIAFhAVZuYW1lAAAgdAAAATAAAAIiyMcJZnBvc3QAACGkAAAB2wAAAwjFjYhUeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/ME4gYGVgYNBjDGNgYHBHUp/ZZBkaGFgYGJgZWbACgLSXFMYHF4yfFRmAnH1mNgYeIE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KF9oGTu/U9qwOp3jmXKQia3K1NIXTWWZUac1eh85PnCsX43Ekvh+aHGek3Cbh1ilCGBRYQyPGERk3tlfq/50NOywO1JVSmMLH5EpuxVxRZwNWNHbMbplT7D1x5oyuQ0QdMWOQk5Z1Z5XOeA2dsq7t6YT0fU6oukosMOaN/uT9enb+C6sEYKp4nG2RWXfbIBCFdWPJlWXVSdqm+75v6r5vaZv+EQoji2MEKkjx0b8vSE6ah/LA+e4McweGaCsaVxL9fx1gCxPESDDFKaSYIcMcOU5jgW3sYBdncBbnsIfzuICLuITLuIKruIbruIGbuIXbuIO7uIf7eICHeITHeIKnKPAMz/ECL/EKr/EGb/EO7/EBH/EJn/EFX/EN+/iOH/iJA/yKMsa56XQr9XLBrDXrQpi1Lphqs39yk1FUticyQW6PaOWyGlLzEzofuWtCIj0S2W+mVwWviK/igDlnirRgtmBCLI5FbTT1u8fS+QLRKUqPIjFnrpoNNsE+H4lLyxXtjaKxZmnJuU00GaIJV9555ndHoTAZKOam6efckpBtwZkVCfe31bGwbBmHYEY9FcNRMfGYV6QaP7KiYloksmZLyqUuTeH+dMy7xEHMlXRt4YhZXsXK8NXMn9OylGTTmklVmK6d1VJ3brjIQPPh3Zvx1MbStGF9w9SkEeW0IdP4ETRqrIgDpL6bGVSAxFKjer87amPHDin1EP7W5a6SpMQ419QZO3xXHCBrZU1jy6S1fqxppzeeAaZdowwTaefIFqYsk0MpyOysmdVhAq2VTC8VLdbGev+jfnEv2yqK/gK/luSBAA==") format("woff"), - url("../fonts/yith-icon.ttf?f18470aa7bb66438d58ed5595f31329d") format("truetype"); + src: url("../fonts/yith-icon.eot?4f62977f59eef1e01c2d8d7bd1d244d0"); + src: url("../fonts/yith-icon.eot?4f62977f59eef1e01c2d8d7bd1d244d0#iefix") format("embedded-opentype"), + url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAACYEAAsAAAAAQowAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6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ffevNnRABjiCx6q4+G2fqvTwg3VhdukoXCH/CTcxQDPwj36I+E+XjEXHuABAX/wOtVv93DCLdzhTbhN/124Q/4Q7uIRn8I9+t/CfWzwIzzAizc/py4ZpaEp1jo+ZoFtdAMbbQ+pKdTUnzTeShfaBk7v1PasDqd45lykImtytTSF01lmVGnNXofOT5wrF+NxJL4fmhxnpNwm4dYpQhgUWEMjxhEZN7ZX6v+dDTssDtSVUpjCx+RKbsVcUWcDVjR2zG6ZU+w9ceaMrkNEHTFjkJOWdWeVzngNnbKu7emE9H1OqLpKLDDmjf7k/Xp2/gurBGCqeJxtktdy2zAQRXVtUqEkWraTOL33hvTeu/MbCLAiMYYABCCt0d8HIGXHD8ED5txdbpkLDtYG/ckH/z+7WMM6MuQY4hgKjDDGBCU2MMUmtrCN4ziBk9jBKZzGGZzFOZzHBVzEJVzGFVzFNVzHDdzELdzGHdzFPdzHAzA8xCM8xhM8xTM8xwu8xCu8xhu8xTu8xwd8xCd8xhd8xTd8xw/8xC5+DcZcCNuaRplqyr23CybtwjCum/E/ucpomjVHMklu9uhVVXepyRFd9ty6lCgOxPg3N3tM1CT2soSl4JqM5J5xKaeHYm4NLbcPZYgFstVUHEQ2BA8181Sp0JDPkhp1TdOwsiehvNC00wvnbeUphFU076K50HHOKN6BUmHeUSasW06EJ6kaJriXuYi7myJZoS2XmfS8ylI2JxOnj2lJrKuU6xHLmrSLfrKaG5mrOa+oVGZmWfjT8tg0S2Ki4+IsEPeizrQVe6P4nVEzRb6Yc6WZbZvRXJk2dHt1NOlMWXk3t56Gji8d1+tOzoaOrNM0crVtbLKycLqvzRIUca7tVILck9PLeAdqssD3qYiQfoFQhlqRlr39RbC+e9UswbhRc+qH542PfhetWfVMMGxd8qZoA3lmZ7N8X0myWwvuTfKi8YqbStN0YX3sfzAvW6qmHgz+AmU98+0A") format("woff"), + url("../fonts/yith-icon.ttf?4f62977f59eef1e01c2d8d7bd1d244d0") format("truetype"); font-weight: 400; font-style: normal; } @@ -99,6 +99,10 @@ content: "\e915"; } +.yith-icon-cash-register:before { + content: "\f124"; +} + .yith-icon-cash:before { content: "\e91f"; } @@ -143,6 +147,10 @@ content: "\f11b"; } +.yith-icon-download:before { + content: "\f125"; +} + .yith-icon-drag:before { content: "\e90f"; } @@ -151,6 +159,10 @@ content: "\e907"; } +.yith-icon-enter:before { + content: "\f126"; +} + .yith-icon-eye-closed:before { content: "\e912"; } @@ -223,6 +235,10 @@ content: "\e916"; } +.yith-icon-photo-add:before { + content: "\f127"; +} + .yith-icon-plus-alt:before { content: "\f115"; } diff --git a/plugin-fw/assets/css/yith-plugin-ui.css b/plugin-fw/assets/css/yith-plugin-ui.css index 3010b05..f4738ff 100644 --- a/plugin-fw/assets/css/yith-plugin-ui.css +++ b/plugin-fw/assets/css/yith-plugin-ui.css @@ -36,10 +36,10 @@ --yith-delete-outline-border-hover: #db2b11; --yith-delete-outline-focus: #ffe9e7; --yith-accent: #98aa36; - --yith-light-bg: #f0f6fb; + --yith-light-bg: #f5fafc; --yith-light-border-color: #d7e3e7; --yith-light-shadow: rgba(145, 191, 227, 0.11); - --yith-light-accent: #0079b0; + --yith-light-accent: #0073aa; --yith-success: #98aa36; --yith-success-light: #d4df9a; --yith-success-lighter: #eaefcc; @@ -1101,6 +1101,8 @@ #tiptip_holder { display: none; + pointer-events: none; + /* Fix tip flashing when hover the edge */ z-index: 8675309; position: absolute; top: 0; @@ -1174,6 +1176,58 @@ width: 0; } +.yith-plugin-ui .yith-plugin-fw__tabs { + background: transparent; + padding: 0; + margin: 0; + display: flex; + align-items: center; + border-bottom: 1px solid var(--yith-light-border-color); + flex-wrap: wrap; +} + +.yith-plugin-ui .yith-plugin-fw__tabs .yith-plugin-fw__tab { + border: 0; + margin: 0; + display: block; +} + +.yith-plugin-ui .yith-plugin-fw__tabs .yith-plugin-fw__tab__handler, .yith-plugin-ui .yith-plugin-fw__tabs a.yith-plugin-fw__tab__handler { + background: var(--yith-content-bg); + border: 0; + border-bottom: 3px solid transparent; + padding: 17px 20px 15px; + font-weight: 600; + color: inherit; + text-decoration: none; + display: block; + transition: all .2s ease-in-out; + opacity: .55; +} + +.yith-plugin-ui .yith-plugin-fw__tabs .yith-plugin-fw__tab__handler:hover, .yith-plugin-ui .yith-plugin-fw__tabs a.yith-plugin-fw__tab__handler:hover { + opacity: 1; + background: var(--yith-light-bg); + color: var(--yith-light-accent); +} + +.yith-plugin-ui .yith-plugin-fw__tabs .yith-plugin-fw__tab.yith-plugin-fw__tab--active .yith-plugin-fw__tab__handler, +.yith-plugin-ui .yith-plugin-fw__tabs .yith-plugin-fw__tab__handler.yith-plugin-fw__tab__handler--enabled { + opacity: 1; + color: var(--yith-light-accent); + border-color: var(--yith-light-accent); +} + +.yith-plugin-ui .yith-plugin-fw__tab-panel { + padding: 20px; +} + +.yith-plugin-ui .yith-plugin-fw__tab-panel.yith-plugin-fw__tab-panel--outlined { + border-width: 0 1px 1px 1px; + border-style: solid; + border-color: var(--yith-light-border-color); +} + /** * YITH Plugin UI - Post Type Style */ diff --git a/plugin-fw/assets/fonts/yith-icon.eot b/plugin-fw/assets/fonts/yith-icon.eot index 236e8a5317ab24cdbdb1d197ac36789e2b417b95..4fb3f4316883ae75671d72f96edba5334ffa145f 100644 GIT binary patch delta 2339 zcmYk7e{36P9mb#c9G~x;^VxUtk2qP(vgX^JtVYML>iL-A*fa|0h=b^4@A*4O-NLLkU$kegA)k#wo*_xU3lIc zMT_q9-o5X8_r3Rhp2wHVPyghiP!CQ3&mO;`*4kd^xstsy{#_0cHR&#in6n$%sQJ& z!ik1rf752TqQxv#|(9YGvJV*JK_tAzocw-bAA5z@ip5hg} zvh!AGu$96tbYl;xqK;!YfC0`x z<~j|6kaSP}eb~7ip5{8?ssUUv+(-b|4Oa``F5v0`JLBBDOSm(*?E%~wT-KLxw{T+t z+&5e^fC|8k2T%*R37}gxI}ckNAQT8L7b`)p(^U6Kx7|ztC4(!MDI>usx!C~92)8qU zg2L?zK*hPO?rX`~y#bUMu6zff*l>#hl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zcI%dF)0DS90KT#Y(i}Q>3vG z&G;A@#F4~S>_iW?pu=H#uDIg77Yj}#5!E{me4&s0eJ*ZP?9~BE*T7OCg9a81=^0o) zWXP~~pPQD1TY`)jxFtx=ui-W!V+L**GH&43Arl5lfb@X|eOUW*C2tU#fvhqhD=xZ) z-Zoz8(gDt*Nk~0C!DjK^ElhF^nKRHWWTSzWA$3uNz9I7lnulyQ zFas#dz%-z219O3@Ffbt~O4KkbC`!~YH7H6P&<6$xMT;6n2}Oe%b19x9BDzro`Iq_4Z8=5 z&NRq~Ij^QS$t&ieVNXHnk_fvCDraDyLD8Lt9S5aLCFl^TP=3;L>)nIFmSA^qCU`A) z*K75zdVhK=q1wK=$lK`o=#$v~*srl`v0L%u@tH(>;x~VT-|Zjp&-vH= zN0kkg1641Q<>XZIYATZ&NKK_~rJhxvu3k<@YnE&GflbUtf5d2#Y~pqNk_yz+k3)-h zL(jvDThl+fB9vWN>}aTuFJ5k&uHxt3RGbnE#XrP%eZygA=V2l)U1 diff --git a/plugin-fw/assets/fonts/yith-icon.ttf b/plugin-fw/assets/fonts/yith-icon.ttf index 1d6c51275b4fff9fabeab07c188cc2022a878d6d..841b14bf127df4baaec4df19fbb5842aa7678dd7 100644 GIT binary patch delta 2322 zcmYk6e{36P9mb#c9G~y(^VxU)H79lw+fAI%#%<#yZb;Im&64Z~?2m#1MB1vPPMe{o zi4rr)R51TgIx@jlBcV}Ii6H?(P^rtrw5o#rf#`(LgkS;*0h&-XbONDWTMFu?3(xDL zXx4pR-}~df@B4ke&)u!_&woX{P-;E|i1PpzPOdF&{Q6V(j|0kkK=9n@GhaAW`g3s( z(EbCA99msjs(0spevfP4A!Dl?=onR|cz=WJSzT+K+kSWVZ;bag$(>n0xpeJ!KU?MV z1TU;Do!byAVu5qq6TN4b)>huU*{PobrVen^;>P+`<4XU<&j3e02?S~{-Y6ZJhu~V0 zeX-};Ct{QTLPX&J@R##PzWm^S_x|o3C8DV8Yw)Mr&tSgQExs$ttvAGCE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C`)OPBi=8c;D+Hl=|{pp>5ynll`%QYYP#VhG=cRtLdqdUKMtR}57 iu{g3KoZ@%lPO%(xrrs)Da>`S$FNiav*TntNZ~g;aBm;5) diff --git a/plugin-fw/assets/fonts/yith-icon.woff2 b/plugin-fw/assets/fonts/yith-icon.woff2 index f9acb55912c3d0390c1ec4fd83fdc443f847ed4b..ece717a3e2d1fe766acecb59788dcab19fd84548 100644 GIT binary patch literal 8144 zcmV;>A1~l{Pew8T0RR9103Xl*3jhEB078ra03U$>0RR9100000000000000000000 z0000SLIzdIMf{hHUcCAf*cEh5C8-q1%x68hBq4yU)I=R;+ZoN%BmkB~m-_Vmdr+^WPnE#2vH+cTxtTVjN-=ZN)%WHacB8-2|7o zWEtuzT~+%3TA?t8@J^r(f@-v-FhQY&mIWIN>2^ zc^G7?zqu5@7mj+fy9X&OaZAORK8bnk(N z)c!R63#Zq;dsuLfv2Snpf9(p$phiY~A(H0^;Q9A&!igUM`_T4wmxKY9wE#5B`Vwe@ z5n@9+%~g88%QP|XPg94f!`iXifo$vU>^QO|Mq}x||n>CF$FW@D75QnP6QAI~q3!sR8{?=^@qvTZ_nXlLX9f9Jg%gicxWU^L0sO)8trS`aLY@@ zZ;Rq$J0vmUL+oVn0#UWYx4PD~rM zWyFM2vvNgcRa&gr)oI40IlUURS$E{nnr%(`3|b~D+s8U6+=K0!NC*mqLWxLGAvCH9 zpphW769!#Gh5^E2ir~hI1FRA`HVKboLU2F?j1vX=iP+>)0)~kSLqv@_qCq{;wtA!k zED=3+hynY=h;w4X1~FrSSWru>$cPO!#Exd-D5`RTVrtHSG2((V;))BBLN_VJJc-aj zGT0+!SR`4TkQmb>hfz|FEt1CwNiabQI3*RBB}L?<5=BylGO0!tsVTg)fE7}QT~c3Y z2EYty#3X6L9BD3)1<*iRi@t1tb<&O_(t$(L32USawnZE2PmJy2bp!w{pj$XJ_YTpcB5!9%P|-3R73oV^zb z>e{+C3M}(Y$3%de%+%E>FW`VSUjM`@v zA0nentyoqP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(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(n)n.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(n=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var i=n.state().get("selection").first().toJSON(),l=e("#"+a+"-yith-attachment-id");e("#"+a).val(i.url),l.length&&l.val(i.id),t.triggerImageChange()}),n.open()}},onResetClick:function(){var i=e(this),n=i.attr("id").replace(/(\[|\])/g,"\\$1"),a=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),l=e("#"+n).data("default");e("#"+a).val(l),t.triggerImageChange()},triggerImageChange:function(){e(t.selectors.imgUrl).trigger("change")},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("change",t.selectors.imgUrl,t.onImageChange),e(document).on("click",t.selectors.uploadButton,t.onButtonClick),e(document).on("click",t.selectors.resetButton,t.onResetClick))}};t.initOnce();var i={selectors:{gallery:".yith-plugin-fw-image-gallery",notInitGallery:".yith-plugin-fw-image-gallery:not(.yith-plugin-fw-image-gallery--initialized)",button:".yith-plugin-fw-image-gallery .image-gallery-button",slideWrapper:"ul.slides-wrapper"},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&e(document).on("click",i.selectors.button,function(t){var n=e(this),a=n.closest(i.selectors.gallery),l=a.find(".image_gallery_ids"),o=l.val(),s=a.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:n.data("choose"),button:{text:n.data("update")},states:[new wp.media.controller.Library({title:n.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){if((e=e.toJSON()).id){o=o?o+","+e.id:e.id;var t=e.sizes.thumbnail||e.sizes.medium||e.sizes.large||e.sizes.full;s.append('
  • ')}}),l.val(o),l.trigger("change")}),r.open()})},init:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&e(i.selectors.notInitGallery).each(function(){e(this).addClass("yith-plugin-fw-image-gallery--initialized");var t=e(this).find(i.selectors.slideWrapper);t.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(n,a){var l="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");l=l+t+","}),t.closest(i.selectors.gallery).find(".image_gallery_ids").val(l)}})}),t.on("click","a.delete",function(t){t.preventDefault();var n=e(this).closest(i.selectors.gallery),a=n.find("ul.slides-wrapper"),l=n.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),a.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),l.val(o)})})}};i.initOnce(),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")});e(document).on("yith_fields_init",function(){var n=e(".yith-plugin-fw-datepicker:not(.yith-plugin-fw-datepicker--initialized)"),a=e(".yith-plugin-fw-colorpicker:not(.yith-plugin-fw-colorpicker--initialized)"),l=e(".yith-plugin-fw-sidebar-layout:not(.yith-plugin-fw-sidebar-layout--initialized)"),o=e(".yith-plugin-fw-slider-container:not(.yith-plugin-fw-slider-container--initialized)"),s=e(".yit-icons-manager-wrapper:not(.yit-icons-manager-wrapper--initialized)");n.each(function(){e(this).addClass("yith-plugin-fw-datepicker--initialized");var t=e(this),i=t.data(),n=t.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},t.datepicker(i),n&&n.on("click",function(){t.datepicker("show")})}),a.each(function(){e(this).addClass("yith-plugin-fw-colorpicker--initialized"),e(this).wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.trigger("change")}});var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),l.each(function(){e(this).addClass("yith-plugin-fw-sidebar-layout--initialized"),e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),o.each(function(){e(this).addClass("yith-plugin-fw-slider-container--initialized");var t=e(this).find(".ui-slider-horizontal"),i=t.data("val"),n=t.data("min"),a=t.data("max"),l=t.data("step"),o=t.data("labels");t.slider({value:i,min:n,max:a,range:"min",step:l,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value).trigger("change"),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+o)}})}),s.each(function(){e(this).addClass("yit-icons-manager-wrapper--initialized");var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),c=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",c),n.val(o+":"+c),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("wc-enhanced-select-init"),e(document.body).trigger("yith-framework-enhanced-select-init"),e(document).trigger("yith-plugin-fw-codemirror-init"),t.triggerImageChange(),i.init()}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed").trigger("change"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("disabled")||t.trigger("click")}),e(document).on("click",".yith-plugin-fw-onoff-container input",function(t){e(this).is(":checked")?e(this).attr("value","yes").addClass("onoffchecked"):e(this).attr("value","no").removeClass("onoffchecked")}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var c=wp.template("yith-toggle-element-item-"+n),d=e(c({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(d).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(d).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(d).find("#"+n).val(a)}}),e(d).formatToggleTitle();var u=e('').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,d,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(d),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).find('input[type="radio"]').filter('[value="'+e(this).data("value")+'"]').click(),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")}),e(document).on("select2:open",function(e){e.target.multiple||setTimeout(function(){document.querySelector(".yith-plugin-fw-select2-container .select2-search__field").focus()},50)});var n={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var t=n;e(document).on("click",t.selectors.units.single,t.unitChange),e(document).on("click",t.selectors.linked.button,t.linkedChange),e(document).on("change keyup",t.selectors.dimensions.number,t.numberChange)},unitChange:function(t){var i=e(this).closest(n.selectors.units.single),a=i.closest(n.selectors.units.wrapper),l=a.find(n.selectors.units.single),o=a.find(n.selectors.units.value).first(),s=i.data("value");l.removeClass(n.selectors.units.selectedClass),i.addClass(n.selectors.units.selectedClass),o.val(s).trigger("change")},linkedChange:function(){var t=e(this).closest(n.selectors.linked.button),i=t.closest(n.selectors.wrapper),a=t.find(n.selectors.linked.value);"yes"===a.val()?(i.removeClass(n.selectors.linked.wrapperActiveClass),a.val("no")):(i.addClass(n.selectors.linked.wrapperActiveClass),a.val("yes"),i.find(n.selectors.dimensions.number).first().trigger("change"))},numberChange:function(t){var i=e(this).closest(n.selectors.dimensions.number),a=i.closest(n.selectors.wrapper);a.hasClass(n.selectors.linked.wrapperActiveClass)&&a.find(n.selectors.dimensions.number).val(i.val())}};n.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var t,i=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(t="getSelection"in window&&window.getSelection())?"empty"in t?t.empty():"removeAllRanges"in t&&t.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)});var a={init:function(){e(document).on("click",".yith-plugin-fw__action-button--has-menu",a.open),e(document).on("click",".yith-plugin-fw__action-button__menu",a.stopPropagation),e(document).on("click",a.closeAll)},closeAll:function(){e(".yith-plugin-fw__action-button--opened").removeClass("yith-plugin-fw__action-button--opened")},open:function(t){var i=e(this).closest(".yith-plugin-fw__action-button"),n=i.hasClass("yith-plugin-fw__action-button--opened");t.preventDefault(),t.stopPropagation(),a.closeAll(),n||i.addClass("yith-plugin-fw__action-button--opened")},stopPropagation:function(e){e.stopPropagation()}};a.init(),e(document).on("click","a.yith-plugin-fw__require-confirmation-link",function(t){var i=e(this).closest("a.yith-plugin-fw__require-confirmation-link"),n=i.attr("href");if(n&&"#"!==n&&(t.preventDefault(),t.stopPropagation(),"yith"in window&&"ui"in yith)){var a,l=["title","message","confirmButtonType","cancelButton","confirmButton"],o={};for(a in l){var s=l[a],r=i.data(s);void 0!==r&&(o[s]=r)}o.onConfirm=function(){window.location.href=n},o.closeAfterConfirm=!1,yith.ui.confirm(o)}}),e(document).on("yith-plugin-fw-tips-init",function(){e(".yith-plugin-fw__tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})}).trigger("yith-plugin-fw-tips-init")}(jQuery); \ No newline at end of file +!function(t){var e={selectors:{imgPreview:".yith-plugin-fw-upload-img-preview",uploadButton:".yith-plugin-fw-upload-button",imgUrl:".yith-plugin-fw-upload-img-url",resetButton:".yith-plugin-fw-upload-button-reset"},onImageChange:function(){var i=t(this).val(),n=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=t(this).parent().find(e.selectors.imgPreview).first();a.length<1&&(a=t(this).parent().parent().find(e.selectors.imgPreview).first()),n.test(i)?a.html(''):a.html("")},onButtonClick:function(i){i.preventDefault();var n,a=t(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(n)n.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(n=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var i=n.state().get("selection").first().toJSON(),l=t("#"+a+"-yith-attachment-id");t("#"+a).val(i.url),l.length&&l.val(i.id),e.triggerImageChange()}),n.open()}},onResetClick:function(){var i=t(this),n=i.attr("id").replace(/(\[|\])/g,"\\$1"),a=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),l=t("#"+n).data("default");t("#"+a).val(l),e.triggerImageChange()},triggerImageChange:function(){t(e.selectors.imgUrl).trigger("change")},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(t(document).on("change",e.selectors.imgUrl,e.onImageChange),t(document).on("click",e.selectors.uploadButton,e.onButtonClick),t(document).on("click",e.selectors.resetButton,e.onResetClick))}};e.initOnce();var i={selectors:{gallery:".yith-plugin-fw-image-gallery",notInitGallery:".yith-plugin-fw-image-gallery:not(.yith-plugin-fw-image-gallery--initialized)",button:".yith-plugin-fw-image-gallery .image-gallery-button",slideWrapper:"ul.slides-wrapper"},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&t(document).on("click",i.selectors.button,function(e){var n=t(this),a=n.closest(i.selectors.gallery),l=a.find(".image_gallery_ids"),o=l.val(),s=a.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:n.data("choose"),button:{text:n.data("update")},states:[new wp.media.controller.Library({title:n.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(t){if((t=t.toJSON()).id){o=o?o+","+t.id:t.id;var e=t.sizes.thumbnail||t.sizes.medium||t.sizes.large||t.sizes.full;s.append('
  • ')}}),l.val(o),l.trigger("change")}),r.open()})},init:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&t(i.selectors.notInitGallery).each(function(){t(this).addClass("yith-plugin-fw-image-gallery--initialized");var e=t(this).find(i.selectors.slideWrapper);e.each(function(){var e=t(this);e.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style")},update:function(n,a){var l="";e.find("li.image").css("cursor","default").each(function(){var e=t(this).attr("data-attachment_id");l=l+e+","}),e.closest(i.selectors.gallery).find(".image_gallery_ids").val(l)}})}),e.on("click","a.delete",function(e){e.preventDefault();var n=t(this).closest(i.selectors.gallery),a=n.find("ul.slides-wrapper"),l=n.find(".image_gallery_ids"),o="";t(this).closest("li.image").remove(),a.find("li.image").css("cursor","default").each(function(){var e=t(this).attr("data-attachment_id");o=o+e+","}),l.val(o)})})}};i.initOnce(),t(function(){t(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&t(".codemirror:not(.codemirror--initialized)").each(function(){var e=t(this).data("settings"),i=wp.codeEditor.initialize(t(this),e);t(this).addClass("codemirror--initialized"),t(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")});t(document).on("yith_fields_init",function(){var n=t(".yith-plugin-fw-datepicker:not(.yith-plugin-fw-datepicker--initialized)"),a=t(".yith-plugin-fw-colorpicker:not(.yith-plugin-fw-colorpicker--initialized)"),l=t(".yith-plugin-fw-sidebar-layout:not(.yith-plugin-fw-sidebar-layout--initialized)"),o=t(".yith-plugin-fw-slider-container:not(.yith-plugin-fw-slider-container--initialized)"),s=t(".yit-icons-manager-wrapper:not(.yit-icons-manager-wrapper--initialized)");n.each(function(){t(this).addClass("yith-plugin-fw-datepicker--initialized");var e=t(this),i=e.data(),n=e.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(t,e){e.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(t,e){e.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e.datepicker(i),n&&n.on("click",function(){e.datepicker("show")})}),a.each(function(){t(this).addClass("yith-plugin-fw-colorpicker--initialized"),t(this).wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var e=t(this);e.val(e.data("default-color")),e.trigger("change")}});var e=t(this).data("variations-label"),i=t(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=t(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",e),n.length&&n.find("a.wp-color-result").attr("title",e),!a.find(".wp-picker-default-custom").length){var o=t("").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=t("").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),l.each(function(){t(this).addClass("yith-plugin-fw-sidebar-layout--initialized"),t(this).find("img").on("click",function(){var e=t(this).closest(".yith-plugin-fw-sidebar-layout"),i=e.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=e.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=t(this).data("type");if(t(this).parent().children(":radio").attr("checked",!1),t(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),o.each(function(){t(this).addClass("yith-plugin-fw-slider-container--initialized");var e=t(this).find(".ui-slider-horizontal"),i=e.data("val"),n=e.data("min"),a=e.data("max"),l=e.data("step"),o=e.data("labels");e.slider({value:i,min:n,max:a,range:"min",step:l,create:function(){t(this).find(".ui-slider-handle").text(t(this).slider("value"))},slide:function(e,i){t(this).find("input").val(i.value).trigger("change"),t(this).find(".ui-slider-handle").text(i.value),t(this).siblings(".feedback").find("strong").text(i.value+o)}})}),s.each(function(){t(this).addClass("yit-icons-manager-wrapper--initialized");var e=t(this),i=e.find(".yit-icons-manager-icon-preview").first(),n=e.find(".yit-icons-manager-icon-text");e.on("click",".yit-icons-manager-list li",function(a){var l=t(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),c=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",c),n.val(o+":"+c),e.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),e.on("click",".yit-icons-manager-action-set-default",function(){e.find(".yit-icons-manager-list li.default").trigger("click")})}),t(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(e,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a0&&t(this).closest(".toggle-element").saveToggleElement(null,l)}}),t(document.body).trigger("wc-enhanced-select-init"),t(document.body).trigger("yith-framework-enhanced-select-init"),t(document).trigger("yith-plugin-fw-codemirror-init"),e.triggerImageChange(),i.init()}).trigger("yith_fields_init"),t(document).on("click",".yith-plugin-fw-select-images__item",function(){var e=t(this),i=e.data("key"),n=e.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed").trigger("change"),a.removeClass("yith-plugin-fw-select-images__item--selected"),e.addClass("yith-plugin-fw-select-images__item--selected"))}),t(document).on("click",".yith-plugin-fw-select-all",function(){t("#"+t(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),t(document).on("click",".yith-plugin-fw-deselect-all",function(){t("#"+t(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),t(document).on("click",".yith-plugin-fw-onoff-container span",function(){var e=t(this).prev("input");e.prop("disabled")||e.trigger("click")}),t(document).on("click",".yith-plugin-fw-onoff-container input",function(e){t(this).is(":checked")?t(this).attr("value","yes").addClass("onoffchecked"):t(this).attr("value","no").removeClass("onoffchecked")}),t.fn.saveToggleElement=function(e,i){var n=t(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=t.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=t(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=t(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=t(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,t.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){e&&e.removeClass("show"),t(document).trigger("yith_save_toggle_element_done",[i,n])}})},t.fn.serializeToggleElement=function(){var e=t(this),i=new FormData,n=t(e).find(":input").serializeArray();return t.each(n,function(t,e){el_name=e.name,i.append(e.name,e.value)}),i},t.fn.formatToggleTitle=function(){var e=t(this),i=e.find(":input"),n=e.find("span.title").data("title_format"),a=e.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);t.each(i,function(e,i){void 0!==t(i).attr("id")&&($field_id=t(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=t(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&e.find("span.title").html(n),""!==a&&e.find(".subtitle").html(a),t(document).trigger("yith-toggle-element-item-title",[e])},t.urlParam=function(t){var e=new RegExp("[?&]"+t+"=([^&#]*)").exec(window.location.search);return null!==e&&(e[1]||0)},t(document).on("click",".yith-toggle-title",function(e){var i=t(e.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),t(document).on("click",".yith-add-box-button",function(e){e.preventDefault();var i=t(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(t("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),t(document).trigger("yith_fields_init"),t(document).trigger("yith-add-box-button-toggle",[i]))}),t(document).on("click",".yith-add-box-buttons .yith-save-button",function(e){e.preventDefault();var i=t(this).parents(".yith-add-box"),n=t(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=t(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=t('');l.find(".yith-toggle-row").each(function(){var e=parseInt(t(this).data("item_key"));s<=e&&(s=e+1)}),r.val(s),t(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var c=wp.template("yith-toggle-element-item-"+n),d=t(c({index:s}));a.addClass("show"),t.each(o,function(e,i){if(void 0!==t(i).attr("id")){var n=t(i).attr("id"),a=t(i).val();n="radio"===t(i).attr("type")?(n=(n=t(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,t(i).is(":checked")&&t(d).find("#"+n).prop("checked",!0),(t(i).hasClass("yith-post-search")||t(i).hasClass("yith-term-search"))&&t(d).find("#"+n).html(t("#"+t(i).attr("id")).html()),t(d).find("#"+n).val(a)}}),t(d).formatToggleTitle();var u=t('').val("yes");t(document).trigger("yith-toggle-element-item-before-add",[i,d,u]);setTimeout(function(){if("yes"===u.val()){t(l).find(".yith-toggle-elements").append(d),t(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),t(i).html(""),t(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){t(l).find(".highlight").removeClass("highlight")},2e3),t(document).trigger("yith_fields_init")}},1e3)}),t(document).on("click",".yith-toggle-row .yith-save-button",function(e){e.preventDefault();var i=t(this).closest(".toggle-element"),n=t(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=t('').val("yes");t(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),t(document).on("click",".yith-toggle-row .yith-delete-button",function(e){e.preventDefault();var i=t(this).closest(".toggle-element");t(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),t(document).on("click",".yith-toggle-onoff",function(e){e.preventDefault(),t(this).closest(".toggle-element").saveToggleElement()}),t(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var e=t(this).closest(".yith-plugin-fw-radio"),i=t(this).val();e.val(i).data("value",i).trigger("change")}),t(document.body).on("yith-plugin-fw-init-radio",function(){t(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){t(this).find('input[type="radio"]').filter('[value="'+t(this).data("value")+'"]').click(),t(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),t(document).on("click",".yith-password-eye",function(){var e=t(this),i=t(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),e.addClass("yith-password-eye-closed")):(i.attr("type","password"),e.removeClass("yith-password-eye-closed"))}),t(document).on("select2:open",function(e){t(e.target).closest(".yith-plugin-ui").length&&t(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")}),t(document).on("select2:open",function(t){t.target.multiple||setTimeout(function(){document.querySelector(".yith-plugin-fw-select2-container .select2-search__field").focus()},50)});var n={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var e=n;t(document).on("click",e.selectors.units.single,e.unitChange),t(document).on("click",e.selectors.linked.button,e.linkedChange),t(document).on("change keyup",e.selectors.dimensions.number,e.numberChange)},unitChange:function(e){var i=t(this).closest(n.selectors.units.single),a=i.closest(n.selectors.units.wrapper),l=a.find(n.selectors.units.single),o=a.find(n.selectors.units.value).first(),s=i.data("value");l.removeClass(n.selectors.units.selectedClass),i.addClass(n.selectors.units.selectedClass),o.val(s).trigger("change")},linkedChange:function(){var e=t(this).closest(n.selectors.linked.button),i=e.closest(n.selectors.wrapper),a=e.find(n.selectors.linked.value);"yes"===a.val()?(i.removeClass(n.selectors.linked.wrapperActiveClass),a.val("no")):(i.addClass(n.selectors.linked.wrapperActiveClass),a.val("yes"),i.find(n.selectors.dimensions.number).first().trigger("change"))},numberChange:function(e){var i=t(this).closest(n.selectors.dimensions.number),a=i.closest(n.selectors.wrapper);a.hasClass(n.selectors.linked.wrapperActiveClass)&&a.find(n.selectors.dimensions.number).val(i.val())}};n.init();t(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var e,i=t(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(e="getSelection"in window&&window.getSelection())?"empty"in e?e.empty():"removeAllRanges"in e&&e.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)});var a={init:function(){t(document).on("click",".yith-plugin-fw__action-button--has-menu",a.open),t(document).on("click",".yith-plugin-fw__action-button__menu",a.stopPropagation),t(document).on("click",a.closeAll)},closeAll:function(){t(".yith-plugin-fw__action-button--opened").removeClass("yith-plugin-fw__action-button--opened")},open:function(e){var i=t(this).closest(".yith-plugin-fw__action-button"),n=i.hasClass("yith-plugin-fw__action-button--opened");e.preventDefault(),e.stopPropagation(),a.closeAll(),n||i.addClass("yith-plugin-fw__action-button--opened")},stopPropagation:function(t){t.stopPropagation()}};a.init(),t(document).on("click","a.yith-plugin-fw__require-confirmation-link",function(e){var i=t(this).closest("a.yith-plugin-fw__require-confirmation-link"),n=i.attr("href");if(n&&"#"!==n&&(e.preventDefault(),e.stopPropagation(),"yith"in window&&"ui"in yith)){var a,l=["title","message","confirmButtonType","cancelButton","confirmButton"],o={};for(a in l){var s=l[a],r=i.data(s);void 0!==r&&(o[s]=r)}o.onConfirm=function(){window.location.href=n},o.closeAfterConfirm=!1,yith.ui.confirm(o)}}),t(document).on("yith-plugin-fw-tips-init",function(){t(".yith-plugin-fw__tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})}).trigger("yith-plugin-fw-tips-init"),t(document).on("yith-plugin-fw-tabs-init",function(){t(".yith-plugin-fw__tabs:not(.yith-plugin-fw__tabs--initialized)").each(function(){var e=t(this),i=e.data("tab-additional-active-class")||!1,n=e.find(".yith-plugin-fw__tab__handler"),a=e.find(".yith-plugin-fw__tab__handler").first(),l=n.get().map(function(t){return t.getAttribute("href")}).filter(function(t){return!!t}).join(", "),o=t(l),s=function(e){var n=e.parent(".yith-plugin-fw__tab"),a=n.siblings(".yith-plugin-fw__tab"),l=e.attr("href");n.addClass("yith-plugin-fw__tab--active"),i&&n.addClass(i),a.removeClass("yith-plugin-fw__tab--active"),i&&a.removeClass(i),o.hide(),t(l).show()};e.addClass("yith-plugin-fw__tabs--initialized"),e.on("click",".yith-plugin-fw__tab__handler",function(e){e.preventDefault();var i=t(this);i.parent(".yith-plugin-fw__tab").hasClass("yith-plugin-fw__tab--active")||s(i)}),a.length&&s(a)})}).trigger("yith-plugin-fw-tabs-init")}(jQuery); \ No newline at end of file diff --git a/plugin-fw/assets/js/yith-ui.js b/plugin-fw/assets/js/yith-ui.js index 19600a9..42d91a6 100644 --- a/plugin-fw/assets/js/yith-ui.js +++ b/plugin-fw/assets/js/yith-ui.js @@ -19,10 +19,6 @@ window.yith = window.yith || {}; } return filteredClasses.join( ' ' ); } - } - - var stopEventPropagation = function ( e ) { - e.stopPropagation(); }; /** @@ -181,8 +177,8 @@ window.yith = window.yith || {}; options = $.extend( {}, defaults, options ); options.classes = $.extend( {}, defaults.classes, options.classes ); - var container = $( '#wpwrap' ), - classes = { + var container = $( '#wpwrap' ), + classes = { wrap : ['yith-plugin-ui', 'yith-plugin-fw__modal__wrap', options.classes.wrap], main : ['yith-plugin-fw__modal__main', options.classes.main], close : ['yith-plugin-fw__modal__close', 'yith-icon', 'yith-icon-close', options.classes.close], @@ -190,7 +186,7 @@ window.yith = window.yith || {}; content: ['yith-plugin-fw__modal__content', options.classes.content], footer : ['yith-plugin-fw__modal__footer', options.classes.footer] }, - dom = { + dom = { wrap : false, main : false, close : false, @@ -198,26 +194,27 @@ window.yith = window.yith || {}; content: false, footer : false }, - initialize = function () { + initialize = function () { close(); create(); initEvents(); }, - close = function () { + close = function () { $( '.yith-plugin-fw__modal__wrap' ).remove(); container.removeClass( 'yith-plugin-fw__modal--opened' ); container.removeClass( 'yith-plugin-fw__modal--allow-wp-menu' ); container.removeClass( 'yith-plugin-fw__modal--allow-wp-menu-in-mobile' ); + removeEvents(); }, - handleClose = function () { + handleClose = function () { close(); if ( typeof options.onClose === 'function' ) { options.onClose(); } }, - create = function () { + create = function () { dom.wrap = $( '
    ' ); dom.main = $( '
    ' ); dom.close = $( '' ); @@ -227,7 +224,6 @@ window.yith = window.yith || {}; dom.main.css( { width: options.width } ); - if ( options.title ) { if ( typeof options.title === 'string' ) { dom.title.html( options.title ); @@ -283,20 +279,26 @@ window.yith = window.yith || {}; options.onCreate(); } }, - initEvents = function () { + handleClickOnOverlay = function ( event ) { + var target = $( event.target ); + if ( target.is( dom.wrap ) && options.closeWhenClickingOnOverlay ) { + handleClose(); + } + }, + initEvents = function () { dom.close.on( 'click', handleClose ); if ( options.closeSelector ) { container.on( 'click', options.closeSelector, handleClose ); } - if ( options.closeWhenClickingOnOverlay ) { - dom.wrap.on( 'click', handleClose ); - dom.main.on( 'click', stopEventPropagation ); - } + dom.wrap.on( 'click', handleClickOnOverlay ); $( document ).on( 'keydown', handleKeyboard ); }, - handleKeyboard = function ( event ) { + removeEvents = function () { + $( document ).off( 'keydown', handleKeyboard ); + }, + handleKeyboard = function ( event ) { if ( options.allowClosingWithEsc && event.keyCode === 27 ) { handleClose(); } diff --git a/plugin-fw/assets/js/yith-ui.min.js b/plugin-fw/assets/js/yith-ui.min.js index ca141b8..931afb9 100644 --- a/plugin-fw/assets/js/yith-ui.min.js +++ b/plugin-fw/assets/js/yith-ui.min.js @@ -1 +1 @@ -window.yith=window.yith||{},function(n,e){e.ui=e.ui||{};var o=function(n){if("string"==typeof n)return n;var e=[];for(var t of n)t&&e.indexOf(t)<0&&e.push(o(t));return e.join(" ")},t=function(n){n.stopPropagation()};e.ui.confirm=function(t){var l={title:!1,message:!1,onCreate:!1,onConfirm:!1,onCancel:!1,onClose:!1,classes:{wrap:"",content:"",title:"",message:"",footer:"",cancel:"",confirm:""},confirmButtonType:"confirm",cancelButton:yith_plugin_fw_ui.i18n.cancel,confirmButton:yith_plugin_fw_ui.i18n.confirm,width:350,closeAfterConfirm:!0,allowWpMenu:!1,allowWpMenuInMobile:!1,showClose:!0,closeWhenClickingOnOverlay:!1},i={};t=void 0!==t?t:{},(t=n.extend({},l,t)).classes=n.extend({},l.classes,t.classes);var s={wrap:o(["yith-plugin-fw__confirm__wrap",t.classes.wrap]),content:o(["yith-plugin-fw__confirm__content",t.classes.content]),title:o(["yith-plugin-fw__confirm__title",t.classes.title]),message:o(["yith-plugin-fw__confirm__message",t.classes.message]),footer:o(["yith-plugin-fw__confirm__footer",t.classes.footer]),cancel:o(["yith-plugin-fw__confirm__button","yith-plugin-fw__confirm__button--cancel",t.classes.cancel]),confirm:o(["yith-plugin-fw__confirm__button","yith-plugin-fw__confirm__button--"+t.confirmButtonType,t.classes.confirm])},c={message:!1,footer:!1,cancel:!1,confirm:!1},a=!1,r=function(){a&&a.close(),a=!1},f=function(){"function"==typeof t.onCancel&&t.onCancel(),r()},p=function(){"function"==typeof t.onConfirm&&t.onConfirm(),t.closeAfterConfirm&&r()},m=function(){c.cancel.on("click",f),c.confirm.on("click",p)};(function(){c.message=n('
    '),c.footer=n('
    '),c.cancel=n(''+t.cancelButton+""),c.confirm=n(''+t.confirmButton+""),t.message&&c.message.html(t.message),c.footer.append(c.cancel),c.footer.append(c.confirm),a=e.ui.modal({classes:{wrap:s.wrap,title:s.title,content:s.content},title:t.title,content:[c.message,c.footer],width:t.width,allowWpMenu:t.allowWpMenu,allowWpMenuInMobile:t.allowWpMenuInMobile,showClose:t.showClose,onCreate:t.onCreate,onClose:t.onClose,closeWhenClickingOnOverlay:t.closeWhenClickingOnOverlay})})(),m(),i.elements=n.extend({},c),i.modal=n.extend({},a),i.close=r,i.cancel=f},e.ui.modal=function(e){var l={allowWpMenu:!0,allowWpMenuInMobile:!1,title:!1,content:!1,footer:!1,showClose:!0,closeSelector:!1,classes:{wrap:"",main:"",close:"",title:"",content:"",footer:""},width:500,allowClosingWithEsc:!0,closeWhenClickingOnOverlay:!1,scrollContent:!0,onCreate:!1,onClose:!1},i={};e=void 0!==e?e:{},(e=n.extend({},l,e)).classes=n.extend({},l.classes,e.classes);var s=n("#wpwrap"),c={wrap:["yith-plugin-ui","yith-plugin-fw__modal__wrap",e.classes.wrap],main:["yith-plugin-fw__modal__main",e.classes.main],close:["yith-plugin-fw__modal__close","yith-icon","yith-icon-close",e.classes.close],title:["yith-plugin-fw__modal__title",e.classes.title],content:["yith-plugin-fw__modal__content",e.classes.content],footer:["yith-plugin-fw__modal__footer",e.classes.footer]},a={wrap:!1,main:!1,close:!1,title:!1,content:!1,footer:!1},r=function(){n(".yith-plugin-fw__modal__wrap").remove(),s.removeClass("yith-plugin-fw__modal--opened"),s.removeClass("yith-plugin-fw__modal--allow-wp-menu"),s.removeClass("yith-plugin-fw__modal--allow-wp-menu-in-mobile")},f=function(){r(),"function"==typeof e.onClose&&e.onClose()},p=function(){a.wrap=n('
    '),a.main=n('
    '),a.close=n(''),a.title=n('
    '),a.content=n('
    '),a.footer=n('
    '),a.main.css({width:e.width}),e.title&&("string"==typeof e.title?a.title.html(e.title):a.title.append(e.title)),e.content&&("string"==typeof e.content?a.content.html(e.content):a.content.append(e.content)),e.showClose&&a.main.append(a.close),a.main.append(a.title),a.main.append(a.content),e.footer&&("string"==typeof e.footer?a.footer.html(e.footer):a.footer.append(e.footer),a.main.append(a.footer)),a.wrap.append(a.main),e.scrollContent&&a.wrap.addClass("yith-plugin-fw__modal__wrap--scroll-content"),s.append(a.wrap),s.addClass("yith-plugin-fw__modal--opened"),e.allowWpMenu&&s.addClass("yith-plugin-fw__modal--allow-wp-menu"),e.allowWpMenuInMobile&&s.addClass("yith-plugin-fw__modal--allow-wp-menu-in-mobile"),"function"==typeof e.onCreate&&e.onCreate()},m=function(){a.close.on("click",f),e.closeSelector&&s.on("click",e.closeSelector,f),e.closeWhenClickingOnOverlay&&(a.wrap.on("click",f),a.main.on("click",t)),n(document).on("keydown",w)},w=function(n){e.allowClosingWithEsc&&27===n.keyCode&&f()};return r(),p(),m(),i.elements=n.extend({},a),i.close=f,i}}(window.jQuery,window.yith); \ No newline at end of file +window.yith=window.yith||{},function(n,e){e.ui=e.ui||{};var o=function(n){if("string"==typeof n)return n;var e=[];for(var t of n)t&&e.indexOf(t)<0&&e.push(o(t));return e.join(" ")};e.ui.confirm=function(t){var l={title:!1,message:!1,onCreate:!1,onConfirm:!1,onCancel:!1,onClose:!1,classes:{wrap:"",content:"",title:"",message:"",footer:"",cancel:"",confirm:""},confirmButtonType:"confirm",cancelButton:yith_plugin_fw_ui.i18n.cancel,confirmButton:yith_plugin_fw_ui.i18n.confirm,width:350,closeAfterConfirm:!0,allowWpMenu:!1,allowWpMenuInMobile:!1,showClose:!0,closeWhenClickingOnOverlay:!1},i={};t=void 0!==t?t:{},(t=n.extend({},l,t)).classes=n.extend({},l.classes,t.classes);var s={wrap:o(["yith-plugin-fw__confirm__wrap",t.classes.wrap]),content:o(["yith-plugin-fw__confirm__content",t.classes.content]),title:o(["yith-plugin-fw__confirm__title",t.classes.title]),message:o(["yith-plugin-fw__confirm__message",t.classes.message]),footer:o(["yith-plugin-fw__confirm__footer",t.classes.footer]),cancel:o(["yith-plugin-fw__confirm__button","yith-plugin-fw__confirm__button--cancel",t.classes.cancel]),confirm:o(["yith-plugin-fw__confirm__button","yith-plugin-fw__confirm__button--"+t.confirmButtonType,t.classes.confirm])},c={message:!1,footer:!1,cancel:!1,confirm:!1},a=!1,r=function(){a&&a.close(),a=!1},f=function(){"function"==typeof t.onCancel&&t.onCancel(),r()},p=function(){"function"==typeof t.onConfirm&&t.onConfirm(),t.closeAfterConfirm&&r()},m=function(){c.cancel.on("click",f),c.confirm.on("click",p)};(function(){c.message=n('
    '),c.footer=n('
    '),c.cancel=n(''+t.cancelButton+""),c.confirm=n(''+t.confirmButton+""),t.message&&c.message.html(t.message),c.footer.append(c.cancel),c.footer.append(c.confirm),a=e.ui.modal({classes:{wrap:s.wrap,title:s.title,content:s.content},title:t.title,content:[c.message,c.footer],width:t.width,allowWpMenu:t.allowWpMenu,allowWpMenuInMobile:t.allowWpMenuInMobile,showClose:t.showClose,onCreate:t.onCreate,onClose:t.onClose,closeWhenClickingOnOverlay:t.closeWhenClickingOnOverlay})})(),m(),i.elements=n.extend({},c),i.modal=n.extend({},a),i.close=r,i.cancel=f},e.ui.modal=function(e){var t={allowWpMenu:!0,allowWpMenuInMobile:!1,title:!1,content:!1,footer:!1,showClose:!0,closeSelector:!1,classes:{wrap:"",main:"",close:"",title:"",content:"",footer:""},width:500,allowClosingWithEsc:!0,closeWhenClickingOnOverlay:!1,scrollContent:!0,onCreate:!1,onClose:!1},l={};e=void 0!==e?e:{},(e=n.extend({},t,e)).classes=n.extend({},t.classes,e.classes);var i=n("#wpwrap"),s={wrap:["yith-plugin-ui","yith-plugin-fw__modal__wrap",e.classes.wrap],main:["yith-plugin-fw__modal__main",e.classes.main],close:["yith-plugin-fw__modal__close","yith-icon","yith-icon-close",e.classes.close],title:["yith-plugin-fw__modal__title",e.classes.title],content:["yith-plugin-fw__modal__content",e.classes.content],footer:["yith-plugin-fw__modal__footer",e.classes.footer]},c={wrap:!1,main:!1,close:!1,title:!1,content:!1,footer:!1},a=function(){n(".yith-plugin-fw__modal__wrap").remove(),i.removeClass("yith-plugin-fw__modal--opened"),i.removeClass("yith-plugin-fw__modal--allow-wp-menu"),i.removeClass("yith-plugin-fw__modal--allow-wp-menu-in-mobile"),w()},r=function(){a(),"function"==typeof e.onClose&&e.onClose()},f=function(){c.wrap=n('
    '),c.main=n('
    '),c.close=n(''),c.title=n('
    '),c.content=n('
    '),c.footer=n('
    '),c.main.css({width:e.width}),e.title&&("string"==typeof e.title?c.title.html(e.title):c.title.append(e.title)),e.content&&("string"==typeof e.content?c.content.html(e.content):c.content.append(e.content)),e.showClose&&c.main.append(c.close),c.main.append(c.title),c.main.append(c.content),e.footer&&("string"==typeof e.footer?c.footer.html(e.footer):c.footer.append(e.footer),c.main.append(c.footer)),c.wrap.append(c.main),e.scrollContent&&c.wrap.addClass("yith-plugin-fw__modal__wrap--scroll-content"),i.append(c.wrap),i.addClass("yith-plugin-fw__modal--opened"),e.allowWpMenu&&i.addClass("yith-plugin-fw__modal--allow-wp-menu"),e.allowWpMenuInMobile&&i.addClass("yith-plugin-fw__modal--allow-wp-menu-in-mobile"),"function"==typeof e.onCreate&&e.onCreate()},p=function(o){n(o.target).is(c.wrap)&&e.closeWhenClickingOnOverlay&&r()},m=function(){c.close.on("click",r),e.closeSelector&&i.on("click",e.closeSelector,r),c.wrap.on("click",p),n(document).on("keydown",_)},w=function(){n(document).off("keydown",_)},_=function(n){e.allowClosingWithEsc&&27===n.keyCode&&r()};return a(),f(),m(),l.elements=n.extend({},c),l.close=r,l}}(window.jQuery,window.yith); \ No newline at end of file diff --git a/plugin-fw/bin/clean-language-files.js b/plugin-fw/bin/clean-language-files.js new file mode 100644 index 0000000..4d8faad --- /dev/null +++ b/plugin-fw/bin/clean-language-files.js @@ -0,0 +1,36 @@ +/* jshint ignore: start */ + +/** + * + * + * @author Leanza Francesco + */ + +const fs = require( 'fs' ); +const glob = require( 'glob' ); +const chalk = require( 'chalk' ); + +const DELETED = chalk.reset.inverse.bold.green( ' DELETED ' ); +const ERROR = chalk.reset.inverse.bold.red( ' ERROR ' ); + +console.log( chalk.green( '\nCleaning language files...' ) ); +glob( "languages/*.po~", function ( er, files ) { + + if ( files.length ) { + console.log( `Processing ${files.length} files:` ); + + files.forEach( ( file ) => { + fs.unlink( file, ( err ) => { + if ( err ) { + console.log( chalk.bold( ` - ${file} ` ) + ERROR ); + console.error( err ); + return; + } + console.log( chalk.bold( ` - ${file} ` ) + DELETED ); + } ); + } ); + } else { + console.log( `No file to clean.\n` ); + } + +} ); \ No newline at end of file diff --git a/plugin-fw/bin/download-translations-config.json b/plugin-fw/bin/download-translations-config.json new file mode 100644 index 0000000..ccd11b6 --- /dev/null +++ b/plugin-fw/bin/download-translations-config.json @@ -0,0 +1,32 @@ +{ + "projectPath": "https://translate.yithemes.com/gp/projects/yith-framework/", + "textDomain": "yith-plugin-fw", + "destFolder": "languages/", + "languages": [ + { + "id": "es", + "name": "Spanish", + "slug": "es_ES" + }, + { + "id": "it", + "name": "Italian", + "slug": "it_IT" + }, + { + "id": "nl", + "name": "Dutch", + "slug": "nl_NL" + }, + { + "id": "el", + "name": "Greek", + "slug": "el" + }, + { + "id": "ru", + "name": "Russian", + "slug": "ru_RU" + } + ] +} diff --git a/plugin-fw/bin/download-translations.js b/plugin-fw/bin/download-translations.js new file mode 100644 index 0000000..de1a959 --- /dev/null +++ b/plugin-fw/bin/download-translations.js @@ -0,0 +1,57 @@ +/* jshint ignore: start */ + +/** + * This script download translations from https://translate.yithemes.com/ + * + * @version 1.1.0 + * @author Leanza Francesco + */ + +const fs = require( 'fs' ); +const path = require( 'path' ); +const axios = require( 'axios' ); +const chalk = require( 'chalk' ); +const options = require( './download-translations-config' ); + +const SPACE = '\t'; +const DONE = chalk.reset.inverse.bold.green( ' DONE ' ); +const ERROR = chalk.reset.inverse.bold.red( ' ERROR ' ); + +async function download( url, dest ) { + const destPath = path.resolve( dest ); + const writer = fs.createWriteStream( destPath ); + + const response = await axios( { + url, + method : 'GET', + responseType: 'stream' + } ); + + response.data.pipe( writer ); + + return new Promise( ( resolve, reject ) => { + writer.on( 'finish', resolve ); + writer.on( 'error', reject ); + } ) +} + +const downloadLanguage = function ( language ) { + const languageName = language.name || language.id; + const source = options.projectPath + language.id + "/default/export-translations/"; + const fileName = options.textDomain + '-' + language.slug + '.po'; + const dest = options.destFolder + fileName; + const message = ' - ' + chalk.bold( languageName ) + SPACE; + + download( source, dest ).then( () => { + console.log( message + DONE ); + } ).catch( ( err ) => { + console.log( message + ERROR ); + throw err; + } ); +}; + +console.log( chalk.green( '\nDownloading Transations from translate.yithemes.com...' ) ); + +options.languages.forEach( ( language ) => { + downloadLanguage( language ); +} ); \ No newline at end of file diff --git a/plugin-fw/composer.json b/plugin-fw/composer.json new file mode 100644 index 0000000..7d9b380 --- /dev/null +++ b/plugin-fw/composer.json @@ -0,0 +1,24 @@ +{ + "name": "yith/plugin-fw", + "description": "YITH Plugin Framework", + "type": "wordpress-plugin", + "license": "GPL-3.0-or-later", + "prefer-stable": true, + "minimum-stability": "dev", + "require-dev": { + "wp-coding-standards/wpcs": "^2.2", + "squizlabs/php_codesniffer": "^3.5", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1" + }, + "scripts": { + "phpcs": [ + "phpcs -s -p" + ], + "phpcs-pre-commit": [ + "phpcs -s -p -n" + ], + "phpcbf": [ + "phpcbf -p --standard=WordPress" + ] + } +} diff --git a/plugin-fw/dist/gutenberg/index.asset.php b/plugin-fw/dist/gutenberg/index.asset.php index f087561..6d82152 100644 --- a/plugin-fw/dist/gutenberg/index.asset.php +++ b/plugin-fw/dist/gutenberg/index.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => 'ec5c5e974d97e00eb3f18286c25e0840'); \ No newline at end of file + array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ccb6b74ecd1dbb4cb1db833b49ebe4fb'); \ No newline at end of file diff --git a/plugin-fw/dist/gutenberg/index.js b/plugin-fw/dist/gutenberg/index.js index b0e7641..f0b005f 100644 --- a/plugin-fw/dist/gutenberg/index.js +++ b/plugin-fw/dist/gutenberg/index.js @@ -1 +1 @@ -!function(){var e,t={783:function(e,t,o){"use strict";var r=window.wp.element,n=window.React,a=o(568),l=o.n(a),s=window.wp.blocks,c=window.wp.url;function i(e){if(e.status>=200&&e.status<300)return e;throw e}function u(e){return e.json?e.json():e.text()}const h=(0,r.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));var d=window.lodash,p=o.n(d);const f=(e,t,o)=>{let r=!0;if(t&&t.id&&"value"in t){let n=t.value;["toggle","checkbox"].includes(o)&&(n=!0===n||"yes"===n||1===n),n=p().isArray(n)?n:[n],r=void 0!==e[t.id]&&n.includes(e[t.id])}return r},g=(e,t)=>{const{controlType:o}=e;let r=!0;if(e.deps)if(p().isArray(e.deps))for(let n in e.deps){const a=e.deps[n];if(r=f(t,a,o),!r)break}else r=f(t,e.deps,o);return r},b=(e,t)=>{let o="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)o=r(t,e);else{const r=e.attributes?Object.entries(e.attributes).map((([e,o])=>{const r=g(o,t),n=t[e];if(r&&void 0!==n)return e+"="+(o.remove_quotes?n:`"${n}"`)})):[],n=r.length?" "+r.join(" "):"";o=`[${e.shortcode_name}${n}]`}return o};var m=window.wp.components,y=window.wp.blockEditor,_=window.wp.hooks;class v extends n.Component{constructor(){super(...arguments),this.state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},this.ajaxTimeout=!1}componentDidMount(){this.updateShortcode()}componentDidUpdate(e,t,o){const{shortcode:r,shortcodeHash:n,ajaxSuccess:a,ajaxResponse:l,ajaxUpdated:s}=this.state;(0,d.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&s&&(a&&(0,_.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",r,n,l),(0,_.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",r,n,l),this.setState({ajaxUpdated:!1}))}updateShortcode(){const{attributes:e,blockArgs:t}=this.props;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});const o=b(t,e),r=l()(o);t.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,_.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,r),this.ajaxTimeout=setTimeout((()=>{((e,t=yithGutenberg.ajaxurl)=>(t=(0,c.addQueryArgs)(t,e),fetch(t).then(i).then(u)))({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((e=>{this.setState({loading:!1,firstLoading:!1,html:e.html,shortcode:o,shortcodeHash:r,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:e})})).catch((e=>{console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:o,shortcode:o,shortcodeHash:r})}render(){const{html:e,loading:t,firstLoading:o,shortcode:n,shortcodeHash:a}=this.state,{blockArgs:l}=this.props,{do_shortcode:s,title:c,empty_message:i}=l,u="block-editor-yith-plugin-fw-shortcode-block";let d=[u],p=s?"html":"shortcode",f=e,g="";o&&t?p="first-loading":s&&!e&&(p="empty-html",f=n,!t&&i&&(g=i));const b=["first-loading","empty-html","shortcode"].includes(p),y=!["first-loading","empty-html"].includes(p),_=!!g;return d.push(`${u}--${p}`),d.push(_?`${u}--has-message`:`${u}--no-message`),d.push(`yith_block_${a}`),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:d.join(" ")},t?(0,r.createElement)("div",{className:`${u}__spinner-wrap`},(0,r.createElement)(m.Spinner,null)):"",b&&(0,r.createElement)("div",{className:`${u}__title components-placeholder__label`},h,c),_&&(0,r.createElement)(r.RawHTML,{className:`${u}__message`},g),y&&(0,r.createElement)(r.RawHTML,{className:`${u}__content`},f)))}}var C=window.wp.compose;function w({className:e,label:t,onChange:o,value:n,help:a,disableAlpha:l}){const s=`inspector-yith-color-picker-control-${(0,C.useInstanceId)(w)}`;return(0,r.createElement)(m.BaseControl,{id:s,label:t,className:`block-editor-yith-color-control ${e}`,help:a},(0,r.createElement)(m.ColorPicker,{color:n,disableAlpha:l,onChangeComplete:o}))}function k({label:e,colorValue:t}){return(0,r.createElement)(r.Fragment,null,e,!!t&&(0,r.createElement)(m.ColorIndicator,{colorValue:t}))}function x({className:e,label:t,onChange:o,value:n,help:a,palette:l,clearable:s}){l=l||(0,y.useSetting)("color.palette");const c=`inspector-yith-color-palette-control-${(0,C.useInstanceId)(x)}`;return(0,r.createElement)(m.BaseControl,{id:c,className:`block-editor-yith-color-palette-control ${e}`,help:a},(0,r.createElement)("fieldset",null,(0,r.createElement)("legend",null,(0,r.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,r.createElement)(m.BaseControl.VisualLabel,null,(0,r.createElement)(k,{colorValue:n,label:t})))),(0,r.createElement)(m.ColorPalette,{value:n,onChange:o,colors:l,clearable:s})))}const j=(e,t)=>function({attributes:o,className:n,setAttributes:a}){const l=(e,t,o)=>{["colorpicker","color"].includes(o)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());let r={};r[t]=e,a(r)};return(0,r.createElement)(r.Fragment,null,!!t.attributes&&(0,r.createElement)(y.InspectorControls,null,(0,r.createElement)(m.PanelBody,null,Object.entries(t.attributes).map((([t,n])=>{const a=((t,n)=>{const{controlType:a}=n,s=o[t],c=((e,t)=>{let o="";return e.helps&&e.helps.checked&&e.helps.unchecked?o=t?e.helps.checked:e.helps.unchecked:e.help&&(o=e.help),o})(n,s);let i=`${e}__${t}-field-wrapper`;const u=g(n,o);n.wrapper_class&&(i+=" "+n.wrapper_class);let h=!1;if(u)switch(a){case"select":h=(0,r.createElement)(m.SelectControl,{className:i,key:t,value:s,label:n.label,options:n.options,help:c,multiple:!!n.multiple,onChange:e=>{l(e,t,a)}});break;case"text":h=(0,r.createElement)(m.TextControl,{className:i,key:t,value:s,label:n.label,help:c,onChange:e=>{l(e,t,a)}});break;case"textarea":h=(0,r.createElement)(m.TextareaControl,{className:i,key:t,value:s,label:n.label,help:c,onChange:e=>{l(e,t,a)}});break;case"toggle":h=(0,r.createElement)(m.ToggleControl,{className:i,key:t,label:n.label,help:c,checked:s,onChange:e=>{l(e,t,a)}});break;case"checkbox":h=(0,r.createElement)(m.CheckboxControl,{className:i,key:t,label:n.label,help:c,checked:s,onChange:e=>{l(e,t,a)}});break;case"number":case"range":h=(0,r.createElement)(m.RangeControl,{className:i,key:t,value:s,label:n.label,help:c,min:n.min,max:n.max,onChange:e=>{l(e,t,a)}});break;case"color":case"colorpicker":h=(0,r.createElement)(w,{className:i,key:t,label:n.label,help:c,value:s,disableAlpha:n.disableAlpha,onChange:e=>{l(e,t,a)}});break;case"color-palette":h=(0,r.createElement)(x,{className:i,key:t,label:n.label,help:c,value:s,clearable:n.clearable||!1,onChange:e=>{l(e,t,a)}});break;case"radio":h=(0,r.createElement)(m.RadioControl,{key:t,label:n.label,options:n.options,selected:s,help:c,onChange:e=>{l(e,t,a)}});break;default:h=!1}return h})(t,n);if(a)return a})))),(0,r.createElement)(v,{attributes:o,blockArgs:t}))},E=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];for(const e of E)(0,_.addAction)(e.key,"yith-plugin-fw/jquery-events",((...t)=>{"jQuery"in window&&(e.delay?setTimeout((()=>{jQuery(document).trigger(e.key,Object.values(t))}),e.delay):jQuery(document).trigger(e.key,Object.values(t)))}));for(const[e,t]of Object.entries(yithGutenbergBlocks))(0,s.registerBlockType)("yith/"+e,{title:t.title,description:t.description,category:t.category,attributes:t.attributes,icon:void 0!==t.icon?t.icon:h,keywords:t.keywords,edit:j(e,t),save:({attributes:e})=>b(t,e),deprecated:[{attributes:t.attributes,save:({attributes:e})=>{const o=b(t,e),n=''+o+"";return(0,r.createElement)(r.RawHTML,null,n)}}]})},487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],o=0;o>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&o.rotl(e,8)|4278255360&o.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],o=0,r=0;o>>5]|=e[o]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],o=0;o<32*e.length;o+=8)t.push(e[o>>>5]>>>24-o%32&255);return t},bytesToHex:function(e){for(var t=[],o=0;o>>4).toString(16)),t.push((15&e[o]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],o=0;o>>6*(3-a)&63)):o.push("=");return o.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],r=0,n=0;r>>6-2*n);return o}},e.exports=o},738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:function(e,t,o){var r,n,a,l,s;r=o(12),n=o(487).utf8,a=o(738),l=o(487).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?l.stringToBytes(e):n.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var o=r.bytesToWords(e),c=8*e.length,i=1732584193,u=-271733879,h=-1732584194,d=271733878,p=0;p>>24)|4278255360&(o[p]<<24|o[p]>>>8);o[c>>>5]|=128<>>9<<4)]=c;var f=s._ff,g=s._gg,b=s._hh,m=s._ii;for(p=0;p>>0,u=u+_>>>0,h=h+v>>>0,d=d+C>>>0}return r.endian([i,u,h,d])})._ff=function(e,t,o,r,n,a,l){var s=e+(t&o|~t&r)+(n>>>0)+l;return(s<>>32-a)+t},s._gg=function(e,t,o,r,n,a,l){var s=e+(t&r|o&~r)+(n>>>0)+l;return(s<>>32-a)+t},s._hh=function(e,t,o,r,n,a,l){var s=e+(t^o^r)+(n>>>0)+l;return(s<>>32-a)+t},s._ii=function(e,t,o,r,n,a,l){var s=e+(o^(t|~r))+(n>>>0)+l;return(s<>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var o=r.wordsToBytes(s(e,t));return t&&t.asBytes?o:t&&t.asString?l.bytesToString(o):r.bytesToHex(o)}}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=function(t,o,n,a){if(!o){var l=1/0;for(u=0;u=a)&&Object.keys(r.O).every((function(e){return r.O[e](o[c])}))?o.splice(c--,1):(s=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[o,n,a]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,46:0};r.O.j=function(t){return 0===e[t]};var t=function(t,o){var n,a,l=o[0],s=o[1],c=o[2],i=0;if(l.some((function(t){return 0!==e[t]}))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(c)var u=c(r)}for(t&&t(o);i=200&&e.status<300)return e;throw e}function u(e){return e.json?e.json():e.text()}const p=(0,o.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},(0,o.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));var h=window.lodash,d=n.n(h);const f=(e,t,n)=>{let o=!0;if(t&&t.id&&"value"in t){let r=t.value;["toggle","checkbox"].includes(n)&&(r=!0===r||"yes"===r||1===r),r=d().isArray(r)?r:[r],o=void 0!==e[t.id]&&r.includes(e[t.id])}return o},m=(e,t)=>{const{controlType:n}=e;let o=!0;if(e.deps)if(d().isArray(e.deps))for(let r in e.deps){const l=e.deps[r];if(o=f(t,l,n),!o)break}else o=f(t,e.deps,n);return o},g=(e,t)=>{let n="",o=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?o=jQuery.fn[e.callback]:e.callback in window&&(o=window[e.callback])),"function"==typeof o)n=o(t,e);else{const o=e.attributes?Object.entries(e.attributes).map((e=>{let[n,o]=e;const r=m(o,t),l=t[n];if(r&&void 0!==l)return n+"="+(o.remove_quotes?l:`"${l}"`)})):[],r=o.length?" "+o.join(" "):"";n=`[${e.shortcode_name}${r}]`}return n};var _=window.wp.components,y=window.wp.blockEditor,b=window.wp.hooks;class v extends r.Component{constructor(){super(...arguments),this.state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},this.ajaxTimeout=!1}componentDidMount(){this.updateShortcode()}componentDidUpdate(e,t,n){const{shortcode:o,shortcodeHash:r,ajaxSuccess:l,ajaxResponse:a,ajaxUpdated:s}=this.state;(0,h.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&s&&(l&&(0,b.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,r,a),(0,b.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,r,a),this.setState({ajaxUpdated:!1}))}updateShortcode(){const{attributes:e,blockArgs:t}=this.props;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});const n=g(t,e),o=a()(n);t.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,b.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",n,o),this.ajaxTimeout=setTimeout((()=>{(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=(0,i.addQueryArgs)(t,e),fetch(t).then(c).then(u)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:n}).then((e=>{this.setState({loading:!1,firstLoading:!1,html:e.html,shortcode:n,shortcodeHash:o,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:e})})).catch((e=>{console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:n,shortcode:n,shortcodeHash:o})}render(){const{html:e,loading:t,firstLoading:n,shortcode:r,shortcodeHash:l}=this.state,{blockArgs:a}=this.props,{do_shortcode:s,title:i,empty_message:c}=a,u="block-editor-yith-plugin-fw-shortcode-block";let h=[u],d=s?"html":"shortcode",f=e,m="";n&&t?d="first-loading":s&&!e&&(d="empty-html",f=r,!t&&c&&(m=c));const g=["first-loading","empty-html","shortcode"].includes(d),y=!["first-loading","empty-html"].includes(d),b=!!m;return h.push(`${u}--${d}`),h.push(b?`${u}--has-message`:`${u}--no-message`),h.push(`yith_block_${l}`),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:h.join(" ")},t?(0,o.createElement)("div",{className:`${u}__spinner-wrap`},(0,o.createElement)(_.Spinner,null)):"",g&&(0,o.createElement)("div",{className:`${u}__title components-placeholder__label`},p,i),b&&(0,o.createElement)(o.RawHTML,{className:`${u}__message`},m),y&&(0,o.createElement)(o.RawHTML,{className:`${u}__content`},f)))}}var w=window.wp.compose;function C(e){let{className:t,label:n,onChange:r,value:l,help:a,disableAlpha:s}=e;const i=`inspector-yith-color-picker-control-${(0,w.useInstanceId)(C)}`;return(0,o.createElement)(_.BaseControl,{id:i,label:n,className:`block-editor-yith-color-control ${t}`,help:a},(0,o.createElement)(_.ColorPicker,{color:l,disableAlpha:s,onChangeComplete:r}))}function k(e){let{label:t,colorValue:n}=e;return(0,o.createElement)(o.Fragment,null,t,!!n&&(0,o.createElement)(_.ColorIndicator,{colorValue:n}))}function E(e){let{className:t,label:n,onChange:r,value:l,help:a,palette:s,clearable:i}=e;s=s||(0,y.useSetting)("color.palette");const c=`inspector-yith-color-palette-control-${(0,w.useInstanceId)(E)}`;return(0,o.createElement)(_.BaseControl,{id:c,className:`block-editor-yith-color-palette-control ${t}`,help:a},(0,o.createElement)("fieldset",null,(0,o.createElement)("legend",null,(0,o.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,o.createElement)(_.BaseControl.VisualLabel,null,(0,o.createElement)(k,{colorValue:l,label:n})))),(0,o.createElement)(_.ColorPalette,{value:l,onChange:r,colors:s,clearable:i})))}var x=n(184),T=n.n(x),j=n(697),N=n.n(j),S=window.wp.i18n;const O={noItems:(0,S.__)("No items found.","yith-plugin-fw"),noResults:(0,S.__)('No results for "%s"',"yith-plugin-fw"),search:(0,S.__)("Search for items...","yith-plugin-fw")};function A(e){const t=(0,w.useInstanceId)(B);return e||`inspector-yith-multiple-select-control-${t}`}function R(e){var t;let{id:n,value:l,options:a,onChange:s,messages:i}=e;const[c,u]=(0,r.useState)(""),[p,h]=(0,r.useState)(!1),[d,f]=(0,r.useState)(248),m={...O,...i},g=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(),v=(0,r.useRef)(),w=(0,r.useRef)(),C=T()("yith-fw-components__multiple-select"),k=(0,r.useMemo)((()=>a.map((e=>e.value))),[a]),E=(0,r.useMemo)((()=>l.filter((e=>k.includes(e)))),[l,k]),x=(0,r.useMemo)((()=>a.filter((e=>e.label.toLowerCase().indexOf(c.toLowerCase())>=0))),[a,c]),j=(0,r.useMemo)((()=>a.filter((e=>E.includes(e.value)))),[a,E]),N=e=>{const t=[...E].filter((t=>t!==e));s(t)},R=()=>!!y.current&&y.current.focus(),B=e=>{const t=(null==g?void 0:g.current)&&g.current.contains(e.target),n=(null==v?void 0:v.current)&&v.current.contains(e.target);t||n||h(!1)};return(0,r.useEffect)((()=>(document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)))),(0,r.useEffect)((()=>{(()=>{var e;if(!g.current)return;const t=null===(e=g.current.getBoundingClientRect())||void 0===e?void 0:e.width;f(t)})()}),[]),(0,o.createElement)("div",{className:C,ref:g},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__input-container",ref:b,onClick:e=>{(null==b?void 0:b.current)&&b.current===e.target&&R()}},j.map((e=>(0,o.createElement)("span",{key:e.value,className:"yith-fw-components__multiple-select__item"},(0,o.createElement)("span",{className:"yith-fw-components__multiple-select__item__label"},e.label),(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__item__remove yith-icon-close-alt",onClick:()=>{N(e.value),h(!1)}})))),(0,o.createElement)("input",{className:"yith-fw-components__multiple-select__input",id:A(n),ref:y,type:"text",autoComplete:"off",placeholder:m.search,onFocus:()=>h(!0),value:c,onChange:e=>u(e.target.value)})),p&&(0,o.createElement)(_.Popover,{className:"yith-fw-components__multiple-select__popover",position:"bottom",offset:20,anchorRef:null!==(t=null==g?void 0:g.current)&&void 0!==t?t:void 0,anchorRect:(null==g?void 0:g.current)&&(null==g?void 0:g.current.getBoundingClientRect()),focusOnMount:!1,ref:v},(0,o.createElement)("div",{className:T()("yith-fw-components__multiple-select__suggestions",!x.length&&"no-results"),ref:w,style:{width:d}},a.length&&x.length?x.map((e=>{const t=E.includes(e.value);return(0,o.createElement)("div",{key:e.value,className:T()("yith-fw-components__multiple-select__suggestion",t&&"selected"),onClick:()=>{var n;t||(n=e.value,s([...E,n]),u(""),R())}},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestion__label"},e.label),t&&(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__suggestion__remove yith-icon yith-icon-close-alt",onClick:()=>{N(e.value),R()}}))})):(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestions__message"},a.length&&c?(0,S.sprintf)(m.noResults,c):m.noItems))))}function B(e){let{className:t,label:n,onChange:r,value:l,help:a,options:s,messages:i}=e;const c=`inspector-yith-multiple-select-control-${(0,w.useInstanceId)(B)}`;return(0,o.createElement)(_.BaseControl,{id:c,label:n,className:`block-editor-yith-multiple-select-control ${t}`,help:a},(0,o.createElement)(R,{id:c,value:l,options:s,onChange:r,messages:i}))}R.propTypes={id:N().string,className:N().string,value:N().array,options:N().arrayOf(N().shape({label:N().string,value:N().oneOfType([N().string,N().number])})),onChange:N().func},R.defaultProps={id:"",value:[],className:"",options:[],onChange:d()};const $=e=>{var t,n,r;let{attributeName:l,attributeArgs:a,attributes:s,onChange:i,blockName:c}=e;const{controlType:u,label:p,wrapper_class:h}=a,d=s[l],f=((e,t)=>{let n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n})(a,d),g=m(a,s),y=T()(`${c}__${l}-field-wrapper`,h);let b=!1;if(g)switch(u){case"select":var v,w,k;b=a.multiple?(0,o.createElement)(B,{className:y,value:d,label:p,options:null!==(v=null==a?void 0:a.options)&&void 0!==v?v:[],help:f,onChange:i,messages:null!==(w=null==a?void 0:a.messages)&&void 0!==w?w:{}}):(0,o.createElement)(_.SelectControl,{className:y,value:d,label:p,options:null!==(k=null==a?void 0:a.options)&&void 0!==k?k:[],help:f,onChange:i});break;case"text":b=(0,o.createElement)(_.TextControl,{className:y,key:l,value:d,label:p,help:f,onChange:i});break;case"textarea":b=(0,o.createElement)(_.TextareaControl,{className:y,key:l,value:d,label:p,help:f,onChange:i});break;case"toggle":b=(0,o.createElement)(_.ToggleControl,{className:y,key:l,label:p,help:f,checked:d,onChange:i});break;case"checkbox":b=(0,o.createElement)(_.CheckboxControl,{className:y,key:l,label:p,help:f,checked:d,onChange:i});break;case"number":case"range":b=(0,o.createElement)(_.RangeControl,{className:y,key:l,value:d,label:p,help:f,min:null==a?void 0:a.min,max:null==a?void 0:a.max,onChange:i});break;case"color":case"colorpicker":b=(0,o.createElement)(C,{className:y,key:l,label:p,help:f,value:d,disableAlpha:null!==(t=null==a?void 0:a.disableAlpha)&&void 0!==t&&t,onChange:i});break;case"color-palette":b=(0,o.createElement)(E,{className:y,key:l,label:p,help:f,value:d,clearable:null!==(n=null==a?void 0:a.clearable)&&void 0!==n&&n,onChange:i});break;case"radio":b=(0,o.createElement)(_.RadioControl,{key:l,label:p,options:null!==(r=null==a?void 0:a.options)&&void 0!==r?r:[],selected:d,help:f,onChange:i});break;default:b=!1}return b},I=(e,t)=>function(n){let{attributes:r,className:l,setAttributes:a}=n;return(0,o.createElement)(o.Fragment,null,!!t.attributes&&(0,o.createElement)(y.InspectorControls,null,(0,o.createElement)(_.PanelBody,null,Object.entries(t.attributes).map((t=>{let[n,l]=t;const{controlType:s}=l;return(0,o.createElement)($,{key:n,attributeArgs:l,attributeName:n,attributes:r,blockName:e,onChange:e=>((e,t,n)=>{if(["colorpicker","color"].includes(n))if("rgb"in e&&"hex"in e){const{r:t,g:n,b:o,a:r}=e.rgb;e=r<1?`rgba(${t}, ${n}, ${o}, ${r})`:e.hex}else e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString();a({[t]:e})})(e,n,s)})})))),(0,o.createElement)(v,{attributes:r,blockArgs:t}))},L=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];for(const e of L)(0,b.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),o=0;o{jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}));for(const[e,t]of Object.entries(yithGutenbergBlocks))(0,s.registerBlockType)("yith/"+e,{title:t.title,description:t.description,category:t.category,attributes:t.attributes,icon:void 0!==t.icon?t.icon:p,keywords:t.keywords,edit:I(e,t),save:e=>{let{attributes:n}=e;return g(t,n)},deprecated:[{attributes:t.attributes,save:e=>{let{attributes:n}=e;const r=g(t,n),l=''+r+"";return(0,o.createElement)(o.RawHTML,null,l)}}]})},487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,o=0;n>>5]|=e[n]<<24-o%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-l)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],o=0,r=0;o>>6-2*r);return n}},e.exports=n},738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:function(e,t,n){var o,r,l,a,s;o=n(12),r=n(487).utf8,l=n(738),a=n(487).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):r.stringToBytes(e):l(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=o.bytesToWords(e),i=8*e.length,c=1732584193,u=-271733879,p=-1732584194,h=271733878,d=0;d>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[i>>>5]|=128<>>9<<4)]=i;var f=s._ff,m=s._gg,g=s._hh,_=s._ii;for(d=0;d>>0,u=u+b>>>0,p=p+v>>>0,h=h+w>>>0}return o.endian([c,u,p,h])})._ff=function(e,t,n,o,r,l,a){var s=e+(t&n|~t&o)+(r>>>0)+a;return(s<>>32-l)+t},s._gg=function(e,t,n,o,r,l,a){var s=e+(t&o|n&~o)+(r>>>0)+a;return(s<>>32-l)+t},s._hh=function(e,t,n,o,r,l,a){var s=e+(t^n^o)+(r>>>0)+a;return(s<>>32-l)+t},s._ii=function(e,t,n,o,r,l,a){var s=e+(n^(t|~o))+(r>>>0)+a;return(s<>>32-l)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=o.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):o.bytesToHex(n)}},703:function(e,t,n){"use strict";var o=n(414);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=function(t,n,r,l){if(!n){var a=1/0;for(u=0;u=l)&&Object.keys(o.O).every((function(e){return o.O[e](n[i])}))?n.splice(i--,1):(s=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[n,r,l]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,46:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,l,a=n[0],s=n[1],i=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(i)var u=i(o)}for(t&&t(n);c 1, so Ctrl+C works correctly. + init: true + + ## + # The PHPUnit container. + ## + phpunit: + build: + context: ./tools/local-env/docker/phpunit + + networks: + - yithdevnet + + volumes: + - ./tools/local-env/phpunit-config.ini:/usr/local/etc/php/conf.d/phpunit-config.ini + - ./tools/local-env/install-wp-tests.sh:/var/www/html/install-wp-tests.sh + - ./tools/local-env/yith-plugin-fw-loader.php:/var/www/html/wp-content/plugins/yith-plugin-fw-loader/yith-plugin-fw-loader.php + - .:/var/www/html/wp-content/plugins/yith-plugin-fw-loader/plugin-fw + - ../../woocommerce:/var/www/html/wp-content/plugins/woocommerce + - html:/var/www/html + - phpunit-uploads:/var/www/html/wp-content/uploads + - testsuite:/tmp + + # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly. + init: true + + depends_on: + - mysql + +volumes: + # So that sites aren't wiped every time containers are restarted, MySQL uses a persistent volume. + mysql: {} + # Using a volume for the uploads directory improves PHPUnit performance. + phpunit-uploads: {} + html: {} + testsuite: {} + +networks: + # Creating our own network allows us to connect between containers using their service name. + yithdevnet: + driver: bridge \ No newline at end of file diff --git a/plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php b/plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php index c9bf9b9..69d93a9 100644 --- a/plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php +++ b/plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php @@ -99,7 +99,7 @@ public function get_categories() { /** * Register the widget controls. */ - public function _register_controls() { // phpcs:ignore + public function register_controls() { $options = $this->get_yith_prop( 'options' ); $description = $this->get_yith_prop( 'description' ); diff --git a/plugin-fw/includes/builders/gutenberg/class-yith-gutenberg.php b/plugin-fw/includes/builders/gutenberg/class-yith-gutenberg.php index 672c49b..59eddee 100644 --- a/plugin-fw/includes/builders/gutenberg/class-yith-gutenberg.php +++ b/plugin-fw/includes/builders/gutenberg/class-yith-gutenberg.php @@ -103,7 +103,7 @@ public function enqueue_block_editor_assets() { wp_localize_script( 'yith-gutenberg', 'yithGutenbergBlocks', $this->blocks_args ); wp_enqueue_script( 'yith-gutenberg' ); - wp_enqueue_style( 'yith-gutenberg', $gutenberg_assets_url . '/style-index.css', array(), yith_plugin_fw_get_version() ); + wp_enqueue_style( 'yith-gutenberg', $gutenberg_assets_url . '/style-index.css', array( 'yith-plugin-fw-icon-font' ), yith_plugin_fw_get_version() ); } /** diff --git a/plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js b/plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js new file mode 100644 index 0000000..e6c90f1 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js @@ -0,0 +1,32 @@ +/** + * Actions to jQuery events + */ + +/** + * WordPress dependencies + */ +import { addAction } from '@wordpress/hooks'; + +const actions = [ + { key: 'yith_plugin_fw_gutenberg_before_do_shortcode', delay: 0 }, + { key: 'yith_plugin_fw_gutenberg_success_do_shortcode', delay: 200 }, + { key: 'yith_plugin_fw_gutenberg_after_do_shortcode', delay: 200 } +]; + +for ( const action of actions ) { + addAction( + action.key, + 'yith-plugin-fw/jquery-events', + ( ...params ) => { + if ( 'jQuery' in window ) { + if ( action.delay ) { + setTimeout( () => { + jQuery( document ).trigger( action.key, Object.values( params ) ); + }, action.delay ); + } else { + jQuery( document ).trigger( action.key, Object.values( params ) ); + } + } + } + ); +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/common/ajaxFetch.js b/plugin-fw/includes/builders/gutenberg/src/common/ajaxFetch.js new file mode 100644 index 0000000..da90cf8 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/common/ajaxFetch.js @@ -0,0 +1,42 @@ +/** + * Ajax Fetch + */ + +/** + * WordPress dependencies + */ +import { addQueryArgs } from '@wordpress/url'; + +/** + * Check status of ajax call + * @param response + * @returns {*} + */ +function ajaxCheckStatus( response ) { + if ( response.status >= 200 && response.status < 300 ) { + return response; + } + + throw response; +} + +/** + * Parse the response of the ajax call + * @param response + * @returns {*} + */ +function parseResponse( response ) { + return response.json ? response.json() : response.text(); +} + +/** + * Fetch using WordPress Ajax + * + * @param {object} data The data to use in the ajax call. + * @param {string} url The ajax URL. + * @returns {Promise} + */ +export const ajaxFetch = ( data, url = yithGutenberg.ajaxurl ) => { + url = addQueryArgs( url, data ); + return fetch( url ).then( ajaxCheckStatus ).then( parseResponse ); +}; \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js b/plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js new file mode 100644 index 0000000..a8b6887 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js @@ -0,0 +1,46 @@ +/** + * Check for dependencies + * + * @param {object} attributeArgs Attribute arguments. + * @param {object} attributes The attributes. + * @returns {boolean} + */ + +import _ from 'lodash'; + +const checkForSingleDep = ( attributes, dep, controlType ) => { + let show = true; + + if ( dep && dep.id && 'value' in dep ) { + let depValue = dep.value; + if ( ['toggle', 'checkbox'].includes( controlType ) ) { + depValue = true === depValue || 'yes' === depValue || 1 === depValue; + } + depValue = _.isArray( depValue ) ? depValue : [depValue]; + + show = typeof attributes[ dep.id ] !== 'undefined' && depValue.includes( attributes[ dep.id ] ); + } + + return show; +}; + +export const checkForDeps = ( attributeArgs, attributes ) => { + const { controlType } = attributeArgs; + let show = true; + + if ( attributeArgs.deps ) { + if ( _.isArray( attributeArgs.deps ) ) { + for ( let i in attributeArgs.deps ) { + const singleDep = attributeArgs.deps[ i ]; + show = checkForSingleDep( attributes, singleDep, controlType ); + if ( !show ) { + break; + } + } + } else { + show = checkForSingleDep( attributes, attributeArgs.deps, controlType ); + } + } + + return show; +}; \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/common/generateShortcode.js b/plugin-fw/includes/builders/gutenberg/src/common/generateShortcode.js new file mode 100644 index 0000000..be94e14 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/common/generateShortcode.js @@ -0,0 +1,42 @@ +/** + * Internal dependencies + */ +import { checkForDeps } from './checkForDeps'; + +/** + * Generate the shortcode + * + * @param {object} blockArgs The block arguments. + * @param {object} attributes The attributes + * @returns {string} + */ +export const generateShortcode = ( blockArgs, attributes ) => { + let theShortcode = ''; + let callback = false; + + if ( typeof blockArgs.callback !== 'undefined' ) { + if ( jQuery && blockArgs.callback in jQuery.fn ) { + callback = jQuery.fn[ blockArgs.callback ]; + } else if ( blockArgs.callback in window ) { + callback = window[ blockArgs.callback ]; + } + } + + if ( typeof callback === 'function' ) { + theShortcode = callback( attributes, blockArgs ); + } else { + const shortcodeAttrs = blockArgs.attributes ? Object.entries( blockArgs.attributes ).map( ( [attributeName, attributeArgs] ) => { + const show = checkForDeps( attributeArgs, attributes ); + const value = attributes[ attributeName ]; + + if ( show && typeof value !== 'undefined' ) { + const shortcodeValue = !!attributeArgs.remove_quotes ? value : `"${value}"`; + return attributeName + '=' + shortcodeValue; + } + } ) : []; + + const shortcodeAttrsText = shortcodeAttrs.length ? ( ' ' + shortcodeAttrs.join( ' ' ) ) : ''; + theShortcode = `[${blockArgs.shortcode_name}${shortcodeAttrsText}]`; + } + return theShortcode; +}; \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/common/icons.js b/plugin-fw/includes/builders/gutenberg/src/common/icons.js new file mode 100644 index 0000000..49eb79d --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/common/icons.js @@ -0,0 +1,12 @@ +/** + * SVG Icons + */ + +/** + * The YITH Logo Icon + * @type {JSX.Element} + */ +export const yith_icon = ; \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/common/index.js b/plugin-fw/includes/builders/gutenberg/src/common/index.js new file mode 100644 index 0000000..4a5ff48 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/common/index.js @@ -0,0 +1,4 @@ +export * from './ajaxFetch'; +export * from './icons'; +export * from './generateShortcode'; +export * from './checkForDeps'; \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/index.js b/plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/index.js new file mode 100644 index 0000000..841092e --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/index.js @@ -0,0 +1,96 @@ +/** + * Color Palette Component + */ + +/** + * External dependencies + */ +import React from 'react'; + +/** + * WordPress dependencies + */ +import { BaseControl, ColorIndicator, ColorPalette } from '@wordpress/components'; +import { useSetting } from '@wordpress/block-editor'; +import { useInstanceId } from '@wordpress/compose'; + +/** + * Internal dependencies + */ +import './style.scss'; + +/** + * Visual Label Element + * + * @param {string} label The label. + * @param {string} colorValue The color. + * @returns {JSX.Element} + * @constructor + */ +function VisualLabel( { + label, + colorValue + } ) { + + return ( + <> + {label} + {!!colorValue && ( + + )} + + ); +} + +/** + * Color Palette Control + * + * @param {string} className The CSS class name. + * @param {string} label The label. + * @param {function} onChange The function callback fired on value change. + * @param {string} value The initial value. + * @param {string} help The help message. + * @param {array} palette Array of palette colors. + * @param {bool} clearable Set true to allow clear. + * @returns {JSX.Element} + * @constructor + */ +export default function ColorPaletteControl( { + className, + label, + onChange, + value, + help, + palette, + clearable + } ) { + + palette = !!palette ? palette : useSetting( 'color.palette' ); + + const instanceId = useInstanceId( ColorPaletteControl ); + const id = `inspector-yith-color-palette-control-${instanceId}`; + + return ( + +
    + +
    + + + +
    +
    + + +
    +
    ); +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/style.scss b/plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/style.scss new file mode 100644 index 0000000..6adc3fb --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/color-palette-control/style.scss @@ -0,0 +1,9 @@ +.block-editor-yith-color-palette-control { + .block-editor-yith-color-palette-control__color-indicator { + margin-bottom: 12px; + } + + .component-color-indicator{ + vertical-align: text-bottom; + } +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/color-picker-control/index.js b/plugin-fw/includes/builders/gutenberg/src/components/color-picker-control/index.js new file mode 100644 index 0000000..701cee3 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/color-picker-control/index.js @@ -0,0 +1,53 @@ +/** + * Color Picker Component + */ + +/** + * External dependencies + */ +import React from 'react'; + +/** + * WordPress dependencies + */ +import { BaseControl, ColorPicker } from '@wordpress/components'; +import { useInstanceId } from '@wordpress/compose'; + +/** + * Color Picker Control + * + * @param {string} className The CSS class name. + * @param {string} label The label. + * @param {function} onChange The function callback fired on value change. + * @param {string} value The initial value. + * @param {string} help The help message. + * @param {bool} disableAlpha Set true to disable the alpha + * @returns {ColorPickerControl} + * @constructor + */ +export default function ColorPickerControl( { + className, + label, + onChange, + value, + help, + disableAlpha, + } ) { + + const instanceId = useInstanceId( ColorPickerControl ); + const id = `inspector-yith-color-picker-control-${instanceId}`; + + return ( + + + ); +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/index.js b/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/index.js new file mode 100644 index 0000000..43b3e65 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/index.js @@ -0,0 +1,56 @@ +/** + * External dependencies + */ +import React from 'react'; + +/** + * WordPress dependencies + */ +import { BaseControl } from '@wordpress/components'; +import { useInstanceId } from '@wordpress/compose'; +import MultipleSelect from './multiple-select'; + +import './style.scss'; + +/** + * Color Picker Control + * + * @param {string} className The CSS class name. + * @param {string} label The label. + * @param {function} onChange The function callback fired on value change. + * @param {string} value The initial value. + * @param {string} help The help message. + * @param {bool} disableAlpha Set true to disable the alpha + * @returns {MultipleSelectControl} + * @constructor + */ +export default function MultipleSelectControl( + { + className, + label, + onChange, + value, + help, + options, + messages + } +) { + + const instanceId = useInstanceId( MultipleSelectControl ); + const id = `inspector-yith-multiple-select-control-${instanceId}`; + + return + + +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/multiple-select.js b/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/multiple-select.js new file mode 100644 index 0000000..031d7e0 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/multiple-select.js @@ -0,0 +1,186 @@ +import classNames from 'classnames'; +import noop from 'lodash'; +import PropTypes from 'prop-types'; +import { useState, useEffect, useRef, useMemo } from 'react'; + +import { __, sprintf } from '@wordpress/i18n'; +import { useInstanceId } from '@wordpress/compose'; +import { Popover } from '@wordpress/components'; + +import MultipleSelectControl from './index'; + +const defaultMessages = { + noItems : __( 'No items found.', 'yith-plugin-fw' ), + noResults: __( 'No results for "%s"', 'yith-plugin-fw' ), + search : __( 'Search for items...', 'yith-plugin-fw' ) +}; + +function useUniqueId( idProp ) { + const instanceId = useInstanceId( MultipleSelectControl ); + const id = `inspector-yith-multiple-select-control-${instanceId}`; + + return idProp || id; +} + +export default function MultipleSelect( { id: idProp, value, options, onChange, messages: messagesProp } ) { + const [search, setSearch] = useState( '' ); + const [showSuggesions, setShowSuggestions] = useState( false ); + const [width, setWidth] = useState( 248 ); + const messages = { ...defaultMessages, ...messagesProp }; + const wrapperRef = useRef(); + const inputRef = useRef(); + const inputContainerRef = useRef(); + const popoverRef = useRef(); + const suggestionsRef = useRef(); + + const classes = classNames( + 'yith-fw-components__multiple-select' + ); + + const allowedValues = useMemo( () => options.map( _ => _.value ), [options] ); + const validValues = useMemo( () => value.filter( _ => allowedValues.includes( _ ) ), [value, allowedValues] ); + const filteredOptions = useMemo( () => options.filter( ( _ ) => _.label.toLowerCase().indexOf( search.toLowerCase() ) >= 0 ), [options, search] ); + const selected = useMemo( () => options.filter( ( _ ) => validValues.includes( _.value ) ), [options, validValues] ); + + const addItem = itemValue => { + onChange( [...validValues, itemValue] ); + setSearch( '' ); + }; + const removeItem = ( itemValue ) => { + const newSelected = [...validValues].filter( _ => _ !== itemValue ); + onChange( newSelected ); + }; + const focusInput = () => !!inputRef.current && inputRef.current.focus(); + + const handleClickOutside = e => { + const isWrapperClick = wrapperRef?.current && wrapperRef.current.contains( e.target ); + const isPopoverClick = popoverRef?.current && popoverRef.current.contains( e.target ); + if ( !isWrapperClick && !isPopoverClick ) { + setShowSuggestions( false ); + } + }; + + const handleInputContainerClick = e => { + const isInputContainerClick = inputContainerRef?.current && inputContainerRef.current === e.target; + if ( isInputContainerClick ) { + focusInput(); + } + }; + + useEffect( () => { + document.addEventListener( 'mousedown', handleClickOutside ); + return () => document.removeEventListener( 'mousedown', handleClickOutside ); + } ); + + useEffect( () => { + const refresh = () => { + if ( !wrapperRef.current ) { + return; + } + + const width = wrapperRef.current.getBoundingClientRect()?.width; + setWidth( width ); + }; + + refresh(); + }, [] ); + + return
    +
    + {selected.map( item => { + return + {item.label} + { + removeItem( item.value ); + setShowSuggestions( false ); + }} + /> + + } )} + setShowSuggestions( true )} + value={search} + onChange={( e ) => setSearch( e.target.value )} + /> +
    + {showSuggesions && +
    + {!!options.length && !!filteredOptions.length ? + ( + filteredOptions.map( + item => { + const isSelected = validValues.includes( item.value ); + + return
    { + if ( !isSelected ) { + addItem( item.value ); + focusInput(); + } + }} + > +
    {item.label}
    + {isSelected && { + removeItem( item.value ); + focusInput(); + }}/>} +
    + } + ) + ) : +
    + {!options.length || !search ? messages.noItems : sprintf( messages.noResults, search )} +
    + } +
    +
    } +
    +} + +MultipleSelect.propTypes = { + id : PropTypes.string, + className: PropTypes.string, + value : PropTypes.array, + options : PropTypes.arrayOf( + PropTypes.shape( + { + label: PropTypes.string, + value: PropTypes.oneOfType( [PropTypes.string, PropTypes.number] ) + } + ) + ), + onChange : PropTypes.func + +}; + +MultipleSelect.defaultProps = { + id : '', + value : [], + className: '', + options : [], + onChange : noop +}; \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/style.scss b/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/style.scss new file mode 100644 index 0000000..76bfa7d --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/multiple-select-control/style.scss @@ -0,0 +1,135 @@ +.yith-fw-components__multiple-select { + .yith-fw-components__multiple-select__input-container { + border-radius : 2px; + border : 1px solid #757575; + padding : 5px; + + .yith-fw-components__multiple-select__input { + border : 0; + min-height : 24px; + width : 100%; + background : inherit; + color : #1e1e1e; + box-shadow : none; + + &::placeholder { + opacity : .6; + color : inherit; + } + } + } + + .yith-fw-components__multiple-select__item { + border-radius : 3px; + background : #f1f1f1; + display : inline-block; + padding : 4px 25px 4px 10px; + margin : 0 5px 5px 0; + max-width : 100%; + align-items : center; + position : relative; + + .yith-fw-components__multiple-select__item__label { + + } + + .yith-fw-components__multiple-select__item__remove { + font-size : 14px; + cursor : pointer; + position : absolute; + top : 50%; + right : 3px; + transform : translateY(-50%); + padding : 5px; + width : auto; + height : auto; + + &:hover { + color : #c50c0c; + } + } + } +} + +.yith-fw-components__multiple-select__popover { + .components-popover__content { + border : 0; + overflow : visible; + } + + .yith-fw-components__multiple-select__suggestions { + display : flex; + flex-direction : column; + overflow : hidden; + overflow-y : auto; + padding-top : 5px; + max-height : 200px; + border-radius : 5px; + box-shadow : rgb(0 0 0 / 20%) 0px 5px 5px -3px, rgb(0 0 0 / 14%) 0px 8px 10px 1px, rgb(0 0 0 / 12%) 0px 3px 14px 2px; + + &.no-results { + padding-top : 0; + } + + .yith-fw-components__multiple-select__suggestions__message { + padding : 8px 15px; + line-height : 1.5em; + overflow-wrap : break-word; + } + + .yith-fw-components__multiple-select__suggestion { + padding : 8px 15px; + min-height : 40px; + cursor : pointer; + line-height : 1.5em; + display : flex; + align-items : center; + justify-content : space-between; + + &.selected { + background : rgba(25, 118, 210, 0.08); + } + + &:hover { + background : rgba(0, 0, 0, 0.04); + } + + &.selected:hover { + background : rgba(25, 118, 210, 0.12); + } + } + + .yith-fw-components__multiple-select__suggestion__remove { + font-size : 13px; + font-weight : 600; + padding : 5px; + height : 23px; + width : 23px; + background : rgba(0, 0, 0, 0); + box-shadow : 0 0 0 10px rgba(0, 0, 0, 0); + border-radius : 50%; + transition : all .3s ease-in-out; + + &:hover { + color : #c50c0c; + background : rgba(0, 0, 0, .06); + box-shadow : 0 0 0 3px rgba(0, 0, 0, .06); + } + } + } + + ::-webkit-scrollbar-track { + -webkit-box-shadow : none; + background-color : transparent; + } + + ::-webkit-scrollbar { + width : 10px; + background-color : rgba(94, 88, 154, 0.04); + } + + ::-webkit-scrollbar-thumb { + background-color : #b1b4bf; + border-radius : 10px; + } +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/shortcode/index.js b/plugin-fw/includes/builders/gutenberg/src/components/shortcode/index.js new file mode 100644 index 0000000..7bbd1ca --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/shortcode/index.js @@ -0,0 +1,152 @@ +/** + * Shortcode Component + */ + +/** + * External dependencies + */ +import React, { Component } from 'react'; +import { isEqual } from 'lodash'; + +/** + * WordPress dependencies + */ +import { RawHTML } from '@wordpress/element'; +import { Spinner } from '@wordpress/components'; +import { doAction, addAction } from '@wordpress/hooks'; + +/** + * Internal dependencies + */ +import { ajaxFetch, generateShortcode, yith_icon } from '../../common'; +import md5 from 'md5'; +import './style.scss'; + +const BEFORE_DO_SHORTCODE_ACTION = 'yith_plugin_fw_gutenberg_before_do_shortcode'; +const SUCCESS_DO_SHORTCODE_ACTION = 'yith_plugin_fw_gutenberg_success_do_shortcode'; +const AFTER_DO_SHORTCODE_ACTION = 'yith_plugin_fw_gutenberg_after_do_shortcode'; + +/** + * Shortcode Component + */ +export class Shortcode extends Component { + constructor() { + super( ...arguments ); + + this.state = { + html : '', + shortcode : '', + shortcodeHash: '', + ajaxUpdated : false, + ajaxSuccess : false, + ajaxResponse : false, + loading : false, + firstLoading : true + }; + + this.ajaxTimeout = false; + } + + componentDidMount() { + this.updateShortcode(); + } + + componentDidUpdate( prevProps, prevState, snapshot ) { + const { shortcode, shortcodeHash, ajaxSuccess, ajaxResponse, ajaxUpdated } = this.state; + + if ( !isEqual( prevProps, this.props ) ) { + this.updateShortcode(); + } + + + if ( this.props.blockArgs.do_shortcode && ajaxUpdated ) { + + if ( ajaxSuccess ) { + doAction( SUCCESS_DO_SHORTCODE_ACTION, shortcode, shortcodeHash, ajaxResponse ); + } + + doAction( AFTER_DO_SHORTCODE_ACTION, shortcode, shortcodeHash, ajaxResponse ); + + this.setState( { ajaxUpdated: false } ); + } + } + + updateShortcode() { + const { attributes, blockArgs } = this.props; + + this.setState( { loading: true, ajaxSuccess: false, ajaxResponse: false } ); + + const shortcode = generateShortcode( blockArgs, attributes ); + const shortcodeHash = md5( shortcode ); + + if ( blockArgs.do_shortcode ) { + !!this.ajaxTimeout && clearTimeout( this.ajaxTimeout ); + + doAction( BEFORE_DO_SHORTCODE_ACTION, shortcode, shortcodeHash ); + + this.ajaxTimeout = setTimeout( () => { + const ajaxData = { + action : 'yith_plugin_fw_gutenberg_do_shortcode', + shortcode: shortcode + }; + + ajaxFetch( ajaxData ).then( response => { + this.setState( { loading: false, firstLoading: false, html: response.html, shortcode, shortcodeHash, ajaxSuccess: true, ajaxUpdated: true, ajaxResponse: response } ); + } ) + .catch( error => { + console.log( { error } ); + } ); + }, 300 ); + } else { + this.setState( { loading: false, firstLoading: false, html: shortcode, shortcode, shortcodeHash } ); + } + } + + render() { + const { html, loading, firstLoading, shortcode, shortcodeHash } = this.state; + const { blockArgs } = this.props; + const { do_shortcode, title, empty_message } = blockArgs; + + const mainClass = 'block-editor-yith-plugin-fw-shortcode-block'; + + let wrapperClasses = [mainClass]; + let type = do_shortcode ? 'html' : 'shortcode'; + let htmlToShow = html; + let message = ''; + + if ( firstLoading && loading ) { + type = 'first-loading'; + } else if ( do_shortcode && !html ) { + type = 'empty-html'; + htmlToShow = shortcode; + if ( !loading && empty_message ) { + message = empty_message; + } + } + + const showTitle = ['first-loading', 'empty-html', 'shortcode'].includes( type ); + const showContent = !['first-loading', 'empty-html'].includes( type ); + const showMessage = !!message; + + wrapperClasses.push( `${mainClass}--${type}` ); + wrapperClasses.push( showMessage ? `${mainClass}--has-message` : `${mainClass}--no-message` ); + wrapperClasses.push( `yith_block_${shortcodeHash}` ); + + return ( + <> +
    + {!!loading ?
    : ''} + {showTitle && +
    {yith_icon}{title}
    + } + {showMessage && + {message} + } + {showContent && + {htmlToShow} + } +
    + + ) + } +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/components/shortcode/style.scss b/plugin-fw/includes/builders/gutenberg/src/components/shortcode/style.scss new file mode 100644 index 0000000..164f2dd --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/components/shortcode/style.scss @@ -0,0 +1,64 @@ +%bordered-block { + padding: 1em 1em 1.2em; + border: 1px solid #1e1e1e; + border-radius: 4px; +} + +%shortcode-box { + font-family: Menlo, Consolas, monaco, monospace; + color: #1e1e1e; + font-size: 13px; + padding: 0.8em 1em; + border: 1px solid #ddd; + border-radius: 4px; +} + +.block-editor-yith-plugin-fw-shortcode-block { + position: relative; + min-height: 30px; + + .block-editor-yith-plugin-fw-shortcode-block__spinner-wrap { + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + } + + &.block-editor-yith-plugin-fw-shortcode-block--first-loading{ + @extend %bordered-block; + + .block-editor-yith-plugin-fw-shortcode-block__title { + margin-bottom: 0; + } + } + + &.block-editor-yith-plugin-fw-shortcode-block--shortcode { + + @extend %bordered-block; + + .block-editor-yith-plugin-fw-shortcode-block__content { + @extend %shortcode-box; + } + } + + &.block-editor-yith-plugin-fw-shortcode-block--empty-html { + + @extend %bordered-block; + + &.block-editor-yith-plugin-fw-shortcode-block--no-message { + .block-editor-yith-plugin-fw-shortcode-block__title { + margin-bottom: 0; + } + } + + .block-editor-yith-plugin-fw-shortcode-block__message { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-style: italic; + font-size: 13px; + } + + .block-editor-yith-plugin-fw-shortcode-block__content { + display: none; + } + } +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/edit.js b/plugin-fw/includes/builders/gutenberg/src/edit.js new file mode 100644 index 0000000..f791465 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/edit.js @@ -0,0 +1,234 @@ +/** + * Handle YITH Gutenberg Blocks Edit + * + * @var {Object} yithGutenbergBlocks The Gutenberg blocks object. + */ + +/** + * External dependencies + */ +import React from 'react'; + +/** + * WordPress dependencies + */ +import { + PanelBody, + ToggleControl, + SelectControl, + TextControl, + TextareaControl, + CheckboxControl, + RangeControl, + RadioControl +} from '@wordpress/components'; +import { InspectorControls } from '@wordpress/block-editor'; + +/** + * Internal dependencies + */ +import { Shortcode } from './components/shortcode'; +import { checkForDeps } from './common'; +import ColorPickerControl from './components/color-picker-control'; +import ColorPaletteControl from './components/color-palette-control'; +import MultipleSelectControl from './components/multiple-select-control'; +import classNames from 'classnames'; + +/** + * Retrieve an help message from arguments. + * + * @param {Object} args The arguments. + * @param {bool} value The value. + * @returns {string} + */ +const getHelpMessage = ( args, value ) => { + let helpMessage = ''; + if ( args.helps && args.helps.checked && args.helps.unchecked ) { + helpMessage = !!value ? args.helps.checked : args.helps.unchecked; + } else if ( args.help ) { + helpMessage = args.help; + } + return helpMessage; +}; + +const ComponentControl = ( { attributeName, attributeArgs, attributes, onChange, blockName } ) => { + const { controlType, label, wrapper_class } = attributeArgs; + const value = attributes[ attributeName ]; + const helpMessage = getHelpMessage( attributeArgs, value ); + const show = checkForDeps( attributeArgs, attributes ); + const wrapperClass = classNames( + `${blockName}__${attributeName}-field-wrapper`, + wrapper_class + ); + + let componentControl = false; + if ( show ) { + switch ( controlType ) { + case 'select': + if ( !attributeArgs.multiple ) { + componentControl = ; + } else { + componentControl = ; + } + break; + + case 'text': + componentControl = ; + break; + + case 'textarea': + componentControl = ; + break; + + case 'toggle': + componentControl = ; + break; + + case 'checkbox': + componentControl = ; + break; + + case 'number': + case 'range': + componentControl = ; + break; + + case 'color': + case 'colorpicker': + componentControl = ; + break; + + case 'color-palette': + componentControl = ; + break; + + case 'radio': + componentControl = ; + break; + default: + componentControl = false; + } + } + return componentControl; +} + +/** + * Create edit function. + * + * @param {string} blockName The block name. + * @param {Object} blockArgs The block arguments. + * @returns {function({attributes?: *, className: *, setAttributes: *})} + */ +export const createEditFunction = ( blockName, blockArgs ) => { + return function ( { attributes, className, setAttributes } ) { + + const onChangeHandler = ( updatedValue, attributeName, controlType ) => { + if ( ['colorpicker', 'color'].includes( controlType ) ) { + if ( 'rgb' in updatedValue && 'hex' in updatedValue ) { + const { r, g, b, a } = updatedValue.rgb; + updatedValue = a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : updatedValue.hex; + } else { + updatedValue = updatedValue.color.getAlpha() < 1 ? updatedValue.color.toRgbString() : updatedValue.color.toHexString(); + } + } + + setAttributes( { [ attributeName ]: updatedValue } ); + } + + return ( + <> + {!!blockArgs.attributes && + + + {Object.entries( blockArgs.attributes ).map( ( [attributeName, attributeArgs] ) => { + const { controlType } = attributeArgs; + return onChangeHandler( _, attributeName, controlType )} + /> + } )} + + + } + + + ); + } +} \ No newline at end of file diff --git a/plugin-fw/includes/builders/gutenberg/src/index.js b/plugin-fw/includes/builders/gutenberg/src/index.js new file mode 100644 index 0000000..a5abc36 --- /dev/null +++ b/plugin-fw/includes/builders/gutenberg/src/index.js @@ -0,0 +1,53 @@ +/** + * Handle YITH Gutenberg Blocks + * + * @var {Object} yithGutenbergBlocks The Gutenberg blocks object. + */ + +/** + * External dependencies + */ +import React from 'react'; +import md5 from 'md5'; + +/** + * WordPress dependencies + */ +import { registerBlockType } from '@wordpress/blocks'; +import { RawHTML } from '@wordpress/element'; + +/** + * Internal dependencies + */ +import { yith_icon, generateShortcode } from './common'; +import { createEditFunction } from './edit'; +import './common/actions-to-jquery-events'; + +for ( const [blockName, blockArgs] of Object.entries( yithGutenbergBlocks ) ) { + registerBlockType( 'yith/' + blockName, { + title : blockArgs.title, + description: blockArgs.description, + category : blockArgs.category, + attributes : blockArgs.attributes, + icon : typeof blockArgs.icon !== 'undefined' ? blockArgs.icon : yith_icon, + keywords : blockArgs.keywords, + edit : createEditFunction( blockName, blockArgs ), + save : ( { attributes } ) => { + return generateShortcode( blockArgs, attributes ); + }, + deprecated : [ + { + attributes: blockArgs.attributes, + save : ( { attributes } ) => { + const shortcode = generateShortcode( blockArgs, attributes ); + const blockHash = md5( shortcode ); + const shortcodeSpan = '' + shortcode + ''; + + return ( + {shortcodeSpan} + ) + } + } + ] + } ); +} \ No newline at end of file diff --git a/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php b/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php index 807436d..932ec3a 100644 --- a/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php +++ b/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php @@ -82,6 +82,7 @@ public function __construct( $args = array() ) { $this->links = $this->settings['links']; } + $this->maybe_init_help_tab(); $this->maybe_init_premium_tab(); add_action( 'admin_init', array( $this, 'set_default_options' ) ); diff --git a/plugin-fw/includes/class-yit-plugin-panel.php b/plugin-fw/includes/class-yit-plugin-panel.php index 4fd8ffd..8138540 100644 --- a/plugin-fw/includes/class-yit-plugin-panel.php +++ b/plugin-fw/includes/class-yit-plugin-panel.php @@ -103,6 +103,7 @@ public function __construct( $args = array() ) { $this->links = $this->settings['links']; } + $this->maybe_init_help_tab(); $this->maybe_init_premium_tab(); add_action( 'admin_init', array( $this, 'register_settings' ) ); @@ -251,7 +252,7 @@ protected function maybe_init_vars() { if ( strpos( $sub_item, $item . '-' ) === 0 ) { $sub_item = substr( $sub_item, strlen( $item ) + 1 ); } - $sub_tab_path = $options_path . '/' . $item . '/' . $sub_item . '-options.php'; + $sub_tab_path = $sub_options['options_path'] ?? ( $options_path . '/' . $item . '/' . $sub_item . '-options.php' ); $sub_tab_path = apply_filters( 'yith_plugin_panel_sub_tab_item_options_path', $sub_tab_path, $sub_tabs, $sub_item, $this ); if ( file_exists( $sub_tab_path ) ) { @@ -486,11 +487,6 @@ public function print_tabs_nav( $args = array() ) { $tabs .= $this->get_tab_nav( $tab, $tab_value, $args ); } - // help tab. - if ( $this->has_help_tab() ) { - $tabs .= $this->get_tab_nav( 'help', _x( 'Help', 'Help tab name', 'yith-plugin-fw' ), $args ); - } - $tabs .= ''; ?>

    @@ -641,14 +637,15 @@ public function yit_panel() { return; } - $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ); + $form_method = apply_filters( 'yit_admin_panel_form_method', 'POST', $option_key ); + $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap', $option_key ); ?>
    message(); ?>

    get_tab_title() ); ?>

    is_show_form() ) : ?> -
    +

     

    settings['parent'] . '_options' ); ?> @@ -657,6 +654,9 @@ public function yit_panel() { + + +
    settings['plugin_slug'] ) ) { $utm_medium = $this->settings['plugin_slug']; - $utm_source = 'wp-premium-dashboard'; + $utm_source = yith_plugin_fw_panel_utm_source( $this ); $utm_campaign = 'help-tab'; $campaign_urls = array( @@ -854,6 +854,18 @@ protected function maybe_init_premium_tab() { } } + /** + * Add help tab in admin-tabs if is set. + * + * @author Antonio La Rocca + * @since 3.9.0 + */ + protected function maybe_init_help_tab() { + if ( $this->has_help_tab() ) { + $this->settings['admin-tabs']['help'] = _x( 'Help', 'Help tab name', 'yith-plugin-fw' ); + } + } + /** * Checks whether current tab is Premium Tab * @@ -874,7 +886,7 @@ protected function is_premium_tab() { * @since 3.9.0 */ protected function has_premium_tab() { - return $this->is_free() && ! empty( $this->settings['premium_tab'] ); + return ! empty( $this->settings['premium_tab'] ) && ( $this->is_free() || $this->is_extended() ); } /** @@ -1447,7 +1459,7 @@ public static function sort_plugins() { usort( $sorted_plugins, - function( $a, $b ) { + function ( $a, $b ) { return strcmp( current( $a ), current( $b ) ); } ); @@ -1492,11 +1504,32 @@ public static function add_menu_class_in_yith_plugin( $menu ) { /** * Check if inside the admin tab there's the premium tab to * check if the plugin is a free or not + * TODO: remove this from panel, and move to a more generic plugin-registration process; use general plugin data wherever is needed * * @author Emanuela Castorina */ public function is_free() { - return ( ! empty( $this->settings['admin-tabs'] ) && isset( $this->settings['admin-tabs']['premium'] ) ); + return ! empty( $this->settings['premium_tab'] ) && ! $this->is_extended() && ! $this->is_premium(); + } + + /** + * Checks whether current panel is for extended version of the plugin + * TODO: remove this from panel, and move to a more generic plugin-registration process; use general plugin data wherever is needed + * + * @return bool + */ + public function is_extended() { + return ! empty( $this->settings['is_extended'] ); + } + + /** + * Checks whether current panel is for premium version of the plugin + * TODO: remove this from panel, and move to a more generic plugin-registration process; use general plugin data wherever is needed + * + * @return bool + */ + public function is_premium() { + return ! empty( $this->settings['is_premium'] ); } /** @@ -1776,7 +1809,7 @@ public function save_toggle_element_options() { * @since 3.8.4 */ public function add_utm_data_on_premium_tab( $url, $slug ) { - return ! empty( $this->settings['plugin_slug'] ) && $slug === $this->settings['plugin_slug'] && 'premium' === $this->get_current_tab() ? yith_plugin_fw_add_utm_data( $url, $slug, 'button-upgrade', 'wp-free-dashboard' ) : $url; + return ! empty( $this->settings['plugin_slug'] ) && $slug === $this->settings['plugin_slug'] && 'premium' === $this->get_current_tab() ? yith_plugin_fw_add_utm_data( $url, $slug, 'button-upgrade', yith_plugin_fw_panel_utm_source( $this ) ) : $url; } } } diff --git a/plugin-fw/includes/class-yit-plugin-subpanel.php b/plugin-fw/includes/class-yit-plugin-subpanel.php index 45979dc..ad4b1a8 100644 --- a/plugin-fw/includes/class-yit-plugin-subpanel.php +++ b/plugin-fw/includes/class-yit-plugin-subpanel.php @@ -117,19 +117,23 @@ public function yit_panel() { return; } - $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ); + $form_method = apply_filters( 'yit_admin_panel_form_method', 'POST', $current_tab ); + $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap', $current_tab ); ?>
    message(); ?>

    get_tab_title() ); ?>

    is_show_form() ) : ?> - +

     

    settings['parent'] . '_options' ); ?> + + +
    \n" -"POT-Creation-Date: 2022-04-02 10:27:44+00:00\n" +"POT-Creation-Date: 2022-05-30 07:17:45+00:00\n" "PO-Revision-Date: 2021-02-11 18:07:46+0000\n" "Language: el_GR\n" "MIME-Version: 1.0\n" @@ -13,7 +13,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:144 yit-functions.php:1979 +#: includes/class-yit-assets.php:144 yit-functions.php:2006 msgid "Confirm trash" msgstr "" @@ -23,12 +23,12 @@ msgstr "" #: includes/class-yit-assets.php:147 includes/class-yit-assets.php:151 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:1981 yit-functions.php:1999 +#: yit-functions.php:2008 yit-functions.php:2026 msgid "No" msgstr "Όχι" -#: includes/class-yit-assets.php:148 yit-functions.php:1997 -#: yit-functions.php:2125 +#: includes/class-yit-assets.php:148 yit-functions.php:2024 +#: yit-functions.php:2152 msgid "Confirm delete" msgstr "" @@ -36,8 +36,8 @@ msgstr "" msgid "Are you sure you want to delete the selected items?" msgstr "" -#: includes/class-yit-assets.php:149 yit-functions.php:1913 -#: yit-functions.php:2073 +#: includes/class-yit-assets.php:149 yit-functions.php:1940 +#: yit-functions.php:2100 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "" @@ -70,7 +70,7 @@ msgstr "Αξία χρώματος" msgid "There was an error with your request; please try again later." msgstr "" -#: includes/class-yit-plugin-panel-woocommerce.php:429 +#: includes/class-yit-plugin-panel-woocommerce.php:430 msgid "The changes you have made will be lost if you leave this page." msgstr "" "Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα." @@ -83,19 +83,19 @@ msgstr "Ρυθμίσεις Προσθέτου" msgid "Settings" msgstr "Ρυθμίσεις" -#: includes/class-yit-plugin-panel.php:454 -#: includes/class-yit-plugin-panel.php:457 +#: includes/class-yit-plugin-panel.php:455 +#: includes/class-yit-plugin-panel.php:458 msgid "How to install premium version" msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση" -#: includes/class-yit-plugin-panel.php:658 -#: includes/class-yit-plugin-subpanel.php:132 +#: includes/class-yit-plugin-panel.php:655 +#: includes/class-yit-plugin-subpanel.php:133 msgid "Save Changes" msgstr "Αποθήκευση Αλλαγών" #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "" "If you continue with this action, you will reset all options in this page." msgstr "" @@ -103,72 +103,72 @@ msgstr "" "σελίδα." #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "Are you sure?" msgstr "Είστε σίγουρος;" #: includes/class-yit-plugin-panel.php:667 -#: includes/class-yit-plugin-subpanel.php:139 +#: includes/class-yit-plugin-subpanel.php:143 msgid "Reset to default" msgstr "Επαναφορά σε προεπιλεγμένο" -#: includes/class-yit-plugin-panel.php:1047 +#: includes/class-yit-plugin-panel.php:1059 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα." -#: includes/class-yit-plugin-panel.php:1048 +#: includes/class-yit-plugin-panel.php:1060 msgid "Settings saved" msgstr "Ρυθμίσεις αποθηκεύτηκαν" -#: includes/class-yit-plugin-panel.php:1049 +#: includes/class-yit-plugin-panel.php:1061 msgid "Settings reset" msgstr "Επαναφορά ρυθμίσεων" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1062 msgid "Element deleted correctly." msgstr "Το στοιχείο διαγράφηκε επιτυχώς." -#: includes/class-yit-plugin-panel.php:1051 -#: includes/class-yit-plugin-panel.php:1052 +#: includes/class-yit-plugin-panel.php:1063 +#: includes/class-yit-plugin-panel.php:1064 msgid "Element updated correctly." msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς." -#: includes/class-yit-plugin-panel.php:1053 +#: includes/class-yit-plugin-panel.php:1065 msgid "Database imported correctly." msgstr "Επιτυχής εισαγωγή βάσης δεδομένων." -#: includes/class-yit-plugin-panel.php:1054 +#: includes/class-yit-plugin-panel.php:1066 msgid "An error has occurred during import. Please try again." msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά." -#: includes/class-yit-plugin-panel.php:1055 +#: includes/class-yit-plugin-panel.php:1067 msgid "The added file is not valid." msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο." -#: includes/class-yit-plugin-panel.php:1056 +#: includes/class-yit-plugin-panel.php:1068 msgid "Sorry, import is disabled." msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη." -#: includes/class-yit-plugin-panel.php:1057 +#: includes/class-yit-plugin-panel.php:1069 msgid "Sorting successful." msgstr "Διαλογή επιτυχής." -#: includes/class-yit-plugin-panel.php:1525 +#: includes/class-yit-plugin-panel.php:1558 msgid "We need your support" msgstr "Χρειαζόμαστε την υποστήριξή σας" -#: includes/class-yit-plugin-panel.php:1526 +#: includes/class-yit-plugin-panel.php:1559 msgid "to keep updating and improving the plugin. Please," msgstr "" "για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ," -#: includes/class-yit-plugin-panel.php:1528 +#: includes/class-yit-plugin-panel.php:1561 msgid "help us by leaving a good review" msgstr "" -#: includes/class-yit-plugin-panel.php:1529 +#: includes/class-yit-plugin-panel.php:1562 msgid ":) Thanks!" msgstr ":) Ευχαριστώ!" @@ -528,16 +528,16 @@ msgstr "Ανέβασμα" msgid "Reset" msgstr "Επαναφορά" -#: templates/panel/woocommerce/woocommerce-form.php:28 -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:29 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Save Options" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Options Saved" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:38 +#: templates/panel/woocommerce/woocommerce-form.php:43 msgid "Reset Defaults" msgstr "Επαναφορά Προεπιλεγμένων" @@ -665,20 +665,20 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "" #. translators: %s is the title of the post object. -#: yit-functions.php:1911 +#: yit-functions.php:1938 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "" #. translators: %s is the title of the post object. -#: yit-functions.php:1913 yit-functions.php:2073 +#: yit-functions.php:1940 yit-functions.php:2100 msgid "Are you sure you want to delete \"%s\"?" msgstr "" -#: yit-functions.php:2011 yit-functions.php:2019 yit-functions.php:2136 +#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 msgid "Further actions" msgstr "" -#: yit-plugin.php:205 +#: yit-plugin.php:213 msgid "License" msgstr "Άδεια χρήσης προϊόντος" @@ -707,22 +707,17 @@ msgctxt "Button text" msgid "Cancel" msgstr "" -#: includes/class-yit-assets.php:146 yit-functions.php:1982 +#: includes/class-yit-assets.php:146 yit-functions.php:2009 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "" -#: includes/class-yit-assets.php:150 yit-functions.php:2000 -#: yit-functions.php:2127 +#: includes/class-yit-assets.php:150 yit-functions.php:2027 +#: yit-functions.php:2154 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "" -#: includes/class-yit-plugin-panel.php:491 -msgctxt "Help tab name" -msgid "Help" -msgstr "" - #. translators: 1. Plugin name. #: includes/class-yit-plugin-panel.php:805 msgctxt "Help tab default title" @@ -740,6 +735,11 @@ msgctxt "Premium tab name" msgid "Get premium" msgstr "" +#: includes/class-yit-plugin-panel.php:865 +msgctxt "Help tab name" +msgid "Help" +msgstr "" + #: includes/class-yith-dashboard.php:96 msgctxt "Plugin FW" msgid "View Changelog" @@ -956,57 +956,57 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "" -#: yit-functions.php:1925 +#: yit-functions.php:1952 msgctxt "Post action" msgid "Preview" msgstr "" -#: yit-functions.php:1934 +#: yit-functions.php:1961 msgctxt "Post action" msgid "View" msgstr "" -#: yit-functions.php:1945 +#: yit-functions.php:1972 msgctxt "Post action" msgid "Edit" msgstr "" -#: yit-functions.php:1953 +#: yit-functions.php:1980 msgctxt "Post action" msgid "Duplicate" msgstr "" -#: yit-functions.php:1965 +#: yit-functions.php:1992 msgctxt "Post action" msgid "Restore" msgstr "" -#: yit-functions.php:1973 +#: yit-functions.php:2000 msgctxt "Post action" msgid "Trash" msgstr "" -#: yit-functions.php:1990 +#: yit-functions.php:2017 msgctxt "Post action" msgid "Delete Permanently" msgstr "" -#: yit-functions.php:2087 +#: yit-functions.php:2114 msgctxt "Term action" msgid "View" msgstr "" -#: yit-functions.php:2097 +#: yit-functions.php:2124 msgctxt "Term action" msgid "Edit" msgstr "" -#: yit-functions.php:2105 +#: yit-functions.php:2132 msgctxt "Term action" msgid "Duplicate" msgstr "" -#: yit-functions.php:2118 +#: yit-functions.php:2145 msgctxt "Term action" msgid "Delete" msgstr "" @@ -1031,7 +1031,7 @@ msgctxt "Plugin Row Meta" msgid "Premium version" msgstr "Premium έκδοση" -#: yit-plugin.php:201 +#: yit-plugin.php:209 msgctxt "Action links" msgid "Settings" msgstr "Ρυθμίσεις" diff --git a/plugin-fw/languages/yith-plugin-fw-es_ES.po b/plugin-fw/languages/yith-plugin-fw-es_ES.po index 1898845..20b3230 100644 --- a/plugin-fw/languages/yith-plugin-fw-es_ES.po +++ b/plugin-fw/languages/yith-plugin-fw-es_ES.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2022-04-02 10:27:44+00:00\n" +"POT-Creation-Date: 2022-05-30 07:17:45+00:00\n" "PO-Revision-Date: 2022-03-21 12:58:47+0000\n" "Language: es\n" "MIME-Version: 1.0\n" @@ -13,7 +13,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:144 yit-functions.php:1979 +#: includes/class-yit-assets.php:144 yit-functions.php:2006 msgid "Confirm trash" msgstr "Confirmar el traslado a la papelera" @@ -24,12 +24,12 @@ msgstr "" #: includes/class-yit-assets.php:147 includes/class-yit-assets.php:151 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:1981 yit-functions.php:1999 +#: yit-functions.php:2008 yit-functions.php:2026 msgid "No" msgstr "No" -#: includes/class-yit-assets.php:148 yit-functions.php:1997 -#: yit-functions.php:2125 +#: includes/class-yit-assets.php:148 yit-functions.php:2024 +#: yit-functions.php:2152 msgid "Confirm delete" msgstr "Confirmar el borrado" @@ -37,8 +37,8 @@ msgstr "Confirmar el borrado" msgid "Are you sure you want to delete the selected items?" msgstr "¿Estás seguro de que quieres borrar los elementos seleccionados?" -#: includes/class-yit-assets.php:149 yit-functions.php:1913 -#: yit-functions.php:2073 +#: includes/class-yit-assets.php:149 yit-functions.php:1940 +#: yit-functions.php:2100 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "Esta acción no se puede revertir y no podrá recuperar estos datos." @@ -72,7 +72,7 @@ msgid "There was an error with your request; please try again later." msgstr "" "Se ha producido un error en tu solicitud; inténtalo de nuevo más tarde." -#: includes/class-yit-plugin-panel-woocommerce.php:429 +#: includes/class-yit-plugin-panel-woocommerce.php:430 msgid "The changes you have made will be lost if you leave this page." msgstr "Los cambios que has hecho se perderán si abandonas esta página." @@ -84,19 +84,19 @@ msgstr "Ajustes del plugin" msgid "Settings" msgstr "Ajustes" -#: includes/class-yit-plugin-panel.php:454 -#: includes/class-yit-plugin-panel.php:457 +#: includes/class-yit-plugin-panel.php:455 +#: includes/class-yit-plugin-panel.php:458 msgid "How to install premium version" msgstr "Cómo instalar la versión premium" -#: includes/class-yit-plugin-panel.php:658 -#: includes/class-yit-plugin-subpanel.php:132 +#: includes/class-yit-plugin-panel.php:655 +#: includes/class-yit-plugin-subpanel.php:133 msgid "Save Changes" msgstr "Guardar cambios" #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "" "If you continue with this action, you will reset all options in this page." msgstr "" @@ -104,73 +104,73 @@ msgstr "" "página." #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "Are you sure?" msgstr "¿Estás seguro?" #: includes/class-yit-plugin-panel.php:667 -#: includes/class-yit-plugin-subpanel.php:139 +#: includes/class-yit-plugin-subpanel.php:143 msgid "Reset to default" msgstr "Restablecer valores predeterminados" -#: includes/class-yit-plugin-panel.php:1047 +#: includes/class-yit-plugin-panel.php:1059 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "" "El elemento que has introducido ya existe. Por favor, introduce otro nombre." -#: includes/class-yit-plugin-panel.php:1048 +#: includes/class-yit-plugin-panel.php:1060 msgid "Settings saved" msgstr "Ajustes guardados" -#: includes/class-yit-plugin-panel.php:1049 +#: includes/class-yit-plugin-panel.php:1061 msgid "Settings reset" msgstr "Restablecer ajustes" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1062 msgid "Element deleted correctly." msgstr "Elemento eliminado correctamente." -#: includes/class-yit-plugin-panel.php:1051 -#: includes/class-yit-plugin-panel.php:1052 +#: includes/class-yit-plugin-panel.php:1063 +#: includes/class-yit-plugin-panel.php:1064 msgid "Element updated correctly." msgstr "Elemento actualizado correctamente." -#: includes/class-yit-plugin-panel.php:1053 +#: includes/class-yit-plugin-panel.php:1065 msgid "Database imported correctly." msgstr "Base de datos importada correctamente." -#: includes/class-yit-plugin-panel.php:1054 +#: includes/class-yit-plugin-panel.php:1066 msgid "An error has occurred during import. Please try again." msgstr "" "Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo." -#: includes/class-yit-plugin-panel.php:1055 +#: includes/class-yit-plugin-panel.php:1067 msgid "The added file is not valid." msgstr "El archivo añadido no es válido." -#: includes/class-yit-plugin-panel.php:1056 +#: includes/class-yit-plugin-panel.php:1068 msgid "Sorry, import is disabled." msgstr "Lo siento, la importación está desactivada." -#: includes/class-yit-plugin-panel.php:1057 +#: includes/class-yit-plugin-panel.php:1069 msgid "Sorting successful." msgstr "Clasificación realizada con éxito" -#: includes/class-yit-plugin-panel.php:1525 +#: includes/class-yit-plugin-panel.php:1558 msgid "We need your support" msgstr "Necesitamos tu apoyo" -#: includes/class-yit-plugin-panel.php:1526 +#: includes/class-yit-plugin-panel.php:1559 msgid "to keep updating and improving the plugin. Please," msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor," -#: includes/class-yit-plugin-panel.php:1528 +#: includes/class-yit-plugin-panel.php:1561 msgid "help us by leaving a good review" msgstr "ayúdanos dejando una buena valoración" -#: includes/class-yit-plugin-panel.php:1529 +#: includes/class-yit-plugin-panel.php:1562 msgid ":) Thanks!" msgstr ":) ¡Gracias!" @@ -537,16 +537,16 @@ msgstr "Subir" msgid "Reset" msgstr "Restablecer" -#: templates/panel/woocommerce/woocommerce-form.php:28 -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:29 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Save Options" msgstr "Guardar Opciones" -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Options Saved" msgstr "Opciones guardadas" -#: templates/panel/woocommerce/woocommerce-form.php:38 +#: templates/panel/woocommerce/woocommerce-form.php:43 msgid "Reset Defaults" msgstr "Restablecer valores predeterminados" @@ -673,20 +673,20 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "Datos: %1$.2fMB | Índice: %2$.2fMB | Libre: %3$.2fMB | Motor: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1911 +#: yit-functions.php:1938 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "¿Estás seguro de que quieres mover \"%s\" a la papelera?" #. translators: %s is the title of the post object. -#: yit-functions.php:1913 yit-functions.php:2073 +#: yit-functions.php:1940 yit-functions.php:2100 msgid "Are you sure you want to delete \"%s\"?" msgstr "¿Estás seguro de que quieres borrar \"%s\"?" -#: yit-functions.php:2011 yit-functions.php:2019 yit-functions.php:2136 +#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 msgid "Further actions" msgstr "Otras acciones" -#: yit-plugin.php:205 +#: yit-plugin.php:213 msgid "License" msgstr "Licencia" @@ -715,22 +715,17 @@ msgctxt "Button text" msgid "Cancel" msgstr "Cancelar" -#: includes/class-yit-assets.php:146 yit-functions.php:1982 +#: includes/class-yit-assets.php:146 yit-functions.php:2009 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "Sí, mover a la papelera" -#: includes/class-yit-assets.php:150 yit-functions.php:2000 -#: yit-functions.php:2127 +#: includes/class-yit-assets.php:150 yit-functions.php:2027 +#: yit-functions.php:2154 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "Si, borrar" -#: includes/class-yit-plugin-panel.php:491 -msgctxt "Help tab name" -msgid "Help" -msgstr "Ayuda" - #. translators: 1. Plugin name. #: includes/class-yit-plugin-panel.php:805 msgctxt "Help tab default title" @@ -750,6 +745,11 @@ msgctxt "Premium tab name" msgid "Get premium" msgstr "Obtén premium" +#: includes/class-yit-plugin-panel.php:865 +msgctxt "Help tab name" +msgid "Help" +msgstr "Ayuda" + #: includes/class-yith-dashboard.php:96 msgctxt "Plugin FW" msgid "View Changelog" @@ -969,57 +969,57 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "Obtén la versión Premium" -#: yit-functions.php:1925 +#: yit-functions.php:1952 msgctxt "Post action" msgid "Preview" msgstr "Previsualizar" -#: yit-functions.php:1934 +#: yit-functions.php:1961 msgctxt "Post action" msgid "View" msgstr "Ver" -#: yit-functions.php:1945 +#: yit-functions.php:1972 msgctxt "Post action" msgid "Edit" msgstr "Editar" -#: yit-functions.php:1953 +#: yit-functions.php:1980 msgctxt "Post action" msgid "Duplicate" msgstr "Duplicar" -#: yit-functions.php:1965 +#: yit-functions.php:1992 msgctxt "Post action" msgid "Restore" msgstr "Restaurar" -#: yit-functions.php:1973 +#: yit-functions.php:2000 msgctxt "Post action" msgid "Trash" msgstr "A la papelera" -#: yit-functions.php:1990 +#: yit-functions.php:2017 msgctxt "Post action" msgid "Delete Permanently" msgstr "Borrar permanentemente" -#: yit-functions.php:2087 +#: yit-functions.php:2114 msgctxt "Term action" msgid "View" msgstr "Ver" -#: yit-functions.php:2097 +#: yit-functions.php:2124 msgctxt "Term action" msgid "Edit" msgstr "Editar" -#: yit-functions.php:2105 +#: yit-functions.php:2132 msgctxt "Term action" msgid "Duplicate" msgstr "Duplicar" -#: yit-functions.php:2118 +#: yit-functions.php:2145 msgctxt "Term action" msgid "Delete" msgstr "Borrar" @@ -1044,7 +1044,7 @@ msgctxt "Plugin Row Meta" msgid "Premium version" msgstr "Versión premium" -#: yit-plugin.php:201 +#: yit-plugin.php:209 msgctxt "Action links" msgid "Settings" msgstr "Ajustes" diff --git a/plugin-fw/languages/yith-plugin-fw-it_IT.po b/plugin-fw/languages/yith-plugin-fw-it_IT.po index 1742a0e..bf6809b 100644 --- a/plugin-fw/languages/yith-plugin-fw-it_IT.po +++ b/plugin-fw/languages/yith-plugin-fw-it_IT.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2022-04-02 10:27:44+00:00\n" +"POT-Creation-Date: 2022-05-30 07:17:45+00:00\n" "PO-Revision-Date: 2022-03-21 13:01:47+0000\n" "Language: it\n" "MIME-Version: 1.0\n" @@ -13,7 +13,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:144 yit-functions.php:1979 +#: includes/class-yit-assets.php:144 yit-functions.php:2006 msgid "Confirm trash" msgstr "Conferma eliminazione" @@ -23,12 +23,12 @@ msgstr "Se sicuro di voler spostare nel cestino gli elementi selezionati?" #: includes/class-yit-assets.php:147 includes/class-yit-assets.php:151 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:1981 yit-functions.php:1999 +#: yit-functions.php:2008 yit-functions.php:2026 msgid "No" msgstr "No" -#: includes/class-yit-assets.php:148 yit-functions.php:1997 -#: yit-functions.php:2125 +#: includes/class-yit-assets.php:148 yit-functions.php:2024 +#: yit-functions.php:2152 msgid "Confirm delete" msgstr "Conferma eliminazione" @@ -36,8 +36,8 @@ msgstr "Conferma eliminazione" msgid "Are you sure you want to delete the selected items?" msgstr "Se sicuro di voler eliminare gli elementi selezionati?" -#: includes/class-yit-assets.php:149 yit-functions.php:1913 -#: yit-functions.php:2073 +#: includes/class-yit-assets.php:149 yit-functions.php:1940 +#: yit-functions.php:2100 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "" @@ -72,7 +72,7 @@ msgstr "Valore del colore" msgid "There was an error with your request; please try again later." msgstr "Si è verificato un errore con la tua richiesta. Riprova più tardi." -#: includes/class-yit-plugin-panel-woocommerce.php:429 +#: includes/class-yit-plugin-panel-woocommerce.php:430 msgid "The changes you have made will be lost if you leave this page." msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina." @@ -84,19 +84,19 @@ msgstr "Impostazioni plugin" msgid "Settings" msgstr "Impostazioni" -#: includes/class-yit-plugin-panel.php:454 -#: includes/class-yit-plugin-panel.php:457 +#: includes/class-yit-plugin-panel.php:455 +#: includes/class-yit-plugin-panel.php:458 msgid "How to install premium version" msgstr "Come installare la versione premium" -#: includes/class-yit-plugin-panel.php:658 -#: includes/class-yit-plugin-subpanel.php:132 +#: includes/class-yit-plugin-panel.php:655 +#: includes/class-yit-plugin-subpanel.php:133 msgid "Save Changes" msgstr "Salva modifiche" #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "" "If you continue with this action, you will reset all options in this page." msgstr "" @@ -104,71 +104,71 @@ msgstr "" "reimpostate." #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "Are you sure?" msgstr "Sei sicuro?" #: includes/class-yit-plugin-panel.php:667 -#: includes/class-yit-plugin-subpanel.php:139 +#: includes/class-yit-plugin-subpanel.php:143 msgid "Reset to default" msgstr "Ripristina configurazione predefinita" -#: includes/class-yit-plugin-panel.php:1047 +#: includes/class-yit-plugin-panel.php:1059 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome." -#: includes/class-yit-plugin-panel.php:1048 +#: includes/class-yit-plugin-panel.php:1060 msgid "Settings saved" msgstr "Impostazioni salvate" -#: includes/class-yit-plugin-panel.php:1049 +#: includes/class-yit-plugin-panel.php:1061 msgid "Settings reset" msgstr "Impostazioni azzerate" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1062 msgid "Element deleted correctly." msgstr "Elemento rimosso correttamente." -#: includes/class-yit-plugin-panel.php:1051 -#: includes/class-yit-plugin-panel.php:1052 +#: includes/class-yit-plugin-panel.php:1063 +#: includes/class-yit-plugin-panel.php:1064 msgid "Element updated correctly." msgstr "Elemento aggiornato correttamente." -#: includes/class-yit-plugin-panel.php:1053 +#: includes/class-yit-plugin-panel.php:1065 msgid "Database imported correctly." msgstr "Database importato correttamente." -#: includes/class-yit-plugin-panel.php:1054 +#: includes/class-yit-plugin-panel.php:1066 msgid "An error has occurred during import. Please try again." msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo." -#: includes/class-yit-plugin-panel.php:1055 +#: includes/class-yit-plugin-panel.php:1067 msgid "The added file is not valid." msgstr "Il file aggiunto non è valido." -#: includes/class-yit-plugin-panel.php:1056 +#: includes/class-yit-plugin-panel.php:1068 msgid "Sorry, import is disabled." msgstr "Ci dispiace, l'importazione è disabilitata." -#: includes/class-yit-plugin-panel.php:1057 +#: includes/class-yit-plugin-panel.php:1069 msgid "Sorting successful." msgstr "Ordinamento effettuato con successo." -#: includes/class-yit-plugin-panel.php:1525 +#: includes/class-yit-plugin-panel.php:1558 msgid "We need your support" msgstr "Abbiamo bisogno del tuo sostegno" -#: includes/class-yit-plugin-panel.php:1526 +#: includes/class-yit-plugin-panel.php:1559 msgid "to keep updating and improving the plugin. Please," msgstr "per poter continuare ad aggiornare e migliorare il plugin." -#: includes/class-yit-plugin-panel.php:1528 +#: includes/class-yit-plugin-panel.php:1561 msgid "help us by leaving a good review" msgstr "Puoi darci una mano lasciando una recensione positiva" -#: includes/class-yit-plugin-panel.php:1529 +#: includes/class-yit-plugin-panel.php:1562 msgid ":) Thanks!" msgstr ":) Grazie!" @@ -535,16 +535,16 @@ msgstr "Carica" msgid "Reset" msgstr "Ripristina" -#: templates/panel/woocommerce/woocommerce-form.php:28 -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:29 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Save Options" msgstr "Salva le opzioni" -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Options Saved" msgstr "Opzioni salvate" -#: templates/panel/woocommerce/woocommerce-form.php:38 +#: templates/panel/woocommerce/woocommerce-form.php:43 msgid "Reset Defaults" msgstr "Ripristina impostazioni iniziali" @@ -673,20 +673,20 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "Dati: %1$.2fMB | Indice: %2$.2fMB | Libero: %3$.2fMB | Engine: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1911 +#: yit-functions.php:1938 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "Sei sicuro di voler spostare \"%s\" nel cestino?" #. translators: %s is the title of the post object. -#: yit-functions.php:1913 yit-functions.php:2073 +#: yit-functions.php:1940 yit-functions.php:2100 msgid "Are you sure you want to delete \"%s\"?" msgstr "Sei sicuro di voler eliminare \"%s\"?" -#: yit-functions.php:2011 yit-functions.php:2019 yit-functions.php:2136 +#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 msgid "Further actions" msgstr "Altre azioni" -#: yit-plugin.php:205 +#: yit-plugin.php:213 msgid "License" msgstr "Chiave di licenza" @@ -715,22 +715,17 @@ msgctxt "Button text" msgid "Cancel" msgstr "Annulla" -#: includes/class-yit-assets.php:146 yit-functions.php:1982 +#: includes/class-yit-assets.php:146 yit-functions.php:2009 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "Sì, sposta nel cestino" -#: includes/class-yit-assets.php:150 yit-functions.php:2000 -#: yit-functions.php:2127 +#: includes/class-yit-assets.php:150 yit-functions.php:2027 +#: yit-functions.php:2154 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "Sì, elimina" -#: includes/class-yit-plugin-panel.php:491 -msgctxt "Help tab name" -msgid "Help" -msgstr "Help" - #. translators: 1. Plugin name. #: includes/class-yit-plugin-panel.php:805 msgctxt "Help tab default title" @@ -750,6 +745,11 @@ msgctxt "Premium tab name" msgid "Get premium" msgstr "Diventa premium" +#: includes/class-yit-plugin-panel.php:865 +msgctxt "Help tab name" +msgid "Help" +msgstr "Help" + #: includes/class-yith-dashboard.php:96 msgctxt "Plugin FW" msgid "View Changelog" @@ -970,57 +970,57 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "Ottieni la versione premium" -#: yit-functions.php:1925 +#: yit-functions.php:1952 msgctxt "Post action" msgid "Preview" msgstr "Anteprima" -#: yit-functions.php:1934 +#: yit-functions.php:1961 msgctxt "Post action" msgid "View" msgstr "Visualizza" -#: yit-functions.php:1945 +#: yit-functions.php:1972 msgctxt "Post action" msgid "Edit" msgstr "Modifica" -#: yit-functions.php:1953 +#: yit-functions.php:1980 msgctxt "Post action" msgid "Duplicate" msgstr "Duplica" -#: yit-functions.php:1965 +#: yit-functions.php:1992 msgctxt "Post action" msgid "Restore" msgstr "Ripristina" -#: yit-functions.php:1973 +#: yit-functions.php:2000 msgctxt "Post action" msgid "Trash" msgstr "Cestina" -#: yit-functions.php:1990 +#: yit-functions.php:2017 msgctxt "Post action" msgid "Delete Permanently" msgstr "Cancella definitivamente" -#: yit-functions.php:2087 +#: yit-functions.php:2114 msgctxt "Term action" msgid "View" msgstr "Visualizza" -#: yit-functions.php:2097 +#: yit-functions.php:2124 msgctxt "Term action" msgid "Edit" msgstr "Modifica" -#: yit-functions.php:2105 +#: yit-functions.php:2132 msgctxt "Term action" msgid "Duplicate" msgstr "Duplica" -#: yit-functions.php:2118 +#: yit-functions.php:2145 msgctxt "Term action" msgid "Delete" msgstr "Elimina" @@ -1045,7 +1045,7 @@ msgctxt "Plugin Row Meta" msgid "Premium version" msgstr "Versione premium" -#: yit-plugin.php:201 +#: yit-plugin.php:209 msgctxt "Action links" msgid "Settings" msgstr "Impostazioni" diff --git a/plugin-fw/languages/yith-plugin-fw-nl_NL.po b/plugin-fw/languages/yith-plugin-fw-nl_NL.po index fbaba8c..a713b31 100644 --- a/plugin-fw/languages/yith-plugin-fw-nl_NL.po +++ b/plugin-fw/languages/yith-plugin-fw-nl_NL.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2022-04-02 10:27:44+00:00\n" +"POT-Creation-Date: 2022-05-30 07:17:45+00:00\n" "PO-Revision-Date: 2021-12-13 12:45:02+0000\n" "Language: nl\n" "MIME-Version: 1.0\n" @@ -13,7 +13,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:144 yit-functions.php:1979 +#: includes/class-yit-assets.php:144 yit-functions.php:2006 msgid "Confirm trash" msgstr "Verplaatsen naar prullenbak bevestigen" @@ -25,12 +25,12 @@ msgstr "" #: includes/class-yit-assets.php:147 includes/class-yit-assets.php:151 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:1981 yit-functions.php:1999 +#: yit-functions.php:2008 yit-functions.php:2026 msgid "No" msgstr "Nee" -#: includes/class-yit-assets.php:148 yit-functions.php:1997 -#: yit-functions.php:2125 +#: includes/class-yit-assets.php:148 yit-functions.php:2024 +#: yit-functions.php:2152 msgid "Confirm delete" msgstr "Verwijderen bevestigen" @@ -38,8 +38,8 @@ msgstr "Verwijderen bevestigen" msgid "Are you sure you want to delete the selected items?" msgstr "Weet je zeker dat je de geselecteerde items wilt verwijderen?" -#: includes/class-yit-assets.php:149 yit-functions.php:1913 -#: yit-functions.php:2073 +#: includes/class-yit-assets.php:149 yit-functions.php:1940 +#: yit-functions.php:2100 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "" @@ -75,7 +75,7 @@ msgid "There was an error with your request; please try again later." msgstr "" "Er is een fout opgetreden met je verzoek, probeer het later opnieuw a.u.b." -#: includes/class-yit-plugin-panel-woocommerce.php:429 +#: includes/class-yit-plugin-panel-woocommerce.php:430 msgid "The changes you have made will be lost if you leave this page." msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan." @@ -87,90 +87,90 @@ msgstr "Plugin instellingen" msgid "Settings" msgstr "Instellingen" -#: includes/class-yit-plugin-panel.php:454 -#: includes/class-yit-plugin-panel.php:457 +#: includes/class-yit-plugin-panel.php:455 +#: includes/class-yit-plugin-panel.php:458 msgid "How to install premium version" msgstr "Hoe installeer ik de premium versie" -#: includes/class-yit-plugin-panel.php:658 -#: includes/class-yit-plugin-subpanel.php:132 +#: includes/class-yit-plugin-panel.php:655 +#: includes/class-yit-plugin-subpanel.php:133 msgid "Save Changes" msgstr "Wijzigingen opslaan" #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "" "If you continue with this action, you will reset all options in this page." msgstr "" "Als je doorgaat met deze actie, zal je alle opties op deze pagina resetten." #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "Are you sure?" msgstr "Weet je het zeker?" #: includes/class-yit-plugin-panel.php:667 -#: includes/class-yit-plugin-subpanel.php:139 +#: includes/class-yit-plugin-subpanel.php:143 msgid "Reset to default" msgstr "Resetten naar standaard" -#: includes/class-yit-plugin-panel.php:1047 +#: includes/class-yit-plugin-panel.php:1059 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "Het element dat je hebt ingevoerd bestaat al. Voer een andere naam in." -#: includes/class-yit-plugin-panel.php:1048 +#: includes/class-yit-plugin-panel.php:1060 msgid "Settings saved" msgstr "Instellingen opgeslagen" -#: includes/class-yit-plugin-panel.php:1049 +#: includes/class-yit-plugin-panel.php:1061 msgid "Settings reset" msgstr "Instellingen resetten" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1062 msgid "Element deleted correctly." msgstr "Element juist verwijderd." -#: includes/class-yit-plugin-panel.php:1051 -#: includes/class-yit-plugin-panel.php:1052 +#: includes/class-yit-plugin-panel.php:1063 +#: includes/class-yit-plugin-panel.php:1064 msgid "Element updated correctly." msgstr "Element juist geüpdatet." -#: includes/class-yit-plugin-panel.php:1053 +#: includes/class-yit-plugin-panel.php:1065 msgid "Database imported correctly." msgstr "Database juist geïmporteerd." -#: includes/class-yit-plugin-panel.php:1054 +#: includes/class-yit-plugin-panel.php:1066 msgid "An error has occurred during import. Please try again." msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw." -#: includes/class-yit-plugin-panel.php:1055 +#: includes/class-yit-plugin-panel.php:1067 msgid "The added file is not valid." msgstr "Het toegevoegde bestand is niet geldig." -#: includes/class-yit-plugin-panel.php:1056 +#: includes/class-yit-plugin-panel.php:1068 msgid "Sorry, import is disabled." msgstr "Sorry, importeren is uitgeschakeld." -#: includes/class-yit-plugin-panel.php:1057 +#: includes/class-yit-plugin-panel.php:1069 msgid "Sorting successful." msgstr "Succesvol gesorteerd." -#: includes/class-yit-plugin-panel.php:1525 +#: includes/class-yit-plugin-panel.php:1558 msgid "We need your support" msgstr "We hebben je hulp nodig" -#: includes/class-yit-plugin-panel.php:1526 +#: includes/class-yit-plugin-panel.php:1559 msgid "to keep updating and improving the plugin. Please," msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.," -#: includes/class-yit-plugin-panel.php:1528 +#: includes/class-yit-plugin-panel.php:1561 msgid "help us by leaving a good review" msgstr "help ons door een goede beoordeling achter te laten" -#: includes/class-yit-plugin-panel.php:1529 +#: includes/class-yit-plugin-panel.php:1562 msgid ":) Thanks!" msgstr ":) Bedankt!" @@ -536,16 +536,16 @@ msgstr "Upload" msgid "Reset" msgstr "Resetten" -#: templates/panel/woocommerce/woocommerce-form.php:28 -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:29 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Save Options" msgstr "Opties opslaan" -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Options Saved" msgstr "Opties opgeslagen" -#: templates/panel/woocommerce/woocommerce-form.php:38 +#: templates/panel/woocommerce/woocommerce-form.php:43 msgid "Reset Defaults" msgstr "Reset Standaard instellingen" @@ -673,20 +673,20 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1911 +#: yit-functions.php:1938 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "Weet je zeker dat je \"%s\" naar de prullenbak wilt verplaatsen?" #. translators: %s is the title of the post object. -#: yit-functions.php:1913 yit-functions.php:2073 +#: yit-functions.php:1940 yit-functions.php:2100 msgid "Are you sure you want to delete \"%s\"?" msgstr "Weet je zeker dat je \"%s\" wilt verwijderen?" -#: yit-functions.php:2011 yit-functions.php:2019 yit-functions.php:2136 +#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 msgid "Further actions" msgstr "Verdere acties" -#: yit-plugin.php:205 +#: yit-plugin.php:213 msgid "License" msgstr "Licentie" @@ -715,22 +715,17 @@ msgctxt "Button text" msgid "Cancel" msgstr "Annuleren" -#: includes/class-yit-assets.php:146 yit-functions.php:1982 +#: includes/class-yit-assets.php:146 yit-functions.php:2009 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "Ja, verplaatsen naar prullenbak" -#: includes/class-yit-assets.php:150 yit-functions.php:2000 -#: yit-functions.php:2127 +#: includes/class-yit-assets.php:150 yit-functions.php:2027 +#: yit-functions.php:2154 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "Ja, verwijderen" -#: includes/class-yit-plugin-panel.php:491 -msgctxt "Help tab name" -msgid "Help" -msgstr "Help" - #. translators: 1. Plugin name. #: includes/class-yit-plugin-panel.php:805 msgctxt "Help tab default title" @@ -748,6 +743,11 @@ msgctxt "Premium tab name" msgid "Get premium" msgstr "Neem premium" +#: includes/class-yit-plugin-panel.php:865 +msgctxt "Help tab name" +msgid "Help" +msgstr "Help" + #: includes/class-yith-dashboard.php:96 msgctxt "Plugin FW" msgid "View Changelog" @@ -964,57 +964,57 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "Krijg de premium versie" -#: yit-functions.php:1925 +#: yit-functions.php:1952 msgctxt "Post action" msgid "Preview" msgstr "Voorbeeld" -#: yit-functions.php:1934 +#: yit-functions.php:1961 msgctxt "Post action" msgid "View" msgstr "Bekijken" -#: yit-functions.php:1945 +#: yit-functions.php:1972 msgctxt "Post action" msgid "Edit" msgstr "Bewerken" -#: yit-functions.php:1953 +#: yit-functions.php:1980 msgctxt "Post action" msgid "Duplicate" msgstr "Dupliceren" -#: yit-functions.php:1965 +#: yit-functions.php:1992 msgctxt "Post action" msgid "Restore" msgstr "Herstellen" -#: yit-functions.php:1973 +#: yit-functions.php:2000 msgctxt "Post action" msgid "Trash" msgstr "Prullenbak" -#: yit-functions.php:1990 +#: yit-functions.php:2017 msgctxt "Post action" msgid "Delete Permanently" msgstr "Permanent verijwderen" -#: yit-functions.php:2087 +#: yit-functions.php:2114 msgctxt "Term action" msgid "View" msgstr "Bekijken" -#: yit-functions.php:2097 +#: yit-functions.php:2124 msgctxt "Term action" msgid "Edit" msgstr "Bewerken" -#: yit-functions.php:2105 +#: yit-functions.php:2132 msgctxt "Term action" msgid "Duplicate" msgstr "Dupliceren" -#: yit-functions.php:2118 +#: yit-functions.php:2145 msgctxt "Term action" msgid "Delete" msgstr "Verwijderen" @@ -1039,7 +1039,7 @@ msgctxt "Plugin Row Meta" msgid "Premium version" msgstr "Premium versie" -#: yit-plugin.php:201 +#: yit-plugin.php:209 msgctxt "Action links" msgid "Settings" msgstr "Instellingen" diff --git a/plugin-fw/languages/yith-plugin-fw-ru_RU.mo b/plugin-fw/languages/yith-plugin-fw-ru_RU.mo new file mode 100644 index 0000000000000000000000000000000000000000..429f49738d2ddfc9bae38cf64d7c2a8308491626 GIT binary patch literal 23587 zcmc(ndyrh!edn*ufP;*|U~GtAIT8pYqZy=;u;md#NTVl~#2^U-b{x{veP^aoPv3Fh zZb?Hh5fTp*$p|nQFGgS)8$ULfK}bjlNyNz-hfVD5-rCwNS7O)x;p`@UY!+8)H_xs8 ze1GTMe$0#rWGl5@I`i#&?|J;*zu!51;U^b#JsR=(A?<^-eP>0{d*2pC|9Fn>M$y3e zQS|HJ4d6xKHgF!e2Xx>BI0I~e?*;!HdiKQp zwO|DleJ=!j6%>6x0=3>RLCOCgK#jW?p^0t>qLOFaE>i-ld{=N-f z3H~YgG4LP3Yr#bb>kMaLlcJ@7&Ba_}aY7k_txn(yo282DrG z!{EjbdA>)%>$tuh{0;DXApfGj;E&{a2Ax?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MqFi_a!0h5MF(~wOE-}A#TEiP7t>Ie9E6~Fdc_l;k;R5Q<>?v zk}^M1j$%&slb8ieSy0nl5P%OD!3gEqW{AwyQ5yLJV=pvCUn|GdRZXGFSN`7U{HtA^ zdu-Ex_7afH*GSJ^%u(pfj(2<-nd~rL+F5lQWNYP!bgc7Qd4RP4LN_#NH}0b#$48Tpp*`YA_B=uc|5S)oav*3YMWMNv{#2> zhkZi_QbY5dkxuKNl(ILlwZX@wbOvZHd{^TEJZZvA!rKb=O$~LrBSz1ej|d%s)P7ye zmbYJLg)>EZ~lET+kL4R=s1t`l2yrg)HY18?xSGlW?6)j zQ=%z33sK1=gh(Y|iMTV9`W=hb(tX=#nYp)BWy;J;}Er;dmqJ6(jM)3(KvwTtIBNkc6KcnoCaVV-V zAv2knjv>^?;CNDqeT)uz|1fxMv~|jB?3M@>qb)Jjk8p${+sD0mH30Q8KJyn@Ckwa# zY%$UPa=VghE91BQ;2G7Qvs&epYo41nLl=_DmHF0)i+{vEP1%mr=8& z9|$kU+Z*xqgY^@ec#_i`` z-l*3938VR%H~~Syi~I@o%}vfUQD2WIZG^)b7rw`3nqwcXc`7-84h#=Um7`WX`I)&7_xFx3hEUfVgq JX-bpm{{l^Y6#@VN literal 0 HcmV?d00001 diff --git a/plugin-fw/languages/yith-plugin-fw-ru_RU.po b/plugin-fw/languages/yith-plugin-fw-ru_RU.po new file mode 100644 index 0000000..c3a0c8d --- /dev/null +++ b/plugin-fw/languages/yith-plugin-fw-ru_RU.po @@ -0,0 +1,1050 @@ +# Translation of YITH Framework in Russian +# This file is distributed under the same license as the YITH Framework package. +msgid "" +msgstr "" +"Project-Id-Version: YITH Framework\n" +"Report-Msgid-Bugs-To: YITH \n" +"POT-Creation-Date: 2022-05-30 07:17:45+00:00\n" +"PO-Revision-Date: 2022-04-05 17:22:32+0000\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % " +"10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);\n" +"X-Generator: GlotPress/3.0.0-alpha.2\n" + +#: includes/class-yit-assets.php:144 yit-functions.php:2006 +msgid "Confirm trash" +msgstr "Подтвердить корзину" + +#: includes/class-yit-assets.php:145 +msgid "Are you sure you want to trash the selected items?" +msgstr "Вы уверены, что хотите переместить в корзину выбранные элементы?" + +#: includes/class-yit-assets.php:147 includes/class-yit-assets.php:151 +#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 +#: yit-functions.php:2008 yit-functions.php:2026 +msgid "No" +msgstr "Нет" + +#: includes/class-yit-assets.php:148 yit-functions.php:2024 +#: yit-functions.php:2152 +msgid "Confirm delete" +msgstr "Подтвердите удаление" + +#: includes/class-yit-assets.php:149 +msgid "Are you sure you want to delete the selected items?" +msgstr "Вы уверены, что хотите удалить выбранные элементы?" + +#: includes/class-yit-assets.php:149 yit-functions.php:1940 +#: yit-functions.php:2100 +msgid "" +"This action cannot be undone and you will not be able to recover this data." +msgstr "Это действие нельзя отменить, и вы не сможете восстановить эти данные." + +#: includes/class-yit-assets.php:162 +msgid "Clear" +msgstr "Очистить" + +#: includes/class-yit-assets.php:163 +msgid "Clear color" +msgstr "Очистить цвет" + +#: includes/class-yit-assets.php:164 +msgid "Default" +msgstr "По умолчанию" + +#: includes/class-yit-assets.php:165 +msgid "Select default color" +msgstr "Выберите цвет по умолчанию" + +#: includes/class-yit-assets.php:166 +msgid "Select Color" +msgstr "Выберите цвет" + +#: includes/class-yit-assets.php:167 +msgid "Color value" +msgstr "Цвет значения" + +#: includes/class-yit-help-desk.php:152 +msgid "There was an error with your request; please try again later." +msgstr "" +"При выполнении вашего запроса произошла ошибка; пожалуйста, повторите " +"попытку позже." + +#: includes/class-yit-plugin-panel-woocommerce.php:430 +msgid "The changes you have made will be lost if you leave this page." +msgstr "" +"Внесенные вами изменения будут потеряны, если вы покинете эту страницу." + +#: includes/class-yit-plugin-panel.php:83 +msgid "Plugin Settings" +msgstr "Настройки Плагина" + +#: includes/class-yit-plugin-panel.php:84 +msgid "Settings" +msgstr "Настройки" + +#: includes/class-yit-plugin-panel.php:455 +#: includes/class-yit-plugin-panel.php:458 +msgid "How to install premium version" +msgstr "Как установить премиум версию" + +#: includes/class-yit-plugin-panel.php:655 +#: includes/class-yit-plugin-subpanel.php:133 +msgid "Save Changes" +msgstr "Сохранить Изменения" + +#: includes/class-yit-plugin-panel.php:663 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 +msgid "" +"If you continue with this action, you will reset all options in this page." +msgstr "" +"Если вы продолжите это действие, вы сбросите все параметры на этой странице." + +#: includes/class-yit-plugin-panel.php:663 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 +msgid "Are you sure?" +msgstr "Вы уверены?" + +#: includes/class-yit-plugin-panel.php:667 +#: includes/class-yit-plugin-subpanel.php:143 +msgid "Reset to default" +msgstr "Сброс до заводских настроек" + +#: includes/class-yit-plugin-panel.php:1059 +msgid "" +"The element you have entered already exists. Please, enter another name." +msgstr "Введенный вами элемент уже существует. Пожалуйста, введите другое имя." + +#: includes/class-yit-plugin-panel.php:1060 +msgid "Settings saved" +msgstr "Настройки сохранены" + +#: includes/class-yit-plugin-panel.php:1061 +msgid "Settings reset" +msgstr "Сбросить настройки" + +#: includes/class-yit-plugin-panel.php:1062 +msgid "Element deleted correctly." +msgstr "Элемент удален правильно." + +#: includes/class-yit-plugin-panel.php:1063 +#: includes/class-yit-plugin-panel.php:1064 +msgid "Element updated correctly." +msgstr "Элемент обновлен правильно." + +#: includes/class-yit-plugin-panel.php:1065 +msgid "Database imported correctly." +msgstr "База данных импортирована правильно." + +#: includes/class-yit-plugin-panel.php:1066 +msgid "An error has occurred during import. Please try again." +msgstr "Во время импорта произошла ошибка. Пожалуйста, попробуйте еще раз." + +#: includes/class-yit-plugin-panel.php:1067 +msgid "The added file is not valid." +msgstr "Добавленный файл недействителен." + +#: includes/class-yit-plugin-panel.php:1068 +msgid "Sorry, import is disabled." +msgstr "Извините, импорт отключен." + +#: includes/class-yit-plugin-panel.php:1069 +msgid "Sorting successful." +msgstr "Сортировка выполнена успешно." + +#: includes/class-yit-plugin-panel.php:1558 +msgid "We need your support" +msgstr "Нам нужна ваша поддержка" + +#: includes/class-yit-plugin-panel.php:1559 +msgid "to keep updating and improving the plugin. Please," +msgstr "чтобы продолжать обновлять и улучшать плагин. Пожалуйста," + +#: includes/class-yit-plugin-panel.php:1561 +msgid "help us by leaving a good review" +msgstr "помогите нам, оставив хороший отзыв" + +#: includes/class-yit-plugin-panel.php:1562 +msgid ":) Thanks!" +msgstr ":) Благодарим!" + +#: includes/class-yit-pointers.php:80 +msgid "Plugins Activated" +msgstr "Плагины Активированы" + +#: includes/class-yit-pointers.php:81 +msgid "" +"From now on, you can find all plugin options in YITH menu. Plugin " +"customization settings will be available as a new entry in YITH menu." +msgstr "" +"Отныне все опции плагина можно найти в меню YITH. Настройки кастомизации " +"плагина будут доступны как новый пункт в меню YITH." + +#. translators: 1. YITH site link; 2. WordPress site link. +#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100 +msgid "Discover all our plugins available on: %1$s and %2$s" +msgstr "Откройте для себя все наши плагины, доступные на: %1$s и %2$s" + +#: includes/class-yit-pointers.php:96 +msgid "Plugins Upgraded" +msgstr "Плагины Обновлены" + +#: includes/class-yit-pointers.php:97 +msgid "" +"From now on, you can find the option panel of YITH plugins in YITH menu. " +"Every time one of our plugins is added, a new entry will be added to this " +"menu. For example, after the update, plugin options (such as for YITH " +"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from " +"previous location to YITH menu." +msgstr "" +"С этого момента вы можете найти панель опций плагинов YITH в меню YITH. " +"Каждый раз, когда добавляется один из наших плагинов, в это меню будет " +"добавляться новый пункт. Например, после обновления, опции плагинов (такие " +"как для YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search и т.д.) " +"будут перемещены из предыдущего места в меню YITH." + +#: includes/class-yith-dashboard.php:35 +msgid "YITH Latest Updates" +msgstr "Последние обновления YITH" + +#: includes/class-yith-dashboard.php:36 +msgid "Latest news from YITH Blog" +msgstr "Последние новости из блога YITH" + +#: includes/class-yith-dashboard.php:56 +msgid "RSS Error:" +msgstr "Ошибка RSS:" + +#: includes/class-yith-dashboard.php:63 +msgid "" +"An error has occurred, which probably means the feed is down. Try again " +"later." +msgstr "" +"Произошла ошибка, которая, вероятно, означает, что канал не работает. " +"Повторите попытку позже." + +#. translators: %s is the name of the post type (example Back to "Membership +#. Plans"). +#: includes/class-yith-post-type-admin.php:286 +msgid "Back to \"%s\"" +msgstr "Вернуться к \"%s\"" + +#: includes/class-yith-post-type-admin.php:286 +msgid "Back to the list" +msgstr "Вернуться к списку" + +#: includes/class-yith-system-status.php:110 +msgid "WordPress Version" +msgstr "Версия WordPress" + +#: includes/class-yith-system-status.php:111 +msgid "WooCommerce Version" +msgstr "Версия WooCommerce" + +#: includes/class-yith-system-status.php:112 +msgid "Available Memory" +msgstr "Доступная Памяти" + +#: includes/class-yith-system-status.php:113 +msgid "PHP Version" +msgstr "Версия PHP" + +#: includes/class-yith-system-status.php:114 +msgid "TLS Version" +msgstr "Версия TLS" + +#: includes/class-yith-system-status.php:115 +msgid "WordPress Cron" +msgstr "Ядро WordPress" + +#: includes/class-yith-system-status.php:116 +msgid "SimpleXML" +msgstr "SimpleXML" + +#: includes/class-yith-system-status.php:117 +msgid "MultiByte String" +msgstr "MultiByte String" + +#: includes/class-yith-system-status.php:118 +msgid "ImageMagick Version" +msgstr "Версия ImageMagick" + +#: includes/class-yith-system-status.php:119 +msgid "GD Library" +msgstr "Библиотека GD" + +#: includes/class-yith-system-status.php:120 +msgid "Iconv Module" +msgstr "Модуль Iconv" + +#: includes/class-yith-system-status.php:121 +msgid "OPCache Save Comments" +msgstr "OPCache Сохранить комментарии" + +#: includes/class-yith-system-status.php:122 +msgid "URL FOpen" +msgstr "URL FOpen" + +#: includes/class-yith-system-status.php:140 +#: includes/class-yith-system-status.php:141 +#: templates/sysinfo/system-information-panel.php:11 +msgid "System Status" +msgstr "Состояние Системы" + +#: includes/class-yith-system-status.php:183 +msgid "YITH Plugins" +msgstr "Плагины YITH" + +#: includes/class-yith-system-status.php:191 +msgid "WooCommerce" +msgstr "WooCommerce" + +#: includes/class-yith-system-status.php:342 +msgid "Warning!" +msgstr "Внимание!" + +#. translators: %1$s open link tag, %2$s open link tag +#: includes/class-yith-system-status.php:346 +msgid "" +"The system check has detected some compatibility issues on your installation." +"%1$sClick here%2$s to know more" +msgstr "" +"Проверка системы обнаружила некоторые проблемы совместимости в вашей " +"установке.%1$sНажмите сюда%2$s чтобы узнать больше" + +#: includes/class-yith-system-status.php:488 +msgid "Enabled" +msgstr "Включено" + +#: includes/class-yith-system-status.php:488 +msgid "Disabled" +msgstr "Отключено" + +#: includes/class-yith-system-status.php:493 +msgid "N/A" +msgstr "Б/н" + +#. translators: %1$s plugin name, %2$s requirement name +#: includes/class-yith-system-status.php:520 +msgid "%1$s needs %2$s enabled" +msgstr "%1$s требует включения %2$s" + +#. translators: %1$s plugin name, %2$s required memory amount +#: includes/class-yith-system-status.php:523 +msgid "%1$s needs at least %2$s of available memory" +msgstr "%1$s требуется не менее %2$s доступной памяти" + +#. translators: %1$s plugin name, %2$s version number +#: includes/class-yith-system-status.php:526 +msgid "%1$s needs at least %2$s version" +msgstr "%1$s требует как минимум %2$s версии" + +#: includes/class-yith-system-status.php:550 +msgid "" +"Update it to the latest version in order to benefit of all new features and " +"security updates." +msgstr "" +"Обновите его до последней версии, чтобы воспользоваться всеми новыми " +"функциями и обновлениями безопасности." + +#: includes/class-yith-system-status.php:554 +#: includes/class-yith-system-status.php:560 +msgid "Contact your hosting company in order to update it." +msgstr "Свяжитесь с вашей хостинговой компанией, чтобы обновить его." + +#: includes/class-yith-system-status.php:558 +msgid "Contact your hosting company in order to install it." +msgstr "Для его установки обратитесь в свою хостинговую компанию." + +#. translators: %1$s code, %2$s file name +#: includes/class-yith-system-status.php:565 +msgid "Remove %1$s from %2$s file" +msgstr "Удалить %1$s из файла %2$s" + +#: includes/class-yith-system-status.php:573 +msgid "Contact your hosting company in order to enable it." +msgstr "Свяжитесь с вашей хостинговой компанией, чтобы включить его." + +#. translators: %1$s opening link tag, %2$s closing link tag +#: includes/class-yith-system-status.php:577 +#: includes/class-yith-system-status.php:600 +msgid "" +"Read more %1$shere%2$s or contact your hosting company in order to increase " +"it." +msgstr "" +"Узнайте больше %1$sздесь%2$s или свяжитесь с вашей хостинговой компанией, " +"чтобы увеличить его." + +#. translators: %s recommended memory amount +#: includes/class-yith-system-status.php:597 +msgid "" +"For optimal functioning of our plugins, we suggest setting at least %s of " +"available memory" +msgstr "" +"Для оптимального функционирования наших плагинов мы рекомендуем установить " +"не менее %s доступной памяти" + +#. translators: %1$s TLS label, %2$s cURL label +#: includes/class-yith-system-status.php:605 +msgid "" +"The system check cannot determine which %1$s version is installed because " +"%2$s module is disabled. Ask your hosting company to enable it." +msgstr "" +"Системная проверка не может определить, какая версия %1$s установлена, " +"потому что модуль %2$s отключен. Попросите вашу хостинг-компанию включить " +"его." + +#. translators: %1$s TLS label +#: includes/class-yith-system-status.php:608 +msgid "" +"The system check cannot determine which %1$s version is installed due to a " +"connection issue between your site and our server." +msgstr "" +"Системная проверка не может определить, какая версия %1$s установлена, из-за " +"проблемы с соединением между вашим сайтом и нашим сервером." + +#: templates/fields/ajax-customers.php:41 +msgid "Search for a customer..." +msgstr "" + +#. translators: 1. user display name; 2. user ID; 3. user email. +#: templates/fields/ajax-customers.php:68 +#: templates/fields/ajax-customers.php:79 +msgid "%1$s (#%2$s – %3$s)" +msgstr "%1$s (#%2$s – %3$s)" + +#: templates/fields/ajax-posts.php:41 +msgid "Search for a post..." +msgstr "" + +#: templates/fields/ajax-products.php:16 +msgid "Search for a product..." +msgstr "" + +#: templates/fields/ajax-terms.php:41 +msgid "Search for a category..." +msgstr "" + +#: templates/fields/customtabs.php:17 +msgid "Close all" +msgstr "Закрыть все" + +#: templates/fields/customtabs.php:17 +msgid "Expand all" +msgstr "Развернуть все" + +#: templates/fields/customtabs.php:25 templates/fields/customtabs.php:68 +msgid "Remove" +msgstr "Стереть" + +#: templates/fields/customtabs.php:34 templates/fields/customtabs.php:76 +msgid "Name" +msgstr "Имя" + +#: templates/fields/customtabs.php:40 templates/fields/customtabs.php:81 +msgid "Value" +msgstr "Значение" + +#: templates/fields/customtabs.php:41 templates/fields/customtabs.php:82 +msgid "Content of the tab. (HTML is supported)" +msgstr "Содержание вкладки. (Поддерживается HTML)" + +#: templates/fields/customtabs.php:52 +msgid "Add custom product tab" +msgstr "Добавить пользовательскую вкладку товара" + +#: templates/fields/customtabs.php:93 +msgid "Do you want to remove the custom tab?" +msgstr "Вы хотите удалить пользовательскую вкладку?" + +#: templates/fields/date-format.php:65 +msgid "Custom:" +msgstr "Обычай:" + +#: templates/fields/date-format.php:70 +msgid "Preview:" +msgstr "Предпросмотр:" + +#: templates/fields/icons.php:78 +msgid "Set Default" +msgstr "Установить по умолчанию" + +#: templates/fields/image-gallery.php:29 templates/fields/image-gallery.php:40 +msgid "Delete image" +msgstr "Удалить Излображение" + +#: templates/fields/image-gallery.php:37 +msgid "Add Images to Gallery" +msgstr "Добавить Изображения в Галерею" + +#: templates/fields/image-gallery.php:38 +msgid "Add to gallery" +msgstr "Добавить галерею" + +#: templates/fields/image-gallery.php:39 +msgid "Add images" +msgstr "Добавить Изображения" + +#: templates/fields/image-gallery.php:41 +msgid "Delete" +msgstr "Удалить" + +#: templates/fields/select-buttons.php:19 +msgid "Add All" +msgstr "Добавить Все" + +#: templates/fields/select-buttons.php:20 +msgid "Remove All" +msgstr "Стереть Все" + +#: templates/fields/sidebars.php:20 +msgid "Left sidebar" +msgstr "Левая боковая панель" + +#: templates/fields/sidebars.php:23 +msgid "Right sidebar" +msgstr "Правая боковая панель" + +#: templates/fields/sidebars.php:26 templates/fields/sidebars.php:29 +msgid "No sidebar" +msgstr "Без боковой панели" + +#: templates/fields/sidebars.php:39 +msgid "Left Sidebar" +msgstr "Левая Боковая панель" + +#: templates/fields/sidebars.php:41 templates/fields/sidebars.php:56 +msgid "Choose a sidebar" +msgstr "Выберите боковую панель" + +#: templates/fields/sidebars.php:54 +msgid "Right Sidebar" +msgstr "Правая Боковая панель" + +#: templates/fields/upload.php:34 +#: templates/panel/woocommerce/woocommerce-upload.php:37 +msgid "Upload" +msgstr "Загрузить" + +#: templates/fields/upload.php:39 +msgid "Reset" +msgstr "Сброс" + +#: templates/panel/woocommerce/woocommerce-form.php:29 +#: templates/panel/woocommerce/woocommerce-form.php:33 +msgid "Save Options" +msgstr "Сохранить Настройки" + +#: templates/panel/woocommerce/woocommerce-form.php:33 +msgid "Options Saved" +msgstr "Настройки Сохранены" + +#: templates/panel/woocommerce/woocommerce-form.php:43 +msgid "Reset Defaults" +msgstr "Сброс до настроек по умолчанию" + +#: templates/sysinfo/system-information-panel.php:12 +msgid "PHPInfo" +msgstr "PHPInfo" + +#: templates/sysinfo/system-information-panel.php:13 +#: templates/sysinfo/tabs/error-log.php:25 +msgid "Log Files" +msgstr "Файлы журнала" + +#: templates/sysinfo/system-information-panel.php:22 +msgid "YITH System Information" +msgstr "Системная информация YITH" + +#: templates/sysinfo/tabs/error-log.php:13 +msgid "WP debug.log file" +msgstr "WP debug.log file" + +#: templates/sysinfo/tabs/error-log.php:18 +msgid "PHP error_log file" +msgstr "PHP error_log file" + +#: templates/sysinfo/tabs/error-log.php:60 +msgid "Download" +msgstr "Загрузка" + +#: templates/sysinfo/tabs/error-log.php:72 +msgid "The file size exceeds 8 megabytes so it must be downloaded" +msgstr "Размер файла превышает 8 мегабайт, поэтому его необходимо загрузить" + +#. translators: %s file name. +#: templates/sysinfo/tabs/error-log.php:96 +msgid "" +"No Log file available. Enable the WordPress debug by adding this in the %s " +"file of your installation" +msgstr "" +"Файл журнала недоступен. Включите отладку WordPress, добавив следующее в " +"файл %s вашей установки" + +#: templates/sysinfo/tabs/error-log.php:105 +msgid "Copied!" +msgstr "Скопирован!" + +#: templates/sysinfo/tabs/error-log.php:105 +msgid "Copy Code" +msgstr "Копировать Код" + +#: templates/sysinfo/tabs/main.php:17 +msgid "Site Info" +msgstr "Информация о сайте" + +#: templates/sysinfo/tabs/main.php:22 +msgid "Site URL" +msgstr "Адрес сайта" + +#: templates/sysinfo/tabs/main.php:31 +msgid "Output IP Address" +msgstr "Выходной IP-адрес" + +#: templates/sysinfo/tabs/main.php:39 +msgid "Defined WP_CACHE" +msgstr "Определён WP_CACHE" + +#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 +msgid "Yes" +msgstr "Да" + +#: templates/sysinfo/tabs/main.php:47 +msgid "External object cache" +msgstr "Кэш внешних объектов" + +#: templates/sysinfo/tabs/main.php:55 +msgid "YITH Plugin Framework Version" +msgstr "Версия YITH Plugin Framework" + +#. translators: %s is the name of the plugin that is loading the framework. +#: templates/sysinfo/tabs/main.php:64 +msgid "loaded by %s" +msgstr "загружен %s" + +#: templates/sysinfo/tabs/main.php:73 +msgid "Plugins Requirements" +msgstr "Требования к Плагинам" + +#: templates/sysinfo/tabs/main.php:108 +msgid "Database Info" +msgstr "Информация о БД" + +#: templates/sysinfo/tabs/main.php:113 +msgid "MySQL version" +msgstr "Версия MySQL" + +#. Translators: %s: Codex link. +#: templates/sysinfo/tabs/main.php:123 +msgid "WordPress recommends a minimum MySQL version of 5.6. See: %s" +msgstr "WordPress рекомендует минимальную версию MySQL 5.6. См: %s" + +#: templates/sysinfo/tabs/main.php:123 +msgid "WordPress requirements" +msgstr "Требования WordPress" + +#: templates/sysinfo/tabs/main.php:130 +msgid "Total Database Size" +msgstr "Общий размер базы данных" + +#: templates/sysinfo/tabs/main.php:138 +msgid "Database Data Size" +msgstr "Размер данных базы данных" + +#: templates/sysinfo/tabs/main.php:146 +msgid "Database Index Size" +msgstr "Размер индекса базы данных " + +#: templates/sysinfo/tabs/main.php:154 +msgid "Database Free Size" +msgstr "Свободный размер базы данных" + +#. Translators: %1$f: Table size, %2$f: Index size, %3$f: Free size, %4$s +#. Engine. +#: templates/sysinfo/tabs/main.php:168 +msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" +msgstr "" +"Данные: %1$.2fMB | Индекс: %2$.2fMB | Свободно: %3$.2fMB | Движок: %4$s" + +#. translators: %s is the title of the post object. +#: yit-functions.php:1938 +msgid "Are you sure you want to move \"%s\" to trash?" +msgstr "Вы уверены, что хотите переместить в корзину \"%s\"?" + +#. translators: %s is the title of the post object. +#: yit-functions.php:1940 yit-functions.php:2100 +msgid "Are you sure you want to delete \"%s\"?" +msgstr "Вы уверены, что хотите удалить \"%s\"?" + +#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +msgid "Further actions" +msgstr "Дальнейшие действия" + +#: yit-plugin.php:213 +msgid "License" +msgstr "Лицензия" + +#. Author of the plugin/theme +msgid "YITH" +msgstr "YITH" + +#. translators: %s it the Elementor Widget title. +#: includes/builders/elementor/class-yith-elementor-widget.php:252 +msgctxt "Elementor Widget - section title" +msgid "%s - Options" +msgstr "%s - Параметры" + +#: includes/builders/gutenberg/class-yith-gutenberg.php:149 +msgctxt "[gutenberg]: Category Name" +msgid "YITH" +msgstr "YITH" + +#: includes/class-yit-assets.php:132 +msgctxt "Button text" +msgid "Confirm" +msgstr "Подтвердить" + +#: includes/class-yit-assets.php:133 +msgctxt "Button text" +msgid "Cancel" +msgstr "Отмена" + +#: includes/class-yit-assets.php:146 yit-functions.php:2009 +msgctxt "Trash confirmation action" +msgid "Yes, move to trash" +msgstr "Да, удалить в корзину" + +#: includes/class-yit-assets.php:150 yit-functions.php:2027 +#: yit-functions.php:2154 +msgctxt "Delete confirmation action" +msgid "Yes, delete" +msgstr "Да, удалить" + +#. translators: 1. Plugin name. +#: includes/class-yit-plugin-panel.php:805 +msgctxt "Help tab default title" +msgid "Thank you for purchasing %s!" +msgstr "Благодарим вас за покупку %s!" + +#: includes/class-yit-plugin-panel.php:806 +msgctxt "Help tab default description" +msgid "" +"We want to help you enjoy a wonderful experience with all of our products." +msgstr "" +"Мы хотим помочь вам получить удовольствие от использования всех наших " +"продуктов." + +#: includes/class-yit-plugin-panel.php:853 +msgctxt "Premium tab name" +msgid "Get premium" +msgstr "Получите премиум" + +#: includes/class-yit-plugin-panel.php:865 +msgctxt "Help tab name" +msgid "Help" +msgstr "Помощь" + +#: includes/class-yith-dashboard.php:96 +msgctxt "Plugin FW" +msgid "View Changelog" +msgstr "Посмотреть журнал изменений" + +#: includes/class-yith-dashboard.php:97 +msgctxt "Plugin FW" +msgid "Latest update released on" +msgstr "Последнее обновление выпущено на" + +#: includes/class-yith-dashboard.php:137 +msgctxt "Button label" +msgid "Close" +msgstr "Закрыть" + +#: includes/privacy/class-yith-privacy.php:61 +msgctxt "Privacy Policy Guide Title" +msgid "YITH Plugins" +msgstr "Плагины YITH" + +#: includes/privacy/class-yith-privacy.php:93 +msgctxt "Privacy Policy Content" +msgid "" +"This sample language includes the basics around what personal data your " +"store may be collecting, storing and sharing, as well as who may have access " +"to that data. Depending on what settings are enabled and which additional " +"plugins are used, the specific information shared by your store will vary. " +"We recommend consulting with a lawyer when deciding what information to " +"disclose on your privacy policy." +msgstr "" +"Этот образец формулировки включает в себя основные положения о том, какие " +"личные данные может собирать, хранить и передавать ваш магазин, а также кто " +"может иметь доступ к этим данным. В зависимости от того, какие настройки " +"включены и какие дополнительные плагины используются, конкретная информация, " +"передаваемая вашим магазином, будет отличаться. Мы рекомендуем " +"проконсультироваться с юристом при принятии решения о том, какую информацию " +"раскрывать в политике конфиденциальности." + +#: includes/privacy/class-yith-privacy.php:97 +msgctxt "Privacy Policy Content" +msgid "What we collect and store" +msgstr "Что мы собираем и храним" + +#: includes/privacy/class-yith-privacy.php:100 +msgctxt "Privacy Policy Content" +msgid "Who on our team has access" +msgstr "Кто в нашей команде имеет доступ" + +#: includes/privacy/class-yith-privacy.php:103 +msgctxt "Privacy Policy Content" +msgid "What we share with others" +msgstr "Чем мы делимся с другими" + +#: includes/privacy/class-yith-privacy.php:106 +msgctxt "Privacy Policy Content" +msgid "Payments" +msgstr "Оплата" + +#: templates/fields/copy-to-clipboard.php:41 +msgctxt "Copy-to-clipboard message" +msgid "Copied!" +msgstr "Скопировано!" + +#: templates/fields/copy-to-clipboard.php:45 +msgctxt "Copy-to-clipboard button text" +msgid "Copy" +msgstr "Копировать" + +#: templates/fields/dimensions.php:13 +msgctxt "Position in the \"Dimensions\" field" +msgid "Top" +msgstr "Сверху" + +#: templates/fields/dimensions.php:14 +msgctxt "Position in the \"Dimensions\" field" +msgid "Right" +msgstr "Справа" + +#: templates/fields/dimensions.php:15 +msgctxt "Position in the \"Dimensions\" field" +msgid "Bottom" +msgstr "Снизу" + +#: templates/fields/dimensions.php:16 +msgctxt "Position in the \"Dimensions\" field" +msgid "Left" +msgstr "Слева" + +#: templates/fields/dimensions.php:94 +msgctxt "Tooltip in the \"Dimensions\" field" +msgid "Link values together" +msgstr "Свяжите ценности вместе" + +#: templates/fields/image-dimensions.php:18 +msgctxt "Image width field label" +msgid "Width" +msgstr "Ширина" + +#: templates/fields/image-dimensions.php:23 +msgctxt "Image height field label" +msgid "Height" +msgstr "Высота" + +#: templates/fields/onoff.php:28 +msgctxt "YES/NO button: use MAX 4 characters!" +msgid "YES" +msgstr "ДА" + +#: templates/fields/onoff.php:29 +msgctxt "YES/NO button: use MAX 4 characters!" +msgid "NO" +msgstr "НЕТ" + +#. translators: 1. Url to EN playlist. +#: templates/panel/help-tab.php:87 +msgctxt "Help tab view all video link" +msgid "" +"Check the full Playlist on Youtube to " +"learn more >" +msgstr "" +"Посмотрите полный плейлист на Youtube, " +"чтобы узнать больше >" + +#: templates/panel/help-tab.php:94 +msgctxt "Help tab Watch Videotutorials link" +msgid "Videos are also available in:" +msgstr "Видеоматериалы также доступны в:" + +#: templates/panel/help-tab.php:124 +msgctxt "Help tab Read Documentation link" +msgid "Read the documentation" +msgstr "Прочтите документацию" + +#: templates/panel/help-tab.php:127 +msgctxt "Help tab Read Documentation link" +msgid "to learn how the plugin works from the basics." +msgstr "" + +#: templates/panel/help-tab.php:137 +msgctxt "Help tab Watch video tutorials link" +msgid "Watch our video tutorials" +msgstr "Посмотрите наши видеоуроки" + +#: templates/panel/help-tab.php:140 +msgctxt "Help tab Watch video tutorials link" +msgid "to see some helpful use cases." +msgstr "" + +#: templates/panel/help-tab.php:150 +msgctxt "Help tab view FAQs link" +msgid "Check the FAQs" +msgstr "Проверьте ответы на часто задаваемые вопросы" + +#: templates/panel/help-tab.php:153 +msgctxt "Help tab view FAQs link" +msgid "to find answers to your doubts." +msgstr "найти ответы на свои сомнения." + +#: templates/panel/help-tab.php:169 +msgctxt "Help tab FAQ title" +msgid "Last FAQs in our Help Center" +msgstr "Последние часто задаваемые вопросы в нашем Справочном Центре" + +#: templates/panel/help-tab.php:183 +msgctxt "Help tab FAQ link" +msgid "View all FAQs >" +msgstr "Просмотреть все часто задаваемые вопросы >" + +#: templates/panel/help-tab.php:192 +msgctxt "Help tab submit ticket title" +msgid "Need help?" +msgstr "Нужна помощь?" + +#: templates/panel/help-tab.php:195 +msgctxt "Help tab submit ticket description" +msgid "" +"If you are experiencing any technical issues, ask for help from our " +"developers. Submit a ticket through our support desk and we will help you as " +"soon as possible." +msgstr "" +"Если у вас возникли технические проблемы, обратитесь за помощью к нашим " +"разработчикам. Отправьте заявку через нашу службу поддержки, и мы поможем " +"вам как можно скорее." + +#: templates/panel/help-tab.php:203 +msgctxt "Help tab submit ticket button" +msgid "Submit a ticket" +msgstr "Отправить обращение" + +#: templates/panel/premium-tab.php:30 +msgctxt "Premium Tab" +msgid "Get the premium version to unlock advanced features" +msgstr "Получите премиум-версию, чтобы разблокировать расширенные возможности" + +#: templates/panel/premium-tab.php:34 +msgctxt "Premium Tab" +msgid "Get premium" +msgstr "Получите премиум" + +#: templates/panel/premium-tab.php:39 +msgctxt "Premium Tab" +msgid "Plugin premium features images" +msgstr "Изображения премиум-функций плагина" + +#. translators: alt attribute of main image tag. +#: templates/panel/premium-tab.php:51 +msgctxt "Premium Tab" +msgid "And so much more!" +msgstr "И многое другое!" + +#: templates/panel/premium-tab.php:53 +msgctxt "Premium Tab" +msgid "Check the free vs premium features >" +msgstr "Проверьте бесплатные и премиум функции >" + +#: templates/panel/premium-tab.php:58 +msgctxt "Premium Tab" +msgid "Get the premium version" +msgstr "Получите премиум-версию" + +#: yit-functions.php:1952 +msgctxt "Post action" +msgid "Preview" +msgstr "Предварительный просмотр" + +#: yit-functions.php:1961 +msgctxt "Post action" +msgid "View" +msgstr "Просмотреть" + +#: yit-functions.php:1972 +msgctxt "Post action" +msgid "Edit" +msgstr "Изменить" + +#: yit-functions.php:1980 +msgctxt "Post action" +msgid "Duplicate" +msgstr "Дублировать" + +#: yit-functions.php:1992 +msgctxt "Post action" +msgid "Restore" +msgstr "Восстановить" + +#: yit-functions.php:2000 +msgctxt "Post action" +msgid "Trash" +msgstr "Корзина" + +#: yit-functions.php:2017 +msgctxt "Post action" +msgid "Delete Permanently" +msgstr "Удалить навсегда" + +#: yit-functions.php:2114 +msgctxt "Term action" +msgid "View" +msgstr "Просмотреть" + +#: yit-functions.php:2124 +msgctxt "Term action" +msgid "Edit" +msgstr "Изменить" + +#: yit-functions.php:2132 +msgctxt "Term action" +msgid "Duplicate" +msgstr "Дублировать" + +#: yit-functions.php:2145 +msgctxt "Term action" +msgid "Delete" +msgstr "Удалить" + +#: yit-plugin.php:84 +msgctxt "Plugin Row Meta" +msgid "Live Demo" +msgstr "Живая Демонстрация" + +#: yit-plugin.php:88 +msgctxt "Plugin Row Meta" +msgid "Documentation" +msgstr "Документация" + +#: yit-plugin.php:92 +msgctxt "Plugin Row Meta" +msgid "Support" +msgstr "Поддержка" + +#: yit-plugin.php:96 +msgctxt "Plugin Row Meta" +msgid "Premium version" +msgstr "Премиум версия" + +#: yit-plugin.php:209 +msgctxt "Action links" +msgid "Settings" +msgstr "Настройки" diff --git a/plugin-fw/languages/yith-plugin-fw.pot b/plugin-fw/languages/yith-plugin-fw.pot index 09cf5db..10b8566 100644 --- a/plugin-fw/languages/yith-plugin-fw.pot +++ b/plugin-fw/languages/yith-plugin-fw.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2022-04-02 10:27:44+00:00\n" +"POT-Creation-Date: 2022-05-30 07:17:45+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,7 +24,7 @@ msgstr "" "X-Textdomain-Support: yes\n" "X-Generator: grunt-wp-i18n 1.0.3\n" -#: includes/class-yit-assets.php:144 yit-functions.php:1979 +#: includes/class-yit-assets.php:144 yit-functions.php:2006 msgid "Confirm trash" msgstr "" @@ -34,12 +34,12 @@ msgstr "" #: includes/class-yit-assets.php:147 includes/class-yit-assets.php:151 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:1981 yit-functions.php:1999 +#: yit-functions.php:2008 yit-functions.php:2026 msgid "No" msgstr "" -#: includes/class-yit-assets.php:148 yit-functions.php:1997 -#: yit-functions.php:2125 +#: includes/class-yit-assets.php:148 yit-functions.php:2024 +#: yit-functions.php:2152 msgid "Confirm delete" msgstr "" @@ -47,8 +47,8 @@ msgstr "" msgid "Are you sure you want to delete the selected items?" msgstr "" -#: includes/class-yit-assets.php:149 yit-functions.php:1913 -#: yit-functions.php:2073 +#: includes/class-yit-assets.php:149 yit-functions.php:1940 +#: yit-functions.php:2100 msgid "This action cannot be undone and you will not be able to recover this data." msgstr "" @@ -80,7 +80,7 @@ msgstr "" msgid "There was an error with your request; please try again later." msgstr "" -#: includes/class-yit-plugin-panel-woocommerce.php:429 +#: includes/class-yit-plugin-panel-woocommerce.php:430 msgid "The changes you have made will be lost if you leave this page." msgstr "" @@ -92,87 +92,87 @@ msgstr "" msgid "Settings" msgstr "" -#: includes/class-yit-plugin-panel.php:454 -#: includes/class-yit-plugin-panel.php:457 +#: includes/class-yit-plugin-panel.php:455 +#: includes/class-yit-plugin-panel.php:458 msgid "How to install premium version" msgstr "" -#: includes/class-yit-plugin-panel.php:658 -#: includes/class-yit-plugin-subpanel.php:132 +#: includes/class-yit-plugin-panel.php:655 +#: includes/class-yit-plugin-subpanel.php:133 msgid "Save Changes" msgstr "" #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "If you continue with this action, you will reset all options in this page." msgstr "" #: includes/class-yit-plugin-panel.php:663 -#: includes/class-yit-plugin-subpanel.php:136 -#: templates/panel/woocommerce/woocommerce-form.php:14 +#: includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/woocommerce/woocommerce-form.php:15 msgid "Are you sure?" msgstr "" #: includes/class-yit-plugin-panel.php:667 -#: includes/class-yit-plugin-subpanel.php:139 +#: includes/class-yit-plugin-subpanel.php:143 msgid "Reset to default" msgstr "" -#: includes/class-yit-plugin-panel.php:1047 +#: includes/class-yit-plugin-panel.php:1059 msgid "The element you have entered already exists. Please, enter another name." msgstr "" -#: includes/class-yit-plugin-panel.php:1048 +#: includes/class-yit-plugin-panel.php:1060 msgid "Settings saved" msgstr "" -#: includes/class-yit-plugin-panel.php:1049 +#: includes/class-yit-plugin-panel.php:1061 msgid "Settings reset" msgstr "" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1062 msgid "Element deleted correctly." msgstr "" -#: includes/class-yit-plugin-panel.php:1051 -#: includes/class-yit-plugin-panel.php:1052 +#: includes/class-yit-plugin-panel.php:1063 +#: includes/class-yit-plugin-panel.php:1064 msgid "Element updated correctly." msgstr "" -#: includes/class-yit-plugin-panel.php:1053 +#: includes/class-yit-plugin-panel.php:1065 msgid "Database imported correctly." msgstr "" -#: includes/class-yit-plugin-panel.php:1054 +#: includes/class-yit-plugin-panel.php:1066 msgid "An error has occurred during import. Please try again." msgstr "" -#: includes/class-yit-plugin-panel.php:1055 +#: includes/class-yit-plugin-panel.php:1067 msgid "The added file is not valid." msgstr "" -#: includes/class-yit-plugin-panel.php:1056 +#: includes/class-yit-plugin-panel.php:1068 msgid "Sorry, import is disabled." msgstr "" -#: includes/class-yit-plugin-panel.php:1057 +#: includes/class-yit-plugin-panel.php:1069 msgid "Sorting successful." msgstr "" -#: includes/class-yit-plugin-panel.php:1525 +#: includes/class-yit-plugin-panel.php:1558 msgid "We need your support" msgstr "" -#: includes/class-yit-plugin-panel.php:1526 +#: includes/class-yit-plugin-panel.php:1559 msgid "to keep updating and improving the plugin. Please," msgstr "" -#: includes/class-yit-plugin-panel.php:1528 +#: includes/class-yit-plugin-panel.php:1561 msgid "help us by leaving a good review" msgstr "" -#: includes/class-yit-plugin-panel.php:1529 +#: includes/class-yit-plugin-panel.php:1562 msgid ":) Thanks!" msgstr "" @@ -516,16 +516,16 @@ msgstr "" msgid "Reset" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:28 -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:29 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Save Options" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:32 +#: templates/panel/woocommerce/woocommerce-form.php:33 msgid "Options Saved" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:38 +#: templates/panel/woocommerce/woocommerce-form.php:43 msgid "Reset Defaults" msgstr "" @@ -649,21 +649,21 @@ msgstr "" msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "" -#: yit-functions.php:1911 +#: yit-functions.php:1938 #. translators: %s is the title of the post object. msgid "Are you sure you want to move \"%s\" to trash?" msgstr "" -#: yit-functions.php:1913 yit-functions.php:2073 +#: yit-functions.php:1940 yit-functions.php:2100 #. translators: %s is the title of the post object. msgid "Are you sure you want to delete \"%s\"?" msgstr "" -#: yit-functions.php:2011 yit-functions.php:2019 yit-functions.php:2136 +#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 msgid "Further actions" msgstr "" -#: yit-plugin.php:205 +#: yit-plugin.php:213 msgid "License" msgstr "" @@ -692,22 +692,17 @@ msgctxt "Button text" msgid "Cancel" msgstr "" -#: includes/class-yit-assets.php:146 yit-functions.php:1982 +#: includes/class-yit-assets.php:146 yit-functions.php:2009 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "" -#: includes/class-yit-assets.php:150 yit-functions.php:2000 -#: yit-functions.php:2127 +#: includes/class-yit-assets.php:150 yit-functions.php:2027 +#: yit-functions.php:2154 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "" -#: includes/class-yit-plugin-panel.php:491 -msgctxt "Help tab name" -msgid "Help" -msgstr "" - #: includes/class-yit-plugin-panel.php:805 #. translators: 1. Plugin name. msgctxt "Help tab default title" @@ -724,6 +719,11 @@ msgctxt "Premium tab name" msgid "Get premium" msgstr "" +#: includes/class-yit-plugin-panel.php:865 +msgctxt "Help tab name" +msgid "Help" +msgstr "" + #: includes/class-yith-dashboard.php:96 msgctxt "Plugin FW" msgid "View Changelog" @@ -932,57 +932,57 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "" -#: yit-functions.php:1925 +#: yit-functions.php:1952 msgctxt "Post action" msgid "Preview" msgstr "" -#: yit-functions.php:1934 +#: yit-functions.php:1961 msgctxt "Post action" msgid "View" msgstr "" -#: yit-functions.php:1945 +#: yit-functions.php:1972 msgctxt "Post action" msgid "Edit" msgstr "" -#: yit-functions.php:1953 +#: yit-functions.php:1980 msgctxt "Post action" msgid "Duplicate" msgstr "" -#: yit-functions.php:1965 +#: yit-functions.php:1992 msgctxt "Post action" msgid "Restore" msgstr "" -#: yit-functions.php:1973 +#: yit-functions.php:2000 msgctxt "Post action" msgid "Trash" msgstr "" -#: yit-functions.php:1990 +#: yit-functions.php:2017 msgctxt "Post action" msgid "Delete Permanently" msgstr "" -#: yit-functions.php:2087 +#: yit-functions.php:2114 msgctxt "Term action" msgid "View" msgstr "" -#: yit-functions.php:2097 +#: yit-functions.php:2124 msgctxt "Term action" msgid "Edit" msgstr "" -#: yit-functions.php:2105 +#: yit-functions.php:2132 msgctxt "Term action" msgid "Duplicate" msgstr "" -#: yit-functions.php:2118 +#: yit-functions.php:2145 msgctxt "Term action" msgid "Delete" msgstr "" @@ -1007,7 +1007,7 @@ msgctxt "Plugin Row Meta" msgid "Premium version" msgstr "" -#: yit-plugin.php:201 +#: yit-plugin.php:209 msgctxt "Action links" msgid "Settings" msgstr "" \ No newline at end of file diff --git a/plugin-fw/license.txt b/plugin-fw/license.txt new file mode 100644 index 0000000..1ce8f48 --- /dev/null +++ b/plugin-fw/license.txt @@ -0,0 +1,740 @@ +YITH Plugin Framework + +Copyright 2015-2021 Your Inspiration Solutions (email : plugins@yithemes.com) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +YITH Plugin Framework is released under the GPL + +This program incorporates work covered by the following copyright and +permission notices: + + node-md5 is Copyright (c) 2011-2015, Paul Vorbach - (c) 2009, Jeff Mott. + https://github.com/pvorb/node-md5 + This package is licensed under the BSD 3-Clause "New" or "Revised" License (the complete text of this license is shown below): + https://github.com/pvorb/node-md5/blob/master/LICENSE + + Wherever third party code has been used, credit has been given in the code's + comments. + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright © 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright © + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright © + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + +node-md5: BSD 3-Clause "New" or "Revised" License + +Copyright © 2011-2015, Paul Vorbach. +Copyright © 2009, Jeff Mott. + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. +* Neither the name Crypto-JS nor the names of its contributors may be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/plugin-fw/package.json b/plugin-fw/package.json new file mode 100644 index 0000000..a0ff69d --- /dev/null +++ b/plugin-fw/package.json @@ -0,0 +1,50 @@ +{ + "name": "yith-plugin-framewowrk", + "version": "3.9.7", + "description": "YITH Plugin Framework", + "main": "Gruntfile.js", + "scripts": { + "build": "npm run -s blocks:build && npm run assets && npm run i18n", + "assets": "grunt assets", + "watch": "grunt watch", + "i18n": "npm run -s i18n:build && npm run -s i18n:translations", + "i18n:build": "grunt makepot", + "i18n:translations": "npm run -s i18n:download-translations && npm run -s i18n:update-po && npm run -s i18n:clean", + "i18n:download-translations": "node ./bin/download-translations.js", + "i18n:update-po": "grunt update_po", + "i18n:clean": "node ./bin/clean-language-files.js", + "phpcs": "composer run-script phpcs", + "env:start": "node ./tools/local-env/scripts/start.js", + "env:stop": "node ./tools/local-env/scripts/docker.js down", + "env:restart": "npm run env:stop && npm run env:start", + "env:clean": "node ./tools/local-env/scripts/docker.js down -v --remove-orphans", + "env:reset": "node ./tools/local-env/scripts/docker.js down --rmi all -v --remove-orphans", + "env:install": "node ./tools/local-env/scripts/install.js", + "env:cli": "node ./tools/local-env/scripts/docker.js run cli", + "blocks:watch": "wp-scripts start ./includes/builders/gutenberg/src/index.js --output-path=dist/gutenberg --progress --watch --mode=development", + "blocks:build": "wp-scripts build ./includes/builders/gutenberg/src/index.js --output-path=dist/gutenberg --progress", + "test:php": "node ./tools/local-env/scripts/docker.js run --rm phpunit phpunit" + }, + "author": "YITH", + "license": "GPL-3.0+", + "keywords": [], + "devDependencies": { + "@wordpress/scripts": "^18.0.1", + "axios": "^0.21.1", + "dotenv": "^8.2.0", + "grunt": "^1.4.1", + "grunt-cli": "^1.3.2", + "grunt-contrib-jshint": "^2.0.0", + "grunt-contrib-uglify-es": "github:gruntjs/grunt-contrib-uglify#harmony", + "grunt-contrib-watch": "^1.1.0", + "grunt-phpcs": "^0.4.0", + "grunt-sass": "^3.1.0", + "grunt-wp-i18n": "^1.0.2", + "node-sass": "^6.0.1", + "wait-on": "^5.2.1" + }, + "dependencies": { + "classnames": "^2.3.1", + "md5": "^2.3.0" + } +} diff --git a/plugin-fw/phpunit.xml.dist b/plugin-fw/phpunit.xml.dist new file mode 100644 index 0000000..c2d2f7d --- /dev/null +++ b/plugin-fw/phpunit.xml.dist @@ -0,0 +1,15 @@ + + + + + ./tests/unit-tests + + + diff --git a/plugin-fw/templates/fields/country-select.php b/plugin-fw/templates/fields/country-select.php index fe3b29b..108884b 100644 --- a/plugin-fw/templates/fields/country-select.php +++ b/plugin-fw/templates/fields/country-select.php @@ -14,7 +14,6 @@ list ( $field_id, $name, $class, $placeholder, $std, $value, $data, $custom_attributes ) = yith_plugin_fw_extract( $field, 'id', 'name', 'class', 'placeholder', 'std', 'value', 'data', 'custom_attributes' ); -$placeholder = isset( $placeholder ) ? ' data-placeholder = "' . $placeholder . '" ' : ''; $country_setting = (string) $value; if ( strstr( $country_setting, ':' ) ) { diff --git a/plugin-fw/templates/fields/email.php b/plugin-fw/templates/fields/email.php new file mode 100644 index 0000000..562c76f --- /dev/null +++ b/plugin-fw/templates/fields/email.php @@ -0,0 +1,29 @@ + + + data-std="" + + + + +/> + + diff --git a/plugin-fw/templates/metaboxes/tab.php b/plugin-fw/templates/metaboxes/tab.php index 025fbc9..3609e84 100644 --- a/plugin-fw/templates/metaboxes/tab.php +++ b/plugin-fw/templates/metaboxes/tab.php @@ -81,7 +81,7 @@ ?>
    -
      +
        $_tab ) : ?>
      • > - +
      • @@ -125,7 +128,7 @@ $_tab ) : ?> -
        +
        diff --git a/plugin-fw/templates/panel/woocommerce/woocommerce-form.php b/plugin-fw/templates/panel/woocommerce/woocommerce-form.php index 7a91b5d..086fbf7 100644 --- a/plugin-fw/templates/panel/woocommerce/woocommerce-form.php +++ b/plugin-fw/templates/panel/woocommerce/woocommerce-form.php @@ -9,7 +9,8 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. -$content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ); +$form_method = apply_filters( 'yit_admin_panel_form_method', 'POST', $option_key ); +$content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap', $option_key ); $container_id = $this->settings['page'] . '_' . $option_key; $reset_warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ); ?> @@ -19,7 +20,7 @@
        - + add_fields(); ?> @@ -31,6 +32,10 @@ + + + +
        diff --git a/plugin-fw/tests/bootstrap.php b/plugin-fw/tests/bootstrap.php new file mode 100644 index 0000000..fc68d40 --- /dev/null +++ b/plugin-fw/tests/bootstrap.php @@ -0,0 +1,167 @@ +tests_dir = dirname( __FILE__ ); + $this->plugin_dir = dirname( $this->tests_dir, 2 ); + $this->woocommerce_dir = dirname( $this->plugin_dir ) . '/woocommerce'; + $this->wp_tests_dir = getenv( 'WP_TESTS_DIR' ) ? getenv( 'WP_TESTS_DIR' ) : ( rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib' ); + + define( 'YITH_PLUGIN_FRAMEWORK_TESTS_DIR', $this->tests_dir ); + + if ( ! file_exists( $this->wp_tests_dir . '/includes/functions.php' ) ) { + $this->message( "Could not find {$this->wp_tests_dir}/includes/functions.php, have you run [npm run env:install] ?" ); + exit( 1 ); + } + + require_once $this->wp_tests_dir . '/includes/functions.php'; + + // load plugins. + tests_add_filter( 'muplugins_loaded', array( $this, 'load_plugins' ) ); + tests_add_filter( 'setup_theme', array( $this, 'install_wc' ) ); + tests_add_filter( 'setup_theme', array( $this, 'show_info' ), 20 ); + + // load the WP testing environment. + require_once $this->wp_tests_dir . '/includes/bootstrap.php'; + + // load testing framework. + $this->includes(); + } + + /** + * Load plugins + * + * @return void + */ + public function load_plugins() { + require_once $this->woocommerce_dir . '/woocommerce.php'; + require_once $this->plugin_dir . '/yith-plugin-fw-loader.php'; + } + + /** + * Install WooCommerce + * + * @return void + */ + public function install_wc() { + // Clean existing install first. + define( 'WP_UNINSTALL_PLUGIN', true ); + define( 'WC_REMOVE_ALL_DATA', true ); + include $this->woocommerce_dir . '/uninstall.php'; + + WC_Install::install(); + + // Reload capabilities after install, see https://core.trac.wordpress.org/ticket/28374. + if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) { + $GLOBALS['wp_roles']->reinit(); + } else { + $GLOBALS['wp_roles'] = null; + wp_roles(); + } + + $this->message( 'Installing WooCommerce...' ); + } + + /** + * Include files + * + * @return void + */ + public function includes() { + $helpers_dir = YITH_PLUGIN_FRAMEWORK_TESTS_DIR . '/framework/helpers'; + + require_once $helpers_dir . '/class-yith-plugin-fw-panels-helper.php'; + } + + /** + * Print a message + * + * @param string $message The message to be shown. + * @return void + */ + public function message( $message ) { + echo $message . PHP_EOL; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + } + + /** + * Show installation information + * + * @return void + */ + public function show_info() { + $this->message( '' ); + $this->message( 'I N S T A L L A T I O N I N F O :' ); + $this->message( '> WP Version: ' . get_bloginfo( 'version', 'display' ) ); + $this->message( '> WC Version: ' . get_plugin_data( $this->woocommerce_dir . '/woocommerce.php' )['Version'] ); + $this->message( '> Plugin Dir: ' . $this->plugin_dir ); + $this->message( '> ABSPATH: ' . ( defined( 'ABSPATH' ) ? ABSPATH : 'not defined!' ) ); + $this->message( '' ); + } + +} + +YITH_Plugin_FW_Unit_Tests_Bootstrap::instance(); diff --git a/plugin-fw/tests/framework/fixtures/panel-all-options.php b/plugin-fw/tests/framework/fixtures/panel-all-options.php new file mode 100644 index 0000000..21bb92e --- /dev/null +++ b/plugin-fw/tests/framework/fixtures/panel-all-options.php @@ -0,0 +1,240 @@ + array( + 'type' => 'ajax-customers', + 'value' => 1, + 'php_unit_expected' => 1, + ), + + 'ajax-customers-multiple' => array( + 'type' => 'ajax-customers', + 'multiple' => true, + 'value' => array( 1, 2, 3 ), + 'php_unit_expected' => array( 1, 2, 3 ), + ), + + 'ajax-posts' => array( + 'type' => 'ajax-posts', + 'value' => 1, + 'php_unit_expected' => 1, + ), + + 'ajax-posts-multiple' => array( + 'type' => 'ajax-posts', + 'multiple' => true, + 'value' => array( 1, 2, 3 ), + 'php_unit_expected' => array( 1, 2, 3 ), + ), + + 'ajax-products' => array( + 'type' => 'ajax-products', + 'value' => 1, + 'php_unit_expected' => 1, + ), + + 'ajax-products-multiple' => array( + 'type' => 'ajax-products', + 'multiple' => true, + 'value' => array( 1, 2, 3 ), + 'php_unit_expected' => array( 1, 2, 3 ), + ), + + 'ajax-terms' => array( + 'type' => 'ajax-terms', + 'value' => 1, + 'php_unit_expected' => 1, + ), + + 'ajax-terms-multiple' => array( + 'type' => 'ajax-terms', + 'multiple' => true, + 'value' => array( 1, 2, 3 ), + 'php_unit_expected' => array( 1, 2, 3 ), + ), + + 'checkbox' => array( + 'type' => 'checkbox', + 'value' => 1, + 'php_unit_expected' => 'yes', + ), + + 'checkbox-off' => array( + 'type' => 'checkbox', + 'value' => 0, + 'php_unit_expected' => 'no', + ), + + 'checkbox-array' => array( + 'type' => 'checkbox-array', + 'value' => array( 'one', 'two', 'three' ), + 'php_unit_expected' => array( 'one', 'two', 'three' ), + ), + + 'colorpicker' => array( + 'type' => 'colorpicker', + 'value' => '#123456', + 'php_unit_expected' => '#123456', + ), + + 'country-select' => array( + 'type' => 'country-select', + 'value' => 'US:NY', + 'php_unit_expected' => 'US:NY', + ), + + 'date-format' => array( + 'type' => 'date-format', + 'value' => 'Y-m-d', + 'php_unit_expected' => 'Y-m-d', + ), + + 'datepicker' => array( + 'type' => 'datepicker', + 'value' => '2020-12-25', + 'php_unit_expected' => '2020-12-25', + ), + + 'dimensions' => array( + 'type' => 'dimensions', + 'value' => array( + 'unit' => 'px', + 'dimensions' => array( + 'top' => 10, + 'right' => 20, + 'bottom' => 10, + 'left' => 20, + ), + 'linked' => 'yes', + ), + 'php_unit_expected' => array( + 'unit' => 'px', + 'dimensions' => array( + 'top' => 10, + 'right' => 20, + 'bottom' => 10, + 'left' => 20, + ), + 'linked' => 'yes', + ), + ), + + 'hidden' => array( + 'type' => 'hidden', + 'value' => 'This is a dummy test!', + 'php_unit_expected' => 'This is a dummy test!', + ), + + 'icons' => array( + 'type' => 'icons', + 'value' => 'FontAwesome:music', + 'php_unit_expected' => 'FontAwesome:music', + ), + + 'image-gallery' => array( + 'type' => 'image-gallery', + 'value' => '1,2,3', + 'php_unit_expected' => '1,2,3', + ), + + 'multi-colorpicker' => array( + 'type' => 'multi-colorpicker', + 'value' => array( '#ffffff', '#000000' ), + 'php_unit_expected' => array( '#ffffff', '#000000' ), + ), + + 'multi-select' => array( + 'type' => 'multi-select', + 'value' => array( 'one', 'two' ), + 'php_unit_expected' => array( 'one', 'two' ), + ), + + 'number' => array( + 'type' => 'number', + 'value' => 10, + 'php_unit_expected' => 10, + ), + + 'onoff' => array( + 'type' => 'onoff', + 'value' => 1, + 'php_unit_expected' => 'yes', + ), + + 'onoff-off' => array( + 'type' => 'onoff', + 'value' => 0, + 'php_unit_expected' => 'no', + ), + + 'password' => array( + 'type' => 'password', + 'value' => 'password', + 'php_unit_expected' => 'password', + ), + + 'radio' => array( + 'type' => 'radio', + 'value' => 'one', + 'php_unit_expected' => 'one', + ), + + 'select' => array( + 'type' => 'select', + 'value' => 'one', + 'php_unit_expected' => 'one', + ), + + 'select-images' => array( + 'type' => 'select-images', + 'value' => 'one', + 'php_unit_expected' => 'one', + ), + + 'slider' => array( + 'type' => 'slider', + 'value' => 50, + 'php_unit_expected' => 50, + ), + + 'text' => array( + 'type' => 'text', + 'value' => 'This is a dummy test!', + 'php_unit_expected' => 'This is a dummy test!', + ), + + 'text-array' => array( + 'type' => 'text-array', + 'value' => array('one', 'two', "Let's testing quotes and double quotes \""), + 'php_unit_expected' => array('one', 'two', "Let's testing quotes and double quotes \""), + ), + + 'textarea' => array( + 'type' => 'textarea', + 'value' => "Let's testing quotes, double quotes \" and

        HTML tags

        ", + 'php_unit_expected' => "Let's testing quotes, double quotes \" and

        HTML tags

        ", + ), + + 'textarea-codemirror' => array( + 'type' => 'textarea-codemirror', + 'value' => "Let's testing quotes, double quotes \" and

        HTML tags

        ", + 'php_unit_expected' => "Let's testing quotes, double quotes \" and

        HTML tags

        ", + ), + + 'textarea-editor' => array( + 'type' => 'textarea-editor', + 'value' => "Let's testing quotes, double quotes \" and

        HTML tags

        ", + 'php_unit_expected' => "Let's testing quotes, double quotes \" and

        HTML tags

        ", + ), + + 'upload' => array( + 'type' => 'upload', + 'value' => 'http://example.com/image.jpg', + 'php_unit_expected' => 'http://example.com/image.jpg', + ), +); diff --git a/plugin-fw/tests/framework/helpers/class-yith-plugin-fw-panels-helper.php b/plugin-fw/tests/framework/helpers/class-yith-plugin-fw-panels-helper.php new file mode 100644 index 0000000..4846e31 --- /dev/null +++ b/plugin-fw/tests/framework/helpers/class-yith-plugin-fw-panels-helper.php @@ -0,0 +1,83 @@ + 'WooCommerce Panel', + ); + + $args = array( + 'create_menu_page' => true, + 'parent_slug' => '', + 'page_title' => 'WooCommerce Panel', + 'menu_title' => 'WooCommerce Panel', + 'capability' => 'manage_options', + 'parent' => '', + 'parent_page' => 'yit_plugin_panel', + 'page' => self::$wc_panel_page, + 'admin-tabs' => $admin_tabs, + 'options-path' => YITH_PLUGIN_FRAMEWORK_TESTS_DIR . '/framework/plugin-options', + ); + + return new YIT_Plugin_Panel_WooCommerce( $args ); + } + + public static function init_vars_wc_panel_options_for_saving( $panel, $tab, $subtab = '' ) { + + set_current_screen( 'yith-plugins_page_' . $panel->settings['page'] ); + $_POST = array(); + $_GET = array(); + + $_GET['page'] = $panel->settings['page']; + $_GET['tab'] = $tab; + $_GET['sub_tab'] = $subtab; + $_POST['yit_panel_wc_options_nonce'] = wp_create_nonce( 'yit_panel_wc_options_' . $panel->settings['page'] ); + + $prefix = $tab . '-'; + + $options = self::get_fixture( 'all-options' ); + $new_options = array(); + + foreach ( $options as $key => $option ) { + $prefixed_key = $prefix . $key; + $value = $option['value']; + $_POST[ $prefixed_key ] = $value; + + $new_options[ $prefixed_key ] = $option; + } + + return $new_options; + } + + /** + * Get a fixture + * + * @param string $fixture The fixture. + * @return array + */ + public static function get_fixture( $fixture ) { + return include YITH_PLUGIN_FRAMEWORK_TESTS_DIR . '/framework/fixtures/panel-' . $fixture . '.php'; + } +} diff --git a/plugin-fw/tests/framework/plugin-options/wc-panel-options.php b/plugin-fw/tests/framework/plugin-options/wc-panel-options.php new file mode 100644 index 0000000..c5c5cd3 --- /dev/null +++ b/plugin-fw/tests/framework/plugin-options/wc-panel-options.php @@ -0,0 +1,43 @@ + 'General', + 'type' => 'title', + 'id' => 'general-options', +); + +foreach ( $options as $key => $values ) { + $type = $values['type']; + $prefixed_key = $prefix . $key; + + $id_title = array( + 'id' => $prefixed_key, + 'title' => $prefixed_key, + ); + + $fields[ $prefixed_key ] = wp_parse_args( $values, $id_title ); + $fields[ $prefixed_key ]['type'] = 'yith-field'; + $fields[ $prefixed_key ]['yith-type'] = $type; + if ( isset( $fields[ $prefixed_key ]['value'] ) ) { + unset( $fields[ $prefixed_key ]['value'] ); + } +} + + +$fields[ $prefix . 'general-options-end' ] = array( + 'type' => 'sectionend', + 'id' => 'general-options', +); + +return array( + 'wc-panel' => $fields, +); diff --git a/plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php b/plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php new file mode 100644 index 0000000..025457f --- /dev/null +++ b/plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php @@ -0,0 +1,49 @@ +panel = YITH_Plugin_FW_Panels_Helper::create_wc_panel(); + + // Include admin functions to use woocommerce_update_options(). + include_once WC_ABSPATH . '/includes/admin/wc-admin-functions.php'; + } + + /** + * Test simple tab with options. + */ + public function test_simple_tab() { + $options = YITH_Plugin_FW_Panels_Helper::init_vars_wc_panel_options_for_saving( $this->panel, 'wc-panel' ); + + $this->panel->woocommerce_update_options(); + + foreach ( $options as $key => $option ) { + $value = get_option( $key ); + $expected = $option['php_unit_expected']; + $message = sprintf( 'Test for %s [type: %s]', $key, $option['type'] ); + + $this->assertEquals( $expected, $value, $message ); + } + + } +} diff --git a/plugin-fw/tools/local-env/docker/phpunit/Dockerfile b/plugin-fw/tools/local-env/docker/phpunit/Dockerfile new file mode 100644 index 0000000..a2ac448 --- /dev/null +++ b/plugin-fw/tools/local-env/docker/phpunit/Dockerfile @@ -0,0 +1,12 @@ +FROM phpunit/phpunit:latest + +RUN apk update && \ + apk add --no-cache sqlite bash mariadb-client php7-mysqli subversion wget + +RUN apk upgrade subversion + +ENTRYPOINT [] + +WORKDIR /var/www/html/wp-content/plugins/yith-plugin-fw-loader/plugin-fw + +CMD /bin/true \ No newline at end of file diff --git a/plugin-fw/tools/local-env/install-wp-tests.sh b/plugin-fw/tools/local-env/install-wp-tests.sh new file mode 100644 index 0000000..00d4c32 --- /dev/null +++ b/plugin-fw/tools/local-env/install-wp-tests.sh @@ -0,0 +1,154 @@ +#!/usr/bin/env bash + +if [ $# -lt 3 ]; then + echo "usage: $0 [db-host] [wp-version] [skip-database-creation]" + exit 1 +fi + + +echo "INSTALLING..."; +DB_NAME=$1 +DB_USER=$2 +DB_PASS=$3 +DB_HOST=${4-localhost} +WP_VERSION=${5-latest} +SKIP_DB_CREATE=${6-false} + +TMPDIR=${TMPDIR-/tmp} +TMPDIR=$(echo $TMPDIR | sed -e "s/\/$//") +WP_TESTS_DIR=${WP_TESTS_DIR-$TMPDIR/wordpress-tests-lib} +WP_CORE_DIR=${WP_CORE_DIR-$TMPDIR/wordpress/} + +download() { + if [ `which curl` ]; then + curl -s "$1" > "$2"; + elif [ `which wget` ]; then + wget -nv -O "$2" "$1" + fi +} + +if [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then + WP_TESTS_TAG="branches/$WP_VERSION" +elif [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then + if [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0] ]]; then + # version x.x.0 means the first release of the major version, so strip off the .0 and download version x.x + WP_TESTS_TAG="tags/${WP_VERSION%??}" + else + WP_TESTS_TAG="tags/$WP_VERSION" + fi +elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then + WP_TESTS_TAG="trunk" +else + # http serves a single offer, whereas https serves multiple. we only want one + download http://api.wordpress.org/core/version-check/1.7/ /tmp/wp-latest.json + grep '[0-9]+\.[0-9]+(\.[0-9]+)?' /tmp/wp-latest.json + LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | sed 's/"version":"//') + if [[ -z "$LATEST_VERSION" ]]; then + echo "Latest WordPress version could not be found" + exit 1 + fi + WP_TESTS_TAG="tags/$LATEST_VERSION" +fi + +set -ex + +install_wp() { + + if [ -d $WP_CORE_DIR ]; then + return; + fi + + mkdir -p $WP_CORE_DIR + + if [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then + mkdir -p $TMPDIR/wordpress-nightly + download https://wordpress.org/nightly-builds/wordpress-latest.zip $TMPDIR/wordpress-nightly/wordpress-nightly.zip + unzip -q $TMPDIR/wordpress-nightly/wordpress-nightly.zip -d $TMPDIR/wordpress-nightly/ + mv $TMPDIR/wordpress-nightly/wordpress/* $WP_CORE_DIR + else + if [ $WP_VERSION == 'latest' ]; then + local ARCHIVE_NAME='latest' + elif [[ $WP_VERSION =~ [0-9]+\.[0-9]+ ]]; then + # https serves multiple offers, whereas http serves single. + download https://api.wordpress.org/core/version-check/1.7/ $TMPDIR/wp-latest.json + if [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0] ]]; then + # version x.x.0 means the first release of the major version, so strip off the .0 and download version x.x + LATEST_VERSION=${WP_VERSION%??} + else + # otherwise, scan the releases and get the most up to date minor version of the major release + local VERSION_ESCAPED=`echo $WP_VERSION | sed 's/\./\\\\./g'` + LATEST_VERSION=$(grep -o '"version":"'$VERSION_ESCAPED'[^"]*' $TMPDIR/wp-latest.json | sed 's/"version":"//' | head -1) + fi + if [[ -z "$LATEST_VERSION" ]]; then + local ARCHIVE_NAME="wordpress-$WP_VERSION" + else + local ARCHIVE_NAME="wordpress-$LATEST_VERSION" + fi + else + local ARCHIVE_NAME="wordpress-$WP_VERSION" + fi + download https://wordpress.org/${ARCHIVE_NAME}.tar.gz $TMPDIR/wordpress.tar.gz + tar --strip-components=1 -zxmf $TMPDIR/wordpress.tar.gz -C $WP_CORE_DIR + fi + + download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php +} + +install_test_suite() { + # portable in-place argument for both GNU sed and Mac OSX sed + if [[ $(uname -s) == 'Darwin' ]]; then + local ioption='-i .bak' + else + local ioption='-i' + fi + + # set up testing suite if it doesn't yet exist + if [ ! -d $WP_TESTS_DIR ]; then + # set up testing suite + mkdir -p $WP_TESTS_DIR + svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/includes/ $WP_TESTS_DIR/includes + svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/data/ $WP_TESTS_DIR/data + fi + + if [ ! -f wp-tests-config.php ]; then + download https://develop.svn.wordpress.org/${WP_TESTS_TAG}/wp-tests-config-sample.php "$WP_TESTS_DIR"/wp-tests-config.php + # remove all forward slashes in the end + WP_CORE_DIR=$(echo $WP_CORE_DIR | sed "s:/\+$::") + sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR/':" "$WP_TESTS_DIR"/wp-tests-config.php + sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR"/wp-tests-config.php + sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php + sed $ioption "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR"/wp-tests-config.php + sed $ioption "s|localhost|${DB_HOST}|" "$WP_TESTS_DIR"/wp-tests-config.php + fi + +} + +install_db() { + + if [ ${SKIP_DB_CREATE} = "true" ]; then + return 0 + fi + + # parse DB_HOST for port or socket references + local PARTS=(${DB_HOST//\:/ }) + local DB_HOSTNAME=${PARTS[0]}; + local DB_SOCK_OR_PORT=${PARTS[1]}; + local EXTRA="" + + if ! [ -z $DB_HOSTNAME ] ; then + if [ $(echo $DB_SOCK_OR_PORT | grep -e '^[0-9]\{1,\}$') ]; then + EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp" + elif ! [ -z $DB_SOCK_OR_PORT ] ; then + EXTRA=" --socket=$DB_SOCK_OR_PORT" + elif ! [ -z $DB_HOSTNAME ] ; then + EXTRA=" --host=$DB_HOSTNAME --protocol=tcp" + fi + fi + + # create database + mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA; +} + +install_wp +install_test_suite +install_db diff --git a/plugin-fw/tools/local-env/mysql-init.sql b/plugin-fw/tools/local-env/mysql-init.sql new file mode 100644 index 0000000..cec73e8 --- /dev/null +++ b/plugin-fw/tools/local-env/mysql-init.sql @@ -0,0 +1,7 @@ +/** + * MySQL server init. + * + * SQL queries in this file will be executed the first time the MySQL server is started. + */ + +CREATE DATABASE IF NOT EXISTS yith_plugin_fw_tests; diff --git a/plugin-fw/tools/local-env/phpunit-config.ini b/plugin-fw/tools/local-env/phpunit-config.ini new file mode 100644 index 0000000..bf4788b --- /dev/null +++ b/plugin-fw/tools/local-env/phpunit-config.ini @@ -0,0 +1,6 @@ +upload_max_filesize = 1G +post_max_size = 1G + +opcache.enable = 1 +opcache.enable_cli = 1 +opache.file_cache = /tmp/php-opcache diff --git a/plugin-fw/tools/local-env/scripts/docker.js b/plugin-fw/tools/local-env/scripts/docker.js new file mode 100644 index 0000000..99eabbf --- /dev/null +++ b/plugin-fw/tools/local-env/scripts/docker.js @@ -0,0 +1,6 @@ +const dotenv = require( 'dotenv' ); +const { execSync } = require( 'child_process' ); +dotenv.config(); + +// Execute any docker-compose command passed to this script. +execSync( 'docker-compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } ); diff --git a/plugin-fw/tools/local-env/scripts/install.js b/plugin-fw/tools/local-env/scripts/install.js new file mode 100644 index 0000000..571ee95 --- /dev/null +++ b/plugin-fw/tools/local-env/scripts/install.js @@ -0,0 +1,15 @@ +const dotenv = require( 'dotenv' ); +const { execSync } = require( 'child_process' ); + +dotenv.config(); + +phpunitExec('/var/www/html/install-wp-tests.sh yith_plugin_fw_tests root password mysql latest true'); + +/** + * Runs commands in the Docker PHPUnit environment. + * + * @param {string} cmd The command to run. + */ +function phpunitExec( cmd ) { + execSync( `docker-compose run --rm phpunit ${cmd}`, { stdio: 'inherit' } ); +} \ No newline at end of file diff --git a/plugin-fw/tools/local-env/scripts/start.js b/plugin-fw/tools/local-env/scripts/start.js new file mode 100644 index 0000000..f299f8d --- /dev/null +++ b/plugin-fw/tools/local-env/scripts/start.js @@ -0,0 +1,7 @@ +const dotenv = require( 'dotenv' ); +const { execSync } = require( 'child_process' ); + +dotenv.config(); + +// Start the local-env containers. +execSync( 'docker-compose up -d', { stdio: 'inherit' } ); diff --git a/plugin-fw/tools/local-env/yith-plugin-fw-loader.php b/plugin-fw/tools/local-env/yith-plugin-fw-loader.php new file mode 100644 index 0000000..fefee83 --- /dev/null +++ b/plugin-fw/tools/local-env/yith-plugin-fw-loader.php @@ -0,0 +1,50 @@ + $source, @@ -1772,6 +1777,27 @@ function yith_plugin_fw_add_utm_data( $url, $slug, $campaign = 'plugin-version-a } } +if ( ! function_exists( 'yith_plugin_fw_panel_utm_source' ) ) { + /** + * Generates default UTM source for the dashboard + * + * @param YIT_Plugin_Panel $panel Panel object. + * + * @since 3.6.10 + */ + function yith_plugin_fw_panel_utm_source( $panel = false ) { + if ( $panel->is_free() ) { + return 'wp-free-dashboard'; + } + + if ( $panel->is_extended() ) { + return 'wp-extended-dashboard'; + } + + return 'wp-dashboard'; + } +} + if ( ! function_exists( 'yith_plugin_fw_include_fw_template' ) ) { /** * Include a FW template @@ -1906,6 +1932,7 @@ function yith_plugin_fw_get_default_post_actions( $post, $args = array() ) { $defaults = array( 'more-menu' => array(), 'more-menu-in-trash' => false, + 'delete-directly' => false, 'duplicate-url' => false, // translators: %s is the title of the post object. 'confirm-trash-message' => sprintf( __( 'Are you sure you want to move "%s" to trash?', 'yith-plugin-fw' ), '' . $title . '' ), @@ -1967,7 +1994,7 @@ function yith_plugin_fw_get_default_post_actions( $post, $args = array() ) { 'icon' => 'reply', 'url' => wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ), ); - } elseif ( EMPTY_TRASH_DAYS ) { + } elseif ( EMPTY_TRASH_DAYS && ! $args['delete-directly'] ) { $actions['trash'] = array( 'type' => 'action-button', 'title' => _x( 'Trash', 'Post action', 'yith-plugin-fw' ), @@ -1984,7 +2011,7 @@ function yith_plugin_fw_get_default_post_actions( $post, $args = array() ) { ); } } - if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) { + if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS || $args['delete-directly'] ) { $actions['delete'] = array( 'type' => 'action-button', 'title' => _x( 'Delete Permanently', 'Post action', 'yith-plugin-fw' ), diff --git a/plugin-fw/yit-plugin.php b/plugin-fw/yit-plugin.php index 28d7980..f47cc32 100644 --- a/plugin-fw/yit-plugin.php +++ b/plugin-fw/yit-plugin.php @@ -112,9 +112,17 @@ function yit_plugin_fw_row_meta( $plugin_meta, $plugin_file, $plugin_data, $stat ); $fields = isset( $new_row_meta_args['to_show'] ) ? $new_row_meta_args['to_show'] : array(); $slug = isset( $new_row_meta_args['slug'] ) ? $new_row_meta_args['slug'] : ''; - $is_premium = isset( $new_row_meta_args['is_premium'] ) ? $new_row_meta_args['is_premium'] : ''; + $is_extended = ! empty( $new_row_meta_args['is_extended'] ) || false !== strpos( $plugin_file, '-extended' ); + $is_premium = ! empty( $new_row_meta_args['is_premium'] ) || false !== strpos( $plugin_file, '-premium' ); $utm_campaign = 'plugin-version-author-uri'; - $utm_source = $is_premium ? 'wp-premium-dashboard' : 'wp-free-dashboard'; + + if ( $is_premium ) { + $utm_source = 'wp-premium-dashboard'; + } elseif ( $is_extended ) { + $utm_source = 'wp-extended-dashboard'; + } else { + $utm_source = 'wp-free-dashboard'; + } if ( ! ! $is_premium ) { $to_remove = array_search( 'premium_version', $fields, true ); diff --git a/readme.md b/readme.md index e45faff..6018b66 100644 --- a/readme.md +++ b/readme.md @@ -151,9 +151,10 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h ## Changelog -### 3.8.0 - Released on 6 April 2022 +### 3.9.0 - Released on 16 May 2022 -* New: support for WooCommerce 6.4 +* New: support for WordPress 6.0 +* New: support for WooCommerce 6.5 * Update: YITH plugin framework ## Support diff --git a/readme.txt b/readme.txt index 7d6eab9..97817f2 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: yithemes Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist Requires at least: 5.7 -Tested up to: 5.9 -Stable tag: 3.8.0 +Tested up to: 6.0 +Stable tag: 3.9.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -113,6 +113,12 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h == Changelog == += 3.9.0 - Released on 16 May 2022 = + +* New: support for WordPress 6.0 +* New: support for WooCommerce 6.5 +* Update: YITH plugin framework + = 3.8.0 - Released on 6 April 2022 = * New: support for WooCommerce 6.4