PluginProbe ʕ •ᴥ•ʔ
Royal Addons for Elementor – Addons and Templates Kit for Elementor / 1.7.1064
Royal Addons for Elementor – Addons and Templates Kit for Elementor v1.7.1064
1.7.1064 1.7.1063 1.7.1062 1.7.1061 1.7.1060 1.7.1059 1.7.1058 trunk 1.0.0 1.1.0 1.2 1.3 1.3.1 1.3.2 1.3.21 1.3.22 1.3.23 1.3.24 1.3.25 1.3.26 1.3.27 1.3.28 1.3.29 1.3.30 1.3.31 1.3.32 1.3.33 1.3.34 1.3.35 1.3.36 1.3.37 1.3.38 1.3.39 1.3.40 1.3.41 1.3.42 1.3.43 1.3.44 1.3.45 1.3.46 1.3.47 1.3.48 1.3.49 1.3.50 1.3.51 1.3.52 1.3.53 1.3.54 1.3.55 1.3.56 1.3.57 1.3.58 1.3.59 1.3.60 1.3.61 1.3.62 1.3.63 1.3.64 1.3.65 1.3.66 1.3.67 1.3.68 1.3.69 1.3.70 1.3.71 1.3.72 1.3.73 1.3.74 1.3.75 1.3.76 1.3.77 1.3.78 1.3.79 1.3.80 1.3.81 1.3.82 1.3.83 1.3.84 1.3.85 1.3.86 1.3.87 1.3.88 1.3.89 1.3.90 1.3.91 1.3.92 1.3.93 1.3.94 1.3.95 1.3.96 1.3.97 1.3.971 1.3.972 1.3.973 1.3.974 1.3.975 1.3.976 1.3.977 1.3.978 1.3.979 1.3.980 1.3.981 1.3.982 1.3.983 1.3.984 1.3.985 1.3.986 1.3.987 1.7.1 1.7.1001 1.7.1002 1.7.1003 1.7.1004 1.7.1005 1.7.1006 1.7.1007 1.7.1008 1.7.1009 1.7.1010 1.7.1011 1.7.1012 1.7.1013 1.7.1014 1.7.1015 1.7.1016 1.7.1017 1.7.1018 1.7.1019 1.7.1020 1.7.1021 1.7.1022 1.7.1023 1.7.1024 1.7.1025 1.7.1026 1.7.1027 1.7.1028 1.7.1029 1.7.1030 1.7.1031 1.7.1032 1.7.1033 1.7.1034 1.7.1035 1.7.1036 1.7.1037 1.7.1038 1.7.1039 1.7.1040 1.7.1041 1.7.1042 1.7.1043 1.7.1044 1.7.1045 1.7.1046 1.7.1047 1.7.1048 1.7.1049 1.7.1050 1.7.1051 1.7.1052 1.7.1053 1.7.1054 1.7.1055 1.7.1056 1.7.1057
royal-elementor-addons / freemius / templates / pricing.php
royal-elementor-addons / freemius / templates Last commit date
account 5 days ago checkout 5 days ago connect 5 days ago debug 5 days ago forms 5 days ago js 5 days ago partials 5 days ago plugin-info 5 days ago account.php 5 days ago add-ons.php 5 days ago add-trial-to-pricing.php 5 days ago admin-notice.php 5 days ago ajax-loader.php 5 days ago api-connectivity-message-js.php 5 days ago auto-installation.php 5 days ago checkout.php 5 days ago clone-resolution-js.php 5 days ago connect.php 5 days ago contact.php 5 days ago debug.php 5 days ago email.php 5 days ago gdpr-optin-js.php 5 days ago index.php 5 days ago plugin-icon.php 5 days ago pricing.php 5 days ago secure-https-header.php 5 days ago sticky-admin-notice-js.php 5 days ago tabs-capture-js.php 5 days ago tabs.php 5 days ago
pricing.php
114 lines
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 * @since 1.0.3
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 wp_enqueue_script( 'jquery' );
14 wp_enqueue_script( 'json2' );
15 fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.js' );
16 fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
17 fs_enqueue_local_style( 'fs_common', '/admin/common.css' );
18
19 /**
20 * @var array $VARS
21 * @var Freemius $fs
22 */
23 $fs = freemius( $VARS['id'] );
24 $slug = $fs->get_slug();
25 $timestamp = time();
26
27 $context_params = array(
28 'plugin_id' => $fs->get_id(),
29 'plugin_public_key' => $fs->get_public_key(),
30 'plugin_version' => $fs->get_plugin_version(),
31 );
32
33 $bundle_id = $fs->get_bundle_id();
34 if ( ! is_null( $bundle_id ) ) {
35 $context_params['bundle_id'] = $bundle_id;
36 }
37
38 // Get site context secure params.
39 if ( $fs->is_registered() ) {
40 $context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
41 $fs->get_site(),
42 $timestamp,
43 'upgrade'
44 ) );
45 } else {
46 $context_params['home_url'] = home_url();
47 }
48
49 if ( $fs->is_payments_sandbox() ) // Append plugin secure token for sandbox mode authentication.)
50 {
51 $context_params['sandbox'] = FS_Security::instance()->get_secure_token(
52 $fs->get_plugin(),
53 $timestamp,
54 'checkout'
55 );
56 }
57
58 $query_params = array_merge( $context_params, $_GET, array(
59 'next' => $fs->_get_sync_license_url( false, false ),
60 'plugin_version' => $fs->get_plugin_version(),
61 // Billing cycle.
62 'billing_cycle' => fs_request_get( 'billing_cycle', WP_FS__PERIOD_ANNUALLY ),
63 'is_network_admin' => fs_is_network_admin() ? 'true' : 'false',
64 'currency' => $fs->apply_filters( 'default_currency', 'usd' ),
65 'discounts_model' => $fs->apply_filters( 'pricing/discounts_model', 'absolute' ),
66 ) );
67
68 $pricing_js_url = fs_asset_url( $fs->get_pricing_js_path() );
69
70 wp_enqueue_script( 'freemius-pricing', $pricing_js_url );
71
72 $pricing_css_path = $fs->apply_filters( 'pricing/css_path', null );
73 if ( is_string( $pricing_css_path ) ) {
74 wp_enqueue_style( 'freemius-pricing', fs_asset_url( $pricing_css_path ) );
75 }
76
77 $has_tabs = $fs->_add_tabs_before_content();
78
79 if ( $has_tabs ) {
80 $query_params['tabs'] = 'true';
81 }
82 ?>
83 <div id="fs_pricing" class="wrap fs-section fs-full-size-wrapper">
84 <div id="fs_pricing_wrapper" data-public-url="<?php echo trailingslashit( dirname( $pricing_js_url ) ) ?>"></div>
85 <?php
86 $pricing_config = array_merge( array(
87 'contact_url' => $fs->contact_url(),
88 'is_production' => ( defined( 'WP_FS__IS_PRODUCTION_MODE' ) ? WP_FS__IS_PRODUCTION_MODE : null ),
89 'menu_slug' => $fs->get_menu_slug(),
90 'mode' => 'dashboard',
91 'fs_wp_endpoint_url' => WP_FS__ADDRESS,
92 'request_handler_url' => admin_url(
93 'admin-ajax.php?' . http_build_query( array(
94 'module_id' => $fs->get_id(),
95 'action' => $fs->get_ajax_action( 'pricing_ajax_action' ),
96 'security' => $fs->get_ajax_security( 'pricing_ajax_action' )
97 ) )
98 ),
99 'selector' => '#fs_pricing_wrapper',
100 'unique_affix' => $fs->get_unique_affix(),
101 'show_annual_in_monthly' => $fs->apply_filters( 'pricing/show_annual_in_monthly', true ),
102 'license' => $fs->has_active_valid_license() ? $fs->_get_license() : null,
103 'plugin_icon' => $fs->get_local_icon_url(),
104 'disable_single_package' => $fs->apply_filters( 'pricing/disable_single_package', false ),
105 ), $query_params );
106
107 wp_add_inline_script( 'freemius-pricing', 'Freemius.pricing.new( ' . json_encode( $pricing_config ) . ' )' );
108 ?>
109 </div>
110 <?php
111 if ( $has_tabs ) {
112 $fs->_add_tabs_after_content();
113 }
114