PluginProbe ʕ •ᴥ•ʔ
Royal Addons for Elementor – Addons and Templates Kit for Elementor / 1.7.1064
Royal Addons for Elementor – Addons and Templates Kit for Elementor v1.7.1064
1.7.1064 1.7.1063 1.7.1062 1.7.1061 1.7.1060 1.7.1059 1.7.1058 trunk 1.0.0 1.1.0 1.2 1.3 1.3.1 1.3.2 1.3.21 1.3.22 1.3.23 1.3.24 1.3.25 1.3.26 1.3.27 1.3.28 1.3.29 1.3.30 1.3.31 1.3.32 1.3.33 1.3.34 1.3.35 1.3.36 1.3.37 1.3.38 1.3.39 1.3.40 1.3.41 1.3.42 1.3.43 1.3.44 1.3.45 1.3.46 1.3.47 1.3.48 1.3.49 1.3.50 1.3.51 1.3.52 1.3.53 1.3.54 1.3.55 1.3.56 1.3.57 1.3.58 1.3.59 1.3.60 1.3.61 1.3.62 1.3.63 1.3.64 1.3.65 1.3.66 1.3.67 1.3.68 1.3.69 1.3.70 1.3.71 1.3.72 1.3.73 1.3.74 1.3.75 1.3.76 1.3.77 1.3.78 1.3.79 1.3.80 1.3.81 1.3.82 1.3.83 1.3.84 1.3.85 1.3.86 1.3.87 1.3.88 1.3.89 1.3.90 1.3.91 1.3.92 1.3.93 1.3.94 1.3.95 1.3.96 1.3.97 1.3.971 1.3.972 1.3.973 1.3.974 1.3.975 1.3.976 1.3.977 1.3.978 1.3.979 1.3.980 1.3.981 1.3.982 1.3.983 1.3.984 1.3.985 1.3.986 1.3.987 1.7.1 1.7.1001 1.7.1002 1.7.1003 1.7.1004 1.7.1005 1.7.1006 1.7.1007 1.7.1008 1.7.1009 1.7.1010 1.7.1011 1.7.1012 1.7.1013 1.7.1014 1.7.1015 1.7.1016 1.7.1017 1.7.1018 1.7.1019 1.7.1020 1.7.1021 1.7.1022 1.7.1023 1.7.1024 1.7.1025 1.7.1026 1.7.1027 1.7.1028 1.7.1029 1.7.1030 1.7.1031 1.7.1032 1.7.1033 1.7.1034 1.7.1035 1.7.1036 1.7.1037 1.7.1038 1.7.1039 1.7.1040 1.7.1041 1.7.1042 1.7.1043 1.7.1044 1.7.1045 1.7.1046 1.7.1047 1.7.1048 1.7.1049 1.7.1050 1.7.1051 1.7.1052 1.7.1053 1.7.1054 1.7.1055 1.7.1056 1.7.1057
royal-elementor-addons / freemius / templates / contact.php
royal-elementor-addons / freemius / templates Last commit date
account 5 days ago checkout 5 days ago connect 5 days ago debug 5 days ago forms 5 days ago js 5 days ago partials 5 days ago plugin-info 5 days ago account.php 5 days ago add-ons.php 5 days ago add-trial-to-pricing.php 5 days ago admin-notice.php 5 days ago ajax-loader.php 5 days ago api-connectivity-message-js.php 5 days ago auto-installation.php 5 days ago checkout.php 5 days ago clone-resolution-js.php 5 days ago connect.php 5 days ago contact.php 5 days ago debug.php 5 days ago email.php 5 days ago gdpr-optin-js.php 5 days ago index.php 5 days ago plugin-icon.php 5 days ago pricing.php 5 days ago secure-https-header.php 5 days ago sticky-admin-notice-js.php 5 days ago tabs-capture-js.php 5 days ago tabs.php 5 days ago
contact.php
105 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.3
7 */
8
9 /**
10 * Update (October 9, 2024 by @swashata):
11 * Following request from the wp.org plugin review team, we have stopped
12 * embedding the contact form inside an i-frame for wp.org hosted free version
13 * of plugins. Now they will be opened in a new tab.
14 *
15 * Note for WordPress.org Theme/Plugin reviewer:
16 * Freemius is an SDK for plugin and theme developers. Since the core
17 * of the SDK is relevant both for plugins and themes, for obvious reasons,
18 * we only develop and maintain one code base.
19 *
20 * This code (and page) will not run for wp.org themes or plugins. It will
21 * run only for premium version of the plugin/theme that is using the SDK.
22 *
23 * In addition, when this page loads an i-frame. We intentionally named it 'frame'
24 * so it will pass the "Theme Check" that is looking for the string "i" . "frame".
25 *
26 * UPDATE:
27 * After ongoing conversations with the WordPress.org TRT we received
28 * an official approval for including i-frames in the theme's WP Admin setting's
29 * page tab (the SDK will never add any i-frames on the sitefront). i-frames
30 * were never against the guidelines, but we wanted to get the team's blessings
31 * before we move forward. For the record, I got the final approval from
32 * Ulrich Pogson (@grapplerulrich), a team lead at the TRT during WordCamp
33 * Europe 2017 (June 16th, 2017).
34 *
35 * If you have any questions or need clarifications, please don't hesitate
36 * pinging me on slack, my username is @svovaf.
37 *
38 * @author Vova Feldman (@svovaf)
39 * @since 1.2.2
40 */
41
42 if ( ! defined( 'ABSPATH' ) ) {
43 exit;
44 }
45
46 wp_enqueue_script( 'jquery' );
47 wp_enqueue_script( 'json2' );
48 fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.js' );
49 fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
50 fs_enqueue_local_style( 'fs_checkout', '/admin/common.css' );
51
52 /**
53 * @var array $VARS
54 * @var Freemius $fs
55 */
56 $fs = freemius( $VARS['id'] );
57 $slug = $fs->get_slug();
58
59 $query_params = FS_Contact_Form_Manager::instance()->get_query_params( $fs );
60
61 $view_params = array(
62 'id' => $VARS['id'],
63 'page' => strtolower( $fs->get_text_inline( 'Contact', 'contact' ) ),
64 );
65 fs_require_once_template('secure-https-header.php', $view_params);
66
67 $has_tabs = $fs->_add_tabs_before_content();
68
69 if ( $has_tabs ) {
70 $query_params['tabs'] = 'true';
71 }
72 ?>
73 <div id="fs_contact" class="wrap fs-section fs-full-size-wrapper">
74 <div id="fs_frame"></div>
75 <script type="text/javascript">
76 (function ($) {
77 $(function () {
78
79 var
80 // Keep track of the i-frame height.
81 frame_height = 800,
82 base_url = '<?php echo WP_FS__ADDRESS ?>',
83 src = base_url + '/contact/?<?php echo http_build_query($query_params) ?>#' + encodeURIComponent(document.location.href),
84
85 // Append the i-frame into the DOM.
86 frame = $('<i' + 'frame " src="' + src + '" width="100%" height="' + frame_height + 'px" scrolling="no" frameborder="0" style="background: transparent; width: 1px; min-width: 100%;"><\/i' + 'frame>')
87 .appendTo('#fs_frame');
88
89 FS.PostMessage.init(base_url);
90 FS.PostMessage.receive('height', function (data) {
91 var h = data.height;
92 if (!isNaN(h) && h > 0 && h != frame_height) {
93 frame_height = h;
94 $('#fs_frame i' + 'frame').height(frame_height + 'px');
95 }
96 });
97 });
98 })(jQuery);
99 </script>
100 </div>
101 <?php
102 if ( $has_tabs ) {
103 $fs->_add_tabs_after_content();
104 }
105