PluginProbe
Passster – Password Protect Pages and Content / 4.3.17
Passster – Password Protect Pages and Content v4.3.17
4.3.17 4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 All 49 releases
← All changes | inc/freemius/templates/pricing.php +7 -1 4.2.11 → 4.3.17 View file →
@@ -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 ?>