PluginProbe ʕ •ᴥ•ʔ
Code Manager / 1.0.37
Code Manager v1.0.37
1.0.48 1.0.47 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.3 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 1.0.39 1.0.4 1.0.40 1.0.41 1.0.42 1.0.43 1.0.44 1.0.45 1.0.46 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9
code-manager / freemius / templates / powered-by.php
code-manager / freemius / templates Last commit date
account 1 year ago connect 1 year ago debug 1 year ago forms 1 year ago js 1 year ago partials 1 year ago plugin-info 1 year ago account.php 1 year ago add-ons.php 1 year ago add-trial-to-pricing.php 1 year ago admin-notice.php 1 year ago ajax-loader.php 1 year ago api-connectivity-message-js.php 1 year ago auto-installation.php 1 year ago checkout.php 1 year ago clone-resolution-js.php 1 year ago connect.php 1 year ago contact.php 1 year ago debug.php 1 year ago email.php 1 year ago gdpr-optin-js.php 1 year ago index.php 1 year ago plugin-icon.php 1 year ago powered-by.php 1 year ago pricing.php 1 year ago secure-https-header.php 1 year ago sticky-admin-notice-js.php 1 year ago tabs-capture-js.php 1 year ago tabs.php 1 year ago
powered-by.php
62 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.5
7 */
8
9 /**
10 * Note for WordPress.org Theme/Plugin reviewer:
11 * Freemius is an SDK for plugin and theme developers. Since the core
12 * of the SDK is relevant both for plugins and themes, for obvious reasons,
13 * we only develop and maintain one code base.
14 *
15 * This code will not run for wp.org themes (only plugins)
16 * since theme admin settings/options are now only allowed in the customizer.
17 *
18 * In addition, this page loads an i-frame. We intentionally named it 'frame'
19 * so it will pass the "Theme Check" that is looking for the string "i" . "frame".
20 *
21 * If you have any questions or need clarifications, please don't hesitate
22 * pinging me on slack, my username is @svovaf.
23 *
24 * @author Vova Feldman (@svovaf)
25 * @since 1.2.2
26 */
27
28 if ( ! defined( 'ABSPATH' ) ) {
29 exit;
30 }
31
32 $VARS = isset($VARS) ? $VARS : array();
33
34 $fs = freemius( $VARS['module_id'] );
35
36 if ( ! $fs->is_whitelabeled() && ! $fs->apply_filters( 'hide_freemius_powered_by', false ) ) {
37 wp_enqueue_script( 'jquery' );
38 wp_enqueue_script( 'json2' );
39 fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.js' );
40 fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
41 ?>
42 <div id="pframe"></div>
43 <script type="text/javascript">
44 (function ($) {
45 $(function () {
46 var
47 base_url = '<?php echo WP_FS__ADDRESS ?>',
48 pframe = $('<i' + 'frame 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"></i' + 'frame>')
49 .appendTo('#pframe');
50
51 FS.PostMessage.init(base_url);
52 FS.PostMessage.receive('state', function (state) {
53 if ('closed' === state)
54 $('#fs_promo_tab').css('width', '60px');
55 else
56 $('#fs_promo_tab').css('width', '345px');
57 });
58 });
59 })(jQuery);
60 </script>
61 <?php } ?>
62