Skip to content

Commit

Permalink
Added LICENSE.txt and license references
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Jun 9, 2016
1 parent 9fbee71 commit 891fd4d
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 21 deletions.
4 changes: 4 additions & 0 deletions Block/Hints/Init.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php
/**
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/

namespace Ho\Templatehints\Block\Hints;

Expand Down
4 changes: 4 additions & 0 deletions Helper/Config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php
/**
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/

namespace Ho\Templatehints\Helper;

Expand Down
10 changes: 10 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Copyright (c) 2016, H&O E-commerce specialisten B.V.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 2 additions & 4 deletions Plugin/View/LayoutPlugin.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: paul
* Date: 07-06-16
* Time: 23:14
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/
namespace Ho\Templatehints\Plugin\View;

Expand Down
6 changes: 6 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?xml version="1.0"?>
<!--
/**
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

<type name="Magento\Framework\View\Layout">
Expand Down
6 changes: 6 additions & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?xml version="1.0"?>
<!--
/**
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Ho_Templatehints" setup_version="0.1.0" />
</config>
6 changes: 5 additions & 1 deletion registration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php
/**
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/

\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Ho_Templatehints',
__DIR__
);
);
4 changes: 2 additions & 2 deletions view/adminhtml/layout/default.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
Expand Down
5 changes: 5 additions & 0 deletions view/adminhtml/web/css/hints.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**!
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/

.ho-hint-container {
outline: 0 dashed darkorange;
}
Expand Down
22 changes: 13 additions & 9 deletions view/adminhtml/web/js/hints.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
/**!
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/

document.addEventListener("DOMContentLoaded", function(event) {
require(['jquery'], function ($) {
"use strict"
Expand Down Expand Up @@ -59,7 +60,13 @@ document.addEventListener("DOMContentLoaded", function(event) {
return
}

var hintElem = $(this)
hint(this);

return false
})

window.hint = function(elem) {
var hintElem = $(elem)
var hintData = hintElem.data('ho-hintdata');
hintElem.removeAttr('data-ho-hintdata')
var hintType = hintElem.data('ho-hinttype');
Expand Down Expand Up @@ -96,14 +103,11 @@ document.addEventListener("DOMContentLoaded", function(event) {
console.log(hintData[key]);
})
console.log(hintData['cache'])
console.log(this)
console.log(elem)

console.groupEnd()
break;
}


return false
})
}
})
})
4 changes: 2 additions & 2 deletions view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
Expand Down
5 changes: 5 additions & 0 deletions view/frontend/web/css/hints.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**!
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/

.ho-hint-container {
outline: 0 dashed darkorange;
}
Expand Down
7 changes: 4 additions & 3 deletions view/frontend/web/js/hints.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
/**!
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
* See LICENSE.txt for license details.
*/

document.addEventListener("DOMContentLoaded", function(event) {
require(['jquery'], function ($) {
"use strict"
Expand Down

0 comments on commit 891fd4d

Please sign in to comment.