diff --git a/composer.json b/composer.json index 42b9f9d..834fcf1 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "require": { "magento/framework": "*", "hyva-themes/magento2-compat-module-fallback": "*", - "magmodules/magento2-kiyoh": "*" + "magmodules/magento2-kiyoh": ">=1.7.0" }, "autoload": { "files": [ diff --git a/src/view/frontend/tailwind/tailwind.config.js b/src/view/frontend/tailwind/tailwind.config.js new file mode 100755 index 0000000..f44ed37 --- /dev/null +++ b/src/view/frontend/tailwind/tailwind.config.js @@ -0,0 +1,7 @@ +module.exports = { + purge: { + content: [ + '../templates/**/*.phtml', + ] + } +} diff --git a/src/view/frontend/templates/widget/helper/stars.phtml b/src/view/frontend/templates/widget/helper/stars.phtml new file mode 100644 index 0000000..ea21a04 --- /dev/null +++ b/src/view/frontend/templates/widget/helper/stars.phtml @@ -0,0 +1,46 @@ +require(HeroiconsSolid::class); + +$svgSize = $block->hasData('svgSize') ? $block->getData('svgSize') : '20'; +$starColor = $block->hasData('starColor') ? $block->getData('starColor') : ''; + +$svgSizeStyle = 'width: ' . $svgSize . 'px; height: ' . $svgSize . 'px; '; +$starColorStyle = $starColor ? 'color: ' . $starColor : ''; + +$percent = $block->hasData('percent') ? $block->getData('percent') . '%' : '0%'; +?> + +