Changeset 1603385
- Timestamp:
- 02/25/2017 10:14:17 AM (9 years ago)
- Location:
- cookie-notice-bar/trunk
- Files:
-
- 12 edited
-
README.txt (modified) (5 diffs)
-
admin/class-dc-cookie-notice-bar-admin.php (modified) (3 diffs)
-
admin/js/dc-cookie-notice-bar-admin.js (modified) (1 diff)
-
admin/partials/dc-cookie-notice-bar-admin-display.php (modified) (2 diffs)
-
dc-cookie-notice-bar.php (modified) (2 diffs)
-
includes/class-dc-cookie-notice-bar-activator.php (modified) (2 diffs)
-
includes/class-dc-cookie-notice-bar-deactivator.php (modified) (2 diffs)
-
includes/class-dc-cookie-notice-bar.php (modified) (1 diff)
-
languages/dc-cookie-notice-bar-it_IT.mo (modified) (previous)
-
languages/dc-cookie-notice-bar-it_IT.po (modified) (4 diffs)
-
languages/dc-cookie-notice-bar.pot (modified) (2 diffs)
-
public/class-dc-cookie-notice-bar-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cookie-notice-bar/trunk/README.txt
r1569671 r1603385 5 5 Tags: cookie, cookie notice, cookie bar, cookie law, cookie notice bar, eu cookie, privacy, cookie policy, notice, bar, consent, notification, privacy directive, notify 6 6 Requires at least: 3.0.1 7 Tested up to: 4.7 8 Stable tag: 4.6.17 Tested up to: 4.7.2 8 Stable tag: 1.3.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 15 15 == Description == 16 16 17 Cookie Notice Bar allows you to add a simple bar to inform users that your site uses cookies according to EU law. It is based on the [WordPress Plugin Boilerplate] (https://github.com/DevinVinson/WordPress-Plugin-Boilerplate).17 Cookie Notice Bar allows you to add a simple bar to inform users that your site uses cookies according to EU law. It is based on the [WordPress Plugin Boilerplate](https://github.com/DevinVinson/WordPress-Plugin-Boilerplate). 18 18 19 19 … … 27 27 * Set the text and background color of the accepted button 28 28 * Set the padding and the border radius of the accepted button 29 * Set the text color of the Read More link 29 30 * Debug Mode for displayed always the cookie notice bar 30 31 * Polylang compatible … … 38 39 39 40 41 = If you like the plugin, please give it a rating. = 42 If you have a feature request, let me know, they're always welcome! 43 44 40 45 == Installation == 41 46 42 47 1. Unzip the downloaded zip file. 43 2. Upload ` dc-cookie-notice-bar` folder to the `/wp-content/plugins/` directory48 2. Upload `cookie-notice-bar` folder to the `/wp-content/plugins/` directory 44 49 3. Activate the plugin through the \'Plugins\' menu in WordPress 45 50 4. Go to Cookie Notice Bar for change the default options … … 60 65 61 66 == Changelog == 67 68 = 1.3.0 - 25/02/17 = 69 * New - Added the ability to change the Read More text color 70 * New - Added the ability to change the Read More text color on hover 62 71 63 72 = 1.2.0 - 06/01/17 = -
cookie-notice-bar/trunk/admin/class-dc-cookie-notice-bar-admin.php
r1569671 r1603385 122 122 * Creates our settings sections with fields etc. 123 123 * 124 * @since 1. 1.0124 * @since 1.3.0 125 125 */ 126 126 public function settings_api_init(){ … … 139 139 register_setting('dc_cnb_options_group', 'dc_cnb_button_padding'); 140 140 register_setting('dc_cnb_options_group', 'dc_cnb_button_border_radius'); 141 register_setting('dc_cnb_options_group', 'dc_cnb_read_more_color'); 142 register_setting('dc_cnb_options_group', 'dc_cnb_read_more_hover_color'); 141 143 register_setting('dc_cnb_options_group', 'dc_cnb_debug_mode'); 142 144 } … … 145 147 * shortcode 146 148 * 147 * @since 1. 2.0149 * @since 1.3.0 148 150 */ 149 151 public function dc_read_more_link() { 150 152 if ( in_array( 'polylang/polylang.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) && function_exists('pll__') ) { 151 return '<a href="'.get_option('dc_cnb_read_more_link').'" target="'.get_option('dc_cnb_read_more_target').'">'.pll__(get_option('dc_cnb_read_more_text')).'</a>';153 return '<a id="dc-cnb-read-more" href="'.get_option('dc_cnb_read_more_link').'" target="'.get_option('dc_cnb_read_more_target').'">'.pll__(get_option('dc_cnb_read_more_text')).'</a>'; 152 154 } 153 155 else { 154 return '<a href="'.get_option('dc_cnb_read_more_link').'" target="'.get_option('dc_cnb_read_more_target').'">'.get_option('dc_cnb_read_more_text').'</a>';156 return '<a id="dc-cnb-read-more" href="'.get_option('dc_cnb_read_more_link').'" target="'.get_option('dc_cnb_read_more_target').'">'.get_option('dc_cnb_read_more_text').'</a>'; 155 157 } 156 158 } -
cookie-notice-bar/trunk/admin/js/dc-cookie-notice-bar-admin.js
r1503580 r1603385 34 34 $('#dc_cnb_button_background').wpColorPicker(); 35 35 $('#dc_cnb_button_color').wpColorPicker(); 36 $('#dc_cnb_read_more_color').wpColorPicker(); 37 $('#dc_cnb_read_more_hover_color').wpColorPicker(); 36 38 }); 37 39 })( jQuery ); -
cookie-notice-bar/trunk/admin/partials/dc-cookie-notice-bar-admin-display.php
r1569671 r1603385 7 7 * 8 8 * @link https://github.com/dcurasi 9 * @since 1. 2.09 * @since 1.3.0 10 10 * 11 11 * @package Dc_Cookie_Notice_Bar … … 171 171 </td> 172 172 </tr> 173 <tr valign="top"> 174 <th scope="row"> 175 <label for="dc_cnb_read_more_color"><?php _e( 'Read More Color', 'dc-cookie-notice-bar' ); ?></label> 176 </th> 177 <td> 178 <input type="text" id="dc_cnb_read_more_color" value="<?php echo get_option('dc_cnb_read_more_color'); ?>" name="dc_cnb_read_more_color" class="regular-text" data-default-color="#e24545"> 179 <p class="description"><?php _e( 'The color of the Read More text.', 'dc-cookie-notice-bar' ); ?></p> 180 </td> 181 </tr> 182 <tr valign="top"> 183 <th scope="row"> 184 <label for="dc_cnb_read_more_hover_color"><?php _e( 'Read More Hover Color', 'dc-cookie-notice-bar' ); ?></label> 185 </th> 186 <td> 187 <input type="text" id="dc_cnb_read_more_hover_color" value="<?php echo get_option('dc_cnb_read_more_hover_color'); ?>" name="dc_cnb_read_more_hover_color" class="regular-text" data-default-color="#e24545"> 188 <p class="description"><?php _e( 'The color of the Read More text on hover.', 'dc-cookie-notice-bar' ); ?></p> 189 </td> 190 </tr> 173 191 </tbody> 174 192 </table> -
cookie-notice-bar/trunk/dc-cookie-notice-bar.php
r1569671 r1603385 10 10 * 11 11 * @link https://github.com/dcurasi 12 * @since 1. 2.012 * @since 1.3.0 13 13 * @package Dc_Cookie_Notice_Bar 14 14 * … … 17 17 * Plugin URI: https://github.com/dcurasi/dc-cookie-notice-bar 18 18 * Description: Cookie Notice Bar allows you to add a simple bar to inform users that your site uses cookies according to EU law. 19 * Version: 1. 2.019 * Version: 1.3.0 20 20 * Author: Dario Curasì 21 21 * Author URI: https://github.com/dcurasi -
cookie-notice-bar/trunk/includes/class-dc-cookie-notice-bar-activator.php
r1569671 r1603385 28 28 * Long Description. 29 29 * 30 * @since 1. 2.030 * @since 1.3.0 31 31 */ 32 32 public static function activate() { … … 45 45 add_option('dc_cnb_button_padding', '5px 10px'); 46 46 add_option('dc_cnb_button_border_radius', '8px'); 47 add_option('dc_cnb_read_more_color', '#e24545'); 48 add_option('dc_cnb_read_more_hover_color', '#e24545'); 47 49 add_option('dc_cnb_debug_mode', 0); 48 50 } -
cookie-notice-bar/trunk/includes/class-dc-cookie-notice-bar-deactivator.php
r1520895 r1603385 28 28 * Long Description. 29 29 * 30 * @since 1. 1.030 * @since 1.3.0 31 31 */ 32 32 public static function deactivate() { … … 45 45 delete_option('dc_cnb_button_padding'); 46 46 delete_option('dc_cnb_button_border_radius'); 47 delete_option('dc_cnb_read_more_color'); 48 delete_option('dc_cnb_read_more_hover_color'); 47 49 delete_option('dc_cnb_debug_mode'); 48 50 setcookie("dc_cnb_cookie", null, -1, "/"); -
cookie-notice-bar/trunk/includes/class-dc-cookie-notice-bar.php
r1569671 r1603385 70 70 71 71 $this->plugin_name = 'dc-cookie-notice-bar'; 72 $this->version = '1. 2.0';72 $this->version = '1.3.0'; 73 73 74 74 $this->load_dependencies(); -
cookie-notice-bar/trunk/languages/dc-cookie-notice-bar-it_IT.po
r1569671 r1603385 2 2 msgstr "" 3 3 "Project-Id-Version: Cookie Notice Bar\n" 4 "POT-Creation-Date: 2017-01-06 15:24+0100\n" 5 "PO-Revision-Date: 2017-01-06 15:35+0100\n" 4 "POT-Creation-Date: 2017-01-21 17:49+0100\n" 5 "PO-Revision-Date: 2017-01-21 17:54+0100\n" 6 "Last-Translator: \n" 6 7 "Language-Team: Dario Curasì <[email protected]>\n" 8 "Language: it_IT\n" 7 9 "MIME-Version: 1.0\n" 8 10 "Content-Type: text/plain; charset=UTF-8\n" … … 13 15 "X-Poedit-SourceCharset: UTF-8\n" 14 16 "X-Poedit-KeywordsList: __;_e\n" 15 "Last-Translator: \n"16 "Language: it_IT\n"17 17 "X-Poedit-SearchPath-0: .\n" 18 18 … … 190 190 "8px)." 191 191 192 #: admin/partials/dc-cookie-notice-bar-admin-display.php:176 192 #: admin/partials/dc-cookie-notice-bar-admin-display.php:175 193 msgid "Read More Color" 194 msgstr "Leggi di Più Colore" 195 196 #: admin/partials/dc-cookie-notice-bar-admin-display.php:179 197 msgid "The color of the Read More text." 198 msgstr "Il colore del testo Leggi di Più." 199 200 #: admin/partials/dc-cookie-notice-bar-admin-display.php:184 201 msgid "Read More Hover Color" 202 msgstr "Leggi di Più Colore Hover" 203 204 #: admin/partials/dc-cookie-notice-bar-admin-display.php:188 205 msgid "The color of the Read More text on hover." 206 msgstr "" 207 "Il colore del testo Leggi di più al passaggio del mouse sopra il testo." 208 209 #: admin/partials/dc-cookie-notice-bar-admin-display.php:194 193 210 msgid "Advanced" 194 211 msgstr "Avanzato" 195 212 196 #: admin/partials/dc-cookie-notice-bar-admin-display.php:1 81213 #: admin/partials/dc-cookie-notice-bar-admin-display.php:199 197 214 msgid "Debug Mode" 198 215 msgstr "Modalità Debug" 199 216 200 #: admin/partials/dc-cookie-notice-bar-admin-display.php: 185217 #: admin/partials/dc-cookie-notice-bar-admin-display.php:203 201 218 msgid "Activate Debug Mode" 202 219 msgstr "Attiva Modalità Debug" 203 220 204 #: admin/partials/dc-cookie-notice-bar-admin-display.php: 187221 #: admin/partials/dc-cookie-notice-bar-admin-display.php:205 205 222 msgid "When debug mode is active the Cookie Notice Bar is always displayed." 206 223 msgstr "" … … 214 231 "with it." 215 232 msgstr "" 216 "Utilizziamo i cookie per darvi la migliore esperienza sul nostro sito. Se "217 " sicontinua a utilizzare questo sito assumeremo che siete felici con esso."233 "Utilizziamo i cookie per darvi la migliore esperienza sul nostro sito. Se si " 234 "continua a utilizzare questo sito assumeremo che siete felici con esso." 218 235 219 236 #: includes/class-dc-cookie-notice-bar-activator.php:35 -
cookie-notice-bar/trunk/languages/dc-cookie-notice-bar.pot
r1569671 r1603385 1 #, fuzzy 1 2 msgid "" 2 3 msgstr "" 3 4 "Project-Id-Version: Cookie Notice Bar\n" 4 "POT-Creation-Date: 2017-01- 06 15:24+0100\n"5 "POT-Creation-Date: 2017-01-21 17:49+0100\n" 5 6 "PO-Revision-Date: 2017-01-06 15:24+0100\n" 6 7 "Last-Translator: \n" … … 183 184 msgstr "" 184 185 185 #: admin/partials/dc-cookie-notice-bar-admin-display.php:176 186 #: admin/partials/dc-cookie-notice-bar-admin-display.php:175 187 msgid "Read More Color" 188 msgstr "" 189 190 #: admin/partials/dc-cookie-notice-bar-admin-display.php:179 191 msgid "The color of the Read More text." 192 msgstr "" 193 194 #: admin/partials/dc-cookie-notice-bar-admin-display.php:184 195 msgid "Read More Hover Color" 196 msgstr "" 197 198 #: admin/partials/dc-cookie-notice-bar-admin-display.php:188 199 msgid "The color of the Read More text on hover." 200 msgstr "" 201 202 #: admin/partials/dc-cookie-notice-bar-admin-display.php:194 186 203 msgid "Advanced" 187 204 msgstr "" 188 205 189 #: admin/partials/dc-cookie-notice-bar-admin-display.php:1 81206 #: admin/partials/dc-cookie-notice-bar-admin-display.php:199 190 207 msgid "Debug Mode" 191 208 msgstr "" 192 209 193 #: admin/partials/dc-cookie-notice-bar-admin-display.php: 185210 #: admin/partials/dc-cookie-notice-bar-admin-display.php:203 194 211 msgid "Activate Debug Mode" 195 212 msgstr "" 196 213 197 #: admin/partials/dc-cookie-notice-bar-admin-display.php: 187214 #: admin/partials/dc-cookie-notice-bar-admin-display.php:205 198 215 msgid "When debug mode is active the Cookie Notice Bar is always displayed." 199 216 msgstr "" -
cookie-notice-bar/trunk/public/class-dc-cookie-notice-bar-public.php
r1520895 r1603385 58 58 * Register the stylesheets for the public-facing side of the site. 59 59 * 60 * @since 1. 1.060 * @since 1.3.0 61 61 */ 62 62 public function enqueue_styles() { … … 87 87 padding: '.get_option('dc_cnb_button_padding').'; 88 88 border-radius: '.get_option('dc_cnb_button_border_radius').'; 89 } 90 91 #dc-cnb-read-more { 92 color: '.get_option('dc_cnb_read_more_color').'; 93 } 94 95 #dc-cnb-read-more:hover { 96 color: '.get_option('dc_cnb_read_more_hover_color').'; 89 97 }'; 90 98 /*
Note: See TracChangeset
for help on using the changeset viewer.