Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/content-.../inc/freemius/template...
File: contact.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Freemius
[2] Fix | Delete
* @copyright Copyright (c) 2015, Freemius, Inc.
[3] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[4] Fix | Delete
* @since 1.0.3
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Note for WordPress.org Theme/Plugin reviewer:
[9] Fix | Delete
* Freemius is an SDK for plugin and theme developers. Since the core
[10] Fix | Delete
* of the SDK is relevant both for plugins and themes, for obvious reasons,
[11] Fix | Delete
* we only develop and maintain one code base.
[12] Fix | Delete
*
[13] Fix | Delete
* This code (and page) will not run for wp.org themes (only plugins).
[14] Fix | Delete
*
[15] Fix | Delete
* In addition, this page loads an i-frame. We intentionally named it 'frame'
[16] Fix | Delete
* so it will pass the "Theme Check" that is looking for the string "i" . "frame".
[17] Fix | Delete
*
[18] Fix | Delete
* UPDATE:
[19] Fix | Delete
* After ongoing conversations with the WordPress.org TRT we received
[20] Fix | Delete
* an official approval for including i-frames in the theme's WP Admin setting's
[21] Fix | Delete
* page tab (the SDK will never add any i-frames on the sitefront). i-frames
[22] Fix | Delete
* were never against the guidelines, but we wanted to get the team's blessings
[23] Fix | Delete
* before we move forward. For the record, I got the final approval from
[24] Fix | Delete
* Ulrich Pogson (@grapplerulrich), a team lead at the TRT during WordCamp
[25] Fix | Delete
* Europe 2017 (June 16th, 2017).
[26] Fix | Delete
*
[27] Fix | Delete
* If you have any questions or need clarifications, please don't hesitate
[28] Fix | Delete
* pinging me on slack, my username is @svovaf.
[29] Fix | Delete
*
[30] Fix | Delete
* @author Vova Feldman (@svovaf)
[31] Fix | Delete
* @since 1.2.2
[32] Fix | Delete
*/
[33] Fix | Delete
[34] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[35] Fix | Delete
exit;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
wp_enqueue_script( 'jquery' );
[39] Fix | Delete
wp_enqueue_script( 'json2' );
[40] Fix | Delete
fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' );
[41] Fix | Delete
fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
[42] Fix | Delete
fs_enqueue_local_style( 'fs_checkout', '/admin/common.css' );
[43] Fix | Delete
[44] Fix | Delete
/**
[45] Fix | Delete
* @var array $VARS
[46] Fix | Delete
* @var Freemius $fs
[47] Fix | Delete
*/
[48] Fix | Delete
$fs = freemius( $VARS['id'] );
[49] Fix | Delete
$slug = $fs->get_slug();
[50] Fix | Delete
[51] Fix | Delete
$context_params = array(
[52] Fix | Delete
'plugin_id' => $fs->get_id(),
[53] Fix | Delete
'plugin_public_key' => $fs->get_public_key(),
[54] Fix | Delete
'plugin_version' => $fs->get_plugin_version(),
[55] Fix | Delete
);
[56] Fix | Delete
[57] Fix | Delete
[58] Fix | Delete
// Get site context secure params.
[59] Fix | Delete
if ( $fs->is_registered() ) {
[60] Fix | Delete
$context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
[61] Fix | Delete
$fs->get_site(),
[62] Fix | Delete
time(),
[63] Fix | Delete
'contact'
[64] Fix | Delete
) );
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
$query_params = array_merge( $_GET, array_merge( $context_params, array(
[68] Fix | Delete
'plugin_version' => $fs->get_plugin_version(),
[69] Fix | Delete
'wp_login_url' => wp_login_url(),
[70] Fix | Delete
'site_url' => Freemius::get_unfiltered_site_url(),
[71] Fix | Delete
// 'wp_admin_css' => get_bloginfo('wpurl') . "/wp-admin/load-styles.php?c=1&load=buttons,wp-admin,dashicons",
[72] Fix | Delete
) ) );
[73] Fix | Delete
[74] Fix | Delete
$view_params = array(
[75] Fix | Delete
'id' => $VARS['id'],
[76] Fix | Delete
'page' => strtolower( $fs->get_text_inline( 'Contact', 'contact' ) ),
[77] Fix | Delete
);
[78] Fix | Delete
fs_require_once_template('secure-https-header.php', $view_params);
[79] Fix | Delete
[80] Fix | Delete
$has_tabs = $fs->_add_tabs_before_content();
[81] Fix | Delete
[82] Fix | Delete
if ( $has_tabs ) {
[83] Fix | Delete
$query_params['tabs'] = 'true';
[84] Fix | Delete
}
[85] Fix | Delete
?>
[86] Fix | Delete
<div id="fs_contact" class="wrap fs-section fs-full-size-wrapper">
[87] Fix | Delete
<div id="fs_frame"></div>
[88] Fix | Delete
<script type="text/javascript">
[89] Fix | Delete
(function ($) {
[90] Fix | Delete
$(function () {
[91] Fix | Delete
[92] Fix | Delete
var
[93] Fix | Delete
// Keep track of the i-frame height.
[94] Fix | Delete
frame_height = 800,
[95] Fix | Delete
base_url = '<?php echo WP_FS__ADDRESS ?>',
[96] Fix | Delete
src = base_url + '/contact/?<?php echo http_build_query($query_params) ?>#' + encodeURIComponent(document.location.href),
[97] Fix | Delete
[98] Fix | Delete
// Append the i-frame into the DOM.
[99] Fix | Delete
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>')
[100] Fix | Delete
.appendTo('#fs_frame');
[101] Fix | Delete
[102] Fix | Delete
FS.PostMessage.init(base_url);
[103] Fix | Delete
FS.PostMessage.receive('height', function (data) {
[104] Fix | Delete
var h = data.height;
[105] Fix | Delete
if (!isNaN(h) && h > 0 && h != frame_height) {
[106] Fix | Delete
frame_height = h;
[107] Fix | Delete
$('#fs_frame i' + 'frame').height(frame_height + 'px');
[108] Fix | Delete
}
[109] Fix | Delete
});
[110] Fix | Delete
});
[111] Fix | Delete
})(jQuery);
[112] Fix | Delete
</script>
[113] Fix | Delete
</div>
[114] Fix | Delete
<?php
[115] Fix | Delete
if ( $has_tabs ) {
[116] Fix | Delete
$fs->_add_tabs_after_content();
[117] Fix | Delete
}
[118] Fix | Delete
[119] Fix | Delete
$params = array(
[120] Fix | Delete
'page' => 'contact',
[121] Fix | Delete
'module_id' => $fs->get_id(),
[122] Fix | Delete
'module_type' => $fs->get_module_type(),
[123] Fix | Delete
'module_slug' => $slug,
[124] Fix | Delete
'module_version' => $fs->get_plugin_version(),
[125] Fix | Delete
);
[126] Fix | Delete
fs_require_template( 'powered-by.php', $params );
[127] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function