Plugin Directory

Changeset 2255512


Ignore:
Timestamp:
03/06/2020 10:32:11 AM (6 years ago)
Author:
beardeddev
Message:

Updated to 1.0.1, fixing small bug in saving the choice & description information

Location:
cookiebar-by-beard
Files:
25 added
4 edited

Legend:

Unmodified
Added
Removed
  • cookiebar-by-beard/trunk/cookiebar-by-beard.php

    r2246103 r2255512  
    44 * Plugin URI:  https://wearebeard.com/cookiebar
    55 * Description: Cookiebar by beard is aplugin developed to give your visitord control over the cookies you set.
    6  * Version:     1.0.0
     6 * Version:     1.0.1
    77 * Author:      Martin Greenwood
    88 * Author URI:  http://wearebeard.com
  • cookiebar-by-beard/trunk/includes/plugin-functions.php

    r2246103 r2255512  
    140140        ?>
    141141
    142         $(".cbbb-cookie-check").toggleClass('closed');
    143         $(".cbbb-cookie-icon").toggleClass('show');
     142        $(".cbbb-cookie-check").addClass('closed');
     143        $(".cbbb-cookie-icon").addClass('show');
    144144
    145145    });
    146146    $('.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');
    149149    });
    150150    $('.cbbb-cookie-save button').on("click", function() {
     
    196196    $loop = new WP_Query($cbbb_cpt_args);
    197197    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']) ):
    198201    echo "<!-- added by Cookiebar by Beard -->";
    199202    echo htmlspecialchars_decode( get_post_meta(get_the_id(), '_cbbb_script_meta_key', true) );
    200203    echo "<!-- // end cookiebar script -->";
     204    endif;
    201205    endwhile;
    202206    endif;
     
    220224    $loop = new WP_Query($cbbb_cpt_args);
    221225    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']) ):
    222229    echo "<!-- added by Cookiebar by Beard -->";
    223230    echo htmlspecialchars_decode( get_post_meta(get_the_id(), '_cbbb_script_meta_key', true) );
    224231    echo "<!-- // end cookiebar script -->";
     232    endif;
    225233    endwhile;
    226234    endif;
  • cookiebar-by-beard/trunk/includes/settings.php

    r2246103 r2255512  
    2323                    <h3>General Settings</h3>
    2424                    <p>General settings for the cookie bar.</p>
     25                    <p>
     26                        Make sure you add the shortcode '[cbbbcookies]' to your cookie page or add '&lt;?php echo do_shortcode['[cbbbcookies]'] ;?&gt;' to your cookie page template.
     27                    </p>
    2528                    <?php
    2629                    do_settings_sections( 'cbbb-admin' );
  • cookiebar-by-beard/trunk/readme.txt

    r2246103 r2255512  
    44Requires at least: 4.3
    55Tested up to: 5.3.2
    6 Stable tag: 1.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 This plugin adds a cookie bar to your website that actually complies with ICO standards.
     10This plugin adds a cookie bar to your website that gives your visitors better control.
    1111
    1212== Description ==
     
    4747== Changelog ==
    4848
     49= 1.0.1
     50Bug fix for cookie scripts showing regardless of choice.
     51Added shortcode reference to settings page
     52
     53
    4954= 1.0.0
    5055initial development
Note: See TracChangeset for help on using the changeset viewer.