debug
9 years ago
forms
9 years ago
plugin-info
9 years ago
account.php
9 years ago
add-ons.php
9 years ago
add-trial-to-pricing.php
9 years ago
admin-notice.php
9 years ago
ajax-loader.php
9 years ago
all-admin-notice.php
9 years ago
auto-installation.php
9 years ago
billing.php
9 years ago
checkout-legacy.php
9 years ago
checkout.php
9 years ago
connect.php
9 years ago
contact.php
9 years ago
debug.php
9 years ago
email.php
9 years ago
firewall-issues-js.php
9 years ago
index.php
9 years ago
plugin-icon.php
9 years ago
powered-by.php
9 years ago
pricing.php
9 years ago
sticky-admin-notice-js.php
9 years ago
powered-by.php
39 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package Freemius |
| 4 | * @copyright Copyright (c) 2015, Freemius, Inc. |
| 5 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 6 | * @since 1.0.5 |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; |
| 11 | } |
| 12 | |
| 13 | $VARS = isset($VARS) ? $VARS : array(); |
| 14 | |
| 15 | wp_enqueue_script( 'jquery' ); |
| 16 | wp_enqueue_script( 'json2' ); |
| 17 | fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' ); |
| 18 | fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' ); |
| 19 | ?> |
| 20 | |
| 21 | <div id="piframe"></div> |
| 22 | <script type="text/javascript"> |
| 23 | (function ($) { |
| 24 | $(function () { |
| 25 | var |
| 26 | base_url = '<?php echo WP_FS__ADDRESS ?>', |
| 27 | piframe = $('<iframe id="fs_promo_tab" src="' + base_url + '/promotional-tab/?<?php echo http_build_query($VARS) ?>#' + encodeURIComponent(document.location.href) + '" height="350" width="60" frameborder="0" style=" background: transparent; position: fixed; top: 20%; right: 0;" scrolling="no"></iframe>') |
| 28 | .appendTo('#piframe'); |
| 29 | |
| 30 | FS.PostMessage.init(base_url); |
| 31 | FS.PostMessage.receive('state', function (state) { |
| 32 | if ('closed' === state) |
| 33 | $('#fs_promo_tab').css('width', '60px'); |
| 34 | else |
| 35 | $('#fs_promo_tab').css('width', '345px'); |
| 36 | }); |
| 37 | }); |
| 38 | })(jQuery); |
| 39 | </script> |