Changeset 2566902
- Timestamp:
- 07/19/2021 05:01:07 AM (5 years ago)
- Location:
- getresponse/trunk
- Files:
-
- 5 edited
-
assets/targeting.js (modified) (3 diffs)
-
assets/targeting.min.js (modified) (1 diff)
-
getresponse-wp.php (modified) (2 diffs)
-
includes/eoi-post-types.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
getresponse/trunk/assets/targeting.js
r2337788 r2566902 27 27 popup_handler( id, waitTime, scrollPercent, exitIntervention ) 28 28 29 } 29 } 30 30 } 31 31 } … … 33 33 if ( typeof(fcaEoiBannerTargetingData) !== 'undefined' ) { 34 34 for ( var id in fcaEoiBannerTargetingData.banners ) { 35 35 36 36 //TEST COOKIES (SUCCESS, FREQUENCY, PAGECOUNT 37 37 var successOK = test_success( id, fcaEoiBannerTargetingData.banners[id] ) 38 38 var frequencyOK = test_frequency( id, fcaEoiBannerTargetingData.banners[id].show_every ) 39 39 var pageviewsOK = test_pageviews( fcaEoiBannerTargetingData.banners[id] ) 40 40 41 41 if ( frequencyOK && pageviewsOK && successOK ) { 42 42 var waitTime = parse_time( fcaEoiBannerTargetingData.banners[id] ) … … 46 46 banner_handler( id, waitTime, scrollPercent, exitIntervention ) 47 47 48 } else { 49 $('#fca_eoi_form_' + id)[0].remove() 48 50 } 49 51 } -
getresponse/trunk/assets/targeting.min.js
r2337788 r2566902 1 jQuery(document).ready(function(e){function n(e,n){return!n.hasOwnProperty("success_duration")||!p("fca_eoi_success_"+e)}function a(e){var n=e.conditions.filter(function(e){return"pageviews"===e.parameter});if(0===n.length)return!0;return parseInt(p("fca_eoi_pagecount"))>=n[0].value}function i(e,n){var a=p("fca_eoi_frequency_"+e);if(!a)return!0;var i=Math.floor(Date.now()/1e3)-a;switch(n){case"always":return!0;case"session":return!1;case"day":return i>=86400;case"once":return!1;case"month":return i>=2592e3;default:return!0}}function t(n){if(-1===T.indexOf(n)&&n>0){T.push(n),r(n,fcaEoiTargetingData);var a=e("#fca_eoi_lightbox_"+n);e.featherlight(a,{variant:"fca_eoi_featherlight",closeOnClick:!1,afterOpen:function(){var i=this.$instance;e(".fca_eoi_form_input_element").attr("tabindex",0),e(".fca_eoi_form_button_element").attr("tabindex",0),e(".fca_eoi_gdpr_consent").attr("tabindex",0),i.find(".fca_eoi_layout_popup_close").hide();var t="session"===fcaEoiTargetingData.popups[n].show_every?0:365;u("fca_eoi_frequency_"+n,Math.floor(Date.now()/1e3),t),a.find(".fca_eoi_layout_popup").hasClass("animated")?setTimeout(function(){i.find("span.featherlight-close-icon.featherlight-close").show(),i.find(".fca_eoi_form_input_element:visible").first().focus()},1e3):(i.find("span.featherlight-close-icon.featherlight-close").show(),i.find(".fca_eoi_form_input_element:visible").first().focus())}})}}function o(n,a){if(-1===w.indexOf(n)&&"undefined"!=typeof fcaEoiBannerTargetingData&&void 0!==fcaEoiBannerTargetingData.banners[n]){w.push(n),r(n,fcaEoiBannerTargetingData),a&&e("#fca_eoi_banner_"+n).find("form").removeClass("animated"),e("#fca_eoi_banner_"+n).show().load(function(n){var a=e("#fca_eoi_banner_"+n).find("form").data("fca_eoi_push_page");"down"===a&&e("body").css("margin-top",e("#fca_eoi_banner_"+n).find("form").outerHeight());"up"===a&&e("body").css("margin-bottom",e("#fca_eoi_banner_"+n).find("form").outerHeight())}(n)),e("#fca_eoi_banner_"+n).find(".fca_eoi_form_input_element:visible").first().focus();var i="session"===fcaEoiBannerTargetingData.banners[n].show_every?0:365;!function(e){var n=JSON.parse(p("fca_eoi_active_optins"));Array.isArray(n)||(n=[]);-1===n.indexOf(e)&&(n.push(e),u("fca_eoi_active_optins",JSON.stringify(n)))}(n),u("fca_eoi_frequency_"+n,Math.floor(Date.now()/1e3),i)}}function r(n,a){e.ajax({url:a.ajax_url,type:"POST",data:{nonce:a.nonce,form_id:n,action:"fca_eoi_activity"}})}function f(){var n=e(window).scrollTop(),a=e(document).height()-e(window).height();return 0==a?100:n/a*100}function c(e){return 1===e.conditions.filter(function(e){return"exit_intervention"===e.parameter}).length}function s(e){var n=e.conditions.filter(function(e){return"scrolled_percent"===e.parameter});return 0===n.length?0:n[0].value}function _(e){var n=e.conditions.filter(function(e){return"time_on_page"===e.parameter});return 0===n.length?0:n[0].value}function u(e,n,a){if(0===a)document.cookie=e+"="+n+";path=/;";else{var i=new Date;i.setTime(i.getTime()+24*a*60*60*1e3),document.cookie=e+"="+n+";path=/;expires="+i.toUTCString()}}function p(e){var n=("; "+document.cookie).split("; "+e+"=");return 2===n.length&&n.pop().split(";").shift()}if("undefined"!=typeof fcaEoiTargetingData)for(var l in fcaEoiTargetingData.popups){var g=n(l,fcaEoiTargetingData.popups[l]),d=i(l,fcaEoiTargetingData.popups[l].show_every),h=a(fcaEoiTargetingData.popups[l]);if(d&&h&&g){!function(n,a,i,o){window.setTimeout(function(){e(window).scroll(function(){i<=f()&&(o?e(document).on("mouseleave",function(e){e.clientY<0&&t(n)}):t(n))}).scroll()},1e3*a)}(l,v=_(fcaEoiTargetingData.popups[l]),m=s(fcaEoiTargetingData.popups[l]),b=c(fcaEoiTargetingData.popups[l]))}}if("undefined"!=typeof fcaEoiBannerTargetingData)for(var l in fcaEoiBannerTargetingData.banners){var g=n(l,fcaEoiBannerTargetingData.banners[l]),d=i(l,fcaEoiBannerTargetingData.banners[l].show_every),h=a(fcaEoiBannerTargetingData.banners[l]);if(d&&h&&g){var v=_(fcaEoiBannerTargetingData.banners[l]),m=s(fcaEoiBannerTargetingData.banners[l]),b=c(fcaEoiBannerTargetingData.banners[l]);!function(n,a,i,t){window.setTimeout(function(){e(window).scroll(function(){i<=f()&&(t?e(document).on("mouseleave",function(e){e.clientY<0&&o(n,!1)}):o(n,!1))}).scroll()},1e3*a)}(l,v,m,b)} }var T=[],w=[];e(".fca_eoi_banner_close_btn, .fca_eoi_scrollbox_close_btn").click(function(){var n=e(this).siblings("#fca_eoi_form_id").val(),a=JSON.parse(p("fca_eoi_active_optins"));Array.isArray(a)||(a=[]);var i=a.indexOf(n);-1!==i&&a.splice(i,1),u("fca_eoi_active_optins",JSON.stringify(a))}),function(){var e=JSON.parse(p("fca_eoi_active_optins"));if(e.length>0)for(var n in e)o(e[n],!0)}()});1 jQuery(document).ready(function(e){function n(e,n){return!n.hasOwnProperty("success_duration")||!p("fca_eoi_success_"+e)}function a(e){var n=e.conditions.filter(function(e){return"pageviews"===e.parameter});if(0===n.length)return!0;return parseInt(p("fca_eoi_pagecount"))>=n[0].value}function i(e,n){var a=p("fca_eoi_frequency_"+e);if(!a)return!0;var i=Math.floor(Date.now()/1e3)-a;switch(n){case"always":return!0;case"session":return!1;case"day":return i>=86400;case"once":return!1;case"month":return i>=2592e3;default:return!0}}function t(n){if(-1===T.indexOf(n)&&n>0){T.push(n),r(n,fcaEoiTargetingData);var a=e("#fca_eoi_lightbox_"+n);e.featherlight(a,{variant:"fca_eoi_featherlight",closeOnClick:!1,afterOpen:function(){var i=this.$instance;e(".fca_eoi_form_input_element").attr("tabindex",0),e(".fca_eoi_form_button_element").attr("tabindex",0),e(".fca_eoi_gdpr_consent").attr("tabindex",0),i.find(".fca_eoi_layout_popup_close").hide();var t="session"===fcaEoiTargetingData.popups[n].show_every?0:365;u("fca_eoi_frequency_"+n,Math.floor(Date.now()/1e3),t),a.find(".fca_eoi_layout_popup").hasClass("animated")?setTimeout(function(){i.find("span.featherlight-close-icon.featherlight-close").show(),i.find(".fca_eoi_form_input_element:visible").first().focus()},1e3):(i.find("span.featherlight-close-icon.featherlight-close").show(),i.find(".fca_eoi_form_input_element:visible").first().focus())}})}}function o(n,a){if(-1===w.indexOf(n)&&"undefined"!=typeof fcaEoiBannerTargetingData&&void 0!==fcaEoiBannerTargetingData.banners[n]){w.push(n),r(n,fcaEoiBannerTargetingData),a&&e("#fca_eoi_banner_"+n).find("form").removeClass("animated"),e("#fca_eoi_banner_"+n).show().load(function(n){var a=e("#fca_eoi_banner_"+n).find("form").data("fca_eoi_push_page");"down"===a&&e("body").css("margin-top",e("#fca_eoi_banner_"+n).find("form").outerHeight());"up"===a&&e("body").css("margin-bottom",e("#fca_eoi_banner_"+n).find("form").outerHeight())}(n)),e("#fca_eoi_banner_"+n).find(".fca_eoi_form_input_element:visible").first().focus();var i="session"===fcaEoiBannerTargetingData.banners[n].show_every?0:365;!function(e){var n=JSON.parse(p("fca_eoi_active_optins"));Array.isArray(n)||(n=[]);-1===n.indexOf(e)&&(n.push(e),u("fca_eoi_active_optins",JSON.stringify(n)))}(n),u("fca_eoi_frequency_"+n,Math.floor(Date.now()/1e3),i)}}function r(n,a){e.ajax({url:a.ajax_url,type:"POST",data:{nonce:a.nonce,form_id:n,action:"fca_eoi_activity"}})}function f(){var n=e(window).scrollTop(),a=e(document).height()-e(window).height();return 0==a?100:n/a*100}function c(e){return 1===e.conditions.filter(function(e){return"exit_intervention"===e.parameter}).length}function s(e){var n=e.conditions.filter(function(e){return"scrolled_percent"===e.parameter});return 0===n.length?0:n[0].value}function _(e){var n=e.conditions.filter(function(e){return"time_on_page"===e.parameter});return 0===n.length?0:n[0].value}function u(e,n,a){if(0===a)document.cookie=e+"="+n+";path=/;";else{var i=new Date;i.setTime(i.getTime()+24*a*60*60*1e3),document.cookie=e+"="+n+";path=/;expires="+i.toUTCString()}}function p(e){var n=("; "+document.cookie).split("; "+e+"=");return 2===n.length&&n.pop().split(";").shift()}if("undefined"!=typeof fcaEoiTargetingData)for(var l in fcaEoiTargetingData.popups){var g=n(l,fcaEoiTargetingData.popups[l]),d=i(l,fcaEoiTargetingData.popups[l].show_every),h=a(fcaEoiTargetingData.popups[l]);if(d&&h&&g){!function(n,a,i,o){window.setTimeout(function(){e(window).scroll(function(){i<=f()&&(o?e(document).on("mouseleave",function(e){e.clientY<0&&t(n)}):t(n))}).scroll()},1e3*a)}(l,v=_(fcaEoiTargetingData.popups[l]),m=s(fcaEoiTargetingData.popups[l]),b=c(fcaEoiTargetingData.popups[l]))}}if("undefined"!=typeof fcaEoiBannerTargetingData)for(var l in fcaEoiBannerTargetingData.banners){var g=n(l,fcaEoiBannerTargetingData.banners[l]),d=i(l,fcaEoiBannerTargetingData.banners[l].show_every),h=a(fcaEoiBannerTargetingData.banners[l]);if(d&&h&&g){var v=_(fcaEoiBannerTargetingData.banners[l]),m=s(fcaEoiBannerTargetingData.banners[l]),b=c(fcaEoiBannerTargetingData.banners[l]);!function(n,a,i,t){window.setTimeout(function(){e(window).scroll(function(){i<=f()&&(t?e(document).on("mouseleave",function(e){e.clientY<0&&o(n,!1)}):o(n,!1))}).scroll()},1e3*a)}(l,v,m,b)}else e("#fca_eoi_form_"+l)[0].remove()}var T=[],w=[];e(".fca_eoi_banner_close_btn, .fca_eoi_scrollbox_close_btn").click(function(){var n=e(this).siblings("#fca_eoi_form_id").val(),a=JSON.parse(p("fca_eoi_active_optins"));Array.isArray(a)||(a=[]);var i=a.indexOf(n);-1!==i&&a.splice(i,1),u("fca_eoi_active_optins",JSON.stringify(a))}),function(){var e=JSON.parse(p("fca_eoi_active_optins"));if(e.length>0)for(var n in e)o(e[n],!0)}()}); -
getresponse/trunk/getresponse-wp.php
r2479508 r2566902 5 5 Description: The GetResponse Optin Cat WordPress Lets You Convert More Blog Visits Into Email Subscribers. Set It Up In 2 Minutes. 6 6 Author: Fatcat Apps 7 Version: 2.5. 37 Version: 2.5.4 8 8 Author URI: https://fatcatapps.com/ 9 9 */ … … 19 19 define( 'FCA_EOI_PLUGIN_SLUG', 'getresponse' ); 20 20 define( 'FCA_EOI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 21 define( 'FCA_EOI_VER', '2.5. 3' );21 define( 'FCA_EOI_VER', '2.5.4' ); 22 22 23 23 if( ! defined ( 'FCA_EOI_DEBUG' ) ) { -
getresponse/trunk/includes/eoi-post-types.php
r2337788 r2566902 704 704 wp_localize_script( 'fca-eoi-rules', 'fcaEoiRuleTableHtml', $ruleTableHtml ); 705 705 wp_localize_script( 'fca-eoi-rules', 'fcaEoiRules', $rules ); 706 wp_localize_script( 'fca-eoi-rules', 'fcaEoiDistro', $this->settings['distribution']);706 wp_localize_script( 'fca-eoi-rules', 'fcaEoiDistro', array( $this->settings['distribution'] ) ); 707 707 } 708 708 … … 713 713 $conditions = empty( $fca_eoi['publish_lightbox']['conditions'] ) ? array() : $fca_eoi['publish_lightbox']['conditions']; 714 714 $this->prepare_publish_rules_html( $conditions ); 715 715 716 716 717 K::wrap( -
getresponse/trunk/readme.txt
r2486256 r2566902 4 4 Donate link: https://fatcatapps.com/optincat/upgrade/?utm_campaign=descriptioncta&utm_source=httpswordpress.orgpluginsgetresponse&utm_medium=referral 5 5 Requires at least: 3.9.1 6 Tested up to: 5. 77 Stable tag: 2.5. 36 Tested up to: 5.8 7 Stable tag: 2.5.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 112 112 113 113 == Changelog == 114 115 = GetResponse Forms by Optin Cat 2.5.4 = 116 * Fixed error message in Publication metabox 117 * Fixed some other issues in Optin Cat Premium 118 * Tested up to WordPress 5.8 114 119 115 120 = GetResponse Forms by Optin Cat 2.5.3 =
Note: See TracChangeset
for help on using the changeset viewer.