Changeset 2255512
- Timestamp:
- 03/06/2020 10:32:11 AM (6 years ago)
- Location:
- cookiebar-by-beard
- Files:
-
- 25 added
- 4 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/banner-1544x500.jpg (added)
-
tags/1.0.1/assets/banner-772x250.jpg (added)
-
tags/1.0.1/assets/icon-128x128.jpg (added)
-
tags/1.0.1/assets/icon-256x256.jpg (added)
-
tags/1.0.1/assets/icon.svg (added)
-
tags/1.0.1/assets/screenshot-1.jpg (added)
-
tags/1.0.1/assets/screenshot-2.jpg (added)
-
tags/1.0.1/assets/screenshot-3.jpg (added)
-
tags/1.0.1/assets/screenshot-4.jpg (added)
-
tags/1.0.1/assets/screenshot-5.jpg (added)
-
tags/1.0.1/cookiebar-by-beard.php (added)
-
tags/1.0.1/css (added)
-
tags/1.0.1/css/cbbb.css (added)
-
tags/1.0.1/gpl-2.0.txt (added)
-
tags/1.0.1/includes (added)
-
tags/1.0.1/includes/get-options.php (added)
-
tags/1.0.1/includes/plugin-functions.php (added)
-
tags/1.0.1/includes/settings.php (added)
-
tags/1.0.1/includes/shortcode.php (added)
-
tags/1.0.1/js (added)
-
tags/1.0.1/js/js.cookie.min.js (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/uninstall.php (added)
-
trunk/cookiebar-by-beard.php (modified) (1 diff)
-
trunk/includes/plugin-functions.php (modified) (3 diffs)
-
trunk/includes/settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cookiebar-by-beard/trunk/cookiebar-by-beard.php
r2246103 r2255512 4 4 * Plugin URI: https://wearebeard.com/cookiebar 5 5 * Description: Cookiebar by beard is aplugin developed to give your visitord control over the cookies you set. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Martin Greenwood 8 8 * Author URI: http://wearebeard.com -
cookiebar-by-beard/trunk/includes/plugin-functions.php
r2246103 r2255512 140 140 ?> 141 141 142 $(".cbbb-cookie-check"). toggleClass('closed');143 $(".cbbb-cookie-icon"). toggleClass('show');142 $(".cbbb-cookie-check").addClass('closed'); 143 $(".cbbb-cookie-icon").addClass('show'); 144 144 145 145 }); 146 146 $('.cbbb-cookie-icon').on("click", function() { 147 $(".cbbb-cookie-check"). toggleClass('closed');148 $(".cbbb-cookie-icon"). toggleClass('show');147 $(".cbbb-cookie-check").removeClass('closed'); 148 $(".cbbb-cookie-icon").removeClass('show'); 149 149 }); 150 150 $('.cbbb-cookie-save button').on("click", function() { … … 196 196 $loop = new WP_Query($cbbb_cpt_args); 197 197 if ($loop->have_posts()): while ($loop->have_posts()) : $loop->the_post(); 198 $cookie_title = get_the_title(); 199 $cookie_name = str_replace(" ","", strtolower($cookie_title)); 200 if ( isset($_COOKIE['$cookie_name']) ): 198 201 echo "<!-- added by Cookiebar by Beard -->"; 199 202 echo htmlspecialchars_decode( get_post_meta(get_the_id(), '_cbbb_script_meta_key', true) ); 200 203 echo "<!-- // end cookiebar script -->"; 204 endif; 201 205 endwhile; 202 206 endif; … … 220 224 $loop = new WP_Query($cbbb_cpt_args); 221 225 if ($loop->have_posts()): while ($loop->have_posts()) : $loop->the_post(); 226 $cookie_title = get_the_title(); 227 $cookie_name = str_replace(" ","", strtolower($cookie_title)); 228 if ( isset($_COOKIE['$cookie_name']) ): 222 229 echo "<!-- added by Cookiebar by Beard -->"; 223 230 echo htmlspecialchars_decode( get_post_meta(get_the_id(), '_cbbb_script_meta_key', true) ); 224 231 echo "<!-- // end cookiebar script -->"; 232 endif; 225 233 endwhile; 226 234 endif; -
cookiebar-by-beard/trunk/includes/settings.php
r2246103 r2255512 23 23 <h3>General Settings</h3> 24 24 <p>General settings for the cookie bar.</p> 25 <p> 26 Make sure you add the shortcode '[cbbbcookies]' to your cookie page or add '<?php echo do_shortcode['[cbbbcookies]'] ;?>' to your cookie page template. 27 </p> 25 28 <?php 26 29 do_settings_sections( 'cbbb-admin' ); -
cookiebar-by-beard/trunk/readme.txt
r2246103 r2255512 4 4 Requires at least: 4.3 5 5 Tested up to: 5.3.2 6 Stable tag: 1.0 6 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 This plugin adds a cookie bar to your website that actually complies with ICO standards.10 This plugin adds a cookie bar to your website that gives your visitors better control. 11 11 12 12 == Description == … … 47 47 == Changelog == 48 48 49 = 1.0.1 50 Bug fix for cookie scripts showing regardless of choice. 51 Added shortcode reference to settings page 52 53 49 54 = 1.0.0 50 55 initial development
Note: See TracChangeset
for help on using the changeset viewer.