PluginProbe ʕ •ᴥ•ʔ
Image Widget / 4.2
Image Widget v4.2
trunk 1.0 2.0 2.1 2.2 2.2.1 2.2.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.2 3.2.1 3.2.10 3.2.11 3.2.2 3.2.3 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1 4.1.1 4.1.2 4.2 4.2.1 4.2.2 4.3 4.3.1 4.4 4.4.1 4.4.11 4.4.12 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9
image-widget / freemius / templates / contact.php
image-widget / freemius / templates Last commit date
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
contact.php
72 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.3
7 */
8
9 wp_enqueue_script( 'jquery' );
10 wp_enqueue_script( 'json2' );
11 fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' );
12 fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
13 fs_enqueue_local_style( 'fs_checkout', '/admin/common.css' );
14
15 $slug = $VARS['slug'];
16 $fs = freemius( $slug );
17
18 $context_params = array(
19 'plugin_id' => $fs->get_id(),
20 'plugin_public_key' => $fs->get_public_key(),
21 'plugin_version' => $fs->get_plugin_version(),
22 );
23
24
25 // Get site context secure params.
26 if ( $fs->is_registered() ) {
27 $context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
28 $fs->get_site(),
29 time(),
30 'contact'
31 ) );
32 }
33
34 $query_params = array_merge( $_GET, array_merge( $context_params, array(
35 'plugin_version' => $fs->get_plugin_version(),
36 'wp_login_url' => wp_login_url(),
37 // 'wp_admin_css' => get_bloginfo('wpurl') . "/wp-admin/load-styles.php?c=1&load=buttons,wp-admin,dashicons",
38 ) ) );
39 ?>
40 <div class="fs-secure-notice">
41 <i class="dashicons dashicons-lock"></i>
42 <span><b>Secure HTTPS contact page</b>, running via iframe from external domain</span>
43 </div>
44 <div id="fs_contact" class="wrap" style="margin: 40px 0 -65px -20px;">
45 <div id="iframe"></div>
46 <script type="text/javascript">
47 (function ($) {
48 $(function () {
49
50 var
51 // Keep track of the iframe height.
52 iframe_height = 800,
53 base_url = '<?php echo WP_FS__ADDRESS ?>',
54 src = base_url + '/contact/?<?php echo http_build_query($query_params) ?>#' + encodeURIComponent(document.location.href),
55
56 // Append the Iframe into the DOM.
57 iframe = $('<iframe " src="' + src + '" width="100%" height="' + iframe_height + 'px" scrolling="no" frameborder="0" style="background: transparent;"><\/iframe>')
58 .appendTo('#iframe');
59
60 FS.PostMessage.init(base_url);
61 FS.PostMessage.receive('height', function (data) {
62 var h = data.height;
63 if (!isNaN(h) && h > 0 && h != iframe_height) {
64 iframe_height = h;
65 $("#iframe iframe").height(iframe_height + 'px');
66 }
67 });
68 });
69 })(jQuery);
70 </script>
71 </div>
72 <?php fs_require_template( 'powered-by.php' ) ?>