/var/www/hkosl.com/aga/wp-content/plugins/foogallery/freemius/templates/powered-by.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
    
/**
     * @package     Freemius
     * @copyright   Copyright (c) 2015, Freemius, Inc.
     * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
     * @since       1.0.5
     */

    /**
     * Note for WordPress.org Theme/Plugin reviewer:
     *  Freemius is an SDK for plugin and theme developers. Since the core
     *  of the SDK is relevant both for plugins and themes, for obvious reasons,
     *  we only develop and maintain one code base.
     *
     *  This code will not run for wp.org themes (only plugins)
     *  since theme admin settings/options are now only allowed in the customizer.
     *
     *  In addition, this page loads an i-frame. We intentionally named it 'frame'
     *  so it will pass the "Theme Check" that is looking for the string "i" . "frame".
     *
     * If you have any questions or need clarifications, please don't hesitate
     * pinging me on slack, my username is @svovaf.
     *
     * @author Vova Feldman (@svovaf)
     * @since 1.2.2
     */

    
if ( ! defined'ABSPATH' ) ) {
        exit;
    }

    
$VARS = isset($VARS) ? $VARS : array();

    
wp_enqueue_script'jquery' );
    
wp_enqueue_script'json2' );
    
fs_enqueue_local_script'postmessage''nojquery.ba-postmessage.min.js' );
    
fs_enqueue_local_script'fs-postmessage''postmessage.js' );
?>

<div id="pframe"></div>
<script type="text/javascript">
    (function ($) {
        $(function () {
            var
                base_url = '<?php echo WP_FS__ADDRESS ?>',
                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>')
                    .appendTo('#pframe');

            FS.PostMessage.init(base_url);
            FS.PostMessage.receive('state', function (state) {
                if ('closed' === state)
                    $('#fs_promo_tab').css('width', '60px');
                else
                    $('#fs_promo_tab').css('width', '345px');
            });
        });
    })(jQuery);
</script>