Plugin Directory

Changeset 1603385


Ignore:
Timestamp:
02/25/2017 10:14:17 AM (9 years ago)
Author:
dcurasi
Message:

versione 1.3.0

Location:
cookie-notice-bar/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • cookie-notice-bar/trunk/README.txt

    r1569671 r1603385  
    55Tags: cookie, cookie notice, cookie bar, cookie law, cookie notice bar, eu cookie, privacy, cookie policy, notice, bar, consent, notification, privacy directive, notify
    66Requires at least: 3.0.1
    7 Tested up to: 4.7
    8 Stable tag: 4.6.1
     7Tested up to: 4.7.2
     8Stable tag: 1.3.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    1515== Description ==
    1616
    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).
     17Cookie 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).
    1818
    1919
     
    2727* Set the text and background color of the accepted button
    2828* Set the padding and the border radius of the accepted button
     29* Set the text color of the Read More link
    2930* Debug Mode for displayed always the cookie notice bar
    3031* Polylang compatible
     
    3839
    3940
     41= If you like the plugin, please give it a rating. =
     42If you have a feature request, let me know, they're always welcome!
     43
     44
    4045== Installation ==
    4146
    42471. Unzip the downloaded zip file.
    43 2. Upload `dc-cookie-notice-bar` folder to the `/wp-content/plugins/` directory
     482. Upload `cookie-notice-bar` folder to the `/wp-content/plugins/` directory
    44493. Activate the plugin through the \'Plugins\' menu in WordPress
    45504. Go to Cookie Notice Bar for change the default options
     
    6065
    6166== 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
    6271
    6372= 1.2.0 - 06/01/17 =
  • cookie-notice-bar/trunk/admin/class-dc-cookie-notice-bar-admin.php

    r1569671 r1603385  
    122122     * Creates our settings sections with fields etc.
    123123     *
    124      * @since    1.1.0
     124     * @since    1.3.0
    125125     */
    126126    public function settings_api_init(){
     
    139139        register_setting('dc_cnb_options_group', 'dc_cnb_button_padding');
    140140        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');
    141143        register_setting('dc_cnb_options_group', 'dc_cnb_debug_mode');
    142144    }
     
    145147     * shortcode
    146148     *
    147      * @since    1.2.0
     149     * @since    1.3.0
    148150     */
    149151    public function dc_read_more_link() {
    150152        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>';
    152154        }
    153155        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>';
    155157        }
    156158    }
  • cookie-notice-bar/trunk/admin/js/dc-cookie-notice-bar-admin.js

    r1503580 r1603385  
    3434        $('#dc_cnb_button_background').wpColorPicker();
    3535        $('#dc_cnb_button_color').wpColorPicker();
     36        $('#dc_cnb_read_more_color').wpColorPicker();
     37        $('#dc_cnb_read_more_hover_color').wpColorPicker();
    3638    });
    3739})( jQuery );
  • cookie-notice-bar/trunk/admin/partials/dc-cookie-notice-bar-admin-display.php

    r1569671 r1603385  
    77 *
    88 * @link       https://github.com/dcurasi
    9  * @since      1.2.0
     9 * @since      1.3.0
    1010 *
    1111 * @package    Dc_Cookie_Notice_Bar
     
    171171                    </td>
    172172                </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>
    173191            </tbody>
    174192       </table>
  • cookie-notice-bar/trunk/dc-cookie-notice-bar.php

    r1569671 r1603385  
    1010 *
    1111 * @link              https://github.com/dcurasi
    12  * @since             1.2.0
     12 * @since             1.3.0
    1313 * @package           Dc_Cookie_Notice_Bar
    1414 *
     
    1717 * Plugin URI:        https://github.com/dcurasi/dc-cookie-notice-bar
    1818 * 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.0
     19 * Version:           1.3.0
    2020 * Author:            Dario Curasì
    2121 * Author URI:        https://github.com/dcurasi
  • cookie-notice-bar/trunk/includes/class-dc-cookie-notice-bar-activator.php

    r1569671 r1603385  
    2828     * Long Description.
    2929     *
    30      * @since    1.2.0
     30     * @since    1.3.0
    3131     */
    3232    public static function activate() {
     
    4545        add_option('dc_cnb_button_padding', '5px 10px');
    4646        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');
    4749        add_option('dc_cnb_debug_mode', 0);
    4850    }
  • cookie-notice-bar/trunk/includes/class-dc-cookie-notice-bar-deactivator.php

    r1520895 r1603385  
    2828     * Long Description.
    2929     *
    30      * @since    1.1.0
     30     * @since    1.3.0
    3131     */
    3232    public static function deactivate() {
     
    4545        delete_option('dc_cnb_button_padding');
    4646        delete_option('dc_cnb_button_border_radius');
     47        delete_option('dc_cnb_read_more_color');
     48        delete_option('dc_cnb_read_more_hover_color');
    4749        delete_option('dc_cnb_debug_mode');
    4850        setcookie("dc_cnb_cookie", null, -1, "/");
  • cookie-notice-bar/trunk/includes/class-dc-cookie-notice-bar.php

    r1569671 r1603385  
    7070
    7171        $this->plugin_name = 'dc-cookie-notice-bar';
    72         $this->version = '1.2.0';
     72        $this->version = '1.3.0';
    7373
    7474        $this->load_dependencies();
  • cookie-notice-bar/trunk/languages/dc-cookie-notice-bar-it_IT.po

    r1569671 r1603385  
    22msgstr ""
    33"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"
    67"Language-Team: Dario Curasì <[email protected]>\n"
     8"Language: it_IT\n"
    79"MIME-Version: 1.0\n"
    810"Content-Type: text/plain; charset=UTF-8\n"
     
    1315"X-Poedit-SourceCharset: UTF-8\n"
    1416"X-Poedit-KeywordsList: __;_e\n"
    15 "Last-Translator: \n"
    16 "Language: it_IT\n"
    1717"X-Poedit-SearchPath-0: .\n"
    1818
     
    190190"8px)."
    191191
    192 #: admin/partials/dc-cookie-notice-bar-admin-display.php:176
     192#: admin/partials/dc-cookie-notice-bar-admin-display.php:175
     193msgid "Read More Color"
     194msgstr "Leggi di Più Colore"
     195
     196#: admin/partials/dc-cookie-notice-bar-admin-display.php:179
     197msgid "The color of the Read More text."
     198msgstr "Il colore del testo Leggi di Più."
     199
     200#: admin/partials/dc-cookie-notice-bar-admin-display.php:184
     201msgid "Read More Hover Color"
     202msgstr "Leggi di Più Colore Hover"
     203
     204#: admin/partials/dc-cookie-notice-bar-admin-display.php:188
     205msgid "The color of the Read More text on hover."
     206msgstr ""
     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
    193210msgid "Advanced"
    194211msgstr "Avanzato"
    195212
    196 #: admin/partials/dc-cookie-notice-bar-admin-display.php:181
     213#: admin/partials/dc-cookie-notice-bar-admin-display.php:199
    197214msgid "Debug Mode"
    198215msgstr "Modalità Debug"
    199216
    200 #: admin/partials/dc-cookie-notice-bar-admin-display.php:185
     217#: admin/partials/dc-cookie-notice-bar-admin-display.php:203
    201218msgid "Activate Debug Mode"
    202219msgstr "Attiva Modalità Debug"
    203220
    204 #: admin/partials/dc-cookie-notice-bar-admin-display.php:187
     221#: admin/partials/dc-cookie-notice-bar-admin-display.php:205
    205222msgid "When debug mode is active the Cookie Notice Bar is always displayed."
    206223msgstr ""
     
    214231"with it."
    215232msgstr ""
    216 "Utilizziamo i cookie per darvi la migliore esperienza sul nostro sito. Se "
    217 "si continua 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."
    218235
    219236#: includes/class-dc-cookie-notice-bar-activator.php:35
  • cookie-notice-bar/trunk/languages/dc-cookie-notice-bar.pot

    r1569671 r1603385  
     1#, fuzzy
    12msgid ""
    23msgstr ""
    34"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"
    56"PO-Revision-Date: 2017-01-06 15:24+0100\n"
    67"Last-Translator: \n"
     
    183184msgstr ""
    184185
    185 #: admin/partials/dc-cookie-notice-bar-admin-display.php:176
     186#: admin/partials/dc-cookie-notice-bar-admin-display.php:175
     187msgid "Read More Color"
     188msgstr ""
     189
     190#: admin/partials/dc-cookie-notice-bar-admin-display.php:179
     191msgid "The color of the Read More text."
     192msgstr ""
     193
     194#: admin/partials/dc-cookie-notice-bar-admin-display.php:184
     195msgid "Read More Hover Color"
     196msgstr ""
     197
     198#: admin/partials/dc-cookie-notice-bar-admin-display.php:188
     199msgid "The color of the Read More text on hover."
     200msgstr ""
     201
     202#: admin/partials/dc-cookie-notice-bar-admin-display.php:194
    186203msgid "Advanced"
    187204msgstr ""
    188205
    189 #: admin/partials/dc-cookie-notice-bar-admin-display.php:181
     206#: admin/partials/dc-cookie-notice-bar-admin-display.php:199
    190207msgid "Debug Mode"
    191208msgstr ""
    192209
    193 #: admin/partials/dc-cookie-notice-bar-admin-display.php:185
     210#: admin/partials/dc-cookie-notice-bar-admin-display.php:203
    194211msgid "Activate Debug Mode"
    195212msgstr ""
    196213
    197 #: admin/partials/dc-cookie-notice-bar-admin-display.php:187
     214#: admin/partials/dc-cookie-notice-bar-admin-display.php:205
    198215msgid "When debug mode is active the Cookie Notice Bar is always displayed."
    199216msgstr ""
  • cookie-notice-bar/trunk/public/class-dc-cookie-notice-bar-public.php

    r1520895 r1603385  
    5858     * Register the stylesheets for the public-facing side of the site.
    5959     *
    60      * @since    1.1.0
     60     * @since    1.3.0
    6161     */
    6262    public function enqueue_styles() {
     
    8787                            padding: '.get_option('dc_cnb_button_padding').';
    8888                            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').';
    8997                        }';
    9098        /*
Note: See TracChangeset for help on using the changeset viewer.