Vhaldecode_CookieLaw - Version 1.1.0

Version Notes

Better UX with buttons
Fluid responsive
Better integration with Magento
Autohide functionality
Magento 1.9 support

Download this release

Release Info

Developer Pere Garcia
Extension Vhaldecode_CookieLaw
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.4 to 1.1.0

Files changed (26) hide show
  1. app/code/community/Valdecode/CookieLaw/Helper/Data.php +55 -2
  2. app/code/community/Valdecode/CookieLaw/LICENSE.txt +1 -1
  3. app/code/community/Valdecode/CookieLaw/LICENSE_AFL.txt +1 -1
  4. app/code/community/Valdecode/CookieLaw/Model/Config/{Position.php → Bar/Position.php} +3 -3
  5. app/code/community/Valdecode/CookieLaw/Model/Config/Behaviour.php +2 -2
  6. app/code/community/Valdecode/CookieLaw/Model/Config/Box/Position.php +28 -0
  7. app/code/community/Valdecode/CookieLaw/Model/Config/{Show.php → Message.php} +4 -4
  8. app/code/community/Valdecode/CookieLaw/Model/Config/Skin.php +3 -3
  9. app/code/community/Valdecode/CookieLaw/Model/Config/Type.php +26 -0
  10. app/code/community/Valdecode/CookieLaw/etc/config.xml +18 -6
  11. app/code/community/Valdecode/CookieLaw/etc/system.xml +73 -41
  12. app/design/frontend/base/default/layout/cookielaw.xml +4 -4
  13. app/design/frontend/base/default/template/cookielaw/top.phtml +0 -38
  14. app/design/frontend/base/default/template/cookielaw/widget.phtml +52 -0
  15. app/locale/de_DE/Valdecode_CookieLaw.csv +1 -1
  16. app/locale/en_US/Valdecode_CookieLaw.csv +1 -1
  17. app/locale/es_ES/Valdecode_CookieLaw.csv +1 -1
  18. app/locale/fr_FR/Valdecode_CookieLaw.csv +1 -1
  19. app/locale/hu_HU/Valdecode_CookieLaw.csv +1 -1
  20. app/locale/nl_NL/Valdecode_CookieLaw.csv +1 -1
  21. app/locale/ro_RO/Valdecode_CookieLaw.csv +1 -1
  22. js/valdecode/cookielaw/cookielaw.js +0 -55
  23. package.xml +10 -6
  24. skin/frontend/base/default/valdecode/cookielaw/css/cookielaw.css +34 -19
  25. skin/frontend/base/default/valdecode/cookielaw/images/close.png +0 -0
  26. skin/frontend/base/default/valdecode/cookielaw/images/cookie.png +0 -0
app/code/community/Valdecode/CookieLaw/Helper/Data.php CHANGED
@@ -11,10 +11,63 @@
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
- * @copyright Copyright (c) 2013 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
  class Valdecode_CookieLaw_Helper_Data extends Mage_Core_Helper_Abstract
18
  {
 
 
 
 
19
 
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
  class Valdecode_CookieLaw_Helper_Data extends Mage_Core_Helper_Abstract
18
  {
19
+ public function getType()
20
+ {
21
+ return Mage::getStoreConfig('cookielaw/general/type');
22
+ }
23
 
24
+ public function getBarPosition()
25
+ {
26
+ return Mage::getStoreConfig('cookielaw/general/bar_position');
27
+ }
28
+
29
+ public function getBoxPosition()
30
+ {
31
+ return Mage::getStoreConfig('cookielaw/general/box_position');
32
+ }
33
+
34
+ public function getSkin()
35
+ {
36
+ return Mage::getStoreConfig('cookielaw/general/skin');
37
+ }
38
+
39
+ public function getBehaviour()
40
+ {
41
+ return Mage::getStoreConfig('cookielaw/general/behaviour');
42
+ }
43
+
44
+ public function getAutohide()
45
+ {
46
+ return Mage::getStoreConfig('cookielaw/general/autohide');
47
+ }
48
+
49
+ public function getCmsPage()
50
+ {
51
+ return Mage::getStoreConfig('cookielaw/content/cms_page');
52
+ }
53
+
54
+ public function getShow()
55
+ {
56
+ return Mage::getStoreConfig('cookielaw/content/show');
57
+ }
58
+
59
+ public function getCustomMessage()
60
+ {
61
+ return Mage::getStoreConfig('cookielaw/content/custom_message');
62
+ }
63
+
64
+ public function getCustomMoreInfo()
65
+ {
66
+ return Mage::getStoreConfig('cookielaw/content/custom_more_info');
67
+ }
68
+
69
+ public function getCustomAccept()
70
+ {
71
+ return Mage::getStoreConfig('cookielaw/content/custom_accept');
72
+ }
73
+ }
app/code/community/Valdecode/CookieLaw/LICENSE.txt CHANGED
@@ -45,4 +45,4 @@ Licensed under the Open Software License version 3.0
45
 
46
  15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
 
48
- 16. Modification of This License. This License is Copyright � 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
45
 
46
  15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
 
48
+ 16. Modification of This License. This License is Copyright � 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
app/code/community/Valdecode/CookieLaw/LICENSE_AFL.txt CHANGED
@@ -45,4 +45,4 @@ Licensed under the Academic Free License version 3.0
45
 
46
  15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
 
48
- 16. Modification of This License. This License is Copyright � 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
45
 
46
  15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
47
 
48
+ 16. Modification of This License. This License is Copyright � 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
app/code/community/Valdecode/CookieLaw/Model/Config/{Position.php → Bar/Position.php} RENAMED
@@ -11,10 +11,10 @@
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
- * @copyright Copyright (c) 2013 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
- class Valdecode_CookieLaw_Model_Config_Position
18
  {
19
  public function toOptionArray()
20
  {
@@ -23,4 +23,4 @@ class Valdecode_CookieLaw_Model_Config_Position
23
  array('value' => 'v-bottom', 'label' => 'Bottom'),
24
  );
25
  }
26
- }
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
+ class Valdecode_CookieLaw_Model_Config_Bar_Position
18
  {
19
  public function toOptionArray()
20
  {
23
  array('value' => 'v-bottom', 'label' => 'Bottom'),
24
  );
25
  }
26
+ }
app/code/community/Valdecode/CookieLaw/Model/Config/Behaviour.php CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
- * @copyright Copyright (c) 2013 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
  class Valdecode_CookieLaw_Model_Config_Behaviour
@@ -23,4 +23,4 @@ class Valdecode_CookieLaw_Model_Config_Behaviour
23
  array('value' => 0, 'label' => 'Hide for the rest of the session')
24
  );
25
  }
26
- }
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
  class Valdecode_CookieLaw_Model_Config_Behaviour
23
  array('value' => 0, 'label' => 'Hide for the rest of the session')
24
  );
25
  }
26
+ }
app/code/community/Valdecode/CookieLaw/Model/Config/Box/Position.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Valdecode
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Valdecode
13
+ * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ class Valdecode_CookieLaw_Model_Config_Box_Position
18
+ {
19
+ public function toOptionArray()
20
+ {
21
+ return array(
22
+ array('value' => 'v-top-left', 'label' => 'Top left'),
23
+ array('value' => 'v-top-right', 'label' => 'Top right'),
24
+ array('value' => 'v-bottom-left', 'label' => 'Bottom left'),
25
+ array('value' => 'v-bottom-right', 'label' => 'Bottom right'),
26
+ );
27
+ }
28
+ }
app/code/community/Valdecode/CookieLaw/Model/Config/{Show.php → Message.php} RENAMED
@@ -11,16 +11,16 @@
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
- * @copyright Copyright (c) 2013 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
- class Valdecode_CookieLaw_Model_Config_Show
18
  {
19
  public function toOptionArray()
20
  {
21
  return array(
22
- array('value' => 'translate', 'label' => 'Message from translation files'),
23
  array('value' => 'custom', 'label' => 'Custom message'),
24
  );
25
  }
26
- }
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
+ class Valdecode_CookieLaw_Model_Config_Message
18
  {
19
  public function toOptionArray()
20
  {
21
  return array(
22
+ array('value' => 'default', 'label' => 'Default message'),
23
  array('value' => 'custom', 'label' => 'Custom message'),
24
  );
25
  }
26
+ }
app/code/community/Valdecode/CookieLaw/Model/Config/Skin.php CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
- * @copyright Copyright (c) 2013 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
  class Valdecode_CookieLaw_Model_Config_Skin
@@ -19,9 +19,9 @@ class Valdecode_CookieLaw_Model_Config_Skin
19
  public function toOptionArray()
20
  {
21
  return array(
22
- array('value' => 'v-custom', 'label' => 'Custom'),
23
  array('value' => 'v-yellow-alert', 'label' => 'Yellow alert'),
24
  array('value' => 'v-dark-clean', 'label' => 'Dark clean'),
25
  );
26
  }
27
- }
11
  *
12
  * @category Valdecode
13
  * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
  class Valdecode_CookieLaw_Model_Config_Skin
19
  public function toOptionArray()
20
  {
21
  return array(
22
+ array('value' => '', 'label' => 'Without skin'),
23
  array('value' => 'v-yellow-alert', 'label' => 'Yellow alert'),
24
  array('value' => 'v-dark-clean', 'label' => 'Dark clean'),
25
  );
26
  }
27
+ }
app/code/community/Valdecode/CookieLaw/Model/Config/Type.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Valdecode
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Valdecode
13
+ * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ class Valdecode_CookieLaw_Model_Config_Type
18
+ {
19
+ public function toOptionArray()
20
+ {
21
+ return array(
22
+ array('value' => 'v-bar', 'label' => 'Bar'),
23
+ array('value' => 'v-box', 'label' => 'Box'),
24
+ );
25
+ }
26
+ }
app/code/community/Valdecode/CookieLaw/etc/config.xml CHANGED
@@ -23,6 +23,11 @@
23
  </Valdecode_CookieLaw>
24
  </modules>
25
  <global>
 
 
 
 
 
26
  <helpers>
27
  <cookielaw>
28
  <class>Valdecode_CookieLaw_Helper</class>
@@ -75,14 +80,21 @@
75
  </adminhtml>
76
  <default>
77
  <cookielaw>
78
- <cookielaw>
79
- <enabled>1</enabled>
80
- <behaviour>1</behaviour>
81
- <position>v-top</position>
82
  <skin>v-yellow-alert</skin>
83
- <show>translate</show>
 
 
 
 
 
 
 
84
  <cms_page>privacy-policy-cookie-restriction-mode</cms_page>
85
- </cookielaw>
86
  </cookielaw>
87
  </default>
88
  </config>
23
  </Valdecode_CookieLaw>
24
  </modules>
25
  <global>
26
+ <blocks>
27
+ <cookielaw>
28
+ <class>Valdecode_CookieLaw_Block</class>
29
+ </cookielaw>
30
+ </blocks>
31
  <helpers>
32
  <cookielaw>
33
  <class>Valdecode_CookieLaw_Helper</class>
80
  </adminhtml>
81
  <default>
82
  <cookielaw>
83
+ <general>
84
+ <type>v-bar</type>
85
+ <bar_position>v-top</bar_position>
86
+ <box_position>v-bottom-right</box_position>
87
  <skin>v-yellow-alert</skin>
88
+ <behaviour>1</behaviour>
89
+ <autohide>0</autohide>
90
+ </general>
91
+ <content>
92
+ <show>default</show>
93
+ <custom_message>This websites use cookies.</custom_message>
94
+ <custom_accept>Close</custom_accept>
95
+ <custom_more_info>More information</custom_more_info>
96
  <cms_page>privacy-policy-cookie-restriction-mode</cms_page>
97
+ </content>
98
  </cookielaw>
99
  </default>
100
  </config>
app/code/community/Valdecode/CookieLaw/etc/system.xml CHANGED
@@ -19,63 +19,69 @@
19
  <config>
20
  <sections>
21
  <cookielaw translate="label" module="cookielaw">
22
- <label>Cookie Law Compliance</label>
 
 
 
 
 
23
  <tab>general</tab>
24
  <sort_order>9000</sort_order>
25
  <show_in_default>1</show_in_default>
26
  <show_in_website>1</show_in_website>
27
  <show_in_store>1</show_in_store>
28
  <groups>
29
- <cookielaw translate="label" module="cookielaw">
30
  <label>General</label>
31
  <comment>
32
  <![CDATA[
33
- Cookie Law Compliance is a <span style="color:#2c2c2c;font-weight:bold;">Valdecode</span>
34
- extension.<br/><span style="color:#888">We would like you to review this extension
 
35
  at Magento Connect. If you feel that we do not deserve a 5 star review, please contact us right
36
  away before leaving a neutral or negative review, so we can try to correct the problem.</span>
 
37
  ]]>
38
  </comment>
39
  <frontend_type>text</frontend_type>
40
  <sort_order>1</sort_order>
 
41
  <show_in_default>1</show_in_default>
42
  <show_in_website>1</show_in_website>
43
  <show_in_store>1</show_in_store>
44
  <fields>
45
- <enabled translate="label">
46
- <label>Enabled</label>
47
  <frontend_type>select</frontend_type>
48
  <sort_order>1</sort_order>
49
  <show_in_default>1</show_in_default>
50
  <show_in_website>1</show_in_website>
51
  <show_in_store>1</show_in_store>
52
- <source_model>adminhtml/system_config_source_yesno</source_model>
53
- </enabled>
54
- <behaviour translate="label">
55
- <label>When visitor closes the notice</label>
 
56
  <frontend_type>select</frontend_type>
57
  <sort_order>2</sort_order>
58
  <show_in_default>1</show_in_default>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
61
- <source_model>cookielaw/config_behaviour</source_model>
62
- </behaviour>
63
- <position translate="label">
64
- <label>Position</label>
65
- <comment>Position of the notice. [Top] doesn't cover the content, [Bottom] is fixed.
66
- </comment>
67
  <frontend_type>select</frontend_type>
68
  <sort_order>3</sort_order>
69
  <show_in_default>1</show_in_default>
70
  <show_in_website>1</show_in_website>
71
  <show_in_store>1</show_in_store>
72
- <source_model>cookielaw/config_position</source_model>
73
- </position>
 
74
  <skin translate="label">
75
  <label>Skin</label>
76
- <comment>
77
- [Dark clean] is for dark themes, [Custom] will add the "v-custom" class for designing purposes.
78
- </comment>
79
  <frontend_type>select</frontend_type>
80
  <sort_order>4</sort_order>
81
  <show_in_default>1</show_in_default>
@@ -83,58 +89,84 @@
83
  <show_in_store>1</show_in_store>
84
  <source_model>cookielaw/config_skin</source_model>
85
  </skin>
86
- <show translate="label">
87
- <label>Show</label>
88
  <frontend_type>select</frontend_type>
89
  <sort_order>5</sort_order>
90
  <show_in_default>1</show_in_default>
91
  <show_in_website>1</show_in_website>
92
  <show_in_store>1</show_in_store>
93
- <source_model>cookielaw/config_show</source_model>
94
- </show>
95
- <custom_message translate="label">
96
- <label>Message</label>
 
97
  <frontend_type>text</frontend_type>
98
  <sort_order>6</sort_order>
99
  <show_in_default>1</show_in_default>
100
  <show_in_website>1</show_in_website>
101
  <show_in_store>1</show_in_store>
102
- <depends><show>custom</show></depends>
103
- </custom_message>
104
- <custom_link translate="label">
105
- <label>Link text</label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  <frontend_type>text</frontend_type>
107
- <sort_order>7</sort_order>
108
  <show_in_default>1</show_in_default>
109
  <show_in_website>1</show_in_website>
110
  <show_in_store>1</show_in_store>
111
  <depends><show>custom</show></depends>
112
- </custom_link>
113
  <custom_accept translate="label">
114
  <label>Accept text</label>
115
- <comment>
116
- The close icon changes to this text at certain resolution.
117
- </comment>
118
  <frontend_type>text</frontend_type>
119
- <sort_order>8</sort_order>
120
  <show_in_default>1</show_in_default>
121
  <show_in_website>1</show_in_website>
122
  <show_in_store>1</show_in_store>
123
  <depends><show>custom</show></depends>
124
  </custom_accept>
 
 
 
 
 
 
 
 
 
125
  <cms_page translate="label">
126
- <label>Cookie policy page</label>
127
  <comment>CMS page with information about cookies and how to manage them.</comment>
128
  <frontend_type>select</frontend_type>
129
- <sort_order>9</sort_order>
130
  <show_in_default>1</show_in_default>
131
  <show_in_website>1</show_in_website>
132
  <show_in_store>1</show_in_store>
133
  <source_model>adminhtml/system_config_source_cms_page</source_model>
134
  </cms_page>
135
  </fields>
136
- </cookielaw>
137
  </groups>
138
  </cookielaw>
139
  </sections>
140
- </config>
19
  <config>
20
  <sections>
21
  <cookielaw translate="label" module="cookielaw">
22
+ <label>
23
+ <![CDATA[
24
+ <img src="/skin/frontend/base/default/valdecode/cookielaw/images/cookie.png" height="13" onerror="this.src='';" />
25
+ Cookie Law Compliance
26
+ ]]>
27
+ </label>
28
  <tab>general</tab>
29
  <sort_order>9000</sort_order>
30
  <show_in_default>1</show_in_default>
31
  <show_in_website>1</show_in_website>
32
  <show_in_store>1</show_in_store>
33
  <groups>
34
+ <general translate="label" module="cookielaw">
35
  <label>General</label>
36
  <comment>
37
  <![CDATA[
38
+ <div style="border: 1px solid #d6d6d6; padding: 5px; margin-bottom: 5px; background: #fafafa;">
39
+ <b>Cookie Law Compliance</b> is a <b>Valdecode</b>
40
+ extension.<br/><span style="color: #6f8992;">We would like you to review this extension
41
  at Magento Connect. If you feel that we do not deserve a 5 star review, please contact us right
42
  away before leaving a neutral or negative review, so we can try to correct the problem.</span>
43
+ </div>
44
  ]]>
45
  </comment>
46
  <frontend_type>text</frontend_type>
47
  <sort_order>1</sort_order>
48
+ <expanded>1</expanded>
49
  <show_in_default>1</show_in_default>
50
  <show_in_website>1</show_in_website>
51
  <show_in_store>1</show_in_store>
52
  <fields>
53
+ <type translate="label">
54
+ <label>Type</label>
55
  <frontend_type>select</frontend_type>
56
  <sort_order>1</sort_order>
57
  <show_in_default>1</show_in_default>
58
  <show_in_website>1</show_in_website>
59
  <show_in_store>1</show_in_store>
60
+ <source_model>cookielaw/config_type</source_model>
61
+ </type>
62
+ <bar_position translate="label">
63
+ <label>Bar position</label>
64
+ <comment>[Top] does not cover the content, [Bottom] is fixed.</comment>
65
  <frontend_type>select</frontend_type>
66
  <sort_order>2</sort_order>
67
  <show_in_default>1</show_in_default>
68
  <show_in_website>1</show_in_website>
69
  <show_in_store>1</show_in_store>
70
+ <depends><type>v-bar</type></depends>
71
+ <source_model>cookielaw/config_bar_position</source_model>
72
+ </bar_position>
73
+ <box_position translate="label">
74
+ <label>Box position</label>
 
75
  <frontend_type>select</frontend_type>
76
  <sort_order>3</sort_order>
77
  <show_in_default>1</show_in_default>
78
  <show_in_website>1</show_in_website>
79
  <show_in_store>1</show_in_store>
80
+ <depends><type>v-box</type></depends>
81
+ <source_model>cookielaw/config_box_position</source_model>
82
+ </box_position>
83
  <skin translate="label">
84
  <label>Skin</label>
 
 
 
85
  <frontend_type>select</frontend_type>
86
  <sort_order>4</sort_order>
87
  <show_in_default>1</show_in_default>
89
  <show_in_store>1</show_in_store>
90
  <source_model>cookielaw/config_skin</source_model>
91
  </skin>
92
+ <behaviour translate="label">
93
+ <label>When visitor closes the notice</label>
94
  <frontend_type>select</frontend_type>
95
  <sort_order>5</sort_order>
96
  <show_in_default>1</show_in_default>
97
  <show_in_website>1</show_in_website>
98
  <show_in_store>1</show_in_store>
99
+ <source_model>cookielaw/config_behaviour</source_model>
100
+ </behaviour>
101
+ <autohide translate="label">
102
+ <label>Autohide (in seconds)</label>
103
+ <comment>If [0] then the notice won't close automatically.</comment>
104
  <frontend_type>text</frontend_type>
105
  <sort_order>6</sort_order>
106
  <show_in_default>1</show_in_default>
107
  <show_in_website>1</show_in_website>
108
  <show_in_store>1</show_in_store>
109
+ </autohide>
110
+ </fields>
111
+ </general>
112
+ <content translate="label" module="cookielaw">
113
+ <label>Content</label>
114
+ <frontend_type>text</frontend_type>
115
+ <sort_order>2</sort_order>
116
+ <expanded>1</expanded>
117
+ <show_in_default>1</show_in_default>
118
+ <show_in_website>1</show_in_website>
119
+ <show_in_store>1</show_in_store>
120
+ <fields>
121
+ <show translate="label">
122
+ <label>Content</label>
123
+ <frontend_type>select</frontend_type>
124
+ <sort_order>1</sort_order>
125
+ <show_in_default>1</show_in_default>
126
+ <show_in_website>1</show_in_website>
127
+ <show_in_store>1</show_in_store>
128
+ <source_model>cookielaw/config_message</source_model>
129
+ </show>
130
+ <custom_message translate="label">
131
+ <label>Message text</label>
132
  <frontend_type>text</frontend_type>
133
+ <sort_order>2</sort_order>
134
  <show_in_default>1</show_in_default>
135
  <show_in_website>1</show_in_website>
136
  <show_in_store>1</show_in_store>
137
  <depends><show>custom</show></depends>
138
+ </custom_message>
139
  <custom_accept translate="label">
140
  <label>Accept text</label>
 
 
 
141
  <frontend_type>text</frontend_type>
142
+ <sort_order>3</sort_order>
143
  <show_in_default>1</show_in_default>
144
  <show_in_website>1</show_in_website>
145
  <show_in_store>1</show_in_store>
146
  <depends><show>custom</show></depends>
147
  </custom_accept>
148
+ <custom_more_info translate="label">
149
+ <label>More information text</label>
150
+ <frontend_type>text</frontend_type>
151
+ <sort_order>4</sort_order>
152
+ <show_in_default>1</show_in_default>
153
+ <show_in_website>1</show_in_website>
154
+ <show_in_store>1</show_in_store>
155
+ <depends><show>custom</show></depends>
156
+ </custom_more_info>
157
  <cms_page translate="label">
158
+ <label>More information page</label>
159
  <comment>CMS page with information about cookies and how to manage them.</comment>
160
  <frontend_type>select</frontend_type>
161
+ <sort_order>5</sort_order>
162
  <show_in_default>1</show_in_default>
163
  <show_in_website>1</show_in_website>
164
  <show_in_store>1</show_in_store>
165
  <source_model>adminhtml/system_config_source_cms_page</source_model>
166
  </cms_page>
167
  </fields>
168
+ </content>
169
  </groups>
170
  </cookielaw>
171
  </sections>
172
+ </config>
app/design/frontend/base/default/layout/cookielaw.xml CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  * @category Valdecode
14
  * @package Valdecode_CookieLaw
15
- * @copyright Copyright (c) 2013 Valdecode
16
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
  */
18
  -->
@@ -20,10 +20,10 @@
20
  <default>
21
  <reference name="head">
22
  <action method="addCss"><stylesheet>valdecode/cookielaw/css/cookielaw.css</stylesheet></action>
23
- <action method="addJs"><script>valdecode/cookielaw/cookielaw.js</script></action>
24
  </reference>
25
  <reference name="after_body_start">
26
- <block name="cookielaw" type="core/template" before="-" template="cookielaw/top.phtml" />
 
27
  </reference>
28
  </default>
29
- </layout>
12
  *
13
  * @category Valdecode
14
  * @package Valdecode_CookieLaw
15
+ * @copyright Copyright (c) 2014 Valdecode
16
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
  */
18
  -->
20
  <default>
21
  <reference name="head">
22
  <action method="addCss"><stylesheet>valdecode/cookielaw/css/cookielaw.css</stylesheet></action>
 
23
  </reference>
24
  <reference name="after_body_start">
25
+ <block name="cookielaw" type="core/template" before="-" template="cookielaw/widget.phtml"
26
+ ifconfig="advanced/modules_disable_output/Valdecode_CookieLaw"/>
27
  </reference>
28
  </default>
29
+ </layout>
app/design/frontend/base/default/template/cookielaw/top.phtml DELETED
@@ -1,38 +0,0 @@
1
- <?php
2
- /**
3
- * Valdecode
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category Valdecode
13
- * @package Valdecode_CookieLaw
14
- * @copyright Copyright (c) 2013 Valdecode
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- */
17
- ?>
18
- <?php if (Mage::getStoreConfig('cookielaw/cookielaw/enabled')): ?>
19
- <div id="v-cookielaw" class="<?php echo Mage::getStoreConfig('cookielaw/cookielaw/position') ?> <?php echo Mage::getStoreConfig('cookielaw/cookielaw/skin') ?>" style="display: none">
20
- <div class="v-message">
21
- <?php if (Mage::getStoreConfig('cookielaw/cookielaw/show') == 'translate'): ?>
22
- <?php $link = '<a href="'.Mage::getStoreConfig('cookielaw/cookielaw/cms_page').'">'.$this->__("cookie policy").'</a>' ?>
23
- <?php echo $this->__('This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.', $link) ?>
24
- <?php else: ?>
25
- <?php echo Mage::getStoreConfig('cookielaw/cookielaw/custom_message'); ?>
26
- <a href="<?php echo Mage::getStoreConfig('cookielaw/cookielaw/cms_page'); ?>"><?php echo Mage::getStoreConfig('cookielaw/cookielaw/custom_link'); ?></a>
27
- <?php endif; ?>
28
- </div>
29
- <a href="javascript:cookieLaw.cookieLawAccept(<?php echo Mage::getStoreConfig('cookielaw/cookielaw/behaviour') ?>);" class="v-close">
30
- <?php echo (Mage::getStoreConfig('cookielaw/cookielaw/show') == 'translate') ? $this->__("Accept") : Mage::getStoreConfig('cookielaw/cookielaw/custom_accept'); ?>
31
- </a>
32
- </div>
33
- <script type="text/javascript">
34
- if (!cookieLaw.getCookie('cookielaw')) {
35
- document.getElementById('v-cookielaw').style.display = 'block';
36
- }
37
- </script>
38
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/cookielaw/widget.phtml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Valdecode
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Valdecode
13
+ * @package Valdecode_CookieLaw
14
+ * @copyright Copyright (c) 2014 Valdecode
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ ?>
18
+ <?php /** @var $this Valdecode_CookieLaw_Model_Config_Skin */ ?>
19
+ <?php $_helper = Mage::helper('cookielaw'); ?>
20
+ <div id="v-cookielaw" class="<?php echo $_helper->getType(); ?> <?php echo $_helper->getSkin(); ?> <?php echo ($_helper->getType() == 'v-bar') ? $_helper->getBarPosition() : $_helper->getBoxPosition(); ?>" style="display: none">
21
+ <div class="v-message">
22
+ <?php echo ($_helper->getShow() == 'default') ? $this->__('This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.') : $_helper->getCustomMessage(); ?>
23
+ </div>
24
+ <div class="v-actions">
25
+ <a href="javascript:cookieLawAccept();" class="v-button v-accept">
26
+ <?php echo ($_helper->getShow() == 'default') ? $this->__("Accept") : $_helper->getCustomAccept(); ?>
27
+ </a>
28
+ <a href="<?php echo $_helper->getCmsPage(); ?>" class="v-button">
29
+ <?php echo ($_helper->getShow() == 'default') ? $this->__("More information") : $_helper->getCustomMoreInfo(); ?>
30
+ </a>
31
+ </div>
32
+ </div>
33
+ <script type="text/javascript">
34
+ function cookieLawAccept() {
35
+ var d = new Date();
36
+ if (<?php echo $_helper->getBehaviour(); ?>) d.setTime(d.getTime()+(365*24*60*60*1000)); // Remember 365 days
37
+ Mage.Cookies.set('cookielaw', '1', d);
38
+ if (typeof jQuery == 'undefined') {
39
+ document.getElementById('v-cookielaw').style.display = 'none';
40
+ } else {
41
+ jQuery('#v-cookielaw').slideUp();
42
+ }
43
+ }
44
+
45
+ if (!Mage.Cookies.get('cookielaw')) document.getElementById('v-cookielaw').style.display = '';
46
+
47
+ <?php if ($_helper->getAutohide()): ?>
48
+ setTimeout(function() {
49
+ cookieLawAccept();
50
+ }, <?php echo $_helper->getAutohide()*1000; ?>);
51
+ <?php endif; ?>
52
+ </script>
app/locale/de_DE/Valdecode_CookieLaw.csv CHANGED
@@ -1,3 +1,3 @@
1
  "cookie policy","Weitere Informationen"
2
- "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.","Cookies helfen uns bei der Bereitstellung unserer Dienste. Durch die Nutzung unserer Dienste erklären Sie sich damit einverstanden, dass wir Cookies setzen. %s."
3
  "Accept","Akzeptieren"
1
  "cookie policy","Weitere Informationen"
2
+ "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.","Cookies helfen uns bei der Bereitstellung unserer Dienste. Durch die Nutzung unserer Dienste erklären Sie sich damit einverstanden, dass wir Cookies setzen."
3
  "Accept","Akzeptieren"
app/locale/en_US/Valdecode_CookieLaw.csv CHANGED
@@ -1,3 +1,3 @@
1
  "cookie policy","cookie policy"
2
- "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.","This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s."
3
  "Accept","Accept"
1
  "cookie policy","cookie policy"
2
+ "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.","This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies."
3
  "Accept","Accept"
app/locale/es_ES/Valdecode_CookieLaw.csv CHANGED
@@ -1,3 +1,3 @@
1
  "cookie policy","política de cookies"
2
- "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.","Esta web usa cookies. Si continuas navegando estás consintiendo nuestro uso de cookies. Para más detalles sobre las cookies y cómo gestionarlas visita nuestra %s."
3
  "Accept","Aceptar"
1
  "cookie policy","política de cookies"
2
+ "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.","Esta web usa cookies. Si continuas navegando estás consintiendo nuestro uso de cookies."
3
  "Accept","Aceptar"
app/locale/fr_FR/Valdecode_CookieLaw.csv CHANGED
@@ -1,3 +1,3 @@
1
  "cookie policy","En savoir plus"
2
- "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.","Les cookies assurent le bon fonctionnement de nos services. En utilisant ces derniers, vous acceptez l'utilisation des cookies. %s."
3
  "Accept","Accepter"
1
  "cookie policy","En savoir plus"
2
+ "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.","Les cookies assurent le bon fonctionnement de nos services. En utilisant ces derniers, vous acceptez l'utilisation des cookies."
3
  "Accept","Accepter"
app/locale/hu_HU/Valdecode_CookieLaw.csv CHANGED
@@ -1,3 +1,3 @@
1
  "cookie policy","További információ"
2
- "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.","A cookie-k segítenek szolgáltatásaink biztosításában. Szolgáltatásaink igénybe vételével Ön beleegyezik a cookie-k használatába. %s."
3
  "Accept","Elfogad"
1
  "cookie policy","További információ"
2
+ "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.","A cookie-k segítenek szolgáltatásaink biztosításában. Szolgáltatásaink igénybe vételével Ön beleegyezik a cookie-k használatába."
3
  "Accept","Elfogad"
app/locale/nl_NL/Valdecode_CookieLaw.csv CHANGED
@@ -1,3 +1,3 @@
1
  "cookie policy","Meer informatie"
2
- "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.","Cookies helpen ons bij het leveren van onze diensten. Door gebruik te maken van onze diensten, gaat u akkoord met ons gebruik van cookies. %s."
3
  "Accept","Accepteren"
1
  "cookie policy","Meer informatie"
2
+ "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.","Cookies helpen ons bij het leveren van onze diensten. Door gebruik te maken van onze diensten, gaat u akkoord met ons gebruik van cookies."
3
  "Accept","Accepteren"
app/locale/ro_RO/Valdecode_CookieLaw.csv CHANGED
@@ -1,3 +1,3 @@
1
  "cookie policy","Aflați mai multe"
2
- "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our %s.","Cookie-urile ne ajută să oferim serviciile noastre. Utilizând aceste servicii, acceptați modul în care utilizăm cookie-urile. %s."
3
  "Accept","Accepta"
1
  "cookie policy","Aflați mai multe"
2
+ "This websites use cookies. By continuing to browse the site you are agreeing to our use of cookies.","Cookie-urile ne ajută să oferim serviciile noastre. Utilizând aceste servicii, acceptați modul în care utilizăm cookie-urile."
3
  "Accept","Accepta"
js/valdecode/cookielaw/cookielaw.js DELETED
@@ -1,55 +0,0 @@
1
- /**
2
- * Valdecode
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the Open Software License (OSL 3.0)
7
- * that is bundled with this package in the file LICENSE.txt.
8
- * It is also available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category Valdecode
12
- * @package Valdecode_CookieLaw
13
- * @copyright Copyright (c) 2013 Valdecode
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- */
16
- var cookieLaw = {
17
-
18
- /**
19
- * Gets a cookie value by cookie name.
20
- *
21
- * @param cname
22
- * @returns {string}
23
- */
24
- getCookie: function(cname) {
25
- var name = cname + "=";
26
- var ca = document.cookie.split(';');
27
- for(var i = 0; i < ca.length; i++)
28
- {
29
- var c = ca[i].trim();
30
- if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
31
- }
32
- return "";
33
- },
34
-
35
- /**
36
- * Sets a cookie meaning that the cookie law has been accepted.
37
- *
38
- * @param remember
39
- */
40
- cookieLawAccept: function(remember) {
41
- remember = typeof remember !== 'undefined' ? remember : false;
42
- if (remember) {
43
- var d = new Date();
44
- d.setTime(d.getTime()+(365*24*60*60*1000)); // Remember 365 days
45
- document.cookie = "cookielaw=1;expires=" + d.toGMTString();
46
- } else {
47
- document.cookie = "cookielaw=1";
48
- }
49
- if (typeof jQuery == 'undefined') {
50
- document.getElementById('v-cookielaw').style.display = 'none';
51
- } else {
52
- jQuery('#v-cookielaw').slideUp();
53
- }
54
- }
55
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vhaldecode_CookieLaw</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
- <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Make sure your website complies with the EU Cookie Law with this customizable extension.</summary>
10
  <description>Another EU Cookie Law Compliance extension. This extension adds a notice telling your visitors that the site uses cookies. The notice shows up when a visitor enters for the first time to the site, and remains there until it's closed.</description>
11
- <notes>Minor change.</notes>
 
 
 
 
12
  <authors><author><name>Pere Garcia</name><user>vhalde</user><email>vhalde@mailhaven.com</email></author></authors>
13
- <date>2014-04-17</date>
14
- <time>17:38:38</time>
15
- <contents><target name="magecommunity"><dir name="Valdecode"><dir name="CookieLaw"><dir><dir name="Helper"><file name="Data.php" hash="805984b7ec4a20498446adda46dd8b66"/></dir><dir name="Model"><dir name="Config"><file name="Behaviour.php" hash="ac91130ac640521acf26e0b29f78abb0"/><file name="Position.php" hash="ae8d405915c710d8746e0192d93f8676"/><file name="Show.php" hash="90a572b3358c7da632287625a3fd9a75"/><file name="Skin.php" hash="6851ffc2e6bdc9e9d27ecf9615239cc8"/></dir></dir><dir name="etc"><file name="config.xml" hash="5ada0f1e996a1b8eba1a6ba6ed6082e3"/><file name="system.xml" hash="b11495774e144dca4dc2334b6ee12b57"/></dir></dir><file name="LICENSE.txt" hash="59563e7be45096d0833dade102989042"/><file name="LICENSE_AFL.txt" hash="45a399f2095030865fb962263ccd7506"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cookielaw.xml" hash="9001af47ba9b7b7a78d1c94a57a1208e"/></dir><dir name="template"><dir name="cookielaw"><file name="top.phtml" hash="2dd2bfda1c68dd6e316c80025370a134"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Valdecode_CookieLaw.xml" hash="1c031f6ec39e892c0163383c7be44263"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Valdecode_CookieLaw.csv" hash="80e15a928af1ee5e2ec153d5267b788d"/></dir><dir name="es_ES"><file name="Valdecode_CookieLaw.csv" hash="6ef904f740433596a3f4eac7b5e3bf00"/></dir><dir name="en_US"><file name="Valdecode_CookieLaw.csv" hash="ca98da9cf3c59851db2766fc3c8f4dd0"/></dir><dir name="fr_FR"><file name="Valdecode_CookieLaw.csv" hash="2c6a6358d31671c4be9dbd2d202fa15e"/></dir><dir name="hu_HU"><file name="Valdecode_CookieLaw.csv" hash="31be3e7d14d2cd5df253afab014ae530"/></dir><dir name="nl_NL"><file name="Valdecode_CookieLaw.csv" hash="8dad0acf10c360f1bc6e2d0d2af8e7b3"/></dir><dir name="ro_RO"><file name="Valdecode_CookieLaw.csv" hash="c75a72df0de79d5aeaf0757d4445bdea"/></dir></target><target name="mageweb"><dir name="js"><dir name="valdecode"><dir name="cookielaw"><file name="cookielaw.js" hash="cb580f4041d796172a4b7e864fd9206b"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="valdecode"><dir name="cookielaw"><dir name="css"><file name="cookielaw.css" hash="a52c1703bab1ad010918f34580a5a007"/></dir><dir name="images"><file name="close.png" hash="eff8ee822d3011bd1f992cf4b7f81f9b"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vhaldecode_CookieLaw</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Make sure your website complies with the EU Cookie Law with this customizable extension.</summary>
10
  <description>Another EU Cookie Law Compliance extension. This extension adds a notice telling your visitors that the site uses cookies. The notice shows up when a visitor enters for the first time to the site, and remains there until it's closed.</description>
11
+ <notes>Better UX with buttons&#xD;
12
+ Fluid responsive&#xD;
13
+ Better integration with Magento&#xD;
14
+ Autohide functionality&#xD;
15
+ Magento 1.9 support</notes>
16
  <authors><author><name>Pere Garcia</name><user>vhalde</user><email>vhalde@mailhaven.com</email></author></authors>
17
+ <date>2014-06-02</date>
18
+ <time>19:19:00</time>
19
+ <contents><target name="magecommunity"><dir name="Valdecode"><dir name="CookieLaw"><dir><dir name="Helper"><file name="Data.php" hash="3fc322b510050149f85b951155cfd914"/></dir><dir name="Model"><dir name="Config"><dir name="Bar"><file name="Position.php" hash="c9402776a8d8c74ab95782df10bc625f"/></dir><file name="Behaviour.php" hash="e6925152098e6d1d7bdb27b08440498c"/><dir name="Box"><file name="Position.php" hash="49f2d38e7e757c53be15ac10611cb4f7"/></dir><file name="Message.php" hash="2762bd2c5e084d9919baecf43a3f2a51"/><file name="Skin.php" hash="e0e9e6e737b30639470737a84e33515d"/><file name="Type.php" hash="55e650a6e1298ac20c37091f224e47bb"/></dir></dir><dir name="etc"><file name="config.xml" hash="c723ab0b54e96eaf4bbff30e7e44b4e8"/><file name="system.xml" hash="3627e2cd7ae9e5867dc23ebac15ee234"/></dir></dir><file name="LICENSE.txt" hash="d81777dd1924b2f3d99f3b6c0aaed61f"/><file name="LICENSE_AFL.txt" hash="33737cdc3b2d094e52cfd4d6727990ac"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cookielaw.xml" hash="82b72ee0dfb0e208ada453a3ced703df"/></dir><dir name="template"><dir name="cookielaw"><file name="widget.phtml" hash="b93fbae1c795ea6548defc02878ba6b1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Valdecode_CookieLaw.xml" hash="1c031f6ec39e892c0163383c7be44263"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Valdecode_CookieLaw.csv" hash="e5ffaf29bdb1aa183b6e45f95a213724"/></dir><dir name="es_ES"><file name="Valdecode_CookieLaw.csv" hash="db007fdcec1030dd834fb75bd388e041"/></dir><dir name="en_US"><file name="Valdecode_CookieLaw.csv" hash="0676570656ff1059aefa98b822d193ea"/></dir><dir name="fr_FR"><file name="Valdecode_CookieLaw.csv" hash="1174ccc6040540e1074da358434db78e"/></dir><dir name="hu_HU"><file name="Valdecode_CookieLaw.csv" hash="b76c83eb16084ae2a7e71fd1d894d190"/></dir><dir name="nl_NL"><file name="Valdecode_CookieLaw.csv" hash="7bf07a898b30e3126c792bc1d3538734"/></dir><dir name="ro_RO"><file name="Valdecode_CookieLaw.csv" hash="d261434ce98f4e72789d2ff0f3e8a9f2"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="valdecode"><dir name="cookielaw"><dir name="css"><file name="cookielaw.css" hash="062b72f3378bca71ce6bb88339ebaa58"/></dir><dir name="images"><file name="cookie.png" hash="824f63b8d34b2b4893c4566b4a0a8926"/></dir></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
skin/frontend/base/default/valdecode/cookielaw/css/cookielaw.css CHANGED
@@ -10,28 +10,43 @@
10
  *
11
  * @category Valdecode
12
  * @package Valdecode_CookieLaw
13
- * @copyright Copyright (c) 2013 Valdecode
14
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
15
  */
16
- #v-cookielaw { overflow: hidden; width: 100%; background: #fff; border-bottom: 1px solid #000; padding: 8px 0; position: relative; }
17
- #v-cookielaw .v-message { float: left; text-align: left; padding: 0 10px; width: 90%; }
18
- #v-cookielaw .v-close { right: 10px; position: absolute; top: 50%; margin-top: -8px; cursor: pointer; font-size: 0; width: 16px; height: 16px; background: url('../images/close.png') no-repeat; }
19
- #v-cookielaw .v-close:hover { background-position: 0 -48px; }
 
 
 
 
20
 
21
- #v-cookielaw.v-top { }
22
- #v-cookielaw.v-bottom { position: fixed; bottom: 0; z-index: 999999; border-bottom: 0; border-top: 1px solid #000; }
 
 
 
23
 
24
- #v-cookielaw.v-yellow-alert { background: #fffbcd; border-color: #e2cd7b; }
25
- #v-cookielaw.v-yellow-alert a { color: #ff0000; text-decoration: none; }
26
- #v-cookielaw.v-yellow-alert a:hover { text-decoration: underline; }
27
-
28
- #v-cookielaw.v-dark-clean { color: #fff; background: #2c2c2c; border-color: #55575f; }
29
- #v-cookielaw.v-dark-clean a { color: #ff9393; text-decoration: none; }
30
- #v-cookielaw.v-dark-clean a:hover { text-decoration: underline; }
31
- #v-cookielaw.v-dark-clean .v-close { background-position: 0 -32px; }
32
- #v-cookielaw.v-dark-clean .v-close:hover { background-position: 0 -16px; }
33
 
 
34
  @media screen and (max-width: 480px) {
35
- #v-cookielaw .v-message { float: none; width: 100%; }
36
- #v-cookielaw .v-close { padding: 5px 10px; display: inline-block; font-size: inherit; background: none; position: relative; margin-top: inherit; top: inherit; right: inherit; width: 100%; text-align: left; }
37
- }
 
 
 
 
 
 
 
 
 
 
10
  *
11
  * @category Valdecode
12
  * @package Valdecode_CookieLaw
13
+ * @copyright Copyright (c) 2014 Valdecode
14
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
15
  */
16
+ #v-cookielaw { overflow: hidden; background: #fff; }
17
+ #v-cookielaw .v-message { padding: 5px 10px; }
18
+ #v-cookielaw .v-actions { }
19
+ #v-cookielaw .v-button { color: #222; display: inline-block; background-color: #ececec; background-image: linear-gradient(#f4f4f4, #ececec); border: 1px solid #d4d4d4; padding: 4px 10px; text-decoration: none; text-shadow: 1px 1px 0 #fff; border-radius: 2px; }
20
+ #v-cookielaw .v-button.v-accept:before { content: "\2714"; }
21
+ #v-cookielaw .v-button:hover,
22
+ #v-cookielaw .v-button:focus { color: #fff; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); border-color: #3072b3; border-bottom-color: #2a65a0; background-color: #2a65a0; background-image: linear-gradient(#599bdc, #3072b3); }
23
+ #v-cookielaw .v-button:active { border-color: #2a65a0; border-bottom-color: #3884cd; background-color: #3072b3; background-image: linear-gradient(#3072b3, #599bdc); }
24
 
25
+ #v-cookielaw.v-bar { display: table; width: 100%; padding: 5px 0; }
26
+ #v-cookielaw.v-bar .v-message { display: table-cell; }
27
+ #v-cookielaw.v-bar .v-actions { display: table-cell; vertical-align: middle; width: 250px; padding-right: 10px; text-align: right; }
28
+ #v-cookielaw.v-bar.v-top { position: relative; border-bottom: 1px solid #000; }
29
+ #v-cookielaw.v-bar.v-bottom { position: fixed; bottom: 0; z-index: 999999; border-top: 1px solid #000; }
30
 
31
+ #v-cookielaw.v-box { position: fixed; z-index: 999999; max-width: 300px; border: 1px solid #000; border-radius: 3px; margin: 10px; }
32
+ #v-cookielaw.v-box .v-actions { float: left; margin: 5px 10px 10px 10px; }
33
+ #v-cookielaw.v-box.v-top-left { top: 0; left: 0; }
34
+ #v-cookielaw.v-box.v-top-right { top: 0; right: 0; }
35
+ #v-cookielaw.v-box.v-bottom-left { bottom: 0; left: 0; }
36
+ #v-cookielaw.v-box.v-bottom-right { bottom: 0; right: 0; }
 
 
 
37
 
38
+ /* RWD */
39
  @media screen and (max-width: 480px) {
40
+ #v-cookielaw .v-message { float: left; }
41
+ #v-cookielaw .v-actions { float: left; margin: 5px 10px; }
42
+ #v-cookielaw.v-bar .v-actions { width: auto; }
43
+ }
44
+
45
+ /* Skin - Yellow Alert */
46
+ #v-cookielaw.v-yellow-alert { background: #fffbcd; border-color: #e2cd7b !important; }
47
+
48
+ /* Skin - Dark Clean */
49
+ #v-cookielaw.v-dark-clean { color: #fff; background: #2c2c2c; border-color: #55575f !important; }
50
+ #v-cookielaw.v-dark-clean .v-button { color: #fff; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); border-color: #3072b3; border-bottom-color: #2a65a0; background-color: #2a65a0; background-image: linear-gradient(#599bdc, #3072b3); }
51
+ #v-cookielaw.v-dark-clean .v-button:hover,
52
+ #v-cookielaw.v-dark-clean .v-button:focus { background-color: #3678a0; background-image: linear-gradient(#68abdc, #387cb3); }
skin/frontend/base/default/valdecode/cookielaw/images/close.png DELETED
Binary file
skin/frontend/base/default/valdecode/cookielaw/images/cookie.png ADDED
Binary file