Skip to content

Commit

Permalink
Added copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Fantetti aka WaPoNe committed Aug 11, 2017
1 parent f23e199 commit e0d0cbd
Show file tree
Hide file tree
Showing 28 changed files with 250 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Block/Config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Block;

Expand Down
8 changes: 8 additions & 0 deletions Block/Discount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Block;

Expand Down
8 changes: 8 additions & 0 deletions Model/Config/Backend/Categorylist.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Model\Config\Backend;

Expand Down
8 changes: 8 additions & 0 deletions Model/Config/Backend/DiscountCalculationType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Model\Config\Backend;

Expand Down
8 changes: 8 additions & 0 deletions Model/Config/Backend/Image.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Model\Config\Backend;

Expand Down
8 changes: 8 additions & 0 deletions Model/Config/Backend/StickerType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Model\Config\Backend;

Expand Down
8 changes: 8 additions & 0 deletions Model/Stickers.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Model;

Expand Down
8 changes: 8 additions & 0 deletions Plugin/Catalog/Widget/StickersPlugin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Plugin\Catalog\Widget;

Expand Down
8 changes: 8 additions & 0 deletions Plugin/ProductStickersPlugin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace WaPoNe\Stickers\Plugin;

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

### Composer

Run the following command in Magento 2 root folder
Run the following commands in Magento 2 root folder

```
php bin/magento maintenance:enable
composer require wapone/module-stickers
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento maintenance:disable
```

## User Guide
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"psr/log": "*"
},
"type": "magento2-module",
"version": "0.0.1",
"version": "0.0.2",
"license": [
"proprietary"
],
Expand Down
11 changes: 11 additions & 0 deletions etc/acl.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/acl.xsd">
<acl>
<resources>
Expand Down
11 changes: 11 additions & 0 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="wapone" translate="label" sortOrder="1000">
Expand Down
11 changes: 11 additions & 0 deletions etc/config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<stickers>
Expand Down
11 changes: 11 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\CatalogWidget\Block\Product\ProductsList">
<plugin name="WaPoNe_WidgetStickersPlugin"
Expand Down
11 changes: 11 additions & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="WaPoNe_Stickers"
Expand Down
8 changes: 8 additions & 0 deletions registration.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
Expand Down
11 changes: 11 additions & 0 deletions view/adminhtml/layout/adminhtml_system_config_edit.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="footer">
Expand Down
11 changes: 11 additions & 0 deletions view/adminhtml/templates/js.phtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<script type="text/javascript">
require(
['jquery'],
Expand Down
12 changes: 12 additions & 0 deletions view/frontend/layout/catalog_product_view.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
Expand Down
12 changes: 12 additions & 0 deletions view/frontend/layout/checkout_cart_index.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
Expand Down
11 changes: 11 additions & 0 deletions view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="WaPoNe_Stickers::css/wapone-stickers.css"/>
Expand Down
9 changes: 9 additions & 0 deletions view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

var config = {
map: {
'*': {
Expand Down
9 changes: 9 additions & 0 deletions view/frontend/templates/categoryDiscount.phtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

if($block->isDiscountActive()):
$discountImage = "<div class='wapone-sticker-wrapper top-right'>";
$discountImage .= "<img class='categoryDiscountImage' alt='".__('Discount')."' src='".$this->getUrl('pub/media')."wapone/stickers/images/".$block->getStickerImage()."' />";
Expand Down
9 changes: 9 additions & 0 deletions view/frontend/templates/productDiscount.phtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

if($block->isDiscountActive()):
$productDiscountBlock = $block->setDiscountStickerHTML();
?>
Expand Down
9 changes: 9 additions & 0 deletions view/frontend/web/css/wapone-stickers.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

.product.media {
position: relative;
}
Expand Down
9 changes: 9 additions & 0 deletions view/frontend/web/js/categoryPageDiscount.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

define(
[
'jquery'
Expand Down
9 changes: 9 additions & 0 deletions view/frontend/web/js/viewPageDiscount.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* WaPoNe
*
* @category WaPoNe
* @package WaPoNe_Stickers
* @copyright Copyright (c) 2017 WaPoNe (http://www.fantetti.net)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

define(
[
'jquery'
Expand Down

0 comments on commit e0d0cbd

Please sign in to comment.