Skip to content

Commit 891fd4d

Browse files
committed
Added LICENSE.txt and license references
1 parent 9fbee71 commit 891fd4d

File tree

13 files changed

+68
-21
lines changed

13 files changed

+68
-21
lines changed

Block/Hints/Init.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
4+
* See LICENSE.txt for license details.
5+
*/
26

37
namespace Ho\Templatehints\Block\Hints;
48

Helper/Config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
4+
* See LICENSE.txt for license details.
5+
*/
26

37
namespace Ho\Templatehints\Helper;
48

LICENSE.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Copyright (c) 2016, H&O E-commerce specialisten B.V.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
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.
9+
10+
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.

Plugin/View/LayoutPlugin.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22
/**
3-
* Created by PhpStorm.
4-
* User: paul
5-
* Date: 07-06-16
6-
* Time: 23:14
3+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
4+
* See LICENSE.txt for license details.
75
*/
86
namespace Ho\Templatehints\Plugin\View;
97

etc/di.xml

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

410
<type name="Magento\Framework\View\Layout">

etc/module.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
5+
* See LICENSE.txt for license details.
6+
*/
7+
-->
28
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
39
<module name="Ho_Templatehints" setup_version="0.1.0" />
410
</config>

registration.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?php
2+
/**
3+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
4+
* See LICENSE.txt for license details.
5+
*/
26

37
\Magento\Framework\Component\ComponentRegistrar::register(
48
\Magento\Framework\Component\ComponentRegistrar::MODULE,
59
'Ho_Templatehints',
610
__DIR__
7-
);
11+
);

view/adminhtml/layout/default.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<!--
33
/**
4-
* Copyright © 2016 Magento. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
5+
* See LICENSE.txt for license details.
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

view/adminhtml/web/css/hints.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**!
2+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
3+
* See LICENSE.txt for license details.
4+
*/
5+
16
.ho-hint-container {
27
outline: 0 dashed darkorange;
38
}

view/adminhtml/web/js/hints.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
/**
2-
* Copyright © 2016 Magento. All rights reserved.
3-
* See COPYING.txt for license details.
1+
/**!
2+
* Copyright (c) 2016 H&O E-commerce specialisten B.V. (http://www.h-o.nl/)
3+
* See LICENSE.txt for license details.
44
*/
5+
56
document.addEventListener("DOMContentLoaded", function(event) {
67
require(['jquery'], function ($) {
78
"use strict"
@@ -59,7 +60,13 @@ document.addEventListener("DOMContentLoaded", function(event) {
5960
return
6061
}
6162

62-
var hintElem = $(this)
63+
hint(this);
64+
65+
return false
66+
})
67+
68+
window.hint = function(elem) {
69+
var hintElem = $(elem)
6370
var hintData = hintElem.data('ho-hintdata');
6471
hintElem.removeAttr('data-ho-hintdata')
6572
var hintType = hintElem.data('ho-hinttype');
@@ -96,14 +103,11 @@ document.addEventListener("DOMContentLoaded", function(event) {
96103
console.log(hintData[key]);
97104
})
98105
console.log(hintData['cache'])
99-
console.log(this)
106+
console.log(elem)
100107

101108
console.groupEnd()
102109
break;
103110
}
104-
105-
106-
return false
107-
})
111+
}
108112
})
109113
})

0 commit comments

Comments
 (0)