| @@ -87,10 +87,9 @@ | ||
| 87 | 87 | 'plugin_version' => $fs->get_plugin_version(), |
| 88 | 88 | // Billing cycle. |
| 89 | 89 | 'billing_cycle' => fs_request_get( 'billing_cycle', WP_FS__PERIOD_ANNUALLY ), |
| 90 | 90 | 'is_network_admin' => fs_is_network_admin() ? 'true' : 'false', |
| 91 | - 'currency' => $fs->apply_filters( 'default_currency', 'usd' ), | |
| 92 | - 'discounts_model' => $fs->apply_filters( 'pricing/discounts_model', 'absolute' ), | |
| 91 | + 'currency' => $fs->apply_filters( 'default_currency', 'usd' ), | |
| 93 | 92 | ) ); |
| 94 | 93 | |
| 95 | 94 | $use_external_pricing = $fs->should_use_external_pricing(); |
| 96 | 95 | |
| @@ -122,14 +121,15 @@ | ||
| 122 | 121 | <?php if ( ! $use_external_pricing ) : ?> |
| 123 | 122 | <div id="fs_pricing_wrapper" data-public-url="<?php echo trailingslashit( dirname( $pricing_js_url ) ) ?>"></div> |
| 124 | 123 | <?php |
| 125 | 124 | $pricing_config = array_merge( array( |
| 126 | - 'contact_url' => $fs->contact_url(), | |
| 127 | - 'is_production' => ( defined( 'WP_FS__IS_PRODUCTION_MODE' ) ? WP_FS__IS_PRODUCTION_MODE : null ), | |
| 128 | - 'menu_slug' => $fs->get_menu_slug(), | |
| 129 | - 'mode' => 'dashboard', | |
| 130 | - 'fs_wp_endpoint_url' => WP_FS__ADDRESS, | |
| 131 | - 'request_handler_url' => admin_url( | |
| 125 | + 'contact_url' => $fs->contact_url(), | |
| 126 | + 'is_network_admin' => fs_is_network_admin(), | |
| 127 | + 'is_production' => ( defined( 'WP_FS__IS_PRODUCTION_MODE' ) ? WP_FS__IS_PRODUCTION_MODE : null ), | |
| 128 | + 'menu_slug' => $fs->get_menu_slug(), | |
| 129 | + 'mode' => 'dashboard', | |
| 130 | + 'fs_wp_endpoint_url' => WP_FS__ADDRESS, | |
| 131 | + 'request_handler_url' => admin_url( | |
| 132 | 132 | 'admin-ajax.php?' . http_build_query( array( |
| 133 | 133 | 'module_id' => $fs->get_id(), |
| 134 | 134 | 'action' => $fs->get_ajax_action( 'pricing_ajax_action' ), |
| 135 | 135 | 'security' => $fs->get_ajax_security( 'pricing_ajax_action' ) |
| @@ -134,11 +134,10 @@ | ||
| 134 | 134 | 'action' => $fs->get_ajax_action( 'pricing_ajax_action' ), |
| 135 | 135 | 'security' => $fs->get_ajax_security( 'pricing_ajax_action' ) |
| 136 | 136 | ) ) |
| 137 | 137 | ), |
| 138 | - 'selector' => '#fs_pricing_wrapper', | |
| 139 | - 'unique_affix' => $fs->get_unique_affix(), | |
| 140 | - 'show_annual_in_monthly' => $fs->apply_filters( 'pricing/show_annual_in_monthly', true ), | |
| 138 | + 'selector' => '#fs_pricing_wrapper', | |
| 139 | + 'unique_affix' => $fs->get_unique_affix(), | |
| 141 | 140 | ), $query_params ); |
| 142 | 141 | |
| 143 | 142 | wp_add_inline_script( 'freemius-pricing', 'Freemius.pricing.new( ' . json_encode( $pricing_config ) . ' )' ); |
| 144 | 143 | ?> |
| @@ -206,5 +205,5 @@ | ||
| 206 | 205 | 'module_type' => $fs->get_module_type(), |
| 207 | 206 | 'module_slug' => $slug, |
| 208 | 207 | 'module_version' => $fs->get_plugin_version(), |
| 209 | 208 | ); |
| 210 | - fs_require_template( 'powered-by.php', $params ); | |
| 209 | + fs_require_template( 'powered-by.php', $params ); | |