diff --git a/composer.json b/composer.json index 6d316d1..417f54a 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "require": { "magento/framework": "*", "hyva-themes/magento2-compat-module-fallback": "*", - "magmodules/magento2-googlereviews": "*" + "magmodules/magento2-googlereviews": "~3.0" }, "autoload": { "files": [ @@ -19,4 +19,4 @@ "Magmodules\\HyvaGoogleReviewsSR\\": "src/" } } - } \ No newline at end of file + } diff --git a/src/view/frontend/tailwind/tailwind.config.js b/src/view/frontend/tailwind/tailwind.config.js new file mode 100644 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..267f53f --- /dev/null +++ b/src/view/frontend/templates/widget/helper/stars.phtml @@ -0,0 +1,58 @@ +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%'; +?> + +