Version Description
Release Date: July 13th, 2015
Dev time: 3h
- Added link to setting page and docs in plugins panel
- Fixed issue #118
Download this release
Release Info
Developer | overclokk |
Plugin | Italy Cookie Choices (for EU Cookie Law) |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.3.1
- admin/class-italy-cookie-choices-admin.php +20 -0
- italy-cookie-choices.php +16 -2
- readme.txt +9 -1
admin/class-italy-cookie-choices-admin.php
CHANGED
@@ -75,6 +75,11 @@ if ( !class_exists( 'Italy_Cookie_Choices_Admin' ) ){
|
|
75 |
if ( isset($_GET['page']) && ($_GET['page'] === 'italy-cookie-choices' ) )
|
76 |
add_action('admin_enqueue_scripts', array( $this, 'add_script_and_style' ));
|
77 |
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
|
80 |
|
@@ -1332,5 +1337,20 @@ if ( !class_exists( 'Italy_Cookie_Choices_Admin' ) ){
|
|
1332 |
|
1333 |
}
|
1334 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1335 |
}// class
|
1336 |
}//endif
|
75 |
if ( isset($_GET['page']) && ($_GET['page'] === 'italy-cookie-choices' ) )
|
76 |
add_action('admin_enqueue_scripts', array( $this, 'add_script_and_style' ));
|
77 |
|
78 |
+
/**
|
79 |
+
* Add link in plugin activation panel
|
80 |
+
*/
|
81 |
+
add_filter( 'plugin_action_links_' . ITALY_COOKIE_CHOICES_BASENAME, array( $this, 'plugin_action_links' ) );
|
82 |
+
|
83 |
}
|
84 |
|
85 |
|
1337 |
|
1338 |
}
|
1339 |
|
1340 |
+
/**
|
1341 |
+
* Add link in plugin activation panel
|
1342 |
+
* @link https://codex.wordpress.org/Plugin_API/Filter_Reference/plugin_action_links_(plugin_file_name)
|
1343 |
+
* @param array $links Array of link in wordpress dashboard
|
1344 |
+
* @return array Array with my links
|
1345 |
+
*/
|
1346 |
+
public function plugin_action_links( $links ){
|
1347 |
+
|
1348 |
+
array_unshift($links, '<a href="options-general.php?page=italy-cookie-choices">' . __('Settings','italy-cookie-choices') . '</a>');
|
1349 |
+
|
1350 |
+
array_unshift($links, '<a href="https://github.com/ItalyCookieChoices/italy-cookie-choices/wiki" target="_blank">' . __('Documentation','italy-cookie-choices') . '</a>');
|
1351 |
+
|
1352 |
+
return $links;
|
1353 |
+
}// plugin_action_links()
|
1354 |
+
|
1355 |
}// class
|
1356 |
}//endif
|
italy-cookie-choices.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Italy Cookie Choices (for EU Cookie Law)
|
4 |
* Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
|
5 |
* Description: Italy Cookie Choices allows you to easily comply with the european cookie law and block third part cookie in your page.
|
6 |
-
* Version: 2.3.
|
7 |
* Author: Enea Overclokk, Andrea Pernici, Andrea Cardinale
|
8 |
* Author URI: https://github.com/ItalyCookieChoices/italy-cookie-choices
|
9 |
* Text Domain: italy-cookie-choices
|
@@ -113,7 +113,11 @@ if ( ! class_exists( 'Italy_Cookie_Choices' ) ) {
|
|
113 |
// new Italy_Cookie_Choices_Pointer_Init;
|
114 |
|
115 |
}else if ( $this->is_compatible_version() && !is_admin() )
|
116 |
-
|
|
|
|
|
|
|
|
|
117 |
|
118 |
else
|
119 |
add_action( 'admin_notices', array( $this, 'load_plugin_admin_notices' ) );
|
@@ -165,6 +169,16 @@ if ( ! class_exists( 'Italy_Cookie_Choices' ) ) {
|
|
165 |
|
166 |
}
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
/**
|
169 |
* Checking compatibility with installed versions of the plugin
|
170 |
* In case of incompatibility still fully loaded plugin (return)
|
3 |
* Plugin Name: Italy Cookie Choices (for EU Cookie Law)
|
4 |
* Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
|
5 |
* Description: Italy Cookie Choices allows you to easily comply with the european cookie law and block third part cookie in your page.
|
6 |
+
* Version: 2.3.1
|
7 |
* Author: Enea Overclokk, Andrea Pernici, Andrea Cardinale
|
8 |
* Author URI: https://github.com/ItalyCookieChoices/italy-cookie-choices
|
9 |
* Text Domain: italy-cookie-choices
|
113 |
// new Italy_Cookie_Choices_Pointer_Init;
|
114 |
|
115 |
}else if ( $this->is_compatible_version() && !is_admin() )
|
116 |
+
|
117 |
+
if ( function_exists('pll__') )// Compatibility with Polylang
|
118 |
+
add_action( 'plugins_loaded', array( $this, 'dependency_init' ), 11 );
|
119 |
+
else
|
120 |
+
new Italy_Cookie_Choices_Front_End;
|
121 |
|
122 |
else
|
123 |
add_action( 'admin_notices', array( $this, 'load_plugin_admin_notices' ) );
|
169 |
|
170 |
}
|
171 |
|
172 |
+
/**
|
173 |
+
* For Polylang compatibility
|
174 |
+
* @return void Istantiate Class
|
175 |
+
*/
|
176 |
+
public function dependency_init(){
|
177 |
+
|
178 |
+
new Italy_Cookie_Choices_Front_End;
|
179 |
+
|
180 |
+
}
|
181 |
+
|
182 |
/**
|
183 |
* Checking compatibility with installed versions of the plugin
|
184 |
* In case of incompatibility still fully loaded plugin (return)
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent, third party script, third party cookie
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.3.0
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -115,6 +115,14 @@ if it doesn't work activate standard theme and try
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
= 2.3.0 =
|
119 |
Release Date: July 11th, 2015
|
120 |
|
4 |
Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent, third party script, third party cookie
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.3.0
|
7 |
+
Stable tag: 2.3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
115 |
|
116 |
== Changelog ==
|
117 |
|
118 |
+
= 2.3.1 =
|
119 |
+
Release Date: July 13th, 2015
|
120 |
+
|
121 |
+
Dev time: 3h
|
122 |
+
|
123 |
+
* Added link to setting page and docs in plugins panel
|
124 |
+
* Fixed issue [#118](https://github.com/ItalyCookieChoices/italy-cookie-choices/issues/118)
|
125 |
+
|
126 |
= 2.3.0 =
|
127 |
Release Date: July 11th, 2015
|
128 |
|