account
2 years ago
checkout
11 months ago
connect
3 years ago
debug
11 months ago
forms
11 months ago
js
3 years ago
partials
2 years ago
plugin-info
11 months ago
account.php
1 year ago
add-ons.php
11 months ago
add-trial-to-pricing.php
5 years ago
admin-notice.php
2 years ago
ajax-loader.php
4 years ago
api-connectivity-message-js.php
3 years ago
auto-installation.php
3 years ago
checkout.php
1 year ago
clone-resolution-js.php
2 years ago
connect.php
11 months ago
contact.php
1 year ago
debug.php
11 months ago
email.php
5 years ago
gdpr-optin-js.php
3 years ago
index.php
5 years ago
plugin-icon.php
3 years ago
powered-by.php
2 years ago
pricing.php
1 year ago
secure-https-header.php
5 years ago
sticky-admin-notice-js.php
3 years ago
tabs-capture-js.php
3 years ago
tabs.php
5 years ago
checkout.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package Freemius |
| 4 | * @copyright Copyright (c) 2024, Freemius, Inc. |
| 5 | * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 |
| 6 | * @since 2.9.0 |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * @var array $VARS |
| 11 | * @var Freemius $fs |
| 12 | */ |
| 13 | $fs = freemius( $VARS['id'] ); |
| 14 | |
| 15 | if ( fs_request_get_bool( 'redirect' ) ) { |
| 16 | fs_require_template( 'checkout/redirect.php', $VARS ); |
| 17 | } else if ( fs_request_get_bool( 'process_redirect' ) ) { |
| 18 | fs_require_template( 'checkout/process-redirect.php', $VARS ); |
| 19 | } else { |
| 20 | $fs = freemius( $VARS['id'] ); |
| 21 | |
| 22 | if ( $fs->is_premium() ) { |
| 23 | fs_require_template( 'checkout/frame.php', $VARS ); |
| 24 | } else { |
| 25 | fs_require_template( 'checkout/redirect.php', $VARS ); |
| 26 | } |
| 27 | } |
| 28 |