| @@ -10,9 +10,8 @@ | ||
| 10 | 10 | exit; |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | wp_enqueue_script( 'jquery' ); |
| 14 | - wp_enqueue_script( 'json2' ); | |
| 15 | 14 | fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.js' ); |
| 16 | 15 | fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' ); |
| 17 | 16 | fs_enqueue_local_style( 'fs_common', '/admin/common.css' ); |
| 18 | 17 | |
| @@ -68,8 +67,13 @@ | ||
| 68 | 67 | $pricing_js_url = fs_asset_url( $fs->get_pricing_js_path() ); |
| 69 | 68 | |
| 70 | 69 | wp_enqueue_script( 'freemius-pricing', $pricing_js_url ); |
| 71 | 70 | |
| 71 | + $pricing_css_path = $fs->apply_filters( 'pricing/css_path', null ); | |
| 72 | + if ( is_string( $pricing_css_path ) ) { | |
| 73 | + wp_enqueue_style( 'freemius-pricing', fs_asset_url( $pricing_css_path ) ); | |
| 74 | + } | |
| 75 | + | |
| 72 | 76 | $has_tabs = $fs->_add_tabs_before_content(); |
| 73 | 77 | |
| 74 | 78 | if ( $has_tabs ) { |
| 75 | 79 | $query_params['tabs'] = 'true'; |
| @@ -94,8 +98,10 @@ | ||
| 94 | 98 | 'selector' => '#fs_pricing_wrapper', |
| 95 | 99 | 'unique_affix' => $fs->get_unique_affix(), |
| 96 | 100 | 'show_annual_in_monthly' => $fs->apply_filters( 'pricing/show_annual_in_monthly', true ), |
| 97 | 101 | 'license' => $fs->has_active_valid_license() ? $fs->_get_license() : null, |
| 102 | + 'plugin_icon' => $fs->get_local_icon_url(), | |
| 103 | + 'disable_single_package' => $fs->apply_filters( 'pricing/disable_single_package', false ), | |
| 98 | 104 | ), $query_params ); |
| 99 | 105 | |
| 100 | 106 | wp_add_inline_script( 'freemius-pricing', 'Freemius.pricing.new( ' . json_encode( $pricing_config ) . ' )' ); |
| 101 | 107 | ?> |