Changeset 3108944
- Timestamp:
- 06/27/2024 07:40:24 PM (22 months ago)
- Location:
- infusionsoft-official-opt-in-forms/trunk
- Files:
-
- 4 edited
-
changelog.txt (modified) (1 diff)
-
dashboard/dashboard.php (modified) (1 diff)
-
infusionsoft.php (modified) (14 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
infusionsoft-official-opt-in-forms/trunk/changelog.txt
r2916952 r3108944 1 version 1.1.1 2 - Updated to support Wordpress MultiSite capabilities. 3 1 4 version 1.0.11 2 5 - Fixes compatibility issue with PHP 8.0+. Updates to compatibility versions. -
infusionsoft-official-opt-in-forms/trunk/dashboard/dashboard.php
r2638364 r3108944 285 285 */ 286 286 function dashboard_save_settings( $options = array() ) { 287 if ( (defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML ) || !current_user_can('unfiltered_html')) { 288 $error_message='unauthorized.'; 289 die( $error_message ); 290 } 291 287 292 if ( ! wp_verify_nonce( $_POST['save_settings_nonce'], 'save_settings' ) ) { 288 293 die( - 1 ); -
infusionsoft-official-opt-in-forms/trunk/infusionsoft.php
r2916952 r3108944 3 3 * Plugin Name: Keap Official Opt-in Forms 4 4 * Plugin URI: https://www.keap.com 5 * Version: 1.0.1 15 * Version: 1.0.12 6 6 * Description: Keap Official Opt-in Forms 7 7 * Author: Keap … … 49 49 50 50 $this->protocol = is_ssl() ? 'https' : 'http'; 51 52 if ( (defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML ) ) { 53 $restrictedAccess=1; 54 } 55 51 56 52 57 add_action( 'admin_menu', array( $this, 'add_menu_link' ) ); … … 66 71 add_action( 'inf_infusionsoft_after_main_options', array( $this, 'generate_premade_templates' ) ); 67 72 68 add_action( 'inf_infusionsoft_after_save_button', array( $this, 'add_next_button' ) ); 73 69 74 do_action( 'infusionsoft_ext_init' ); 70 75 $plugin_file = plugin_basename( __FILE__ ); 71 76 add_filter( "plugin_action_links_{$plugin_file}", array( $this, 'add_settings_link' ) ); 72 77 78 if (!$restrictedAccess) { 73 79 74 80 $dashboard_args = array( … … 82 88 83 89 parent::__construct( $dashboard_args ); 84 85 // Register save settings function for ajax request 86 add_action( 'wp_ajax_inf_infusionsoft_save_settings', array( $this, 'infusionsoft_save_settings' ) ); 90 } 87 91 88 92 add_action( 'admin_enqueue_scripts', array( $this, 'register_scripts' ) ); … … 90 94 add_action( 'wp_enqueue_scripts', array( $this, 'load_scripts_styles' ) ); 91 95 92 add_action( 'wp_ajax_infusionsoft_reset_options_page', array( $this, 'infusionsoft_reset_options_page' ) ); 93 94 add_action( 'wp_ajax_infusionsoft_remove_optin', array( $this, 'remove_optin' ) ); 95 96 add_action( 'wp_ajax_infusionsoft_duplicate_optin', array( $this, 'duplicate_optin' ) ); 97 98 add_action( 'wp_ajax_infusionsoft_add_variant', array( $this, 'add_variant' ) ); 96 97 98 if (!$restrictedAccess) { 99 add_action( 'wp_ajax_infusionsoft_reset_options_page', array( $this, 'infusionsoft_reset_options_page' ) ); 100 101 // Register save settings function for ajax request 102 add_action( 'wp_ajax_inf_infusionsoft_save_settings', array( $this, 'infusionsoft_save_settings' ) ); 103 add_action( 'inf_infusionsoft_after_save_button', array( $this, 'add_next_button' ) ); 104 add_action( 'wp_ajax_infusionsoft_remove_optin', array( $this, 'remove_optin' ) ); 105 add_action( 'wp_ajax_infusionsoft_duplicate_optin', array( $this, 'duplicate_optin' ) ); 106 add_action( 'wp_ajax_infusionsoft_add_variant', array( $this, 'add_variant' ) ); 107 add_action( 'wp_ajax_infusionsoft_toggle_optin_status', array( $this, 'toggle_optin_status' ) ); 108 add_action( 'wp_ajax_infusionsoft_pick_winner_optin', array( $this, 'pick_winner_optin' ) ); 109 add_action( 'wp_ajax_infusionsoft_display_preview', array( $this, 'display_preview' ) ); 110 add_action( 'wp_ajax_infusionsoft_ab_test_actions', array( $this, 'ab_test_actions' ) ); 111 112 add_action( 'wp_ajax_infusionsoft_get_premade_values', array( $this, 'get_premade_values' ) ); 113 add_action( 'wp_ajax_infusionsoft_generate_template_filter', array( $this, 'generate_template_filter' ) ); 114 add_action( 'wp_ajax_infusionsoft_generate_premade_grid', array( $this, 'generate_premade_grid' ) ); 115 116 } 99 117 100 118 add_action( 'wp_ajax_infusionsoft_home_tab_tables', array( $this, 'home_tab_tables' ) ); … … 102 120 add_action( 'wp_ajax_infusionsoft_refresh_accounts_header', array( $this, 'refresh_accounts_header' ) ); 103 121 104 add_action( 'wp_ajax_infusionsoft_toggle_optin_status', array( $this, 'toggle_optin_status' ) );122 105 123 106 124 add_action( 'wp_ajax_infusionsoft_authorize_account', array( $this, 'authorize_account' ) ); … … 118 136 add_action( 'wp_ajax_infusionsoft_save_account_tab', array( $this, 'save_account_tab' ) ); 119 137 120 add_action( 'wp_ajax_infusionsoft_ab_test_actions', array( $this, 'ab_test_actions' ) );138 121 139 122 140 add_action( 'wp_ajax_infusionsoft_get_stats_graph_ajax', array( $this, 'get_stats_graph_ajax' ) ); … … 126 144 add_action( 'wp_ajax_infusionsoft_reset_stats', array( $this, 'reset_stats' ) ); 127 145 128 add_action( 'wp_ajax_infusionsoft_pick_winner_optin', array( $this, 'pick_winner_optin' ) );146 129 147 130 148 add_action( 'wp_ajax_infusionsoft_clear_stats', array( $this, 'clear_stats' ) ); … … 132 150 133 151 134 add_action( 'wp_ajax_infusionsoft_get_premade_values', array( $this, 'get_premade_values' ) ); 135 add_action( 'wp_ajax_infusionsoft_generate_template_filter', array( $this, 'generate_template_filter' ) ); 136 add_action( 'wp_ajax_infusionsoft_generate_premade_grid', array( $this, 'generate_premade_grid' ) ); 137 138 add_action( 'wp_ajax_infusionsoft_display_preview', array( $this, 'display_preview' ) ); 152 139 153 140 154 add_action( 'wp_ajax_infusionsoft_handle_stats_adding', array( $this, 'handle_stats_adding' ) ); … … 490 504 $options_array = INF_Infusionsoft::get_infusionsoft_options(); 491 505 506 $data = get_userdata( get_current_user_id() ); 507 $current_user_caps=array(); 508 if ( is_object( $data) ) { 509 $current_user_caps = $data->allcaps; 510 } 511 492 512 switch ( $option['type'] ) { 493 513 case 'home' : 514 if ( (defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML ) || !$current_user_caps['unfiltered_html']) { 515 printf( ' 516 <div class="inf_dashboard_row inf_dashboard_new_optin"> 517 <h1>%1$s</h1><br clear="both"> 518 NOTE: This WordPress user account does not have permission to create or update opt-in forms. 519 <input type="hidden" name="action" value="new_optin" /> 520 </div>', 521 esc_html__( 'Active Opt-In Forms', 'infusionsoft' ) ); 522 printf( ' 523 <div class="inf_dashboard_row inf_dashboard_optin_select"> 524 <h3>%1$s</h3> 525 <span class="inf_dashboard_icon inf_dashboard_close_button"></span> 526 <ul> 527 <li class="inf_dashboard_optin_type inf_dashboard_optin_add inf_dashboard_optin_type_popup" data-type="pop_up"> 528 <h6>%2$s</h6> 529 <div class="optin_select_grey"> 530 <div class="optin_select_light_grey"> 531 </div> 532 </div> 533 </li> 534 <li class="inf_dashboard_optin_type inf_dashboard_optin_add inf_dashboard_optin_type_flyin" data-type="flyin"> 535 <h6>%3$s</h6> 536 <div class="optin_select_grey"></div> 537 <div class="optin_select_light_grey"></div> 538 </li> 539 <li class="inf_dashboard_optin_type inf_dashboard_optin_add inf_dashboard_optin_type_below" data-type="below_post"> 540 <h6>%4$s</h6> 541 <div class="optin_select_grey"></div> 542 <div class="optin_select_light_grey"></div> 543 </li> 544 <li class="inf_dashboard_optin_type inf_dashboard_optin_add inf_dashboard_optin_type_inline" data-type="inline"> 545 <h6>%5$s</h6> 546 <div class="optin_select_grey"></div> 547 <div class="optin_select_light_grey"></div> 548 <div class="optin_select_grey"></div> 549 </li> 550 551 </ul> 552 <ul> 553 <li class="inf_dashboard_optin_type inf_dashboard_optin_add inf_dashboard_optin_type_locked" data-type="locked"> 554 <h6>%6$s</h6> 555 <div class="optin_select_grey"></div> 556 <div class="optin_select_light_grey"></div> 557 <div class="optin_select_grey"></div> 558 </li> 559 <li class="inf_dashboard_optin_type inf_dashboard_optin_add inf_dashboard_optin_type_widget" data-type="widget"> 560 <h6>%7$s</h6> 561 <div class="optin_select_grey"></div> 562 <div class="optin_select_light_grey"></div> 563 <div class="optin_select_grey_small"></div> 564 <div class="optin_select_grey_small last"></div> 565 </li> 566 <li class="inf_dashboard_optin_type inf_dashboard_optin_add inf_dashboard_optin_type_infusionbar" data-type="infusion"> 567 <h6>%8$s</h6> 568 <div class="optin_select_light_grey"></div> 569 <div class="optin_select_grey"></div> 570 </li> 571 </ul> 572 </div>', esc_html__( 'Choose an opt-in form type', 'infusionsoft' ), 573 esc_html__( 'pop up', 'infusionsoft' ), esc_html__( 'fly in', 'infusionsoft' ), 574 esc_html__( 'below post', 'infusionsoft' ), esc_html__( 'inline', 'infusionsoft' ), 575 esc_html__( 'locked content', 'infusionsoft' ), esc_html__( 'widget', 'infusionsoft' ), 576 esc_html__( 'bar', 'infusionsoft' ) ); 577 } else { 494 578 printf( ' 495 579 <div class="inf_dashboard_row inf_dashboard_new_optin"> … … 554 638 esc_html__( 'locked content', 'infusionsoft' ), esc_html__( 'widget', 'infusionsoft' ), 555 639 esc_html__( 'bar', 'infusionsoft' ) ); 556 557 $this->display_home_tab_tables(); 558 break; 559 640 } 641 $this->display_home_tab_tables(); 642 break; 560 643 case 'account' : 561 644 printf( ' … … 1807 1890 $noAccount = ""; //( 'empty' == $value['email_provider'] ) ? ' inf_infusionsoft_no_account' : ''; 1808 1891 1892 $data = get_userdata( get_current_user_id() ); 1893 $current_user_caps=array(); 1894 if ( is_object( $data) ) { 1895 $current_user_caps = $data->allcaps; 1896 } 1897 1898 if ( (defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML ) || !$current_user_caps['unfiltered_html']) { 1899 1900 $output .= sprintf( '<li class="inf_dashboard_optins_item inf_dashboard_parent_item" data-optin_id="%1$s"> 1901 <div class="inf_dashboard_table_name inf_dashboard_table_column inf_dashboard_icon inf_dashboard_type_%6$s">%2$s</div> 1902 <div class="inf_dashboard_table_impressions inf_dashboard_table_column">%3$s</div> 1903 <div class="inf_dashboard_table_conversions inf_dashboard_table_column">%4$s</div> 1904 <div class="inf_dashboard_table_rate inf_dashboard_table_column">%5$s</div> 1905 <div class="inf_dashboard_table_actions inf_dashboard_table_column"> 1906 </div> 1907 <div style="clear: both;"></div> 1908 %7$s 1909 </li>', esc_attr( $optin_id ), esc_html( $value['optin_name'] ), esc_html( $impressions ), 1910 esc_html( $conversions ), 1911 esc_html( $this->conversion_rate( $optin_id, $conversions, $impressions ) . '%' ) // #5 1912 ,esc_attr( $value['optin_type'] ),$child_row 1913 ); 1914 $optins_count ++; 1915 1916 1917 } else { 1918 1919 1809 1920 $output .= sprintf( '<li class="inf_dashboard_optins_item inf_dashboard_parent_item" data-optin_id="%1$s"> 1810 1921 <div class="inf_dashboard_table_name inf_dashboard_table_column inf_dashboard_icon inf_dashboard_type_%13$s">%2$s</div> … … 1841 1952 ); 1842 1953 $optins_count ++; 1954 } 1843 1955 } 1844 1956 } … … 3415 3527 $output = ''; 3416 3528 $output = sprintf( '<div class="inf_infusionsoft_popup inf_infusionsoft_animated inf_infusionsoft_preview_popup inf_infusionsoft_optin"> 3417 <div class="inf_infusionsoft_form_container inf_infusionsoft_animation_fadein inf_infusionsoft_popup_container%1$s%2$s%3$s%4$s%5$s%6$s"> 3529 <div class="inf_infusionsoft_form_container inf_infusionsoft_animation_fadein inf_infusionsoft_popup_container%1$s%2$s%3$s%4$s%5$s%6$s">AAAAA 3418 3530 %7$s 3419 3531 </div> -
infusionsoft-official-opt-in-forms/trunk/readme.txt
r2916952 r3108944 3 3 Tags: keap, keap api, keap wordpress, wp popup, wordpress popup plugin, wordpress subscription plugin, responsive opt-in subscription plugin, free optinmonster alternative, list builder, sumome alternative, how to increase email list, email form, scroll box, newsletter, inbound marketing, mailing list, landing page, light box, email list building, subscribers, subscription, infusionsoft 4 4 Requires at least: 6.0 5 Tested up to: 6. 2.25 Tested up to: 6.5.5 6 6 Requires PHP: 8.0 7 Stable tag: 1. 0.117 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 82 82 == Changelog == 83 83 84 = 1.1.1 = 85 * Updated to support Wordpress MultiSite capabilities. 86 84 87 = 1.0.11 = 85 88 * Fixes compatibility issue with PHP 8.0+. Updates to compatibility versions. … … 132 135 == Upgrade Notice == 133 136 137 = 1.1.1 = 138 Updated to support Wordpress MultiSite capabilities. 139 134 140 = 1.0.11 = 135 141 Fixes compatibility issue with PHP 8.0+. Updates to compatibility versions.
Note: See TracChangeset
for help on using the changeset viewer.