Plugin Directory

Changeset 2392952


Ignore:
Timestamp:
10/03/2020 06:18:10 PM (6 years ago)
Author:
stremovsky
Message:

Automatically change position of the banner and update version.

Location:
better-gdpr/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • better-gdpr/trunk/better-gdpr.php

    r2387302 r2392952  
    1212 * Plugin URI:  https://paranoidguy.com
    1313 * Description: GDPR & Cookie Consent plugin built by ParanoidGuy.com team.
    14  * Version:     0.2.0
     14 * Version:     0.2.1
    1515 * Author:      Yuli Stremovsky
    1616 * Author URI:  https://paranoidguy.com/about-us
     
    397397          if (banner) {
    398398        banner.style.visibility = "visible";
    399             var obj = document.getElementById('PopupMessage');
     399            var obj = document.getElementById('bettergdpr_popup_message');
    400400        if (obj) {
    401401              obj.innerHTML = popupConf.PopupMessage;
     
    501501bettergdpr_load_settings();
    502502</script>
     503<style>
     504#bettergdpr_cookie_banner {
     505background-color:rgba(71,81,84,.95);box-shadow: 0 -8px 20px 0 rgba(0,0,0,.2);width:100%;margin:0 auto;padding:5px;font-size: 1em;color: #6d6d6d;bottom:0px;position:fixed;left: 0px;opacity:0.9;filter:alpha(opacity=80);height:auto;max-height:500px;z-index:9999999999;overflow:hidden;
     506}
     507#bettergdpr_popup_message {float:left;color:#fff;width: calc(100% - 200px);padding:10px;}
     508#bettergdpr_popup_buttons {float:left;width:200px;margin:0 auto;text-align:center;vertical-align: middle;padding-top:15px;}
     509#bettergdpr_cookie_banner #bettergdpr_agree_btn {text-decoration:none;font-weight: 400;text-transform: uppercase;cursor: pointer;background-color: #2eb8ff;min-width: 150px;min-height: 33px;margin: 0;padding: .5rem 1rem;font-size: 1.3rem;color: #fff;border: none;border-radius: 3px;outline: none;}
     510#bettergdpr_cookie_banner #bettergdpr_req_btn {text-decoration:none;font-weight: 400;text-transform: uppercase;background-color:transparent;cursor: pointer;min-width: 150px;min-height: 30px;margin: 5px 0 0 0;padding: .5rem 1rem;font-size: 1.1rem;color: #fff;border: 1px solid #fff;border-radius: 3px;outline: none;}
     511@media only screen and (min-width:769px){
     512#bettergdpr_cookie_banner {max-width:70%; border-top-right-radius: 5px;}
     513}
     514@media only screen and (max-width:500px){
     515#bettergdpr_popup_message {width: 100%; padding:5px;}
     516#bettergdpr_popup_buttons {padding:0px 0px 10px 0px; width: 100%;}
     517#bettergdpr_popup_buttons #bettergdpr_agree_btn {  margin-right: 10px; }
     518}
     519</style>
    503520<div id="bettergdpr_settings_popup" style="background: rgba(0, 0, 0, 0.7);position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index:999999999; display:none;">
    504521  <div style="position:absolute; top:20px; right:20px; background: transparent;cursor: pointer;color:#fff;font-family: 'Helvetica', 'Arial', sans-serif;font-size: 2em;font-weight: 400;text-align: center;width: 40px;height: 40px;border-radius: 5px;margin: 0 auto;" onclick="bettergdpr_close_cookie_settings_popup()">X</div>
     
    517534  </div>
    518535</div>
    519 <div id="bettergdpr_cookie_banner" style="visibility:hidden;background-color:rgba(71,81,84,.95);box-shadow: 0 -8px 20px 0 rgba(0,0,0,.2);width:100%;margin:0 auto;padding:5px;font-size: 1em;color: #6d6d6d;bottom:0px;position:fixed;left: 0px;opacity:0.9;filter:alpha(opacity=80);height:auto;max-height:500px;z-index:9999999999;overflow:hidden;">
    520 <div id='PopupMessage' style="float:left;color:#fff;width: calc(100% - 200px);padding:10px;"></div>
    521 <div style="float:left;width:200px;margin:0 auto;text-align:center;vertical-align: middle;padding-top:15px;">
    522 <button style="text-decoration:none;font-weight: 400;text-transform: uppercase;cursor: pointer;background-color: #2eb8ff;min-width: 160px;min-height: 33px;margin: 0;padding: .5rem 1rem;font-size: 1.3rem;color: #fff;border: none;border-radius: 3px;outline: none;" onclick='bettergdpr_allow_all_cookies();'>I agree&nbsp;<span style="font-weight: 700;style:inline-block;height:25px;">✓</span></button>
    523 <button style="text-decoration:none;font-weight: 400;text-transform: uppercase;background-color:transparent;cursor: pointer;min-width: 160px;min-height: 30px;margin: 5px 0 0 0;padding: .5rem 1rem;font-size: 1.1rem;color: #fff;border: 1px solid #fff;border-radius: 3px;outline: none;" onclick='bettergdpr_allow_required_cookies();'>Required only</button>
     536<div id="bettergdpr_cookie_banner" style="visibility:hidden;">
     537 <div id='bettergdpr_popup_message'></div>
     538 <div id='bettergdpr_popup_buttons'>
     539  <button id='bettergdpr_agree_btn' onclick='bettergdpr_allow_all_cookies();'>I agree&nbsp;<span style="font-weight: 700;style:inline-block;height:25px;">✓</span></button>
     540  <button id='bettergdpr_req_btn' onclick='bettergdpr_allow_required_cookies();'>Required only</button>
    524541<div style="display:block;padding:0;margin:0;"><u style="color:#fff;font-weight: 400;background-color:transparent;cursor: pointer;font-size:1rem;" onclick="bettergdpr_show_cookie_settings_popup();">Customize settings</u></div>
    525542</div>
  • better-gdpr/trunk/readme.txt

    r2379001 r2392952  
    7979* Initial product release.
    8080
     81= 0.2.1 =
     82* Automatically change banner position.
     83
     84
    8185== Upgrade Notice ==
    8286
Note: See TracChangeset for help on using the changeset viewer.