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/flow-flo.../views
File: license.php
<?php if ( ! defined( 'WPINC' ) ) die;
[0] Fix | Delete
/**
[1] Fix | Delete
* Represents the view for the administration dashboard.
[2] Fix | Delete
*
[3] Fix | Delete
* This includes the header, options, and other information that should provide
[4] Fix | Delete
* The User Interface to the end user.
[5] Fix | Delete
*
[6] Fix | Delete
* @package FlowFlow
[7] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[8] Fix | Delete
* @link http://looks-awesome.com
[9] Fix | Delete
* @copyright Looks Awesome
[10] Fix | Delete
* @var array $context
[11] Fix | Delete
*/
[12] Fix | Delete
$options = $context['options'];
[13] Fix | Delete
[14] Fix | Delete
$company_name = isset($options['company_name']) ? $options['company_name'] : '';
[15] Fix | Delete
$company_email = isset($options['company_email']) ? $options['company_email'] : '';
[16] Fix | Delete
$purchase_code = isset($options['purchase_code']) ? $options['purchase_code'] : '';
[17] Fix | Delete
$news_subscription = isset($options['news_subscription']) ? $options['news_subscription'] : 'nope';
[18] Fix | Delete
$activated = $context['activated'];
[19] Fix | Delete
//$news_subscription = 'nope';
[20] Fix | Delete
//$activated = false;
[21] Fix | Delete
$disabled = $activated ? ' class="disabled"' : '';
[22] Fix | Delete
[23] Fix | Delete
?>
[24] Fix | Delete
<div class="section-content" data-tab="license-tab">
[25] Fix | Delete
<div class="section <?php if ($activated) { echo 'plugin-activated'; } ?>" id="envato_license">
[26] Fix | Delete
<?php
[27] Fix | Delete
if (!$activated) {
[28] Fix | Delete
echo '<h1>Activate your copy</h1>';
[29] Fix | Delete
echo $context['license_subscription_description'];
[30] Fix | Delete
}
[31] Fix | Delete
?>
[32] Fix | Delete
[33] Fix | Delete
<dl class="section-settings">
[34] Fix | Delete
<dt class="vert-aligned">YOUR OR COMPANY NAME</dt>
[35] Fix | Delete
<dd>
[36] Fix | Delete
<input <?php echo $disabled ?> class="clearcache" type="text" id="ff_company_name" name="flow_flow_options[company_name]" placeholder="<?php echo $disabled ? 'No name specified' : 'Enter name here'?>" value="<?php echo $company_name?>" >
[37] Fix | Delete
</dd>
[38] Fix | Delete
<dt class="vert-aligned">YOUR EMAIL<?php if (!$activated) { echo ' *'; } ?></dt>
[39] Fix | Delete
<dd>
[40] Fix | Delete
<input <?php echo $disabled ?> id="company_email" class="clearcache" required type="email" name="flow_flow_options[company_email]" placeholder="Enter valid email here" value="<?php echo $company_email?>">
[41] Fix | Delete
</dd>
[42] Fix | Delete
<dt class="<?php echo $activated ? 'vert-aligned' : 'multiline' ?>">PURCHASE CODE<?php if (!$activated) { echo ' *<p class="desc"><a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-">Where\'s my purchase code?</a></p>'; } ?></dt>
[43] Fix | Delete
<dd>
[44] Fix | Delete
<input <?php echo $disabled ?> id="purchase_code" class="clearcache" required type="text" name="flow_flow_options[purchase_code]" placeholder="Paste code here" value="<?php echo $purchase_code?>">
[45] Fix | Delete
</dd>
[46] Fix | Delete
<dt class="vert-aligned"></dt>
[47] Fix | Delete
[48] Fix | Delete
<dd><?php
[49] Fix | Delete
if ($activated) {
[50] Fix | Delete
if ($news_subscription == 'yep') {
[51] Fix | Delete
echo '<span>You subscribed for important announcements.</span>';
[52] Fix | Delete
} else {
[53] Fix | Delete
echo '<span>You haven\'t subscribed for important announcements yet.</span>';
[54] Fix | Delete
}
[55] Fix | Delete
}
[56] Fix | Delete
?><div class="checkbox-row"><input id="news_subscription" type="checkbox" name="flow_flow_options[news_subscription]" value="yep" <?php if ($news_subscription == 'yep') echo "checked"; ?>>
[57] Fix | Delete
<label for="news_subscription">Receive important announcements and updates on email. <strong>We won't spam you</strong>.</label></div></dd>
[58] Fix | Delete
[59] Fix | Delete
[60] Fix | Delete
<dt class="vert-aligned"></dt>
[61] Fix | Delete
<dd><span id="user-settings-sbmt" class="admin-button green-button submit-button">
[62] Fix | Delete
<?php
[63] Fix | Delete
if ($activated) {
[64] Fix | Delete
echo 'Deactivate';
[65] Fix | Delete
} else {
[66] Fix | Delete
echo 'Submit';
[67] Fix | Delete
}
[68] Fix | Delete
?></span>
[69] Fix | Delete
<?php
[70] Fix | Delete
if ($activated) {
[71] Fix | Delete
if ($news_subscription != 'yep') {
[72] Fix | Delete
echo '<span id="user-settings-sbmt-2" class="admin-button green-button submit-button">Subscribe</span>';
[73] Fix | Delete
}
[74] Fix | Delete
} ?></dd>
[75] Fix | Delete
</dl>
[76] Fix | Delete
</div>
[77] Fix | Delete
<?php
[78] Fix | Delete
/** @noinspection PhpIncludeInspection */
[79] Fix | Delete
include(\la\core\LAUtils::root($context) . 'views/footer.php');
[80] Fix | Delete
?>
[81] Fix | Delete
[82] Fix | Delete
</div>
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function