Changeset 812051
- Timestamp:
- 11/28/2013 08:22:36 PM (12 years ago)
- Location:
- uk-cookie-consent/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
uk-cookie-consent.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uk-cookie-consent/trunk/readme.txt
r803042 r812051 5 5 Requires at least: 3.5.0 6 6 Tested up to: 3.7.1 7 Stable tag: 1. 67 Stable tag: 1.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 1.7 = 52 * Updates to settings page 53 51 54 = 1.6 = 52 Moved JS to footer (thanks to Andreas Larsen for the suggestion)55 * Moved JS to footer (thanks to Andreas Larsen for the suggestion) 53 56 54 57 = 1.5 = 55 Switched the logic so that the bar is initially hidden on the page and only displays if user has not previously dismissed it.56 Gives a slightly better performance.57 Thanks to chrisHe for the suggestion.58 * Switched the logic so that the bar is initially hidden on the page and only displays if user has not previously dismissed it. 59 * Gives a slightly better performance. 60 * Thanks to chrisHe for the suggestion. 58 61 59 62 = 1.4.2. = 60 Policy page created on register_activation_hook now63 * Policy page created on register_activation_hook now 61 64 62 65 = 1.4.1 = 63 Tweak to ensure jQuery is a dependency66 * Tweak to ensure jQuery is a dependency 64 67 65 68 = 1.4 = 66 This plug-in now uses JavaScript to test whether the user has dismissed the front-end notification in order to solve issues with caching plug-ins.67 Added configuration options for colour and position of bar.68 Set notification button and link to first element in tab list.69 Thanks to husobj for contributions and suggestions including localisation and enqueueing scripts and stylesheets69 * This plug-in now uses JavaScript to test whether the user has dismissed the front-end notification in order to solve issues with caching plug-ins. 70 * Added configuration options for colour and position of bar. 71 * Set notification button and link to first element in tab list. 72 * Thanks to husobj for contributions and suggestions including localisation and enqueueing scripts and stylesheets 70 73 71 74 = 1.3 = 72 Reinstated user-defined permalink field75 * Reinstated user-defined permalink field 73 76 74 77 = 1.25 = 75 Minor admin update78 * Minor admin update 76 79 77 80 = 1.24 = 78 Fixed text alignment issue with Thesis framework (thanks to cavnit for pointing this one out)81 * Fixed text alignment issue with Thesis framework (thanks to cavnit for pointing this one out) 79 82 80 83 = 1.23 = 81 Minor admin update84 * Minor admin update 82 85 83 86 = 1.22 = 84 Minor admin update87 * Minor admin update 85 88 86 89 = 1.21 = 87 Added resources to Settings page90 * Added resources to Settings page 88 91 89 92 = 1.2 = 90 Change title of Cookies page to Cookie Policy and removed option to change title91 Added trailing slash to Cookie Policy url (thanks to mikeotgaar for spotting this)93 * Change title of Cookies page to Cookie Policy and removed option to change title 94 * Added trailing slash to Cookie Policy url (thanks to mikeotgaar for spotting this) 92 95 93 96 = 1.1 = 94 Added default text to messages97 * Added default text to messages 95 98 96 99 == Upgrade Notice == -
uk-cookie-consent/trunk/uk-cookie-consent.php
r803042 r812051 5 5 Description: Simple plug-in to help compliance with the UK interpretation of the EU regulations regarding usage of website cookies. A user to your site is presented with a clear yet unobtrusive notification that the site is using cookies and may then acknowledge and dismiss the notification or click to find out more. The plug-in does not disable cookies on your site or prevent the user from continuing to browse the site - it comes with standard wording on what cookies are and advice on how to disable them in the browser. The plug-in follows the notion of "implied consent" as described by the UK's Information Commissioner and makes the assumption that most users who choose not to accept cookies will do so for all websites. 6 6 Author: Catapult 7 Version: 1. 67 Version: 1.7 8 8 Author URI: http://catapultdesign.co.uk/ 9 9 */ … … 20 20 function catapult_cookie_options_page() { ?> 21 21 <div class="wrap"> 22 <?php screen_icon(); ?> 22 23 <h2><?php _e( 'UK Cookie Consent', 'uk-cookie-consent' ); ?></h2> 23 24 <div id="poststuff" class="metabox-holder has-right-sidebar"> 24 <div class="meta-box-sortabless"> 25 <div class="postbox"> 26 <h3 class="hndle"><?php _e( 'Your settings', 'uk-cookie-consent' ); ?></h3> 27 <div class="inside"> 28 <form action="options.php" method="post"> 29 <?php settings_fields('catapult_cookie_options'); ?> 30 <?php do_settings_sections('catapult_cookie'); ?> 31 <input name="cat_submit" type="submit" id="submit" class="button-primary" style="margin-top:30px;" value="<?php esc_attr_e( __( 'Save Changes', 'uk-cookie-consent' ) ); ?>" /> 32 <?php $options = get_option('catapult_cookie_options'); 33 $value = htmlentities ( $options['catapult_cookie_link_settings'], ENT_QUOTES ); 34 if ( !$value ) { 35 $value = 'cookie-policy'; 36 } ?> 37 <p><?php echo sprintf( __( 'Your Cookies Policy page is <a href="%s">here</a>. You may wish to create a menu item or other link on your site to this page.', 'uk-cookie-consent' ), home_url( $value ) ); ?></p> 38 </form> 39 </div> 40 </div> 41 </div> 42 <div class="meta-box-sortabless ui-sortable" style="position:relative;"> 43 <div class="postbox"> 44 <h3 class="hndle"><?php _e( 'Resources', 'uk-cookie-consent' ); ?></h3> 25 <div id="side-info-column" class="inner-sidebar"> 26 <div id="side-sortables" class="meta-box-sortables ui-sortable"> 27 <div class="postbox like-postbox"> 28 <div class="handlediv" title="Click to toggle"><br></div> 29 <h3 class="hndle"><span>Did this plugin help you?</span></h3> 30 <div class="inside"> 31 <div class="like-widget"> 32 <p>If this plugin helped you out in your project, please show your support:</p> 33 <ul> 34 <li><a target="_blank" href="http://wordpress.org/plugins/uk-cookie-consent/">Rate it</a></li> 35 <li><a target="_blank" href="http://twitter.com/share?url=&text=Check out the UK Cookie Consent plugin for WordPress from @_catapult_ - it's sweet: http://bit.ly/190GGXN">Tweet it</a></li> 36 </ul> 37 </div> 38 </div> 39 </div><!-- .postbox --> 40 41 <div class="postbox like-postbox"> 42 <div class="handlediv" title="Click to toggle"><br></div> 43 <h3 class="hndle"><span>Other plugins you might like</span></h3> 44 <div class="inside"> 45 <div class="like-widget"> 46 <p>If you liked this plugin, you may care to try the following:</p> 47 <ul> 48 <li><a target="_blank" href="http://wordpress.org/plugins/wp-slide-out-tab/">Slide out tab</a> 49 <p>Display a sliding tab for marketing, promotional or other content.</p> 50 </li> 51 </ul> 52 </div> 53 </div> 54 </div><!-- .postbox --> 55 56 <div class="postbox rss-postbox"> 57 <div class="handlediv" title="Click to toggle"><br></div> 58 <h3 class="hndle"><span>Cookie resources</span></h3> 45 59 <div class="inside"> 46 60 <p><a href="http://www.ico.gov.uk/for_organisations/privacy_and_electronic_communications/the_guide/cookies.aspx"><?php _e( 'Information Commissioner\'s Office Guidance on Cookies', 'uk-cookie-consent' ); ?></a></p> … … 49 63 </div> 50 64 </div> 65 66 <div class="postbox rss-postbox"> 67 <div class="handlediv" title="Click to toggle"><br></div> 68 <h3 class="hndle"><span>Support</span></h3> 69 <div class="inside"> 70 <div class="rss-widget"> 71 <?php 72 wp_widget_rss_output(array( 73 'url' => 'http://wordpress.org/support/rss/plugin/uk-cookie-consent', 74 'title' => 'Latest from the support forum', 75 'items' => 3, 76 'show_summary' => 1, 77 'show_author' => 0, 78 'show_date' => 1, 79 )); 80 ?> 81 <ul> 82 </ul> 83 </div> 84 <p><a href="http://wordpress.org/support/plugin/wp-slide-out-tab" title="Forum">Check out the forum</a></p> 85 </div> 86 </div><!-- .postbox --> 87 51 88 </div> 89 </div><!-- #side-info-column --> 90 91 <div id="post-body"> 92 <div id="post-body-content"> 93 <div class="meta-box-sortables"> 94 <div class="postbox"> 95 <h3 class="hndle"><?php _e( 'Your settings', 'uk-cookie-consent' ); ?></h3> 96 <div class="inside"> 97 <form action="options.php" method="post"> 98 <?php settings_fields('catapult_cookie_options'); ?> 99 <?php do_settings_sections('catapult_cookie'); ?> 100 <input name="cat_submit" type="submit" id="submit" class="button-primary" style="margin-top:30px;" value="<?php esc_attr_e( __( 'Save Changes', 'uk-cookie-consent' ) ); ?>" /> 101 <?php $options = get_option('catapult_cookie_options'); 102 $value = htmlentities ( $options['catapult_cookie_link_settings'], ENT_QUOTES ); 103 if ( !$value ) { 104 $value = 'cookie-policy'; 105 } ?> 106 <p><?php echo sprintf( __( 'Your Cookies Policy page is <a href="%s">here</a>. You may wish to create a menu item or other link on your site to this page.', 'uk-cookie-consent' ), home_url( $value ) ); ?></p> 107 </form> 108 </div> 109 </div> 110 </div> 111 112 113 </div> 114 </div> 52 115 </div><!-- poststuff --> 53 116 </div> … … 190 253 wp_enqueue_style( 'wp-color-picker' ); 191 254 wp_enqueue_script( 'uk-cookie-consent-colour-picker', plugins_url ( 'js/colour-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true ); 255 // wp_enqueue_script( 'dashboard' ); 192 256 } 193 257 add_action( 'admin_enqueue_scripts', 'catapult_color_picker' );
Note: See TracChangeset
for help on using the changeset viewer.