plugin-info
10 years ago
account.php
10 years ago
add-ons.php
10 years ago
admin-notice.php
10 years ago
all-admin-notice.php
10 years ago
checkout.php
10 years ago
connect.php
10 years ago
contact.php
10 years ago
deactivation-feedback-modal.php
10 years ago
debug.php
10 years ago
email.php
10 years ago
firewall-issues-js.php
10 years ago
pending-activation.php
10 years ago
plugin-icon.php
10 years ago
powered-by.php
10 years ago
pricing.php
10 years ago
sticky-admin-notice-js.php
10 years ago
powered-by.php
37 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 | /** |
| 10 | * KEEP THE POWERED BY TAB AND GET ADDITIONAL - 2% - OFF THE COMMISSION |
| 11 | */ |
| 12 | |
| 13 | wp_enqueue_script( 'jquery' ); |
| 14 | wp_enqueue_script( 'json2' ); |
| 15 | fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' ); |
| 16 | fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' ); |
| 17 | ?> |
| 18 | |
| 19 | <div id="piframe"></div> |
| 20 | <script type="text/javascript"> |
| 21 | (function ($) { |
| 22 | $(function () { |
| 23 | var |
| 24 | base_url = '<?php echo WP_FS__ADDRESS ?>', |
| 25 | piframe = $('<iframe id="fs_promo_tab" src="' + base_url + '/promotional-tab/?page=contact#' + encodeURIComponent(document.location.href) + '" height="350" width="60" frameborder="0" style=" background: transparent; position: fixed; top: 20%; right: 0;" scrolling="no"></iframe>') |
| 26 | .appendTo('#piframe'); |
| 27 | |
| 28 | FS.PostMessage.init(base_url); |
| 29 | FS.PostMessage.receive('state', function (state) { |
| 30 | if ('closed' === state) |
| 31 | $('#fs_promo_tab').css('width', '60px'); |
| 32 | else |
| 33 | $('#fs_promo_tab').css('width', '345px'); |
| 34 | }); |
| 35 | }); |
| 36 | })(jQuery); |
| 37 | </script> |