File tree Expand file tree Collapse file tree 9 files changed +52
-15
lines changed Expand file tree Collapse file tree 9 files changed +52
-15
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## [ Unreleased]
88
9+ ## [ 1.0.0] - 2022-12-17
10+ Initial release 🎉
11+
Original file line number Diff line number Diff line change 11<?php declare (strict_types=1 );
22
3+ /**
4+ * @author Siteation (https://siteation.dev/)
5+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
6+ * @license MIT
7+ */
8+
39namespace Siteation \Share \Observer ;
410
511use Magento \Framework \Component \ComponentRegistrar ;
Original file line number Diff line number Diff line change 1- # Siteation - Magento 2 Module Share
1+ # Siteation - Magento 2 module Share
22
33[ ![ Packagist Version] ( https://img.shields.io/packagist/v/siteation/magento2-module-share?style=for-the-badge )] ( https://packagist.org/packages/siteation/magento2-module-share )
44![ Supported Magento Versions] ( https://img.shields.io/badge/magento-%202.4-brightgreen.svg?logo=magento&longCache=true&style=for-the-badge )
@@ -13,7 +13,7 @@ using the Share API with an fallback to the Clipboard API for unsupported browse
1313Install the package via;
1414
1515``` bash
16- composer require siteation/magento2-module- share
16+ composer require siteation/magento2-share
1717bin/magento setup:upgrade
1818```
1919
Original file line number Diff line number Diff line change 11<?php declare (strict_types=1 );
22
3+ /**
4+ * @author Siteation (https://siteation.dev/)
5+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
6+ * @license MIT
7+ */
8+
39namespace Siteation \Share \ViewModel ;
410
5- use Magento \Framework \View \Element \Block \ArgumentInterface ;
611use Hyva \Theme \ViewModel \StoreConfig ;
12+ use Magento \Framework \View \Element \Block \ArgumentInterface ;
713
814class Share implements ArgumentInterface
915{
Original file line number Diff line number Diff line change 11{
2- "name" : " siteation/magento2-module- share" ,
3- "version" : " 0.1 .0" ,
2+ "name" : " siteation/magento2-share" ,
3+ "version" : " 1.0 .0" ,
44 "license" : " MIT" ,
55 "type" : " magento2-module" ,
66 "description" : " Share products with ease" ,
2020 }
2121 ],
2222 "require" : {
23- "magento/framework" : " ^102.0|^103.0" ,
24- "hyva-themes/magento2-theme-module" : " *"
23+ "magento/framework" : " ^103.0" ,
24+ "magento/module-backend" : " ^102.0" ,
25+ "magento/module-store" : " ^101.1" ,
26+ "hyva-themes/magento2-theme-module" : " ^1.1|^1.2"
2527 },
2628 "autoload" : {
27- "files" : [
28- " registration.php"
29- ],
29+ "files" : [" registration.php" ],
3030 "psr-4" : {
3131 "Siteation\\ Share\\ " : " "
3232 }
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
2- <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
2+ <config
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd"
5+ >
46 <module name =" Siteation_Share" >
5- <sequence >Hyva_Theme</sequence >
7+ <sequence >
8+ <module name =" Magento_Store" />
9+ <module name =" Magento_Backend" />
10+ <module name =" Hyva_Theme" />
11+ </sequence >
612 </module >
713</config >
Original file line number Diff line number Diff line change 11<?php declare (strict_types=1 );
22
3+ /**
4+ * Share module for Magento
5+ *
6+ * @author Siteation (https://siteation.dev/)
7+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
8+ * @license MIT
9+ */
10+
311use Magento \Framework \Component \ComponentRegistrar ;
412
513ComponentRegistrar::register (
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
2- <page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
2+ <page
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd"
5+ >
46 <body >
57 <referenceContainer name =" product.info.additional.actions" >
68 <block name =" product.info.share" template =" Siteation_Share::product/view/share.phtml" />
Original file line number Diff line number Diff line change 11<?php declare (strict_types=1 );
22
3+ /**
4+ * @author Siteation (https://siteation.dev/)
5+ * @copyright Copyright 2022 Siteation (https://siteation.dev/)
6+ * @license MIT
7+ */
8+
39use Hyva \Theme \Model \ViewModelRegistry ;
410use Hyva \Theme \ViewModel \CurrentProduct ;
511use Hyva \Theme \ViewModel \HeroiconsOutline ;
You can’t perform that action at this time.
0 commit comments