Plugin Directory

Changeset 1545877 for uk-cookie-consent


Ignore:
Timestamp:
12/05/2016 01:12:46 PM (9 years ago)
Author:
Catapult_Themes
Message:

Committing 2.2.1

Location:
uk-cookie-consent/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uk-cookie-consent/trunk/admin/class-ctcc-admin.php

    r1533238 r1545877  
    471471        public function scroll_height_render() {
    472472            $options = get_option( 'ctcc_options_settings' ); ?>
    473             <input type="number" min="1" name="ctcc_options_settings[scroll_height]" value="<?php echo $options['scroll_height']; ?>">
     473            <input type="number" min="1" name="ctcc_options_settings[scroll_height]" value="<?php echo esc_attr( $options['scroll_height'] ); ?>">
    474474            <p class="description"><?php _e ( 'If you chose Scroll as the close method, enter the distance in pixels the user should scroll before the notification closes', 'uk-cookie-consent' ); ?></p>
    475475        <?php
     
    478478        public function duration_render() {
    479479            $options = get_option( 'ctcc_options_settings' ); ?>
    480             <input type="number" min="1" name="ctcc_options_settings[duration]" value="<?php echo $options['duration']; ?>">
     480            <input type="number" min="1" name="ctcc_options_settings[duration]" value="<?php echo esc_attr( $options['duration'] ); ?>">
    481481            <p class="description"><?php _e ( 'If you chose Timer as the close method, enter how many seconds the notification should display for', 'uk-cookie-consent' ); ?></p>
    482482        <?php
     
    485485        public function cookie_expiry_render() {
    486486            $options = get_option( 'ctcc_options_settings' ); ?>
    487             <input type="number" min="1" name="ctcc_options_settings[cookie_expiry]" value="<?php echo $options['cookie_expiry']; ?>">
     487            <input type="number" min="1" name="ctcc_options_settings[cookie_expiry]" value="<?php echo esc_attr( $options['cookie_expiry'] ); ?>">
    488488            <p class="description"><?php _e ( 'The number of days that the cookie is set for', 'uk-cookie-consent' ); ?></p>
    489489        <?php
     
    492492        public function cookie_version_render() {
    493493            $options = get_option( 'ctcc_options_settings' ); ?>
    494             <input type="text" name="ctcc_options_settings[cookie_version]" value="<?php echo $options['cookie_version']; ?>">
     494            <input type="text" name="ctcc_options_settings[cookie_version]" value="<?php echo esc_attr( $options['cookie_version'] ); ?>">
    495495            <p class="description"><?php _e ( 'A version number for the cookie - update this to invalidate the cookie and force all users to view the notification again', 'uk-cookie-consent' ); ?></p>
    496496        <?php
     
    503503        public function heading_text_render() {
    504504            $ctcc_content_settings = get_option( 'ctcc_content_settings' ); ?>
    505             <input type="text" name="ctcc_content_settings[heading_text]" value="<?php echo $ctcc_content_settings['heading_text']; ?>">
     505            <input type="text" name="ctcc_content_settings[heading_text]" value="<?php echo esc_attr( $ctcc_content_settings['heading_text'] ); ?>">
    506506            <p class="description"><?php _e ( 'The heading text - only applies if you are not using a top or bottom bar', 'uk-cookie-consent' ); ?></p>
    507507        <?php
     
    510510        public function notification_text_render() {
    511511            $ctcc_content_settings = get_option( 'ctcc_content_settings' ); ?>
    512             <input class="widefat" type="text" name="ctcc_content_settings[notification_text]" value="<?php echo $ctcc_content_settings['notification_text']; ?>">
     512            <input class="widefat" type="text" name="ctcc_content_settings[notification_text]" value="<?php echo esc_attr( $ctcc_content_settings['notification_text'] ); ?>">
    513513            <p class="description"><?php _e ( 'The default text to indicate that your site uses cookies', 'uk-cookie-consent' ); ?></p>
    514514        <?php
     
    517517        public function accept_text_render() {
    518518            $ctcc_content_settings = get_option( 'ctcc_content_settings' ); ?>
    519             <input type="text" name="ctcc_content_settings[accept_text]" value="<?php echo $ctcc_content_settings['accept_text']; ?>">
     519            <input type="text" name="ctcc_content_settings[accept_text]" value="<?php echo esc_attr( $ctcc_content_settings['accept_text'] ); ?>">
    520520            <p class="description"><?php _e ( 'The default text to dismiss the notification', 'uk-cookie-consent' ); ?></p>
    521521        <?php
     
    524524        public function more_info_text_render() {
    525525            $ctcc_content_settings = get_option( 'ctcc_content_settings' ); ?>
    526             <input type="text" name="ctcc_content_settings[more_info_text]" value="<?php echo $ctcc_content_settings['more_info_text']; ?>">
     526            <input type="text" name="ctcc_content_settings[more_info_text]" value="<?php echo esc_attr( $ctcc_content_settings['more_info_text'] ); ?>">
    527527            <p class="description"><?php _e ( 'The default text to use to link to a page providing further information', 'uk-cookie-consent' ); ?></p>
    528528        <?php
     
    547547        public function more_info_url_render() {
    548548            $ctcc_content_settings = get_option( 'ctcc_content_settings' ); ?>
    549             <input type="url" name="ctcc_content_settings[more_info_url]" value="<?php echo $ctcc_content_settings['more_info_url']; ?>">
     549            <input type="url" name="ctcc_content_settings[more_info_url]" value="<?php echo esc_attr( $ctcc_content_settings['more_info_url'] ); ?>">
    550550            <p class="description"><?php _e ( 'You can add an absolute URL here to override the More Info Page setting above. Use this to link to an external website for further information about cookies.', 'uk-cookie-consent' ); ?></p>
    551551        <?php
     
    582582        public function container_class_render() {
    583583            $options = get_option( 'ctcc_styles_settings' ); ?>
    584             <input type="text" name="ctcc_styles_settings[container_class]" value="<?php echo $options['container_class']; ?>">
     584            <input type="text" name="ctcc_styles_settings[container_class]" value="<?php echo esc_attr( $options['container_class'] ); ?>">
    585585            <p class="description"><?php _e ( 'You can add an optional wrapper class, eg container, here to align the notification text with the rest of your content', 'uk-cookie-consent' ); ?></p>
    586586        <?php
     
    624624        public function text_color_render() {
    625625            $options = get_option( 'ctcc_styles_settings' ); ?>
    626             <input type="text" class="cctc-color-field" name="ctcc_styles_settings[text_color]" value="<?php echo $options['text_color']; ?>">
     626            <input type="text" class="cctc-color-field" name="ctcc_styles_settings[text_color]" value="<?php echo esc_attr( $options['text_color'] ); ?>">
    627627            <p class="description"><?php _e ( 'The text color on the notification', 'uk-cookie-consent' ); ?></p>
    628628        <?php
     
    631631        public function bg_color_render() {
    632632            $options = get_option( 'ctcc_styles_settings' ); ?>
    633             <input type="text" class="cctc-color-field" name="ctcc_styles_settings[bg_color]" value="<?php echo $options['bg_color']; ?>">
     633            <input type="text" class="cctc-color-field" name="ctcc_styles_settings[bg_color]" value="<?php echo esc_attr( $options['bg_color'] ); ?>">
    634634            <p class="description"><?php _e ( 'The background color for the notification', 'uk-cookie-consent' ); ?></p>
    635635        <?php
     
    638638        public function link_color_render() {
    639639            $options = get_option( 'ctcc_styles_settings' ); ?>
    640             <input type="text" class="cctc-color-field" name="ctcc_styles_settings[link_color]" value="<?php echo $options['link_color']; ?>">
     640            <input type="text" class="cctc-color-field" name="ctcc_styles_settings[link_color]" value="<?php echo esc_attr( $options['link_color'] ); ?>">
    641641            <p class="description"><?php _e ( 'The link color on the notification', 'uk-cookie-consent' ); ?></p>
    642642        <?php
     
    645645        public function button_color_render() {
    646646            $options = get_option( 'ctcc_styles_settings' ); ?>
    647             <input type="text" class="cctc-color-field" name="ctcc_styles_settings[button_color]" value="<?php echo $options['button_color']; ?>">
     647            <input type="text" class="cctc-color-field" name="ctcc_styles_settings[button_color]" value="<?php echo esc_attr( $options['button_color'] ); ?>">
    648648            <p class="description"><?php _e ( 'The text color on the notification button', 'uk-cookie-consent' ); ?></p>
    649649        <?php
     
    652652        public function button_bg_color_render() {
    653653            $options = get_option( 'ctcc_styles_settings' ); ?>
    654             <input type="text" class="cctc-color-field" name="ctcc_styles_settings[button_bg_color]" value="<?php echo $options['button_bg_color']; ?>">
     654            <input type="text" class="cctc-color-field" name="ctcc_styles_settings[button_bg_color]" value="<?php echo esc_attr( $options['button_bg_color'] ); ?>">
    655655            <p class="description"><?php _e ( 'The background color on the notification button', 'uk-cookie-consent' ); ?></p>
    656656        <?php
  • uk-cookie-consent/trunk/readme.txt

    r1533238 r1545877  
    55Requires at least: 4.3
    66Tested up to: 4.6.1
    7 Stable tag: 2.2.0
     7Stable tag: 2.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
     73= 2.2.1 =
     74* Updated: better escapingn (suggested by @djpaul)
     75
    7376= 2.2.0 =
    74 * Added: optionally exclude pages and posts from displaying the cookie notification
    75 * Added: close notification on scroll option
     77* Added: optionally exclude pages and posts from displaying the cookie notification (suggested by @jeffrobbins)
     78* Added: close notification on scroll option (suggested by @jeffrobbins)
    7679* Added: class name for more info link
    7780* Fixed: x-close responsive margin
  • uk-cookie-consent/trunk/uk-cookie-consent.php

    r1533238 r1545877  
    44Plugin URI: http://catapultthemes.com/cookie-consent/
    55Description: The only cookie consent plugin you'll ever need.
    6 Version: 2.2.0
     6Version: 2.2.1
    77Author: Catapult_Themes
    88Author URI: http://catapultthemes.com/
Note: See TracChangeset for help on using the changeset viewer.