Skip to content

Commit

Permalink
1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 9, 2024
1 parent b69d704 commit 76f5d1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/color"
,"version": "1.2.6"
,"version": "1.2.7"
,"description": "A product image color categorization module for Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/color"
Expand All @@ -15,7 +15,7 @@
"google/cloud-vision": "<1.3",
"google/common-protos": "<4",
"google/longrunning": "<0.2",
"mage2pro/core": ">=9.9.8"
"mage2pro/core": ">=11.1.5"
}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
,"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions view/frontend/templates/index.phtml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
use Dfe\Color\Image as I;
$folder = 'mage2pro';
$dir = df_media_path_absolute($folder);
$dir = df_media_path_abs($folder);
echo df_tag('div', 'dfe-color', implode(df_map(array_slice(scandir($dir), 2), function(string $c) use($folder):string {
$url = df_media_path2url("$folder/$c"); /** @var string $url */
$i = new I(df_media_path_absolute("$folder/$c"));
$i = new I(df_media_path_abs("$folder/$c"));
return df_tag('div', [], [
df_tag('a', ['title' => $c, 'url' => $url], df_tag('img', ['src' => $url]))
,df_tag('ol', [], implode(df_map_k($i->labels(), function(string $l, float $v):string {return df_tag('li', [], [
Expand Down

0 comments on commit 76f5d1f

Please sign in to comment.