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
content-protector / inc / freemius / templates / forms / premium-versions-upgrade-metadata.php

premium-versions-upgrade-metadata.php in Passster – Password Protect Pages and Content 4.3.17, at inc/freemius/templates/forms/premium-versions-upgrade-metadata.php

47 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 2.0.2
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * @var Freemius $fs
15 */
16 $fs = freemius( $VARS['id'] );
17
18 $license = $fs->_get_license();
19
20 if ( ! is_object( $license ) ) {
21 $purchase_url = $fs->pricing_url();
22 } else {
23 $subscription = $fs->_get_subscription( $license->id );
24
25 $purchase_url = $fs->checkout_url(
26 is_object( $subscription ) ?
27 ( 1 == $subscription->billing_cycle ? WP_FS__PERIOD_MONTHLY : WP_FS__PERIOD_ANNUALLY ) :
28 WP_FS__PERIOD_LIFETIME,
29 false,
30 array( 'licenses' => $license->quota )
31 );
32 }
33
34 $plugin_data = $fs->get_plugin_data();
35 ?>
36 <script type="text/javascript">
37 (function( $ ) {
38 $( document ).ready(function() {
39 var $premiumVersionCheckbox = $( 'input[type="checkbox"][value="<?php echo $fs->get_plugin_basename() ?>"]' );
40
41 $premiumVersionCheckbox.addClass( 'license-expired' );
42 $premiumVersionCheckbox.data( 'plugin-name', <?php echo json_encode( $plugin_data['Name'] ) ?> );
43 $premiumVersionCheckbox.data( 'pricing-url', <?php echo json_encode( $purchase_url ) ?> );
44 $premiumVersionCheckbox.data( 'new-version', <?php echo json_encode( $VARS['new_version'] ) ?> );
45 });
46 })( jQuery );
47 </script>