From 93fb821f9992d475e15a3d428bfa952e47c6d6d5 Mon Sep 17 00:00:00 2001 From: Fabrice Creuzot Date: Sun, 8 Aug 2021 20:00:00 +0000 Subject: [PATCH] Version 6.8.0 --- README.md | 8 +++---- composer.json | 3 +++ .../Luigifab/Apijs/Helper/Rewrite/Image.php | 24 +++++++++---------- .../community/Luigifab/Apijs/etc/config.xml | 4 ++-- .../community/Luigifab/Apijs/etc/system.xml | 4 +--- src/app/code/community/Luigifab/Apijs/readme | 5 ++++ .../{install-6.7.0.php => install-6.8.0.php} | 5 ++-- .../template/luigifab/apijs/browser.phtml | 4 ++-- .../template/luigifab/apijs/gallery.phtml | 6 ++--- .../base/default/layout/luigifab/apijs.xml | 10 ++++++-- .../template/luigifab/apijs/browser.phtml | 4 ++-- src/app/locale/el_GR/Luigifab_Apijs.csv | 3 +++ src/app/locale/hu_HU/Luigifab_Apijs.csv | 7 ++++++ src/app/locale/ro_RO/Luigifab_Apijs.csv | 6 +++++ src/app/locale/ru_RU/Luigifab_Apijs.csv | 3 +++ src/app/locale/uk_UA/Luigifab_Apijs.csv | 3 +++ .../apijs/{styles.css => apijs-openmage.css} | 0 .../css/luigifab/apijs/apijs-openmage.min.css | 2 +- .../luigifab/apijs/apijs-openmage.min.css.map | 1 + .../css/luigifab/apijs/apijs-print.min.css | 2 +- .../luigifab/apijs/apijs-print.min.css.map | 2 +- .../luigifab/apijs/apijs-screen-rtl.min.css | 2 +- .../apijs/apijs-screen-rtl.min.css.map | 2 +- .../css/luigifab/apijs/apijs-screen.min.css | 2 +- .../luigifab/apijs/apijs-screen.min.css.map | 2 +- .../css/luigifab/apijs/styles.min.css.map | 1 - .../apijs/{app.js => apijs-openmage.js} | 8 +++---- .../js/luigifab/apijs/apijs-openmage.min.js | 4 ++-- .../luigifab/apijs/apijs-openmage.min.js.map | 1 + .../default/js/luigifab/apijs/apijs.min.js | 4 ++-- .../js/luigifab/apijs/apijs.min.js.map | 2 +- .../default/js/luigifab/apijs/app.min.js.map | 1 - .../apijs/{styles.css => apijs-openmage.css} | 0 .../css/luigifab/apijs/apijs-openmage.min.css | 2 +- .../luigifab/apijs/apijs-openmage.min.css.map | 1 + .../css/luigifab/apijs/apijs-print.min.css | 2 +- .../luigifab/apijs/apijs-print.min.css.map | 2 +- .../luigifab/apijs/apijs-screen-rtl.min.css | 2 +- .../apijs/apijs-screen-rtl.min.css.map | 2 +- .../css/luigifab/apijs/apijs-screen.min.css | 2 +- .../luigifab/apijs/apijs-screen.min.css.map | 2 +- .../css/luigifab/apijs/styles.min.css.map | 1 - .../default/js/luigifab/apijs/apijs.min.js | 4 ++-- .../js/luigifab/apijs/apijs.min.js.map | 2 +- 44 files changed, 93 insertions(+), 64 deletions(-) rename src/app/code/community/Luigifab/Apijs/sql/apijs_setup/{install-6.7.0.php => install-6.8.0.php} (90%) create mode 100644 src/app/locale/el_GR/Luigifab_Apijs.csv create mode 100644 src/app/locale/hu_HU/Luigifab_Apijs.csv create mode 100644 src/app/locale/ro_RO/Luigifab_Apijs.csv rename src/skin/adminhtml/default/default/css/luigifab/apijs/{styles.css => apijs-openmage.css} (100%) create mode 100644 src/skin/adminhtml/default/default/css/luigifab/apijs/apijs-openmage.min.css.map delete mode 100644 src/skin/adminhtml/default/default/css/luigifab/apijs/styles.min.css.map rename src/skin/adminhtml/default/default/js/luigifab/apijs/{app.js => apijs-openmage.js} (98%) create mode 100644 src/skin/adminhtml/default/default/js/luigifab/apijs/apijs-openmage.min.js.map delete mode 100644 src/skin/adminhtml/default/default/js/luigifab/apijs/app.min.js.map rename src/skin/frontend/base/default/css/luigifab/apijs/{styles.css => apijs-openmage.css} (100%) create mode 100644 src/skin/frontend/base/default/css/luigifab/apijs/apijs-openmage.min.css.map delete mode 100644 src/skin/frontend/base/default/css/luigifab/apijs/styles.min.css.map diff --git a/README.md b/README.md index 6d8387b..c95ada9 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,10 @@ For more information, go to https://www.luigifab.fr/apijs and https://www.luigif This repository is a releases mirror. To install the module, please use the composer key available in the documentation. -- Current version: 6.7.0 (07/07/2021) -- Compatibility: OpenMage 19.x / 20.x, PHP 7.2 / 7.3 / 7.4 / 8.0, Python 3.3 / 3.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9 +- Current version: 6.8.0 (08/08/2021) +- Compatibility: OpenMage 19.x / 20.x, PHP 7.2 / 7.3 / 7.4 / 8.0, Python 3.3 - 3.10 - Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+ -- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) -- Other translations: Czech (cs), Dutch (nl), Japanese (ja), Polish (pl), Slovak (sk) -- Other translations: Chinese (zh), Russian (ru), Turkish (tr), Ukrainian (uk) +- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk) - License: GNU GPL 2+ If you like, take some of your time to improve the translations, go to https://bit.ly/2HyCCEc. diff --git a/composer.json b/composer.json index f05dc57..91c5f39 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,7 @@ ["src/app/locale/de_AT/Luigifab_Apijs.csv", "app/locale/de_AT/Luigifab_Apijs.csv"], ["src/app/locale/de_CH/Luigifab_Apijs.csv", "app/locale/de_CH/Luigifab_Apijs.csv"], ["src/app/locale/de_DE/Luigifab_Apijs.csv", "app/locale/de_DE/Luigifab_Apijs.csv"], + ["src/app/locale/el_GR/Luigifab_Apijs.csv", "app/locale/el_GR/Luigifab_Apijs.csv"], ["src/app/locale/es_AR/Luigifab_Apijs.csv", "app/locale/es_AR/Luigifab_Apijs.csv"], ["src/app/locale/es_CL/Luigifab_Apijs.csv", "app/locale/es_CL/Luigifab_Apijs.csv"], ["src/app/locale/es_CO/Luigifab_Apijs.csv", "app/locale/es_CO/Luigifab_Apijs.csv"], @@ -56,6 +57,7 @@ ["src/app/locale/fr_CA/Luigifab_Apijs.csv", "app/locale/fr_CA/Luigifab_Apijs.csv"], ["src/app/locale/fr_CH/Luigifab_Apijs.csv", "app/locale/fr_CH/Luigifab_Apijs.csv"], ["src/app/locale/fr_FR/Luigifab_Apijs.csv", "app/locale/fr_FR/Luigifab_Apijs.csv"], + ["src/app/locale/hu_HU/Luigifab_Apijs.csv", "app/locale/hu_HU/Luigifab_Apijs.csv"], ["src/app/locale/it_CH/Luigifab_Apijs.csv", "app/locale/it_CH/Luigifab_Apijs.csv"], ["src/app/locale/it_IT/Luigifab_Apijs.csv", "app/locale/it_IT/Luigifab_Apijs.csv"], ["src/app/locale/ja_JP/Luigifab_Apijs.csv", "app/locale/ja_JP/Luigifab_Apijs.csv"], @@ -63,6 +65,7 @@ ["src/app/locale/pl_PL/Luigifab_Apijs.csv", "app/locale/pl_PL/Luigifab_Apijs.csv"], ["src/app/locale/pt_BR/Luigifab_Apijs.csv", "app/locale/pt_BR/Luigifab_Apijs.csv"], ["src/app/locale/pt_PT/Luigifab_Apijs.csv", "app/locale/pt_PT/Luigifab_Apijs.csv"], + ["src/app/locale/ro_RO/Luigifab_Apijs.csv", "app/locale/ro_RO/Luigifab_Apijs.csv"], ["src/app/locale/ru_RU/Luigifab_Apijs.csv", "app/locale/ru_RU/Luigifab_Apijs.csv"], ["src/app/locale/sk_SK/Luigifab_Apijs.csv", "app/locale/sk_SK/Luigifab_Apijs.csv"], ["src/app/locale/tr_TR/Luigifab_Apijs.csv", "app/locale/tr_TR/Luigifab_Apijs.csv"], diff --git a/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php b/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php index 1e9202c..b1b7ba5 100644 --- a/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php +++ b/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php @@ -1,7 +1,7 @@ * Copyright 2019-2021 | Fabrice Creuzot @@ -31,7 +31,7 @@ public function init($product, $attribute, $path = null, $fixed = true) { //if (!isset($this->_debugRenew)) $this->_debugRenew = 0; //$this->_debugCount += 1; //$this->_debugStart = microtime(true); - //Mage::log('Open file '.$path.'...'); + //Mage::log('Open file '.$path.'...', Zend_Log::DEBUG); if (empty($this->_helper)) { $this->_helper = Mage::helper('apijs'); @@ -187,11 +187,11 @@ public function setBaseFile() { Mage::getDesign()->setArea($area); } - //Mage::log(' setBaseFile '.number_format(microtime(true) - $go, 4)); + //Mage::log(' setBaseFile '.number_format(microtime(true) - $go, 4), Zend_Log::DEBUG); return $this; } - public function cleanUrl($url) { + public function cleanUrl(string $url) { return $this->_cleanUrl ? mb_substr($url, strpos($url, '/', 9)) : $url; } @@ -226,11 +226,11 @@ public function __toString() { mb_substr($filename, mb_stripos($filename, '/'.$dir.'/') + mb_strlen('/'.$dir.'/'))); if (array_key_exists($filename, $this->_cacheUrls)) { - //Mage::log(' CACHE HIT '.$filename); $this->_debugCache++; + //Mage::log(' CACHE HIT '.$filename, Zend_Log::DEBUG); $this->_debugCache++; $url = $this->_cacheUrls[$filename]; } else { - //Mage::log(' generate '.$filename); $this->_debugRenew++; + //Mage::log(' generate '.$filename, Zend_Log::DEBUG); $this->_debugRenew++; if (!is_file($filename)) { if (!empty($this->_scheduleRotate)) @@ -265,11 +265,11 @@ public function __toString() { $filename = str_replace(['../', '//', '/category/', '/catalog/product/'], ['', '/', '/', '/catalog/category/'], $filename); if (array_key_exists($filename, $this->_cacheUrls)) { - //Mage::log(' CACHE HIT '.$filename); $this->_debugCache++; + //Mage::log(' CACHE HIT '.$filename, Zend_Log::DEBUG); $this->_debugCache++; $url = $this->_cacheUrls[$filename]; } else { - //Mage::log(' generate '.$filename); $this->_debugRenew++; + //Mage::log(' generate '.$filename, Zend_Log::DEBUG); $this->_debugRenew++; if (!is_file($filename)) { if (!empty($this->_scheduleRotate)) @@ -303,11 +303,11 @@ public function __toString() { $filename = preg_replace('#/cache/\d+/#', '/cache/', $filename); if (array_key_exists($filename, $this->_cacheUrls)) { - //Mage::log(' CACHE HIT '.$filename); $this->_debugCache++; + //Mage::log(' CACHE HIT '.$filename, Zend_Log::DEBUG); $this->_debugCache++; $url = $this->_cacheUrls[$filename]; } else { - //Mage::log(' generate '.$filename); $this->_debugRenew++; + //Mage::log(' generate '.$filename, Zend_Log::DEBUG); $this->_debugRenew++; if (!is_file($filename)) { if (!empty($this->_scheduleRotate)) @@ -337,8 +337,8 @@ public function __toString() { $url = Mage::getDesign()->getSkinUrl($this->getPlaceholder()); } - //Mage::log(' toString '.number_format(microtime(true) - $go, 4)); - //Mage::log(' closing file after '.number_format(microtime(true) - $this->_debugStart, 4).' / since first init '.number_format(microtime(true) - $this->_debugBegin, 4).' / total '.$this->_debugCount.' = cache '.$this->_debugCache.' + generate '.$this->_debugRenew); + //Mage::log(' toString '.number_format(microtime(true) - $go, 4), Zend_Log::DEBUG); + //Mage::log(' closing file after '.number_format(microtime(true) - $this->_debugStart, 4).' / since first init '.number_format(microtime(true) - $this->_debugBegin, 4).' / total '.$this->_debugCount.' = cache '.$this->_debugCache.' + generate '.$this->_debugRenew, Zend_Log::DEBUG); return $url; } diff --git a/src/app/code/community/Luigifab/Apijs/etc/config.xml b/src/app/code/community/Luigifab/Apijs/etc/config.xml index 06af5bb..eb05d8f 100644 --- a/src/app/code/community/Luigifab/Apijs/etc/config.xml +++ b/src/app/code/community/Luigifab/Apijs/etc/config.xml @@ -1,7 +1,7 @@