{"id":133496,"date":"2020-12-16T20:51:33","date_gmt":"2020-12-16T20:51:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/can-i-use-cookies\/"},"modified":"2021-03-13T15:40:51","modified_gmt":"2021-03-13T15:40:51","slug":"can-i-use-cookies","status":"publish","type":"plugin","link":"https:\/\/si.wordpress.org\/plugins\/can-i-use-cookies\/","author":18444547,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"trunk","tested":"5.7.15","requires":"5.4","requires_php":"7.0","requires_plugins":"","header_name":"Can I Use Cookies ?","header_author":"Doky","header_description":"Ask the user for his consent about cookies and tracking, and comply with the EU GDPR privacy law and CCPA regulations.","assets_banners_color":"c1916b","last_updated":"2021-03-13 15:40:51","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/doky-fr\/can-i-use-cookies","header_author_uri":"https:\/\/doky.fr","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1253,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"fcaylus","date":"2020-12-16 21:15:25"},"1.0.1":{"tag":"1.0.1","author":"fcaylus","date":"2021-03-13 15:41:33"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2441048,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2441048,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500-rtl.jpg":{"filename":"banner-1544x500-rtl.jpg","revision":2441048,"resolution":"1544x500","location":"assets","locale":""},"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2441048,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-rtl.jpg":{"filename":"banner-772x250-rtl.jpg","revision":2441048,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2441048,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2441048,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2441048,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2441048,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2441048,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2441048,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2441048,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2441048,"resolution":"7","location":"assets","locale":""}},"screenshots":{"1":"Settings menu","2":"Desktop popup with Twenty-Twenty theme","3":"Mobile popup with Twenty-Twenty theme","4":"Desktop popup with Twenty-Nineteen theme","5":"Mobile popup with Twenty-Nineteen theme","6":"Desktop popup with custom styling, text and logo","7":"Mobile popup with custom styling, text and logo"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[20011,388,389,131785,491],"plugin_category":[],"plugin_contributors":[194137],"plugin_business_model":[],"class_list":["post-133496","plugin","type-plugin","status-publish","hentry","plugin_tags-consent","plugin_tags-cookie","plugin_tags-cookies","plugin_tags-gdpr","plugin_tags-popup","plugin_contributors-fcaylus","plugin_committers-fcaylus"],"banners":{"banner":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/banner-772x250.jpg?rev=2441048","banner_2x":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/banner-1544x500.jpg?rev=2441048","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/icon-128x128.png?rev=2441048","icon_2x":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/icon-256x256.png?rev=2441048","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/screenshot-1.png?rev=2441048","caption":"Settings menu"},{"src":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/screenshot-2.png?rev=2441048","caption":"Desktop popup with Twenty-Twenty theme"},{"src":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/screenshot-3.png?rev=2441048","caption":"Mobile popup with Twenty-Twenty theme"},{"src":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/screenshot-4.png?rev=2441048","caption":"Desktop popup with Twenty-Nineteen theme"},{"src":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/screenshot-5.png?rev=2441048","caption":"Mobile popup with Twenty-Nineteen theme"},{"src":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/screenshot-6.png?rev=2441048","caption":"Desktop popup with custom styling, text and logo"},{"src":"https:\/\/ps.w.org\/can-i-use-cookies\/assets\/screenshot-7.png?rev=2441048","caption":"Mobile popup with custom styling, text and logo"}],"raw_content":"<!--section=description-->\n<p>Does one thing but does it right:<\/p>\n\n<p><strong>Ask the user for his consent about cookies and tracking.<\/strong><\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Display a popup on every page and ask the user for his consent about tracking<\/li>\n<li>\"Approve\" and \"Deny\" button: compliant with GDPR and CCPA<\/li>\n<li>Customisable texts and image on the popup<\/li>\n<li>Customisable style of the popup using CSS<\/li>\n<li>Available in 2 languages: English and French<\/li>\n<li>No branding, no ad on the admin panel. Just a new menu in the settings.<\/li>\n<\/ul>\n\n<h3>How it works ?<\/h3>\n\n<p>The plugin will add a new menu under your settings, where you can set up the various texts and images used by the popup.\nThen, a popup will appear on every public pages, asking the user for his consent about cookies and tracking, presenting him with 2 choices:<\/p>\n\n<ul>\n<li><strong>Approve<\/strong>: Set a cookie <code>cookie-consent=yes<\/code> valid for 6 months<\/li>\n<li><strong>Deny<\/strong>: Set a cookie <code>cookie-consent=no<\/code> valid for 6 months<\/li>\n<\/ul>\n\n<p>It's then up to you, and your analytics solution, to check for the <code>cookie-consent<\/code> value and handle it according to the user's wishes.<\/p>\n\n<h3>How to customize the popup style ?<\/h3>\n\n<p>A default style is applied to the popup, with the strict minimum (the layout of the popup).\nThe popup will inherit the text style, button style and colors from your theme.<\/p>\n\n<p>However, you can use CSS to customize the popup layout and style\n(by enqueuing a stylesheet in your <code>functions.php<\/code> file, add additional CSS in your theme's options,\nor whatever technique to add CSS to your page).<\/p>\n\n<p>For reference, here is the popup HTML code. You can use the main container id (<code>#can-i-use-cookies<\/code>)\nto scope your CSS rules.<\/p>\n\n<pre><code>&lt;div id=\"can-i-use-cookies\"&gt;\n    &lt;div class=\"container\"&gt;\n        &lt;div class=\"subcontainer\"&gt;\n            &lt;img class=\"image\" src=\"...\"&gt;\n            &lt;div class=\"text-container\"&gt;\n                &lt;p class=\"title\"&gt;...&lt;\/p&gt;\n                &lt;p class=\"description\"&gt;...&lt;\/p&gt;\n            &lt;\/div&gt;\n        &lt;\/div&gt;\n        &lt;div class=\"button-bar\"&gt;\n            &lt;button id=\"can-i-use-cookies-yes\" class=\"button\"&gt;...&lt;\/button&gt;\n            &lt;button id=\"can-i-use-cookies-no\" class=\"button\"&gt;...&lt;\/button&gt;\n        &lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n<h3>Source code<\/h3>\n\n<p>The source code is available on GitHub at <a href=\"https:\/\/github.com\/doky-fr\/can-i-use-cookies\">github.com\/doky-fr\/can-i-use-cookies<\/a>.<\/p>\n\n<p>Feel free to contribute !<\/p>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Reformat PHP code<\/li>\n<li>Tested up to WordPress 5.7<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First public release<\/li>\n<\/ul>","raw_excerpt":"Ask the user for his consent about cookies and tracking, and comply with the EU GDPR privacy law and CCPA regulations.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/133496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=133496"}],"author":[{"embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fcaylus"}],"wp:attachment":[{"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=133496"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=133496"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=133496"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=133496"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=133496"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/si.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=133496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}