Version Description
Last Stable Tag 2.2.0
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Catalog Mode |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.2.0
- init.php +3 -3
- languages/yith-woocommerce-catalog-mode.pot +2 -2
- plugin-fw/assets/css/admin.css +5 -0
- plugin-fw/assets/css/yith-fields.css +6 -1
- plugin-fw/dist/gutenberg/index.asset.php +1 -1
- plugin-fw/dist/gutenberg/index.js +1 -1
- plugin-fw/dist/gutenberg/style-index.css +1 -3
- plugin-fw/includes/class-yit-plugin-panel.php +1 -1
- plugin-fw/includes/class-yith-system-status.php +77 -2
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-el.po +50 -11
- plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-es_ES.po +53 -14
- plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-it_IT.po +53 -14
- plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-nl_NL.po +50 -11
- plugin-fw/languages/yith-plugin-fw.pot +50 -11
- plugin-fw/templates/fields/inline-fields.php +5 -2
- plugin-fw/templates/sysinfo/tabs/main.php +71 -0
- readme.txt +7 -2
init.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
-
* Version: 2.
|
9 |
* Author URI: https://yithemes.com/
|
10 |
* WC requires at least: 5.3.0
|
11 |
-
* WC tested up to: 5.
|
12 |
*
|
13 |
* @package YITH WooCommerce Catalog Mode
|
14 |
*/
|
@@ -61,7 +61,7 @@ function ywctm_install_free_admin_notice() {
|
|
61 |
<?php
|
62 |
}
|
63 |
|
64 |
-
! defined( 'YWCTM_VERSION' ) && define( 'YWCTM_VERSION', '2.
|
65 |
! defined( 'YWCTM_FREE_INIT' ) && define( 'YWCTM_FREE_INIT', plugin_basename( __FILE__ ) );
|
66 |
! defined( 'YWCTM_SLUG' ) && define( 'YWCTM_SLUG', 'yith-woocommerce-catalog-mode' );
|
67 |
! defined( 'YWCTM_FILE' ) && define( 'YWCTM_FILE', __FILE__ );
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
+
* Version: 2.2.0
|
9 |
* Author URI: https://yithemes.com/
|
10 |
* WC requires at least: 5.3.0
|
11 |
+
* WC tested up to: 5.8.x
|
12 |
*
|
13 |
* @package YITH WooCommerce Catalog Mode
|
14 |
*/
|
61 |
<?php
|
62 |
}
|
63 |
|
64 |
+
! defined( 'YWCTM_VERSION' ) && define( 'YWCTM_VERSION', '2.2.0' );
|
65 |
! defined( 'YWCTM_FREE_INIT' ) && define( 'YWCTM_FREE_INIT', plugin_basename( __FILE__ ) );
|
66 |
! defined( 'YWCTM_SLUG' ) && define( 'YWCTM_SLUG', 'yith-woocommerce-catalog-mode' );
|
67 |
! defined( 'YWCTM_FILE' ) && define( 'YWCTM_FILE', __FILE__ );
|
languages/yith-woocommerce-catalog-mode.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Catalog Mode package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: YITH WooCommerce Catalog Mode 2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-catalog-mode\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Catalog Mode package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: YITH WooCommerce Catalog Mode 2.2.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-catalog-mode\n"
|
8 |
+
"POT-Creation-Date: 2021-10-05 13:38:39+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
plugin-fw/assets/css/admin.css
CHANGED
@@ -129,6 +129,11 @@
|
|
129 |
padding: 30px 20px !important;
|
130 |
}
|
131 |
|
|
|
|
|
|
|
|
|
|
|
132 |
.yith-system-info-wrap table.form-table textarea.yith-system-info-debug {
|
133 |
width: 100%;
|
134 |
height: 400px !important;
|
129 |
padding: 30px 20px !important;
|
130 |
}
|
131 |
|
132 |
+
.yith-system-info-wrap table.form-table th {
|
133 |
+
min-width: 200px;
|
134 |
+
width: auto !important;
|
135 |
+
}
|
136 |
+
|
137 |
.yith-system-info-wrap table.form-table textarea.yith-system-info-debug {
|
138 |
width: 100%;
|
139 |
height: 400px !important;
|
plugin-fw/assets/css/yith-fields.css
CHANGED
@@ -831,7 +831,7 @@ YITH UI
|
|
831 |
.yith-plugin-ui .select2-container.select2-container--open .select2-selection--multiple {
|
832 |
margin : 0;
|
833 |
border : 0;
|
834 |
-
box-shadow : none;
|
835 |
}
|
836 |
|
837 |
.yith-plugin-ui .select2-container .select2-selection--single .select2-selection__arrow {
|
@@ -840,6 +840,10 @@ YITH UI
|
|
840 |
|
841 |
/* old panel*/
|
842 |
|
|
|
|
|
|
|
|
|
843 |
.yith-plugin-ui span.select2.select2-container.select2-container--default,
|
844 |
span.select2.select2-container.select2-container--default.yith-plugin-fw-select2-container {
|
845 |
border : 1px solid #d8d8d8;
|
@@ -898,6 +902,7 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
898 |
margin-top : 10px;
|
899 |
border-radius : 8px;
|
900 |
box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
|
|
|
901 |
}
|
902 |
|
903 |
.yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--above {
|
831 |
.yith-plugin-ui .select2-container.select2-container--open .select2-selection--multiple {
|
832 |
margin : 0;
|
833 |
border : 0;
|
834 |
+
box-shadow : none !important;
|
835 |
}
|
836 |
|
837 |
.yith-plugin-ui .select2-container .select2-selection--single .select2-selection__arrow {
|
840 |
|
841 |
/* old panel*/
|
842 |
|
843 |
+
.yith-plugin-fw-select2-container {
|
844 |
+
z-index : 9999;
|
845 |
+
}
|
846 |
+
|
847 |
.yith-plugin-ui span.select2.select2-container.select2-container--default,
|
848 |
span.select2.select2-container.select2-container--default.yith-plugin-fw-select2-container {
|
849 |
border : 1px solid #d8d8d8;
|
902 |
margin-top : 10px;
|
903 |
border-radius : 8px;
|
904 |
box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
|
905 |
+
border : 0;
|
906 |
}
|
907 |
|
908 |
.yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--above {
|
plugin-fw/dist/gutenberg/index.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => '3e03d6f4dfaa9af2a7d13b1a840b3253');
|
plugin-fw/dist/gutenberg/index.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,o){},28:function(e,t,o){}}]),function(e){function t(t){for(var r,c,l=t[0],s=t[1],i=t[2],p=0,f=[];p<l.length;p++)c=l[p],Object.prototype.hasOwnProperty.call(n,c)&&n[c]&&f.push(n[c][0]),n[c]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(u&&u(t);f.length;)f.shift()();return a.push.apply(a,i||[]),o()}function o(){for(var e,t=0;t<a.length;t++){for(var o=a[t],r=!0,l=1;l<o.length;l++){var s=o[l];0!==n[s]&&(r=!1)}r&&(a.splice(t--,1),e=c(c.s=o[0]))}return e}var r={},n={0:0},a=[];function c(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,c),o.l=!0,o.exports}c.m=e,c.c=r,c.d=function(e,t,o){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(c.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(o,r,function(t){return e[t]}.bind(null,r));return o},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var l=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var i=0;i<l.length;i++)t(l[i]);var u=s;a.push([29,1]),o()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,o){var r=o(17),n=o(18),a=o(19),c=o(21);e.exports=function(e,t){return r(e)||n(e,t)||a(e,t)||c()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.lodash},function(e,t,o){var r,n,a,c,l;r=o(22),n=o(10).utf8,a=o(23),c=o(10).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?c.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),s=8*e.length,i=1732584193,u=-271733879,p=-1732584194,f=271733878,d=0;d<o.length;d++)o[d]=16711935&(o[d]<<8|o[d]>>>24)|4278255360&(o[d]<<24|o[d]>>>8);o[s>>>5]|=128<<s%32,o[14+(s+64>>>9<<4)]=s;var h=l._ff,b=l._gg,y=l._hh,g=l._ii;for(d=0;d<o.length;d+=16){var m=i,_=u,v=p,x=f;i=h(i,u,p,f,o[d+0],7,-680876936),f=h(f,i,u,p,o[d+1],12,-389564586),p=h(p,f,i,u,o[d+2],17,606105819),u=h(u,p,f,i,o[d+3],22,-1044525330),i=h(i,u,p,f,o[d+4],7,-176418897),f=h(f,i,u,p,o[d+5],12,1200080426),p=h(p,f,i,u,o[d+6],17,-1473231341),u=h(u,p,f,i,o[d+7],22,-45705983),i=h(i,u,p,f,o[d+8],7,1770035416),f=h(f,i,u,p,o[d+9],12,-1958414417),p=h(p,f,i,u,o[d+10],17,-42063),u=h(u,p,f,i,o[d+11],22,-1990404162),i=h(i,u,p,f,o[d+12],7,1804603682),f=h(f,i,u,p,o[d+13],12,-40341101),p=h(p,f,i,u,o[d+14],17,-1502002290),i=b(i,u=h(u,p,f,i,o[d+15],22,1236535329),p,f,o[d+1],5,-165796510),f=b(f,i,u,p,o[d+6],9,-1069501632),p=b(p,f,i,u,o[d+11],14,643717713),u=b(u,p,f,i,o[d+0],20,-373897302),i=b(i,u,p,f,o[d+5],5,-701558691),f=b(f,i,u,p,o[d+10],9,38016083),p=b(p,f,i,u,o[d+15],14,-660478335),u=b(u,p,f,i,o[d+4],20,-405537848),i=b(i,u,p,f,o[d+9],5,568446438),f=b(f,i,u,p,o[d+14],9,-1019803690),p=b(p,f,i,u,o[d+3],14,-187363961),u=b(u,p,f,i,o[d+8],20,1163531501),i=b(i,u,p,f,o[d+13],5,-1444681467),f=b(f,i,u,p,o[d+2],9,-51403784),p=b(p,f,i,u,o[d+7],14,1735328473),i=y(i,u=b(u,p,f,i,o[d+12],20,-1926607734),p,f,o[d+5],4,-378558),f=y(f,i,u,p,o[d+8],11,-2022574463),p=y(p,f,i,u,o[d+11],16,1839030562),u=y(u,p,f,i,o[d+14],23,-35309556),i=y(i,u,p,f,o[d+1],4,-1530992060),f=y(f,i,u,p,o[d+4],11,1272893353),p=y(p,f,i,u,o[d+7],16,-155497632),u=y(u,p,f,i,o[d+10],23,-1094730640),i=y(i,u,p,f,o[d+13],4,681279174),f=y(f,i,u,p,o[d+0],11,-358537222),p=y(p,f,i,u,o[d+3],16,-722521979),u=y(u,p,f,i,o[d+6],23,76029189),i=y(i,u,p,f,o[d+9],4,-640364487),f=y(f,i,u,p,o[d+12],11,-421815835),p=y(p,f,i,u,o[d+15],16,530742520),i=g(i,u=y(u,p,f,i,o[d+2],23,-995338651),p,f,o[d+0],6,-198630844),f=g(f,i,u,p,o[d+7],10,1126891415),p=g(p,f,i,u,o[d+14],15,-1416354905),u=g(u,p,f,i,o[d+5],21,-57434055),i=g(i,u,p,f,o[d+12],6,1700485571),f=g(f,i,u,p,o[d+3],10,-1894986606),p=g(p,f,i,u,o[d+10],15,-1051523),u=g(u,p,f,i,o[d+1],21,-2054922799),i=g(i,u,p,f,o[d+8],6,1873313359),f=g(f,i,u,p,o[d+15],10,-30611744),p=g(p,f,i,u,o[d+6],15,-1560198380),u=g(u,p,f,i,o[d+13],21,1309151649),i=g(i,u,p,f,o[d+4],6,-145523070),f=g(f,i,u,p,o[d+11],10,-1120210379),p=g(p,f,i,u,o[d+2],15,718787259),u=g(u,p,f,i,o[d+9],21,-343485551),i=i+m>>>0,u=u+_>>>0,p=p+v>>>0,f=f+x>>>0}return r.endian([i,u,p,f])})._ff=function(e,t,o,r,n,a,c){var l=e+(t&o|~t&r)+(n>>>0)+c;return(l<<a|l>>>32-a)+t},l._gg=function(e,t,o,r,n,a,c){var l=e+(t&r|o&~r)+(n>>>0)+c;return(l<<a|l>>>32-a)+t},l._hh=function(e,t,o,r,n,a,c){var l=e+(t^o^r)+(n>>>0)+c;return(l<<a|l>>>32-a)+t},l._ii=function(e,t,o,r,n,a,c){var l=e+(o^(t|~r))+(n>>>0)+c;return(l<<a|l>>>32-a)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var o=r.wordsToBytes(l(e,t));return t&&t.asBytes?o:t&&t.asString?c.bytesToString(o):r.bytesToHex(o)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function o(t){return e.exports=o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,o(t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){var o={utf8:{stringToBytes:function(e){return o.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(o.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],o=0;o<e.length;o++)t.push(255&e.charCodeAt(o));return t},bytesToString:function(e){for(var t=[],o=0;o<e.length;o++)t.push(String.fromCharCode(e[o]));return t.join("")}}};e.exports=o},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function o(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,o){var r=o(24);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,o){var r=o(25).default,n=o(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,n,a=[],c=!0,l=!1;try{for(o=o.call(e);!(c=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{c||null==o.return||o.return()}finally{if(l)throw n}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,o){var r=o(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){var o,r;o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],o=0,r=0;o<e.length;o++,r+=8)t[r>>>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<e.length;o++)t.push((e[o]>>>4).toString(16)),t.push((15&e[o]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],o=0;o<e.length;o+=2)t.push(parseInt(e.substr(o,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var n=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?t.push(o.charAt(n>>>6*(3-a)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,n=0;r<e.length;n=++r%4)0!=n&&t.push((o.indexOf(e.charAt(r-1))&Math.pow(2,-2*n+8)-1)<<2*n|o.indexOf(e.charAt(r))>>>6-2*n);return t}},e.exports=r},function(e,t){function o(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(o(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&o(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function o(t,r){return e.exports=o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,o(t,r)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function o(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=o=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),o(t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},,,function(e,t,o){"use strict";o.r(t);var r=o(3),n=o.n(r),a=o(0),c=o(2),l=o(6),s=o.n(l),i=o(11),u=o(12);function p(e){if(e.status>=200&&e.status<300)return e;throw e}function f(e){return e.json?e.json():e.text()}var d=Object(a.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"},Object(a.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"})),h=o(5),b=o.n(h),y=function(e,t,o){var r=!0;if(t&&t.id&&"value"in t){var n=t.value;["toggle","checkbox"].includes(o)&&(n=!0===n||"yes"===n||1===n),n=b.a.isArray(n)?n:[n],r=void 0!==e[t.id]&&n.includes(e[t.id])}return r},g=function(e,t){var o=e.controlType,r=!0;if(e.deps)if(b.a.isArray(e.deps))for(var n in e.deps){var a=e.deps[n];if(!(r=y(t,a,o)))break}else r=y(t,e.deps,o);return r},m=function(e,t){var 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{var a=e.attributes?Object.entries(e.attributes).map((function(e){var o=n()(e,2),r=o[0],a=o[1],c=g(a,t),l=t[r];if(c&&void 0!==l)return r+"="+(a.remove_quotes?l:'"'.concat(l,'"'))})):[],c=a.length?" "+a.join(" "):"";o="[".concat(e.shortcode_name).concat(c,"]")}return o},_=o(1),v=o(7),x=o(13),j=o.n(x),w=o(14),k=o.n(w),O=o(15),C=o.n(O),E=o(16),S=o.n(E),T=o(9),A=o.n(T),M=o(4);o(27);var B=function(e){C()(n,e);var t,o,r=(t=n,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=A()(t);if(o){var n=A()(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return S()(this,e)});function n(){var e;return j()(this,n),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},e.ajaxTimeout=!1,e}return k()(n,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,o){var r=this.state,n=r.shortcode,a=r.shortcodeHash,c=r.ajaxSuccess,l=r.ajaxResponse,s=r.ajaxUpdated;Object(h.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&s&&(c&&Object(M.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",n,a,l),Object(M.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",n,a,l),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,o=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var n=m(r,o),a=s()(n);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(M.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",n,a),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(u.addQueryArgs)(t,e),fetch(t).then(p).then(f)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:n}).then((function(t){e.setState({loading:!1,firstLoading:!1,html:t.html,shortcode:n,shortcodeHash:a,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:n,shortcode:n,shortcodeHash:a})}},{key:"render",value:function(){var e=this.state,t=e.html,o=e.loading,r=e.firstLoading,n=e.shortcode,c=e.shortcodeHash,l=this.props.blockArgs,s=l.do_shortcode,i=l.title,u=l.empty_message,p="block-editor-yith-plugin-fw-shortcode-block",f=[p],h=s?"html":"shortcode",b=t,y="";r&&o?h="first-loading":s&&!t&&(h="empty-html",b=n,!o&&u&&(y=u));var g=["first-loading","empty-html","shortcode"].includes(h),m=!["first-loading","empty-html"].includes(h),v=!!y;return f.push("".concat(p,"--").concat(h)),f.push("".concat(p,v?"--has-message":"--no-message")),f.push("yith_block_".concat(c)),Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:f.join(" ")},o?Object(a.createElement)("div",{className:"".concat(p,"__spinner-wrap")},Object(a.createElement)(_.Spinner,null)):"",g&&Object(a.createElement)("div",{className:"".concat(p,"__title components-placeholder__label")},d,i),v&&Object(a.createElement)(a.RawHTML,{className:"".concat(p,"__message")},y),m&&Object(a.createElement)(a.RawHTML,{className:"".concat(p,"__content")},b)))}}]),n}(c.Component),N=o(8);function R(e){var t=e.className,o=e.label,r=e.onChange,n=e.value,c=e.help,l=e.disableAlpha,s=Object(N.useInstanceId)(R),i="inspector-yith-color-picker-control-".concat(s);return Object(a.createElement)(_.BaseControl,{id:i,label:o,className:"block-editor-yith-color-control ".concat(t),help:c},Object(a.createElement)(_.ColorPicker,{color:n,disableAlpha:l,onChangeComplete:r}))}function P(e){var t=e.label,o=e.colorValue;return Object(a.createElement)(a.Fragment,null,t,!!o&&Object(a.createElement)(_.ColorIndicator,{colorValue:o}))}function I(e){var t=e.className,o=e.label,r=e.onChange,n=e.value,c=e.help,l=e.palette,s=e.clearable;l=l||Object(v.__experimentalUseEditorFeature)("color.palette");var i=Object(N.useInstanceId)(I),u="inspector-yith-color-palette-control-".concat(i);return Object(a.createElement)(_.BaseControl,{id:u,className:"block-editor-yith-color-palette-control ".concat(t),help:c},Object(a.createElement)("fieldset",null,Object(a.createElement)("legend",null,Object(a.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(a.createElement)(_.BaseControl.VisualLabel,null,Object(a.createElement)(P,{colorValue:n,label:o})))),Object(a.createElement)(_.ColorPalette,{value:n,onChange:r,colors:l,clearable:s})))}o(28);for(var H=function(e,t){return function(o){var r=o.attributes,c=(o.className,o.setAttributes),l=function(e,t,o){["colorpicker","color"].includes(o)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,c(r)};return Object(a.createElement)(a.Fragment,null,!!t.attributes&&Object(a.createElement)(v.InspectorControls,null,Object(a.createElement)(_.PanelBody,null,Object.entries(t.attributes).map((function(t){var o=n()(t,2),c=function(t,o){var n=o.controlType,c=r[t],s=function(e,t){var o="";return e.helps&&e.helps.checked&&e.helps.unchecked?o=t?e.helps.checked:e.helps.unchecked:e.help&&(o=e.help),o}(o,c),i="".concat(e,"__").concat(t,"-field-wrapper"),u=g(o,r);o.wrapper_class&&(i+=" "+o.wrapper_class);var p=!1;if(u)switch(n){case"select":p=Object(a.createElement)(_.SelectControl,{className:i,key:t,value:c,label:o.label,options:o.options,selected:c,help:s,multiple:!!o.multiple,onChange:function(e){l(e,t,n)}});break;case"text":p=Object(a.createElement)(_.TextControl,{className:i,key:t,value:c,label:o.label,help:s,onChange:function(e){l(e,t,n)}});break;case"textarea":p=Object(a.createElement)(_.TextareaControl,{className:i,key:t,value:c,label:o.label,help:s,onChange:function(e){l(e,t,n)}});break;case"toggle":p=Object(a.createElement)(_.ToggleControl,{className:i,key:t,value:c,label:o.label,help:s,checked:c,onChange:function(e){l(e,t,n)}});break;case"checkbox":p=Object(a.createElement)(_.CheckboxControl,{className:i,key:t,value:c,label:o.label,help:s,checked:c,onChange:function(e){l(e,t,n)}});break;case"number":case"range":p=Object(a.createElement)(_.RangeControl,{className:i,key:t,value:c,label:o.label,help:s,min:o.min,max:o.max,onChange:function(e){l(e,t,n)}});break;case"color":case"colorpicker":p=Object(a.createElement)(R,{className:i,key:t,label:o.label,help:s,value:c,disableAlpha:o.disableAlpha,onChange:function(e){l(e,t,n)}});break;case"color-palette":p=Object(a.createElement)(I,{className:i,key:t,label:o.label,help:s,value:c,clearable:o.clearable||!1,onChange:function(e){l(e,t,n)}});break;case"radio":p=Object(a.createElement)(_.RadioControl,{key:t,value:c,label:o.label,options:o.options,selected:c,checked:c,help:s,onChange:function(e){l(e,t,n)}});break;default:p=!1}return p}(o[0],o[1]);if(c)return c})))),Object(a.createElement)(B,{attributes:r,blockArgs:t}))}},L=function(){var e=Q[U];Object(M.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((function(){jQuery(document).trigger(e.key,Object.values(o))}),e.delay):jQuery(document).trigger(e.key,Object.values(o)))}))},U=0,Q=[{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}];U<Q.length;U++)L();for(var F=function(){var e=n()(V[J],2),t=e[0],o=e[1];Object(i.registerBlockType)("yith/"+t,{title:o.title,description:o.description,category:o.category,attributes:o.attributes,icon:void 0!==o.icon?o.icon:d,keywords:o.keywords,edit:H(t,o),save:function(e){var t=e.attributes;return m(o,t)},deprecated:[{attributes:o.attributes,save:function(e){var t=e.attributes,r=m(o,t),n='<span class="yith_block_'+s()(r)+'">'+r+"</span>";return Object(a.createElement)(a.RawHTML,null,n)}}]})},J=0,V=Object.entries(yithGutenbergBlocks);J<V.length;J++)F()}]);
|
1 |
+
!function(){var e,t={684:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],_n=!0,c=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(e){c=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=window.wp.element,c=window.React,l=n(568),i=n.n(l),u=window.wp.blocks,s=window.wp.url;function f(e){if(e.status>=200&&e.status<300)return e;throw e}function h(e){return e.json?e.json():e.text()}var p=(0,a.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,a.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"})),d=window.lodash,b=n.n(d),y=function(e,t,n){var r=!0;if(t&&t.id&&"value"in t){var o=t.value;["toggle","checkbox"].includes(n)&&(o=!0===o||"yes"===o||1===o),o=b().isArray(o)?o:[o],r=void 0!==e[t.id]&&o.includes(e[t.id])}return r},g=function(e,t){var n=e.controlType,r=!0;if(e.deps)if(b().isArray(e.deps))for(var o in e.deps){var a=e.deps[o];if(!(r=y(t,a,n)))break}else r=y(t,e.deps,n);return r},m=function(e,t){var n="",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)n=r(t,e);else{var a=e.attributes?Object.entries(e.attributes).map((function(e){var n=o(e,2),r=n[0],a=n[1],c=g(a,t),l=t[r];if(c&&void 0!==l)return r+"="+(a.remove_quotes?l:'"'.concat(l,'"'))})):[],c=a.length?" "+a.join(" "):"";n="[".concat(e.shortcode_name).concat(c,"]")}return n},v=window.wp.components,_=window.wp.blockEditor;function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function x(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var T=window.wp.hooks;var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(l,e);var t,n,r,o,c=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=E(r);if(o){var n=E(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return x(this,e)});function l(){var e;return w(this,l),(e=c.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},e.ajaxTimeout=!1,e}return t=l,n=[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,a=r.shortcodeHash,c=r.ajaxSuccess,l=r.ajaxResponse,i=r.ajaxUpdated;(0,d.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&i&&(c&&(0,T.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,a,l),(0,T.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,a,l),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=m(r,n),a=i()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,T.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,a),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=(0,s.addQueryArgs)(t,e),fetch(t).then(f).then(h)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,firstLoading:!1,html:t.html,shortcode:o,shortcodeHash:a,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:o,shortcode:o,shortcodeHash:a})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.firstLoading,o=e.shortcode,c=e.shortcodeHash,l=this.props.blockArgs,i=l.do_shortcode,u=l.title,s=l.empty_message,f="block-editor-yith-plugin-fw-shortcode-block",h=[f],d=i?"html":"shortcode",b=t,y="";r&&n?d="first-loading":i&&!t&&(d="empty-html",b=o,!n&&s&&(y=s));var g=["first-loading","empty-html","shortcode"].includes(d),m=!["first-loading","empty-html"].includes(d),_=!!y;return h.push("".concat(f,"--").concat(d)),h.push("".concat(f,_?"--has-message":"--no-message")),h.push("yith_block_".concat(c)),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:h.join(" ")},n?(0,a.createElement)("div",{className:"".concat(f,"__spinner-wrap")},(0,a.createElement)(v.Spinner,null)):"",g&&(0,a.createElement)("div",{className:"".concat(f,"__title components-placeholder__label")},p,u),_&&(0,a.createElement)(a.RawHTML,{className:"".concat(f,"__message")},y),m&&(0,a.createElement)(a.RawHTML,{className:"".concat(f,"__content")},b)))}}],n&&k(t.prototype,n),l}(c.Component),A=window.wp.compose;function O(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,c=e.help,l=e.disableAlpha,i=(0,A.useInstanceId)(O),u="inspector-yith-color-picker-control-".concat(i);return(0,a.createElement)(v.BaseControl,{id:u,label:n,className:"block-editor-yith-color-control ".concat(t),help:c},(0,a.createElement)(v.ColorPicker,{color:o,disableAlpha:l,onChangeComplete:r}))}function B(e){var t=e.label,n=e.colorValue;return(0,a.createElement)(a.Fragment,null,t,!!n&&(0,a.createElement)(v.ColorIndicator,{colorValue:n}))}function N(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,c=e.help,l=e.palette,i=e.clearable;l=l||(0,_.__experimentalUseEditorFeature)("color.palette");var u=(0,A.useInstanceId)(N),s="inspector-yith-color-palette-control-".concat(u);return(0,a.createElement)(v.BaseControl,{id:s,className:"block-editor-yith-color-palette-control ".concat(t),help:c},(0,a.createElement)("fieldset",null,(0,a.createElement)("legend",null,(0,a.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,a.createElement)(v.BaseControl.VisualLabel,null,(0,a.createElement)(B,{colorValue:o,label:n})))),(0,a.createElement)(v.ColorPalette,{value:o,onChange:r,colors:l,clearable:i})))}for(var R=function(e,t){return function(n){var r=n.attributes,c=(n.className,n.setAttributes),l=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,c(r)};return(0,a.createElement)(a.Fragment,null,!!t.attributes&&(0,a.createElement)(_.InspectorControls,null,(0,a.createElement)(v.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o(t,2),c=function(t,n){var o=n.controlType,c=r[t],i=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,c),u="".concat(e,"__").concat(t,"-field-wrapper"),s=g(n,r);n.wrapper_class&&(u+=" "+n.wrapper_class);var f=!1;if(s)switch(o){case"select":f=(0,a.createElement)(v.SelectControl,{className:u,key:t,value:c,label:n.label,options:n.options,selected:c,help:i,multiple:!!n.multiple,onChange:function(e){l(e,t,o)}});break;case"text":f=(0,a.createElement)(v.TextControl,{className:u,key:t,value:c,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"textarea":f=(0,a.createElement)(v.TextareaControl,{className:u,key:t,value:c,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"toggle":f=(0,a.createElement)(v.ToggleControl,{className:u,key:t,value:c,label:n.label,help:i,checked:c,onChange:function(e){l(e,t,o)}});break;case"checkbox":f=(0,a.createElement)(v.CheckboxControl,{className:u,key:t,value:c,label:n.label,help:i,checked:c,onChange:function(e){l(e,t,o)}});break;case"number":case"range":f=(0,a.createElement)(v.RangeControl,{className:u,key:t,value:c,label:n.label,help:i,min:n.min,max:n.max,onChange:function(e){l(e,t,o)}});break;case"color":case"colorpicker":f=(0,a.createElement)(O,{className:u,key:t,label:n.label,help:i,value:c,disableAlpha:n.disableAlpha,onChange:function(e){l(e,t,o)}});break;case"color-palette":f=(0,a.createElement)(N,{className:u,key:t,label:n.label,help:i,value:c,clearable:n.clearable||!1,onChange:function(e){l(e,t,o)}});break;case"radio":f=(0,a.createElement)(v.RadioControl,{key:t,value:c,label:n.label,options:n.options,selected:c,checked:c,help:i,onChange:function(e){l(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(c)return c})))),(0,a.createElement)(S,{attributes:r,blockArgs:t}))}},I=function(){var e=M[H];(0,T.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((function(){jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}))},H=0,M=[{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}];H<M.length;H++)I();for(var P=function(){var e=o(U[L],2),t=e[0],n=e[1];(0,u.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:p,keywords:n.keywords,edit:R(t,n),save:function(e){var t=e.attributes;return m(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=m(n,t),o='<span class="yith_block_'+i()(r)+'">'+r+"</span>";return(0,a.createElement)(a.RawHTML,null,o)}}]})},L=0,U=Object.entries(yithGutenbergBlocks);L<U.length;L++)P()},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<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},12:function(e){var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>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;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%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<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(o>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);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 r,o,a,c,l;r=n(12),o=n(487).utf8,a=n(738),c=n(487).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?c.stringToBytes(e):o.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),i=8*e.length,u=1732584193,s=-271733879,f=-1732584194,h=271733878,p=0;p<n.length;p++)n[p]=16711935&(n[p]<<8|n[p]>>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[i>>>5]|=128<<i%32,n[14+(i+64>>>9<<4)]=i;var d=l._ff,b=l._gg,y=l._hh,g=l._ii;for(p=0;p<n.length;p+=16){var m=u,v=s,_=f,w=h;u=d(u,s,f,h,n[p+0],7,-680876936),h=d(h,u,s,f,n[p+1],12,-389564586),f=d(f,h,u,s,n[p+2],17,606105819),s=d(s,f,h,u,n[p+3],22,-1044525330),u=d(u,s,f,h,n[p+4],7,-176418897),h=d(h,u,s,f,n[p+5],12,1200080426),f=d(f,h,u,s,n[p+6],17,-1473231341),s=d(s,f,h,u,n[p+7],22,-45705983),u=d(u,s,f,h,n[p+8],7,1770035416),h=d(h,u,s,f,n[p+9],12,-1958414417),f=d(f,h,u,s,n[p+10],17,-42063),s=d(s,f,h,u,n[p+11],22,-1990404162),u=d(u,s,f,h,n[p+12],7,1804603682),h=d(h,u,s,f,n[p+13],12,-40341101),f=d(f,h,u,s,n[p+14],17,-1502002290),u=b(u,s=d(s,f,h,u,n[p+15],22,1236535329),f,h,n[p+1],5,-165796510),h=b(h,u,s,f,n[p+6],9,-1069501632),f=b(f,h,u,s,n[p+11],14,643717713),s=b(s,f,h,u,n[p+0],20,-373897302),u=b(u,s,f,h,n[p+5],5,-701558691),h=b(h,u,s,f,n[p+10],9,38016083),f=b(f,h,u,s,n[p+15],14,-660478335),s=b(s,f,h,u,n[p+4],20,-405537848),u=b(u,s,f,h,n[p+9],5,568446438),h=b(h,u,s,f,n[p+14],9,-1019803690),f=b(f,h,u,s,n[p+3],14,-187363961),s=b(s,f,h,u,n[p+8],20,1163531501),u=b(u,s,f,h,n[p+13],5,-1444681467),h=b(h,u,s,f,n[p+2],9,-51403784),f=b(f,h,u,s,n[p+7],14,1735328473),u=y(u,s=b(s,f,h,u,n[p+12],20,-1926607734),f,h,n[p+5],4,-378558),h=y(h,u,s,f,n[p+8],11,-2022574463),f=y(f,h,u,s,n[p+11],16,1839030562),s=y(s,f,h,u,n[p+14],23,-35309556),u=y(u,s,f,h,n[p+1],4,-1530992060),h=y(h,u,s,f,n[p+4],11,1272893353),f=y(f,h,u,s,n[p+7],16,-155497632),s=y(s,f,h,u,n[p+10],23,-1094730640),u=y(u,s,f,h,n[p+13],4,681279174),h=y(h,u,s,f,n[p+0],11,-358537222),f=y(f,h,u,s,n[p+3],16,-722521979),s=y(s,f,h,u,n[p+6],23,76029189),u=y(u,s,f,h,n[p+9],4,-640364487),h=y(h,u,s,f,n[p+12],11,-421815835),f=y(f,h,u,s,n[p+15],16,530742520),u=g(u,s=y(s,f,h,u,n[p+2],23,-995338651),f,h,n[p+0],6,-198630844),h=g(h,u,s,f,n[p+7],10,1126891415),f=g(f,h,u,s,n[p+14],15,-1416354905),s=g(s,f,h,u,n[p+5],21,-57434055),u=g(u,s,f,h,n[p+12],6,1700485571),h=g(h,u,s,f,n[p+3],10,-1894986606),f=g(f,h,u,s,n[p+10],15,-1051523),s=g(s,f,h,u,n[p+1],21,-2054922799),u=g(u,s,f,h,n[p+8],6,1873313359),h=g(h,u,s,f,n[p+15],10,-30611744),f=g(f,h,u,s,n[p+6],15,-1560198380),s=g(s,f,h,u,n[p+13],21,1309151649),u=g(u,s,f,h,n[p+4],6,-145523070),h=g(h,u,s,f,n[p+11],10,-1120210379),f=g(f,h,u,s,n[p+2],15,718787259),s=g(s,f,h,u,n[p+9],21,-343485551),u=u+m>>>0,s=s+v>>>0,f=f+_>>>0,h=h+w>>>0}return r.endian([u,s,f,h])})._ff=function(e,t,n,r,o,a,c){var l=e+(t&n|~t&r)+(o>>>0)+c;return(l<<a|l>>>32-a)+t},l._gg=function(e,t,n,r,o,a,c){var l=e+(t&r|n&~r)+(o>>>0)+c;return(l<<a|l>>>32-a)+t},l._hh=function(e,t,n,r,o,a,c){var l=e+(t^n^r)+(o>>>0)+c;return(l<<a|l>>>32-a)+t},l._ii=function(e,t,n,r,o,a,c){var l=e+(n^(t|~r))+(o>>>0)+c;return(l<<a|l>>>32-a)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?c.bytesToString(n):r.bytesToHex(n)}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=function(t,n,o,a){if(!n){var c=1/0;for(s=0;s<e.length;s++){n=e[s][0],o=e[s][1],a=e[s][2];for(var l=!0,i=0;i<n.length;i++)(!1&a||c>=a)&&Object.keys(r.O).every((function(e){return r.O[e](n[i])}))?n.splice(i--,1):(l=!1,a<c&&(c=a));if(l){e.splice(s--,1);var u=o();void 0!==u&&(t=u)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[n,o,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 n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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,n){var o,a,c=n[0],l=n[1],i=n[2],u=0;if(c.some((function(t){return 0!==e[t]}))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(i)var s=i(r)}for(t&&t(n);u<c.length;u++)a=c[u],r.o(e,a)&&e[a]&&e[a][0](),e[c[u]]=0;return r.O(s)},n=self.webpackChunkyith_plugin_framewowrk=self.webpackChunkyith_plugin_framewowrk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o=r.O(void 0,[46],(function(){return r(684)}));o=r.O(o)}();
|
plugin-fw/dist/gutenberg/style-index.css
CHANGED
@@ -1,4 +1,2 @@
|
|
1 |
-
.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--
|
2 |
-
|
3 |
.block-editor-yith-color-palette-control .block-editor-yith-color-palette-control__color-indicator{margin-bottom:12px}.block-editor-yith-color-palette-control .component-color-indicator{vertical-align:text-bottom}
|
4 |
-
|
1 |
+
.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--first-loading,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode{border:1px solid #1e1e1e;border-radius:4px;padding:1em 1em 1.2em}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode .block-editor-yith-plugin-fw-shortcode-block__content{border:1px solid #ddd;border-radius:4px;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:13px;padding:.8em 1em}.block-editor-yith-plugin-fw-shortcode-block{min-height:30px;position:relative}.block-editor-yith-plugin-fw-shortcode-block .block-editor-yith-plugin-fw-shortcode-block__spinner-wrap{left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html.block-editor-yith-plugin-fw-shortcode-block--no-message .block-editor-yith-plugin-fw-shortcode-block__title,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--first-loading .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .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-size:13px;font-style:italic}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__content{display:none}
|
|
|
2 |
.block-editor-yith-color-palette-control .block-editor-yith-color-palette-control__color-indicator{margin-bottom:12px}.block-editor-yith-color-palette-control .component-color-indicator{vertical-align:text-bottom}
|
|
plugin-fw/includes/class-yit-plugin-panel.php
CHANGED
@@ -800,7 +800,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
800 |
'main_video' => false,
|
801 |
'playlists' => array(),
|
802 |
'hc_url' => 'https://support.yithemes.com/hc/',
|
803 |
-
'doc_url' => $this->settings['plugin_slug'] ? 'https://docs.yithemes.com/' . $this->settings['plugin_slug'] : '',
|
804 |
'submit_ticket_url' => 'https://yithemes.com/my-account/support/submit-a-ticket/',
|
805 |
'show_hc_articles' => true,
|
806 |
'show_submit_ticket' => true,
|
800 |
'main_video' => false,
|
801 |
'playlists' => array(),
|
802 |
'hc_url' => 'https://support.yithemes.com/hc/',
|
803 |
+
'doc_url' => $this->settings['plugin_slug'] ? 'https://docs.yithemes.com/' . $this->settings['plugin_slug'] . '/' : '',
|
804 |
'submit_ticket_url' => 'https://yithemes.com/my-account/support/submit-a-ticket/',
|
805 |
'show_hc_articles' => true,
|
806 |
'show_submit_ticket' => true,
|
plugin-fw/includes/class-yith-system-status.php
CHANGED
@@ -337,10 +337,10 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
337 |
?>
|
338 |
<div id="yith-system-alert" class="notice notice-error is-dismissible" style="position: relative;">
|
339 |
<p>
|
340 |
-
<span class="yith-logo"><img src="<?php echo esc_attr( yith_plugin_fw_get_default_logo() ); ?>"/></span>
|
341 |
<b>
|
342 |
<?php esc_html_e( 'Warning!', 'yith-plugin-fw' ); ?>
|
343 |
-
</b><br/>
|
344 |
<?php
|
345 |
/* translators: %1$s open link tag, %2$s open link tag*/
|
346 |
echo sprintf( esc_html__( 'The system check has detected some compatibility issues on your installation.%1$sClick here%2$s to know more', 'yith-plugin-fw' ), '<a href="' . esc_url( add_query_arg( array( 'page' => $this->page ), admin_url( 'admin.php' ) ) ) . '">', '</a>' );
|
@@ -719,6 +719,81 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
719 |
return compact( 'version', 'loaded_by' );
|
720 |
}
|
721 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
722 |
}
|
723 |
}
|
724 |
|
337 |
?>
|
338 |
<div id="yith-system-alert" class="notice notice-error is-dismissible" style="position: relative;">
|
339 |
<p>
|
340 |
+
<span class="yith-logo"><img src="<?php echo esc_attr( yith_plugin_fw_get_default_logo() ); ?>" /></span>
|
341 |
<b>
|
342 |
<?php esc_html_e( 'Warning!', 'yith-plugin-fw' ); ?>
|
343 |
+
</b><br />
|
344 |
<?php
|
345 |
/* translators: %1$s open link tag, %2$s open link tag*/
|
346 |
echo sprintf( esc_html__( 'The system check has detected some compatibility issues on your installation.%1$sClick here%2$s to know more', 'yith-plugin-fw' ), '<a href="' . esc_url( add_query_arg( array( 'page' => $this->page ), admin_url( 'admin.php' ) ) ) . '">', '</a>' );
|
719 |
return compact( 'version', 'loaded_by' );
|
720 |
}
|
721 |
|
722 |
+
/**
|
723 |
+
* Retrieve database info, such as MySQL version and database size.
|
724 |
+
*
|
725 |
+
* @return array
|
726 |
+
*/
|
727 |
+
public function get_database_info() {
|
728 |
+
|
729 |
+
global $wpdb;
|
730 |
+
|
731 |
+
$database_version = $wpdb->get_row( //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
|
732 |
+
'SELECT
|
733 |
+
@@GLOBAL.version_comment AS string,
|
734 |
+
@@GLOBAL.version AS number',
|
735 |
+
ARRAY_A
|
736 |
+
);
|
737 |
+
|
738 |
+
$tables = array();
|
739 |
+
$database_size = array();
|
740 |
+
|
741 |
+
// It is not possible to get the database name from some classes that replace wpdb (e.g., HyperDB)
|
742 |
+
// and that is why this if condition is needed.
|
743 |
+
if ( defined( 'DB_NAME' ) ) {
|
744 |
+
$database_table_information = $wpdb->get_results( //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
|
745 |
+
$wpdb->prepare(
|
746 |
+
"SELECT
|
747 |
+
table_name AS 'name',
|
748 |
+
engine AS 'engine',
|
749 |
+
round( ( data_length / 1024 / 1024 ), 2 ) 'data',
|
750 |
+
round( ( index_length / 1024 / 1024 ), 2 ) 'index',
|
751 |
+
round( ( data_free / 1024 / 1024 ), 2 ) 'free'
|
752 |
+
FROM information_schema.TABLES
|
753 |
+
WHERE table_schema = %s
|
754 |
+
ORDER BY name ASC;",
|
755 |
+
DB_NAME
|
756 |
+
)
|
757 |
+
);
|
758 |
+
|
759 |
+
$database_size = array(
|
760 |
+
'data' => 0,
|
761 |
+
'index' => 0,
|
762 |
+
'free' => 0,
|
763 |
+
);
|
764 |
+
|
765 |
+
$site_tables_prefix = $wpdb->get_blog_prefix( get_current_blog_id() );
|
766 |
+
$global_tables = $wpdb->tables( 'global', true );
|
767 |
+
foreach ( $database_table_information as $table ) {
|
768 |
+
// Only include tables matching the prefix of the current site, this is to prevent displaying all tables on a MS install not relating to the current.
|
769 |
+
if ( is_multisite() && 0 !== strpos( $table->name, $site_tables_prefix ) && ! in_array( $table->name, $global_tables, true ) ) {
|
770 |
+
continue;
|
771 |
+
}
|
772 |
+
|
773 |
+
$tables[ $table->name ] = array(
|
774 |
+
'data' => $table->data,
|
775 |
+
'index' => $table->index,
|
776 |
+
'free' => $table->free,
|
777 |
+
'engine' => $table->engine,
|
778 |
+
);
|
779 |
+
|
780 |
+
$database_size['data'] += $table->data;
|
781 |
+
$database_size['index'] += $table->index;
|
782 |
+
$database_size['free'] += $table->free;
|
783 |
+
}
|
784 |
+
}
|
785 |
+
|
786 |
+
return apply_filters(
|
787 |
+
'yith_database_info',
|
788 |
+
array(
|
789 |
+
'mysql_version' => $database_version['number'],
|
790 |
+
'mysql_version_string' => $database_version['string'],
|
791 |
+
'database_tables' => $tables,
|
792 |
+
'database_size' => $database_size,
|
793 |
+
)
|
794 |
+
);
|
795 |
+
}
|
796 |
+
|
797 |
}
|
798 |
}
|
799 |
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.7.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
-
* @version 3.7.
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.7.8
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
+
* @version 3.7.8
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
plugin-fw/languages/yith-plugin-fw-el.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-el.po
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-09-
|
8 |
"PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -22,7 +22,7 @@ msgid "Are you sure you want to trash the selected items?"
|
|
22 |
msgstr ""
|
23 |
|
24 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
25 |
-
#: templates/sysinfo/tabs/main.php:
|
26 |
#: yit-functions.php:1964 yit-functions.php:1982
|
27 |
msgid "No"
|
28 |
msgstr "Όχι"
|
@@ -588,43 +588,82 @@ msgstr "Έγινε αντιγραφή!"
|
|
588 |
msgid "Copy Code"
|
589 |
msgstr "Αντιγραφή Κώδικα"
|
590 |
|
591 |
-
#: templates/sysinfo/tabs/main.php:
|
592 |
msgid "Site Info"
|
593 |
msgstr "Στοιχεία Ιστότοπου"
|
594 |
|
595 |
-
#: templates/sysinfo/tabs/main.php:
|
596 |
msgid "Site URL"
|
597 |
msgstr "URL Ιστοσελίδας"
|
598 |
|
599 |
-
#: templates/sysinfo/tabs/main.php:
|
600 |
msgid "Output IP Address"
|
601 |
msgstr "Διεύθυνση IP Παραγωγής"
|
602 |
|
603 |
-
#: templates/sysinfo/tabs/main.php:
|
604 |
msgid "Defined WP_CACHE"
|
605 |
msgstr "Καθορισμένο WP_CACHE"
|
606 |
|
607 |
-
#: templates/sysinfo/tabs/main.php:
|
608 |
msgid "Yes"
|
609 |
msgstr "Ναι"
|
610 |
|
611 |
-
#: templates/sysinfo/tabs/main.php:
|
612 |
msgid "External object cache"
|
613 |
msgstr "Cache εξωτερικού αντικειμένου"
|
614 |
|
615 |
-
#: templates/sysinfo/tabs/main.php:
|
616 |
msgid "YITH Plugin Framework Version"
|
617 |
msgstr ""
|
618 |
|
619 |
#. translators: %s is the name of the plugin that is loading the framework.
|
620 |
-
#: templates/sysinfo/tabs/main.php:
|
621 |
msgid "loaded by %s"
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: templates/sysinfo/tabs/main.php:
|
625 |
msgid "Plugins Requirements"
|
626 |
msgstr "Προϋποθέσεις Πρόσθετων"
|
627 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
#. translators: %s is the title of the post object.
|
629 |
#: yit-functions.php:1894
|
630 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-09-28 14:13:11+00:00\n"
|
8 |
"PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
22 |
msgstr ""
|
23 |
|
24 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
25 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
26 |
#: yit-functions.php:1964 yit-functions.php:1982
|
27 |
msgid "No"
|
28 |
msgstr "Όχι"
|
588 |
msgid "Copy Code"
|
589 |
msgstr "Αντιγραφή Κώδικα"
|
590 |
|
591 |
+
#: templates/sysinfo/tabs/main.php:17
|
592 |
msgid "Site Info"
|
593 |
msgstr "Στοιχεία Ιστότοπου"
|
594 |
|
595 |
+
#: templates/sysinfo/tabs/main.php:22
|
596 |
msgid "Site URL"
|
597 |
msgstr "URL Ιστοσελίδας"
|
598 |
|
599 |
+
#: templates/sysinfo/tabs/main.php:31
|
600 |
msgid "Output IP Address"
|
601 |
msgstr "Διεύθυνση IP Παραγωγής"
|
602 |
|
603 |
+
#: templates/sysinfo/tabs/main.php:39
|
604 |
msgid "Defined WP_CACHE"
|
605 |
msgstr "Καθορισμένο WP_CACHE"
|
606 |
|
607 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
608 |
msgid "Yes"
|
609 |
msgstr "Ναι"
|
610 |
|
611 |
+
#: templates/sysinfo/tabs/main.php:47
|
612 |
msgid "External object cache"
|
613 |
msgstr "Cache εξωτερικού αντικειμένου"
|
614 |
|
615 |
+
#: templates/sysinfo/tabs/main.php:55
|
616 |
msgid "YITH Plugin Framework Version"
|
617 |
msgstr ""
|
618 |
|
619 |
#. translators: %s is the name of the plugin that is loading the framework.
|
620 |
+
#: templates/sysinfo/tabs/main.php:64
|
621 |
msgid "loaded by %s"
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: templates/sysinfo/tabs/main.php:73
|
625 |
msgid "Plugins Requirements"
|
626 |
msgstr "Προϋποθέσεις Πρόσθετων"
|
627 |
|
628 |
+
#: templates/sysinfo/tabs/main.php:108
|
629 |
+
msgid "Database Info"
|
630 |
+
msgstr ""
|
631 |
+
|
632 |
+
#: templates/sysinfo/tabs/main.php:113
|
633 |
+
msgid "MySQL version"
|
634 |
+
msgstr ""
|
635 |
+
|
636 |
+
#. Translators: %s: Codex link.
|
637 |
+
#: templates/sysinfo/tabs/main.php:123
|
638 |
+
msgid "WordPress recommends a minimum MySQL version of 5.6. See: %s"
|
639 |
+
msgstr ""
|
640 |
+
|
641 |
+
#: templates/sysinfo/tabs/main.php:123
|
642 |
+
msgid "WordPress requirements"
|
643 |
+
msgstr ""
|
644 |
+
|
645 |
+
#: templates/sysinfo/tabs/main.php:130
|
646 |
+
msgid "Total Database Size"
|
647 |
+
msgstr ""
|
648 |
+
|
649 |
+
#: templates/sysinfo/tabs/main.php:138
|
650 |
+
msgid "Database Data Size"
|
651 |
+
msgstr ""
|
652 |
+
|
653 |
+
#: templates/sysinfo/tabs/main.php:146
|
654 |
+
msgid "Database Index Size"
|
655 |
+
msgstr ""
|
656 |
+
|
657 |
+
#: templates/sysinfo/tabs/main.php:154
|
658 |
+
msgid "Database Free Size"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
#. Translators: %1$f: Table size, %2$f: Index size, %3$f: Free size, %4$s
|
662 |
+
#. Engine.
|
663 |
+
#: templates/sysinfo/tabs/main.php:168
|
664 |
+
msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s"
|
665 |
+
msgstr ""
|
666 |
+
|
667 |
#. translators: %s is the title of the post object.
|
668 |
#: yit-functions.php:1894
|
669 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
plugin-fw/languages/yith-plugin-fw-es_ES.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-es_ES.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-09-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -23,7 +23,7 @@ msgstr ""
|
|
23 |
"¿Estás seguro de que quieres mover a la papelera los elementos seleccionados?"
|
24 |
|
25 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
26 |
-
#: templates/sysinfo/tabs/main.php:
|
27 |
#: yit-functions.php:1964 yit-functions.php:1982
|
28 |
msgid "No"
|
29 |
msgstr "No"
|
@@ -596,43 +596,82 @@ msgstr "¡Copiado!"
|
|
596 |
msgid "Copy Code"
|
597 |
msgstr "Copiar código"
|
598 |
|
599 |
-
#: templates/sysinfo/tabs/main.php:
|
600 |
msgid "Site Info"
|
601 |
msgstr "Información del sitio"
|
602 |
|
603 |
-
#: templates/sysinfo/tabs/main.php:
|
604 |
msgid "Site URL"
|
605 |
msgstr "URL del sitio"
|
606 |
|
607 |
-
#: templates/sysinfo/tabs/main.php:
|
608 |
msgid "Output IP Address"
|
609 |
msgstr "Dirección IP de salida"
|
610 |
|
611 |
-
#: templates/sysinfo/tabs/main.php:
|
612 |
msgid "Defined WP_CACHE"
|
613 |
msgstr "WP_CACHE definido"
|
614 |
|
615 |
-
#: templates/sysinfo/tabs/main.php:
|
616 |
msgid "Yes"
|
617 |
msgstr "Sí"
|
618 |
|
619 |
-
#: templates/sysinfo/tabs/main.php:
|
620 |
msgid "External object cache"
|
621 |
msgstr "Caché objeto externo"
|
622 |
|
623 |
-
#: templates/sysinfo/tabs/main.php:
|
624 |
msgid "YITH Plugin Framework Version"
|
625 |
-
msgstr ""
|
626 |
|
627 |
#. translators: %s is the name of the plugin that is loading the framework.
|
628 |
-
#: templates/sysinfo/tabs/main.php:
|
629 |
msgid "loaded by %s"
|
630 |
-
msgstr ""
|
631 |
|
632 |
-
#: templates/sysinfo/tabs/main.php:
|
633 |
msgid "Plugins Requirements"
|
634 |
msgstr "Requerimientos de los plugins"
|
635 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
#. translators: %s is the title of the post object.
|
637 |
#: yit-functions.php:1894
|
638 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-09-28 14:13:11+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-09-28 13:56:41+0000\n"
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
23 |
"¿Estás seguro de que quieres mover a la papelera los elementos seleccionados?"
|
24 |
|
25 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
26 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
27 |
#: yit-functions.php:1964 yit-functions.php:1982
|
28 |
msgid "No"
|
29 |
msgstr "No"
|
596 |
msgid "Copy Code"
|
597 |
msgstr "Copiar código"
|
598 |
|
599 |
+
#: templates/sysinfo/tabs/main.php:17
|
600 |
msgid "Site Info"
|
601 |
msgstr "Información del sitio"
|
602 |
|
603 |
+
#: templates/sysinfo/tabs/main.php:22
|
604 |
msgid "Site URL"
|
605 |
msgstr "URL del sitio"
|
606 |
|
607 |
+
#: templates/sysinfo/tabs/main.php:31
|
608 |
msgid "Output IP Address"
|
609 |
msgstr "Dirección IP de salida"
|
610 |
|
611 |
+
#: templates/sysinfo/tabs/main.php:39
|
612 |
msgid "Defined WP_CACHE"
|
613 |
msgstr "WP_CACHE definido"
|
614 |
|
615 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
616 |
msgid "Yes"
|
617 |
msgstr "Sí"
|
618 |
|
619 |
+
#: templates/sysinfo/tabs/main.php:47
|
620 |
msgid "External object cache"
|
621 |
msgstr "Caché objeto externo"
|
622 |
|
623 |
+
#: templates/sysinfo/tabs/main.php:55
|
624 |
msgid "YITH Plugin Framework Version"
|
625 |
+
msgstr "Versión del YITH Plugin Framework "
|
626 |
|
627 |
#. translators: %s is the name of the plugin that is loading the framework.
|
628 |
+
#: templates/sysinfo/tabs/main.php:64
|
629 |
msgid "loaded by %s"
|
630 |
+
msgstr "cargado por %s"
|
631 |
|
632 |
+
#: templates/sysinfo/tabs/main.php:73
|
633 |
msgid "Plugins Requirements"
|
634 |
msgstr "Requerimientos de los plugins"
|
635 |
|
636 |
+
#: templates/sysinfo/tabs/main.php:108
|
637 |
+
msgid "Database Info"
|
638 |
+
msgstr "Información de la base de datos"
|
639 |
+
|
640 |
+
#: templates/sysinfo/tabs/main.php:113
|
641 |
+
msgid "MySQL version"
|
642 |
+
msgstr "Versión de MySQL"
|
643 |
+
|
644 |
+
#. Translators: %s: Codex link.
|
645 |
+
#: templates/sysinfo/tabs/main.php:123
|
646 |
+
msgid "WordPress recommends a minimum MySQL version of 5.6. See: %s"
|
647 |
+
msgstr "WordPress recomienda como versión mínima para MySQL la 5.6. Ver: %s"
|
648 |
+
|
649 |
+
#: templates/sysinfo/tabs/main.php:123
|
650 |
+
msgid "WordPress requirements"
|
651 |
+
msgstr "Requerimientos de WordPress"
|
652 |
+
|
653 |
+
#: templates/sysinfo/tabs/main.php:130
|
654 |
+
msgid "Total Database Size"
|
655 |
+
msgstr "Tamaño total de la base de datos:"
|
656 |
+
|
657 |
+
#: templates/sysinfo/tabs/main.php:138
|
658 |
+
msgid "Database Data Size"
|
659 |
+
msgstr "Tamaño de los datos en la base de datos:"
|
660 |
+
|
661 |
+
#: templates/sysinfo/tabs/main.php:146
|
662 |
+
msgid "Database Index Size"
|
663 |
+
msgstr "Tamaño del índice en la base de datos:"
|
664 |
+
|
665 |
+
#: templates/sysinfo/tabs/main.php:154
|
666 |
+
msgid "Database Free Size"
|
667 |
+
msgstr "Espacio libre en la base de datos:"
|
668 |
+
|
669 |
+
#. Translators: %1$f: Table size, %2$f: Index size, %3$f: Free size, %4$s
|
670 |
+
#. Engine.
|
671 |
+
#: templates/sysinfo/tabs/main.php:168
|
672 |
+
msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s"
|
673 |
+
msgstr "Datos: %1$.2fMB | Índice: %2$.2fMB | Libre: %3$.2fMB | Motor: %4$s"
|
674 |
+
|
675 |
#. translators: %s is the title of the post object.
|
676 |
#: yit-functions.php:1894
|
677 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
plugin-fw/languages/yith-plugin-fw-it_IT.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-it_IT.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-09-
|
8 |
-
"PO-Revision-Date: 2021-09-
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -22,7 +22,7 @@ msgid "Are you sure you want to trash the selected items?"
|
|
22 |
msgstr "Se sicuro di voler spostare nel cestino gli elementi selezionati?"
|
23 |
|
24 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
25 |
-
#: templates/sysinfo/tabs/main.php:
|
26 |
#: yit-functions.php:1964 yit-functions.php:1982
|
27 |
msgid "No"
|
28 |
msgstr "No"
|
@@ -596,43 +596,82 @@ msgstr "Copiato!"
|
|
596 |
msgid "Copy Code"
|
597 |
msgstr "Copia codice"
|
598 |
|
599 |
-
#: templates/sysinfo/tabs/main.php:
|
600 |
msgid "Site Info"
|
601 |
msgstr "Info sito"
|
602 |
|
603 |
-
#: templates/sysinfo/tabs/main.php:
|
604 |
msgid "Site URL"
|
605 |
msgstr "URL del sito"
|
606 |
|
607 |
-
#: templates/sysinfo/tabs/main.php:
|
608 |
msgid "Output IP Address"
|
609 |
msgstr "Indirizzo IP di output"
|
610 |
|
611 |
-
#: templates/sysinfo/tabs/main.php:
|
612 |
msgid "Defined WP_CACHE"
|
613 |
msgstr "Defined WP_CACHE"
|
614 |
|
615 |
-
#: templates/sysinfo/tabs/main.php:
|
616 |
msgid "Yes"
|
617 |
msgstr "Sì"
|
618 |
|
619 |
-
#: templates/sysinfo/tabs/main.php:
|
620 |
msgid "External object cache"
|
621 |
msgstr "External object cache"
|
622 |
|
623 |
-
#: templates/sysinfo/tabs/main.php:
|
624 |
msgid "YITH Plugin Framework Version"
|
625 |
-
msgstr ""
|
626 |
|
627 |
#. translators: %s is the name of the plugin that is loading the framework.
|
628 |
-
#: templates/sysinfo/tabs/main.php:
|
629 |
msgid "loaded by %s"
|
630 |
-
msgstr ""
|
631 |
|
632 |
-
#: templates/sysinfo/tabs/main.php:
|
633 |
msgid "Plugins Requirements"
|
634 |
msgstr "Requisiti plugin"
|
635 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
#. translators: %s is the title of the post object.
|
637 |
#: yit-functions.php:1894
|
638 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-09-28 14:13:11+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-09-28 14:05:29+0000\n"
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
22 |
msgstr "Se sicuro di voler spostare nel cestino gli elementi selezionati?"
|
23 |
|
24 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
25 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
26 |
#: yit-functions.php:1964 yit-functions.php:1982
|
27 |
msgid "No"
|
28 |
msgstr "No"
|
596 |
msgid "Copy Code"
|
597 |
msgstr "Copia codice"
|
598 |
|
599 |
+
#: templates/sysinfo/tabs/main.php:17
|
600 |
msgid "Site Info"
|
601 |
msgstr "Info sito"
|
602 |
|
603 |
+
#: templates/sysinfo/tabs/main.php:22
|
604 |
msgid "Site URL"
|
605 |
msgstr "URL del sito"
|
606 |
|
607 |
+
#: templates/sysinfo/tabs/main.php:31
|
608 |
msgid "Output IP Address"
|
609 |
msgstr "Indirizzo IP di output"
|
610 |
|
611 |
+
#: templates/sysinfo/tabs/main.php:39
|
612 |
msgid "Defined WP_CACHE"
|
613 |
msgstr "Defined WP_CACHE"
|
614 |
|
615 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
616 |
msgid "Yes"
|
617 |
msgstr "Sì"
|
618 |
|
619 |
+
#: templates/sysinfo/tabs/main.php:47
|
620 |
msgid "External object cache"
|
621 |
msgstr "External object cache"
|
622 |
|
623 |
+
#: templates/sysinfo/tabs/main.php:55
|
624 |
msgid "YITH Plugin Framework Version"
|
625 |
+
msgstr "YITH Plugin Framework Version"
|
626 |
|
627 |
#. translators: %s is the name of the plugin that is loading the framework.
|
628 |
+
#: templates/sysinfo/tabs/main.php:64
|
629 |
msgid "loaded by %s"
|
630 |
+
msgstr "caricato da %s"
|
631 |
|
632 |
+
#: templates/sysinfo/tabs/main.php:73
|
633 |
msgid "Plugins Requirements"
|
634 |
msgstr "Requisiti plugin"
|
635 |
|
636 |
+
#: templates/sysinfo/tabs/main.php:108
|
637 |
+
msgid "Database Info"
|
638 |
+
msgstr "Info database"
|
639 |
+
|
640 |
+
#: templates/sysinfo/tabs/main.php:113
|
641 |
+
msgid "MySQL version"
|
642 |
+
msgstr "Versione MySQL"
|
643 |
+
|
644 |
+
#. Translators: %s: Codex link.
|
645 |
+
#: templates/sysinfo/tabs/main.php:123
|
646 |
+
msgid "WordPress recommends a minimum MySQL version of 5.6. See: %s"
|
647 |
+
msgstr "WordPress consiglia una versione minima 5.6 di MySQL. Vedi: %s"
|
648 |
+
|
649 |
+
#: templates/sysinfo/tabs/main.php:123
|
650 |
+
msgid "WordPress requirements"
|
651 |
+
msgstr "Requisiti WordPress"
|
652 |
+
|
653 |
+
#: templates/sysinfo/tabs/main.php:130
|
654 |
+
msgid "Total Database Size"
|
655 |
+
msgstr "Dimensione totale database"
|
656 |
+
|
657 |
+
#: templates/sysinfo/tabs/main.php:138
|
658 |
+
msgid "Database Data Size"
|
659 |
+
msgstr "Dimensione dati database"
|
660 |
+
|
661 |
+
#: templates/sysinfo/tabs/main.php:146
|
662 |
+
msgid "Database Index Size"
|
663 |
+
msgstr "Dimensione indice database"
|
664 |
+
|
665 |
+
#: templates/sysinfo/tabs/main.php:154
|
666 |
+
msgid "Database Free Size"
|
667 |
+
msgstr "Dimensione spazio libero database"
|
668 |
+
|
669 |
+
#. Translators: %1$f: Table size, %2$f: Index size, %3$f: Free size, %4$s
|
670 |
+
#. Engine.
|
671 |
+
#: templates/sysinfo/tabs/main.php:168
|
672 |
+
msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s"
|
673 |
+
msgstr "Dati: %1$.2fMB | Indice: %2$.2fMB | Libero: %3$.2fMB | Motore: %4$s"
|
674 |
+
|
675 |
#. translators: %s is the title of the post object.
|
676 |
#: yit-functions.php:1894
|
677 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
plugin-fw/languages/yith-plugin-fw-nl_NL.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-nl_NL.po
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-09-
|
8 |
"PO-Revision-Date: 2021-07-13 10:29:10+0000\n"
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -24,7 +24,7 @@ msgstr ""
|
|
24 |
"verplaatsen?"
|
25 |
|
26 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
27 |
-
#: templates/sysinfo/tabs/main.php:
|
28 |
#: yit-functions.php:1964 yit-functions.php:1982
|
29 |
msgid "No"
|
30 |
msgstr "Nee"
|
@@ -596,43 +596,82 @@ msgstr "Gekopieerd!"
|
|
596 |
msgid "Copy Code"
|
597 |
msgstr "Code kopiëren"
|
598 |
|
599 |
-
#: templates/sysinfo/tabs/main.php:
|
600 |
msgid "Site Info"
|
601 |
msgstr "Site informatie"
|
602 |
|
603 |
-
#: templates/sysinfo/tabs/main.php:
|
604 |
msgid "Site URL"
|
605 |
msgstr "Site URL"
|
606 |
|
607 |
-
#: templates/sysinfo/tabs/main.php:
|
608 |
msgid "Output IP Address"
|
609 |
msgstr "Output IP Adres"
|
610 |
|
611 |
-
#: templates/sysinfo/tabs/main.php:
|
612 |
msgid "Defined WP_CACHE"
|
613 |
msgstr "Gedefinieerde WP_CACHE"
|
614 |
|
615 |
-
#: templates/sysinfo/tabs/main.php:
|
616 |
msgid "Yes"
|
617 |
msgstr "Ja"
|
618 |
|
619 |
-
#: templates/sysinfo/tabs/main.php:
|
620 |
msgid "External object cache"
|
621 |
msgstr "Externe object cache"
|
622 |
|
623 |
-
#: templates/sysinfo/tabs/main.php:
|
624 |
msgid "YITH Plugin Framework Version"
|
625 |
msgstr ""
|
626 |
|
627 |
#. translators: %s is the name of the plugin that is loading the framework.
|
628 |
-
#: templates/sysinfo/tabs/main.php:
|
629 |
msgid "loaded by %s"
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: templates/sysinfo/tabs/main.php:
|
633 |
msgid "Plugins Requirements"
|
634 |
msgstr "Plugin benodigdheden"
|
635 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
#. translators: %s is the title of the post object.
|
637 |
#: yit-functions.php:1894
|
638 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-09-28 14:13:11+00:00\n"
|
8 |
"PO-Revision-Date: 2021-07-13 10:29:10+0000\n"
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
24 |
"verplaatsen?"
|
25 |
|
26 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
27 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
28 |
#: yit-functions.php:1964 yit-functions.php:1982
|
29 |
msgid "No"
|
30 |
msgstr "Nee"
|
596 |
msgid "Copy Code"
|
597 |
msgstr "Code kopiëren"
|
598 |
|
599 |
+
#: templates/sysinfo/tabs/main.php:17
|
600 |
msgid "Site Info"
|
601 |
msgstr "Site informatie"
|
602 |
|
603 |
+
#: templates/sysinfo/tabs/main.php:22
|
604 |
msgid "Site URL"
|
605 |
msgstr "Site URL"
|
606 |
|
607 |
+
#: templates/sysinfo/tabs/main.php:31
|
608 |
msgid "Output IP Address"
|
609 |
msgstr "Output IP Adres"
|
610 |
|
611 |
+
#: templates/sysinfo/tabs/main.php:39
|
612 |
msgid "Defined WP_CACHE"
|
613 |
msgstr "Gedefinieerde WP_CACHE"
|
614 |
|
615 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
616 |
msgid "Yes"
|
617 |
msgstr "Ja"
|
618 |
|
619 |
+
#: templates/sysinfo/tabs/main.php:47
|
620 |
msgid "External object cache"
|
621 |
msgstr "Externe object cache"
|
622 |
|
623 |
+
#: templates/sysinfo/tabs/main.php:55
|
624 |
msgid "YITH Plugin Framework Version"
|
625 |
msgstr ""
|
626 |
|
627 |
#. translators: %s is the name of the plugin that is loading the framework.
|
628 |
+
#: templates/sysinfo/tabs/main.php:64
|
629 |
msgid "loaded by %s"
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: templates/sysinfo/tabs/main.php:73
|
633 |
msgid "Plugins Requirements"
|
634 |
msgstr "Plugin benodigdheden"
|
635 |
|
636 |
+
#: templates/sysinfo/tabs/main.php:108
|
637 |
+
msgid "Database Info"
|
638 |
+
msgstr ""
|
639 |
+
|
640 |
+
#: templates/sysinfo/tabs/main.php:113
|
641 |
+
msgid "MySQL version"
|
642 |
+
msgstr ""
|
643 |
+
|
644 |
+
#. Translators: %s: Codex link.
|
645 |
+
#: templates/sysinfo/tabs/main.php:123
|
646 |
+
msgid "WordPress recommends a minimum MySQL version of 5.6. See: %s"
|
647 |
+
msgstr ""
|
648 |
+
|
649 |
+
#: templates/sysinfo/tabs/main.php:123
|
650 |
+
msgid "WordPress requirements"
|
651 |
+
msgstr ""
|
652 |
+
|
653 |
+
#: templates/sysinfo/tabs/main.php:130
|
654 |
+
msgid "Total Database Size"
|
655 |
+
msgstr ""
|
656 |
+
|
657 |
+
#: templates/sysinfo/tabs/main.php:138
|
658 |
+
msgid "Database Data Size"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
#: templates/sysinfo/tabs/main.php:146
|
662 |
+
msgid "Database Index Size"
|
663 |
+
msgstr ""
|
664 |
+
|
665 |
+
#: templates/sysinfo/tabs/main.php:154
|
666 |
+
msgid "Database Free Size"
|
667 |
+
msgstr ""
|
668 |
+
|
669 |
+
#. Translators: %1$f: Table size, %2$f: Index size, %3$f: Free size, %4$s
|
670 |
+
#. Engine.
|
671 |
+
#: templates/sysinfo/tabs/main.php:168
|
672 |
+
msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s"
|
673 |
+
msgstr ""
|
674 |
+
|
675 |
#. translators: %s is the title of the post object.
|
676 |
#: yit-functions.php:1894
|
677 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-09-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -33,7 +33,7 @@ msgid "Are you sure you want to trash the selected items?"
|
|
33 |
msgstr ""
|
34 |
|
35 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
36 |
-
#: templates/sysinfo/tabs/main.php:
|
37 |
#: yit-functions.php:1964 yit-functions.php:1982
|
38 |
msgid "No"
|
39 |
msgstr ""
|
@@ -573,43 +573,82 @@ msgstr ""
|
|
573 |
msgid "Copy Code"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: templates/sysinfo/tabs/main.php:
|
577 |
msgid "Site Info"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: templates/sysinfo/tabs/main.php:
|
581 |
msgid "Site URL"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: templates/sysinfo/tabs/main.php:
|
585 |
msgid "Output IP Address"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: templates/sysinfo/tabs/main.php:
|
589 |
msgid "Defined WP_CACHE"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: templates/sysinfo/tabs/main.php:
|
593 |
msgid "Yes"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: templates/sysinfo/tabs/main.php:
|
597 |
msgid "External object cache"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: templates/sysinfo/tabs/main.php:
|
601 |
msgid "YITH Plugin Framework Version"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: templates/sysinfo/tabs/main.php:
|
605 |
#. translators: %s is the name of the plugin that is loading the framework.
|
606 |
msgid "loaded by %s"
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: templates/sysinfo/tabs/main.php:
|
610 |
msgid "Plugins Requirements"
|
611 |
msgstr ""
|
612 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
#: yit-functions.php:1894
|
614 |
#. translators: %s is the title of the post object.
|
615 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-09-28 14:13:11+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
33 |
msgstr ""
|
34 |
|
35 |
#: includes/class-yit-assets.php:149 includes/class-yit-assets.php:153
|
36 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
37 |
#: yit-functions.php:1964 yit-functions.php:1982
|
38 |
msgid "No"
|
39 |
msgstr ""
|
573 |
msgid "Copy Code"
|
574 |
msgstr ""
|
575 |
|
576 |
+
#: templates/sysinfo/tabs/main.php:17
|
577 |
msgid "Site Info"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: templates/sysinfo/tabs/main.php:22
|
581 |
msgid "Site URL"
|
582 |
msgstr ""
|
583 |
|
584 |
+
#: templates/sysinfo/tabs/main.php:31
|
585 |
msgid "Output IP Address"
|
586 |
msgstr ""
|
587 |
|
588 |
+
#: templates/sysinfo/tabs/main.php:39
|
589 |
msgid "Defined WP_CACHE"
|
590 |
msgstr ""
|
591 |
|
592 |
+
#: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50
|
593 |
msgid "Yes"
|
594 |
msgstr ""
|
595 |
|
596 |
+
#: templates/sysinfo/tabs/main.php:47
|
597 |
msgid "External object cache"
|
598 |
msgstr ""
|
599 |
|
600 |
+
#: templates/sysinfo/tabs/main.php:55
|
601 |
msgid "YITH Plugin Framework Version"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: templates/sysinfo/tabs/main.php:64
|
605 |
#. translators: %s is the name of the plugin that is loading the framework.
|
606 |
msgid "loaded by %s"
|
607 |
msgstr ""
|
608 |
|
609 |
+
#: templates/sysinfo/tabs/main.php:73
|
610 |
msgid "Plugins Requirements"
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: templates/sysinfo/tabs/main.php:108
|
614 |
+
msgid "Database Info"
|
615 |
+
msgstr ""
|
616 |
+
|
617 |
+
#: templates/sysinfo/tabs/main.php:113
|
618 |
+
msgid "MySQL version"
|
619 |
+
msgstr ""
|
620 |
+
|
621 |
+
#: templates/sysinfo/tabs/main.php:123
|
622 |
+
#. Translators: %s: Codex link.
|
623 |
+
msgid "WordPress recommends a minimum MySQL version of 5.6. See: %s"
|
624 |
+
msgstr ""
|
625 |
+
|
626 |
+
#: templates/sysinfo/tabs/main.php:123
|
627 |
+
msgid "WordPress requirements"
|
628 |
+
msgstr ""
|
629 |
+
|
630 |
+
#: templates/sysinfo/tabs/main.php:130
|
631 |
+
msgid "Total Database Size"
|
632 |
+
msgstr ""
|
633 |
+
|
634 |
+
#: templates/sysinfo/tabs/main.php:138
|
635 |
+
msgid "Database Data Size"
|
636 |
+
msgstr ""
|
637 |
+
|
638 |
+
#: templates/sysinfo/tabs/main.php:146
|
639 |
+
msgid "Database Index Size"
|
640 |
+
msgstr ""
|
641 |
+
|
642 |
+
#: templates/sysinfo/tabs/main.php:154
|
643 |
+
msgid "Database Free Size"
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
+
#: templates/sysinfo/tabs/main.php:168
|
647 |
+
#. Translators: %1$f: Table size, %2$f: Index size, %3$f: Free size, %4$s
|
648 |
+
#. Engine.
|
649 |
+
msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s"
|
650 |
+
msgstr ""
|
651 |
+
|
652 |
#: yit-functions.php:1894
|
653 |
#. translators: %s is the title of the post object.
|
654 |
msgid "Are you sure you want to move \"%s\" to trash?"
|
plugin-fw/templates/fields/inline-fields.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
|
9 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
|
11 |
-
list ( $field_id, $name, $class, $fields, $value, $custom_attributes ) = yith_plugin_fw_extract( $field, 'id', 'name', 'class', 'fields', 'value', 'custom_attributes' );
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
@@ -16,7 +16,10 @@ $allowed_types = array( 'select', 'select-buttons', 'number', 'text', 'slider',
|
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
19 |
-
<div id="<?php echo esc_attr( $field_id ); ?>" class="<?php echo esc_attr( $class ); ?> yith-inline-fields"
|
|
|
|
|
|
|
20 |
<?php foreach ( $fields as $key => $inline_field ) : ?>
|
21 |
<?php
|
22 |
if ( ! in_array( $inline_field['type'], $allowed_types, true ) ) {
|
8 |
|
9 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
|
11 |
+
list ( $field_id, $name, $class, $fields, $value, $data, $custom_attributes ) = yith_plugin_fw_extract( $field, 'id', 'name', 'class', 'fields', 'value', 'data', 'custom_attributes' );
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
19 |
+
<div id="<?php echo esc_attr( $field_id ); ?>" class="<?php echo esc_attr( $class ); ?> yith-inline-fields"
|
20 |
+
<?php echo $custom_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
21 |
+
<?php echo isset( $data ) ? yith_plugin_fw_html_data_to_string( $data ) : ''; ?>
|
22 |
+
>
|
23 |
<?php foreach ( $fields as $key => $inline_field ) : ?>
|
24 |
<?php
|
25 |
if ( ! in_array( $inline_field['type'], $allowed_types, true ) ) {
|
plugin-fw/templates/sysinfo/tabs/main.php
CHANGED
@@ -11,6 +11,7 @@ $system_info = get_option( 'yith_system_info' );
|
|
11 |
$output_ip = YITH_System_Status()->get_output_ip();
|
12 |
$labels = YITH_System_Status()->requirement_labels;
|
13 |
$plugin_fw_info = YITH_System_Status()->get_plugin_fw_info();
|
|
|
14 |
?>
|
15 |
<h2>
|
16 |
<?php esc_html_e( 'Site Info', 'yith-plugin-fw' ); ?>
|
@@ -100,3 +101,73 @@ $plugin_fw_info = YITH_System_Status()->get_plugin_fw_info();
|
|
100 |
</tr>
|
101 |
<?php endforeach; ?>
|
102 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
$output_ip = YITH_System_Status()->get_output_ip();
|
12 |
$labels = YITH_System_Status()->requirement_labels;
|
13 |
$plugin_fw_info = YITH_System_Status()->get_plugin_fw_info();
|
14 |
+
$database_info = YITH_System_Status()->get_database_info();
|
15 |
?>
|
16 |
<h2>
|
17 |
<?php esc_html_e( 'Site Info', 'yith-plugin-fw' ); ?>
|
101 |
</tr>
|
102 |
<?php endforeach; ?>
|
103 |
</table>
|
104 |
+
<?php
|
105 |
+
$db_error = version_compare( $database_info['mysql_version'], '5.6', '<' ) && ! strstr( $database_info['mysql_version_string'], 'MariaDB' );
|
106 |
+
?>
|
107 |
+
<h2>
|
108 |
+
<?php esc_html_e( 'Database Info', 'yith-plugin-fw' ); ?>
|
109 |
+
</h2>
|
110 |
+
<table class="form-table" role="presentation">
|
111 |
+
<tr>
|
112 |
+
<th scope="row">
|
113 |
+
<?php esc_html_e( 'MySQL version', 'yith-plugin-fw' ); ?>
|
114 |
+
</th>
|
115 |
+
<td class="requirement-value <?php echo( $db_error ? 'has-errors' : '' ); ?>" style="width:auto!important">
|
116 |
+
<span class="dashicons dashicons-<?php echo( $db_error ? 'warning' : 'yes' ); ?>"></span>
|
117 |
+
<?php echo esc_attr( $database_info['mysql_version'] . ' - ' . $database_info['mysql_version_string'] ); ?>
|
118 |
+
</td>
|
119 |
+
<td class="requirement-messages">
|
120 |
+
<?php
|
121 |
+
if ( $db_error ) {
|
122 |
+
/* Translators: %s: Codex link. */
|
123 |
+
echo sprintf( esc_html__( 'WordPress recommends a minimum MySQL version of 5.6. See: %s', 'yith-plugin-fw' ), '<a href="https://wordpress.org/about/requirements/" target="_blank">' . esc_html__( 'WordPress requirements', 'yith-plugin-fw' ) . '</a>' );
|
124 |
+
}
|
125 |
+
?>
|
126 |
+
</td>
|
127 |
+
</tr>
|
128 |
+
<tr>
|
129 |
+
<th scope="row">
|
130 |
+
<?php esc_html_e( 'Total Database Size', 'yith-plugin-fw' ); ?>
|
131 |
+
</th>
|
132 |
+
<td colspan="2">
|
133 |
+
<?php printf( '%.2fMB', esc_html( $database_info['database_size']['data'] + $database_info['database_size']['index'] + $database_info['database_size']['free'] ) ); ?>
|
134 |
+
</td>
|
135 |
+
</tr>
|
136 |
+
<tr>
|
137 |
+
<th scope="row">
|
138 |
+
<?php esc_html_e( 'Database Data Size', 'yith-plugin-fw' ); ?>
|
139 |
+
</th>
|
140 |
+
<td colspan="2">
|
141 |
+
<?php printf( '%.2fMB', esc_html( $database_info['database_size']['data'] ) ); ?>
|
142 |
+
</td>
|
143 |
+
</tr>
|
144 |
+
<tr>
|
145 |
+
<th scope="row">
|
146 |
+
<?php esc_html_e( 'Database Index Size', 'yith-plugin-fw' ); ?>
|
147 |
+
</th>
|
148 |
+
<td colspan="2">
|
149 |
+
<?php printf( '%.2fMB', esc_html( $database_info['database_size']['index'] ) ); ?>
|
150 |
+
</td>
|
151 |
+
</tr>
|
152 |
+
<tr>
|
153 |
+
<th scope="row">
|
154 |
+
<?php esc_html_e( 'Database Free Size', 'yith-plugin-fw' ); ?>
|
155 |
+
</th>
|
156 |
+
<td colspan="2">
|
157 |
+
<?php printf( '%.2fMB', esc_html( $database_info['database_size']['free'] ) ); ?>
|
158 |
+
</td>
|
159 |
+
</tr>
|
160 |
+
<?php foreach ( $database_info['database_tables'] as $table => $table_data ) : ?>
|
161 |
+
<tr>
|
162 |
+
<th scope="row">
|
163 |
+
<?php echo esc_html( $table ); ?>
|
164 |
+
</th>
|
165 |
+
<td colspan="2">
|
166 |
+
<?php
|
167 |
+
/* Translators: %1$f: Table size, %2$f: Index size, %3$f: Free size, %4$s Engine. */
|
168 |
+
printf( esc_html__( 'Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s', 'yith-plugin-fw' ), esc_html( number_format( $table_data['data'], 2 ) ), esc_html( number_format( $table_data['index'], 2 ) ), esc_html( number_format( $table_data['free'], 2 ) ), esc_html( $table_data['engine'] ) );
|
169 |
+
?>
|
170 |
+
</td>
|
171 |
+
</tr>
|
172 |
+
<?php endforeach; ?>
|
173 |
+
</table>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 5.6
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,11 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
131 |
|
132 |
== Changelog ==
|
133 |
|
|
|
|
|
|
|
|
|
|
|
134 |
= Version 2.1.1 - Released: 27 September 2021 =
|
135 |
|
136 |
* Update: YITH plugin framework
|
@@ -445,7 +450,7 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
445 |
|
446 |
== Upgrade Notice ==
|
447 |
|
448 |
-
Last Stable Tag 2.
|
449 |
|
450 |
== Suggestions ==
|
451 |
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 5.6
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 2.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
131 |
|
132 |
== Changelog ==
|
133 |
|
134 |
+
= Version 2.2.0 - Released: 05 October 2021 =
|
135 |
+
|
136 |
+
* New: support for WooCommerce 5.8
|
137 |
+
* Update: YITH plugin framework
|
138 |
+
|
139 |
= Version 2.1.1 - Released: 27 September 2021 =
|
140 |
|
141 |
* Update: YITH plugin framework
|
450 |
|
451 |
== Upgrade Notice ==
|
452 |
|
453 |
+
Last Stable Tag 2.2.0
|
454 |
|
455 |
== Suggestions ==
|
456 |
|