Skip to content

Commit 7928b25

Browse files
Merge pull request #12 from scaleflex/develop
Pre release 2.0.4
2 parents 4d437b6 + 87c1cf8 commit 7928b25

File tree

7 files changed

+1480
-5
lines changed

7 files changed

+1480
-5
lines changed

Block/Tag.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public function getConfigToString(): string
7272
}
7373
$config .= 'devicePixelRatioList: ' . $this->formatRatioList($this->config->getDevicePixelRatio()) . ', ';
7474
if ($this->config->isOrgIfSml()) {
75-
$config .= 'params: {org_if_sml: 1}, ';
75+
$config .= "params: 'org_if_sml=1&".$this->config->getLibraryOptions()."', ";
76+
} else {
77+
if ($this->config->getLibraryOptions()) {
78+
$config .= "params: '".$this->config->getLibraryOptions()."', ";
79+
}
7680
}
7781
$config .= 'token:\'' . $this->config->getToken() . '\' ';
7882
return $config;

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.0.4] - 2022-08-01
6+
7+
* Support ```params``` options with Library option
8+
* Fix bug related to Swatch renderer, Catalog image not loaded through CI when change option in Catalog page
9+
510
## [2.0.3] - 2022-04-27
611

712
* Support Multiple store views(websites)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-libxml": "*"
88
},
99
"type": "magento2-module",
10-
"version": "2.0.3",
10+
"version": "2.0.4",
1111
"license": "BSD-3-Clause",
1212
"authors": [
1313
{

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
4-
<module name="Scaleflex_Cloudimage" setup_version="2.0.3">
4+
<module name="Scaleflex_Cloudimage" setup_version="2.0.4">
55
<sequence>
66
<module name="Magento_Catalog"/>
77
</sequence>

view/frontend/requirejs-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
var config = {
22
map: {
33
'*': {
4-
'fotorama/fotorama':'Scaleflex_Cloudimage/js/fotorama'
4+
'fotorama/fotorama':'Scaleflex_Cloudimage/js/fotorama',
5+
'Magento_Swatches/js/swatch-renderer' : 'Scaleflex_Cloudimage/js/swatch-renderer'
56
}
67
}
78
};

view/frontend/templates/tag.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ window.lazySizesConfig.init = false;
2525
<?php endif; ?>
2626

2727
<!-- Add js-cloudimage-responsiv library -->
28-
<script src="https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-responsive/4.8.5/plain/js-cloudimage-responsive.min.js?vh=1ee401&func=proxy<?= $block->getLibraryOptions() ?>"></script>
28+
<script src="https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-responsive/4.8.12/plain/js-cloudimage-responsive.min.js?vh=1ee401&func=proxy"></script>
2929

3030
<!-- Initialize cloudimage responsive -->
3131
<script>

0 commit comments

Comments
 (0)