Changeset 2965845
- Timestamp:
- 09/12/2023 11:22:16 AM (2 years ago)
- Location:
- gp-notification-bar
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.4 (copied) (copied from gp-notification-bar/trunk)
-
tags/1.0.4/admin/templates/display-settings.php (modified) (2 diffs)
-
tags/1.0.4/assets/front/js/script.min.js (modified) (1 diff)
-
tags/1.0.4/index.php (modified) (2 diffs)
-
tags/1.0.4/readme.txt (modified) (2 diffs)
-
trunk/admin/templates/display-settings.php (modified) (2 diffs)
-
trunk/assets/front/js/script.min.js (modified) (1 diff)
-
trunk/index.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gp-notification-bar/tags/1.0.4/admin/templates/display-settings.php
r2965697 r2965845 26 26 <div class="gp-checkbox"> 27 27 <input type="hidden" name="" value="no"> 28 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_desktop" value="yes" <?php checked($displaySettings['in_desktop'], "yes") ?>>28 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_desktop" value="yes" checked> 29 29 <label for="gsb_display_in_desktop"><?php esc_html_e("Show in Desktop", "gp-notification-bar") ?></label> 30 30 </div> … … 33 33 <div class="gp-checkbox"> 34 34 <input type="hidden" name="" value="no"> 35 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_mobile" value="yes" <?php checked($displaySettings['in_mobile'], "yes") ?>>35 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_mobile" value="yes" checked> 36 36 <label for="gsb_display_in_mobile"><?php esc_html_e("Show in Mobile", "gp-notification-bar") ?></label> 37 37 </div> -
gp-notification-bar/tags/1.0.4/assets/front/js/script.min.js
r2291423 r2965845 1 !function(e){"use strict";var t=!1;function n(){o("ginger-notification-bar","close",parseInt(gnb_settings.keep_closed_for))}function i(){e(".ginger-bar-message").hide()}function o(e,t,n){var i=new Date;i.setTime(i.getTime()+864e5*n),document.cookie=e+"="+t+";path=/;expires="+i.toGMTString()}e(document).ready(function(){var o,a,s;o="ginger-notification-bar",a=document.cookie.match("(^|;) ?"+o+"=([^;]*)(;|$)"),"close"==(a?a[2]:null)&&e(".ginger-bar-message").remove(),(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(t=!0),t&&"yes"==gnb_settings.is_in_mobile||(e(".ginger-bar-message-button, .ginger-bar-close-button").removeClass("active"),t?("yes"==gnb_settings.button_in_mobile?e(".ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-button").remove(),"yes"==gnb_settings.close_button_in_mobile?e(".ginger-bar-close-button").addClass("active"):e(".ginger-bar-close-button").remove()):("yes"==gnb_settings.button_in_desktop?e(".ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-button").remove(),"yes"==gnb_settings.close_button_in_desktop?e(".ginger-bar-close-button").addClass("active"):e(".ginger-bar-close-button").remove())),e(document).on("click",".ginger-bar-close-button",function(e){e.preventDefault(),n(),i()}),e(document).on("click",".ginger-bar-message-button",function(e){e.preventDefault(),"nothing"==gnb_settings.button_action||("open_url"==gnb_settings.button_action?window.location=gnb_settings.button_action_url:"open_url_in_new_tab"==gnb_settings.button_action&&window.open(gnb_settings.button_action_url,"_blank")),"yes"==gnb_settings.button_close_button&&(n(),i())}),e(".ginger-bar-message").addClass("active"),""!=(s=parseInt(gnb_settings.auto_close_after))&&0!=s&&setTimeout(function(){i()},1e3*s)})}(jQuery);1 !function(e){"use strict";var i=!1;function t(e){var i=parseInt(e.keep_closed_for);a("ginger-notification-bar-"+e.widget_id,"close",i)}function n(i){e(".ginger-bar-message-"+i.widget_id).removeClass("active")}function o(){if(e("#wpadminbar").length)if(e(window).width()<=600){var i=e(window).scrollTop();i>0&&e(".ginger-bar-message.position-top").css("cssText","top: 0"),0==i&&e(".ginger-bar-message.position-top").css("cssText","top: 46px")}else e(window).width()<=782?e(".ginger-bar-message.position-top").css("cssText","top: 46px"):e(".ginger-bar-message.position-top").css("cssText","top: 32px")}function a(e,i,t){var n=new Date;n.setTime(n.getTime()+864e5*t),document.cookie=e+"="+i+";path=/;expires="+n.toGMTString()}e(document).ready((function(){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(i=!0),"object"==typeof gnb_settings&&gnb_settings.settings.length&&e(gnb_settings.settings).each((function(o,a){var s,g;s="ginger-notification-bar-"+a.widget_id,g=document.cookie.match("(^|;) ?"+s+"=([^;]*)(;|$)"),"close"==(g?g[2]:null)&&e(".ginger-bar-message-"+a.widget_id).remove(),i&&"yes"==a.is_in_mobile||(e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button,.ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").removeClass("active"),i?("yes"==a.button_in_mobile?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").remove(),"yes"==a.close_button_in_mobile?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").remove()):("yes"==a.button_in_desktop?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").remove(),"yes"==a.close_button_in_desktop?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").remove())),e(document).on("click",".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button",(function(e){e.preventDefault(),t(a),n(a)})),e(document).on("click",".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button",(function(e){e.preventDefault(),"nothing"==a.button_action||("open_url"==a.button_action?window.location=a.button_action_url:"open_url_in_new_tab"==a.button_action&&window.open(a.button_action_url,"_blank")),"yes"==a.button_close_button&&(t(a),n(a))}));var r=a.font_family;""!=r&&"Arial"!=r&&"Tahoma"!=r&&"Verdana"!=r&&"Helvetica"!=r&&"Times New Roman"!=r&&"Trebuchet MS"!=r&&"Georgia"!=r&&e("head").append("<link id='#gnb-buttons-"+a.widget_id+"' href='https://fonts.googleapis.com/css?family="+a.font_family+"' rel='stylesheet' type='text/css' >"),e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-inner-box").css("font-family",a.font_family),function(i){e(".ginger-bar-message-"+i.widget_id).addClass("active")}(a),function(e){var i=parseInt(e.auto_close_after);""!=i&&0!=i&&setTimeout((function(){n(e)}),1e3*i)}(a)}))})),e(window).on("scroll",(function(){o()})),e(window).on("resize",(function(){o()})),e(window).on("load",(function(){o()}))}(jQuery); -
gp-notification-bar/tags/1.0.4/index.php
r2965702 r2965845 8 8 Author: Ginger Plugins 9 9 Author URI: https://www.gingerplugins.com/notification-bar/ 10 Version: 1.0. 310 Version: 1.0.4 11 11 License: GPL2 12 12 */ … … 20 20 21 21 if(!defined('GP_NB_PLUGIN_VERSION')) { 22 define("GP_NB_PLUGIN_VERSION", "1.0. 3");22 define("GP_NB_PLUGIN_VERSION", "1.0.4"); 23 23 } 24 24 -
gp-notification-bar/tags/1.0.4/readme.txt
r2965702 r2965845 4 4 Requires at least: 3.1 5 5 Tested up to: 6.3 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires PHP: 5.4 8 8 Plugin URI: https://www.gingerplugins.com/downloads/notification-bar/ … … 60 60 == Changelog == 61 61 62 = 1.0.4 = 63 Bug fixes 64 62 65 = 1.0.3 = 63 66 * New UI -
gp-notification-bar/trunk/admin/templates/display-settings.php
r2965697 r2965845 26 26 <div class="gp-checkbox"> 27 27 <input type="hidden" name="" value="no"> 28 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_desktop" value="yes" <?php checked($displaySettings['in_desktop'], "yes") ?>>28 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_desktop" value="yes" checked> 29 29 <label for="gsb_display_in_desktop"><?php esc_html_e("Show in Desktop", "gp-notification-bar") ?></label> 30 30 </div> … … 33 33 <div class="gp-checkbox"> 34 34 <input type="hidden" name="" value="no"> 35 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_mobile" value="yes" <?php checked($displaySettings['in_mobile'], "yes") ?>>35 <input class="sr-only" <?php echo esc_attr($disabled) ?> name="" type="checkbox" id="gsb_display_in_mobile" value="yes" checked> 36 36 <label for="gsb_display_in_mobile"><?php esc_html_e("Show in Mobile", "gp-notification-bar") ?></label> 37 37 </div> -
gp-notification-bar/trunk/assets/front/js/script.min.js
r2291423 r2965845 1 !function(e){"use strict";var t=!1;function n(){o("ginger-notification-bar","close",parseInt(gnb_settings.keep_closed_for))}function i(){e(".ginger-bar-message").hide()}function o(e,t,n){var i=new Date;i.setTime(i.getTime()+864e5*n),document.cookie=e+"="+t+";path=/;expires="+i.toGMTString()}e(document).ready(function(){var o,a,s;o="ginger-notification-bar",a=document.cookie.match("(^|;) ?"+o+"=([^;]*)(;|$)"),"close"==(a?a[2]:null)&&e(".ginger-bar-message").remove(),(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(t=!0),t&&"yes"==gnb_settings.is_in_mobile||(e(".ginger-bar-message-button, .ginger-bar-close-button").removeClass("active"),t?("yes"==gnb_settings.button_in_mobile?e(".ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-button").remove(),"yes"==gnb_settings.close_button_in_mobile?e(".ginger-bar-close-button").addClass("active"):e(".ginger-bar-close-button").remove()):("yes"==gnb_settings.button_in_desktop?e(".ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-button").remove(),"yes"==gnb_settings.close_button_in_desktop?e(".ginger-bar-close-button").addClass("active"):e(".ginger-bar-close-button").remove())),e(document).on("click",".ginger-bar-close-button",function(e){e.preventDefault(),n(),i()}),e(document).on("click",".ginger-bar-message-button",function(e){e.preventDefault(),"nothing"==gnb_settings.button_action||("open_url"==gnb_settings.button_action?window.location=gnb_settings.button_action_url:"open_url_in_new_tab"==gnb_settings.button_action&&window.open(gnb_settings.button_action_url,"_blank")),"yes"==gnb_settings.button_close_button&&(n(),i())}),e(".ginger-bar-message").addClass("active"),""!=(s=parseInt(gnb_settings.auto_close_after))&&0!=s&&setTimeout(function(){i()},1e3*s)})}(jQuery);1 !function(e){"use strict";var i=!1;function t(e){var i=parseInt(e.keep_closed_for);a("ginger-notification-bar-"+e.widget_id,"close",i)}function n(i){e(".ginger-bar-message-"+i.widget_id).removeClass("active")}function o(){if(e("#wpadminbar").length)if(e(window).width()<=600){var i=e(window).scrollTop();i>0&&e(".ginger-bar-message.position-top").css("cssText","top: 0"),0==i&&e(".ginger-bar-message.position-top").css("cssText","top: 46px")}else e(window).width()<=782?e(".ginger-bar-message.position-top").css("cssText","top: 46px"):e(".ginger-bar-message.position-top").css("cssText","top: 32px")}function a(e,i,t){var n=new Date;n.setTime(n.getTime()+864e5*t),document.cookie=e+"="+i+";path=/;expires="+n.toGMTString()}e(document).ready((function(){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(i=!0),"object"==typeof gnb_settings&&gnb_settings.settings.length&&e(gnb_settings.settings).each((function(o,a){var s,g;s="ginger-notification-bar-"+a.widget_id,g=document.cookie.match("(^|;) ?"+s+"=([^;]*)(;|$)"),"close"==(g?g[2]:null)&&e(".ginger-bar-message-"+a.widget_id).remove(),i&&"yes"==a.is_in_mobile||(e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button,.ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").removeClass("active"),i?("yes"==a.button_in_mobile?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").remove(),"yes"==a.close_button_in_mobile?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").remove()):("yes"==a.button_in_desktop?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button").remove(),"yes"==a.close_button_in_desktop?e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").addClass("active"):e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button").remove())),e(document).on("click",".ginger-bar-message-"+a.widget_id+" .ginger-bar-close-button",(function(e){e.preventDefault(),t(a),n(a)})),e(document).on("click",".ginger-bar-message-"+a.widget_id+" .ginger-bar-message-button",(function(e){e.preventDefault(),"nothing"==a.button_action||("open_url"==a.button_action?window.location=a.button_action_url:"open_url_in_new_tab"==a.button_action&&window.open(a.button_action_url,"_blank")),"yes"==a.button_close_button&&(t(a),n(a))}));var r=a.font_family;""!=r&&"Arial"!=r&&"Tahoma"!=r&&"Verdana"!=r&&"Helvetica"!=r&&"Times New Roman"!=r&&"Trebuchet MS"!=r&&"Georgia"!=r&&e("head").append("<link id='#gnb-buttons-"+a.widget_id+"' href='https://fonts.googleapis.com/css?family="+a.font_family+"' rel='stylesheet' type='text/css' >"),e(".ginger-bar-message-"+a.widget_id+" .ginger-bar-inner-box").css("font-family",a.font_family),function(i){e(".ginger-bar-message-"+i.widget_id).addClass("active")}(a),function(e){var i=parseInt(e.auto_close_after);""!=i&&0!=i&&setTimeout((function(){n(e)}),1e3*i)}(a)}))})),e(window).on("scroll",(function(){o()})),e(window).on("resize",(function(){o()})),e(window).on("load",(function(){o()}))}(jQuery); -
gp-notification-bar/trunk/index.php
r2965702 r2965845 8 8 Author: Ginger Plugins 9 9 Author URI: https://www.gingerplugins.com/notification-bar/ 10 Version: 1.0. 310 Version: 1.0.4 11 11 License: GPL2 12 12 */ … … 20 20 21 21 if(!defined('GP_NB_PLUGIN_VERSION')) { 22 define("GP_NB_PLUGIN_VERSION", "1.0. 3");22 define("GP_NB_PLUGIN_VERSION", "1.0.4"); 23 23 } 24 24 -
gp-notification-bar/trunk/readme.txt
r2965702 r2965845 4 4 Requires at least: 3.1 5 5 Tested up to: 6.3 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires PHP: 5.4 8 8 Plugin URI: https://www.gingerplugins.com/downloads/notification-bar/ … … 60 60 == Changelog == 61 61 62 = 1.0.4 = 63 Bug fixes 64 62 65 = 1.0.3 = 63 66 * New UI
Note: See TracChangeset
for help on using the changeset viewer.