Plugin Directory

Changeset 2566900


Ignore:
Timestamp:
07/19/2021 04:59:23 AM (5 years ago)
Author:
flippy101
Message:

Optin Cat 2.5.4

Location:
campaign-monitor-wp/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • campaign-monitor-wp/trunk/assets/targeting.js

    r2337791 r2566900  
    2727                popup_handler( id, waitTime, scrollPercent, exitIntervention )
    2828               
    29             }
     29            } 
    3030        }
    3131    }
     
    3333    if ( typeof(fcaEoiBannerTargetingData) !== 'undefined' ) {
    3434        for ( var id in fcaEoiBannerTargetingData.banners ) {
    35            
     35
    3636            //TEST COOKIES (SUCCESS, FREQUENCY, PAGECOUNT
    3737            var successOK = test_success( id, fcaEoiBannerTargetingData.banners[id] )
    3838            var frequencyOK = test_frequency( id, fcaEoiBannerTargetingData.banners[id].show_every )
    3939            var pageviewsOK = test_pageviews( fcaEoiBannerTargetingData.banners[id] )
    40            
     40
    4141            if ( frequencyOK && pageviewsOK && successOK ) {
    4242                var waitTime = parse_time( fcaEoiBannerTargetingData.banners[id] )
     
    4646                banner_handler( id, waitTime, scrollPercent, exitIntervention )
    4747               
     48            } else {
     49                $('#fca_eoi_form_' + id)[0].remove()
    4850            }
    4951        }
  • campaign-monitor-wp/trunk/assets/targeting.min.js

    r2337791 r2566900  
    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)}()});
     1jQuery(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)}()});
  • campaign-monitor-wp/trunk/campaign-monitor-wp.php

    r2479506 r2566900  
    55    Description: Campaign Monitor Optin Cat Helps You Get More Email Subscribers. Create Beautiful Campaign Monitor Opt-In Forms In Less Than 2 Minutes.
    66    Author: Fatcat Apps
    7     Version: 2.5.3
     7    Version: 2.5.4
    88    Author URI: https://fatcatapps.com/
    99*/
     
    1919define( 'FCA_EOI_PLUGIN_SLUG', 'campaign-monitor-wp' );
    2020define( 'FCA_EOI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    21 define( 'FCA_EOI_VER', '2.5.3' );
     21define( 'FCA_EOI_VER', '2.5.4' );
    2222
    2323if( ! defined ( 'FCA_EOI_DEBUG' ) ) {
  • campaign-monitor-wp/trunk/includes/eoi-post-types.php

    r2337791 r2566900  
    704704        wp_localize_script( 'fca-eoi-rules', 'fcaEoiRuleTableHtml', $ruleTableHtml );
    705705        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'] ) );
    707707    }
    708708
     
    713713        $conditions = empty(  $fca_eoi['publish_lightbox']['conditions'] ) ? array() : $fca_eoi['publish_lightbox']['conditions'];
    714714        $this->prepare_publish_rules_html( $conditions );
     715
    715716                   
    716717        K::wrap(
  • campaign-monitor-wp/trunk/readme.txt

    r2486255 r2566900  
    44Donate link: https://fatcatapps.com/optincat/upgrade/?utm_campaign=descriptioncta&utm_source=httpswordpress.orgpluginscampaign-monitor-wp&utm_medium=referral
    55Requires at least: 3.9.1
    6 Tested up to: 5.7
    7 Stable tag: 2.5.3
     6Tested up to: 5.8
     7Stable tag: 2.5.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    119119
    120120== Changelog ==
     121
     122= Campaign Monitor Forms by Optin Cat 2.5.4 =
     123* Fixed error message in Publication metabox
     124* Fixed some other issues in Optin Cat Premium
     125* Tested up to WordPress 5.8
    121126
    122127= Campaign Monitor Forms by Optin Cat 2.5.3 =
Note: See TracChangeset for help on using the changeset viewer.