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/clone/wp-conte.../plugins/flow-flo.../views
File: general.php
<?php use la\core\LAUtils;
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'WPINC' ) ) die;
[2] Fix | Delete
/**
[3] Fix | Delete
* FlowFlow.
[4] Fix | Delete
*
[5] Fix | Delete
* @package FlowFlow
[6] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[7] Fix | Delete
*
[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
<div class="section-content" data-tab="general-tab">
[15] Fix | Delete
<div class="section" id="general-settings">
[16] Fix | Delete
<h1 class="desc-following">General Settings</h1>
[17] Fix | Delete
<p class="desc">Adjust plugin's global settings here.</p>
[18] Fix | Delete
<dl class="section-settings">
[19] Fix | Delete
<dt class="ff_mod_roles ff_hide4site"><span class="ff-icon-lock"></span> Who can moderate
[20] Fix | Delete
<p class="desc">User roles that are allowed to moderate feeds.</p>
[21] Fix | Delete
<div class="desc hint-block hint-block-pro"><span class="hint-link">Available in PRO</span><div class="hint hint-pro"><h1>PREMIUM FEATURE</h1>To access this and many other premium features please activate <a href="#addons-tab">BOOST subscription</a> or make one&#x2011;time purchase of <a href="http://goo.gl/g7XQzu" target="_blank">PRO version</a>.</div></div>
[22] Fix | Delete
</dt>
[23] Fix | Delete
<dd class="ff_mod_roles ff_hide4site ff-feature">
[24] Fix | Delete
<?php
[25] Fix | Delete
if (FF_USE_WP){
[26] Fix | Delete
$wp_roles = new WP_Roles();
[27] Fix | Delete
$roles = $wp_roles->get_names();
[28] Fix | Delete
[29] Fix | Delete
foreach ($roles as $role_value => $role_name) {
[30] Fix | Delete
$checked = isset($options['mod-role-' . $role_value ]) && $options['mod-role-' . $role_value ] == 'yep' ? 'checked' : '';
[31] Fix | Delete
$value = $checked ? 'yep' : 'none';
[32] Fix | Delete
echo '<div class="checkbox-row"><input type="checkbox" ' . $checked . ' value="yep" name="flow_flow_options[mod-role-' . $role_value . ']" id="mod-role-' . $role_value . '"><label for="mod-role-' . $role_value . '">' . $role_name . '</label></div>';
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
?>
[36] Fix | Delete
</dd>
[37] Fix | Delete
<dt class="multiline">Date format<p class="desc">Used in post timestamps.</p></dt>
[38] Fix | Delete
<dd>
[39] Fix | Delete
<input id="general-settings-ago-format" class="clearcache" type="radio" name="flow_flow_options[general-settings-date-format]" <?php if ( (isset($options['general-settings-date-format']) && $options['general-settings-date-format'] == 'agoStyleDate') || !isset($options['general-settings-date-format'])) echo "checked"; ?> value="agoStyleDate"/>
[40] Fix | Delete
<label for="general-settings-ago-format">Short</label>
[41] Fix | Delete
<input id="general-settings-classic-format" class="clearcache" type="radio" name="flow_flow_options[general-settings-date-format]" <?php if (isset($options['general-settings-date-format']) && $options['general-settings-date-format'] == 'classicStyleDate') echo "checked"; ?> value="classicStyleDate"/>
[42] Fix | Delete
<label for="general-settings-classic-format">Classic</label>
[43] Fix | Delete
<?php if (FF_USE_WP) { ?>
[44] Fix | Delete
<input id="general-settings-wp-format" class="clearcache" type="radio" name="flow_flow_options[general-settings-date-format]" <?php if (isset($options['general-settings-date-format']) && $options['general-settings-date-format'] == 'wpStyleDate') echo "checked"; ?> value="wpStyleDate"/>
[45] Fix | Delete
<label for="general-settings-wp-format">WordPress</label>
[46] Fix | Delete
<?php }?>
[47] Fix | Delete
</dd>
[48] Fix | Delete
<dt class="multiline">Open links in new tab<p class="desc">Any link in post will be opened in new tab.</p></dt>
[49] Fix | Delete
<dd>
[50] Fix | Delete
<label for="general-settings-open-links-in-new-window">
[51] Fix | Delete
<input id="general-settings-open-links-in-new-window" class="switcher clearcache" type="checkbox"
[52] Fix | Delete
name="flow_flow_options[general-settings-open-links-in-new-window]"
[53] Fix | Delete
<?php if (!isset($options['general-settings-open-links-in-new-window']) || (isset($options['general-settings-open-links-in-new-window']) && $options['general-settings-open-links-in-new-window'] == 'yep')) echo "checked"; ?>
[54] Fix | Delete
value="yep"/><div><div></div></div>
[55] Fix | Delete
</label>
[56] Fix | Delete
</dd>
[57] Fix | Delete
<dt class="multiline">Disable proxy pictures<p class="desc">Proxying improves performance.</p></dt>
[58] Fix | Delete
<dd>
[59] Fix | Delete
<label for="general-settings-disable-proxy-server">
[60] Fix | Delete
<input id="general-settings-disable-proxy-server" class="clearcache switcher" type="checkbox"
[61] Fix | Delete
name="flow_flow_options[general-settings-disable-proxy-server]"
[62] Fix | Delete
<?php if (isset($options['general-settings-disable-proxy-server']) && $options['general-settings-disable-proxy-server'] == 'yep') echo "checked"; ?>
[63] Fix | Delete
value="yep"/><div><div></div></div>
[64] Fix | Delete
</dd>
[65] Fix | Delete
<dt class="multiline">Disable curl "follow location"
[66] Fix | Delete
<p class="desc">Can help if your server uses deprecated security setting 'safe_mode' and streams don't load.</p></dt>
[67] Fix | Delete
<dd>
[68] Fix | Delete
<label for="general-settings-disable-follow-location">
[69] Fix | Delete
<input id="general-settings-disable-follow-location" class="clearcache switcher" type="checkbox"
[70] Fix | Delete
name="flow_flow_options[general-settings-disable-follow-location]"
[71] Fix | Delete
<?php if (isset($options['general-settings-disable-follow-location']) && $options['general-settings-disable-follow-location'] == 'yep') echo "checked"; ?>
[72] Fix | Delete
value="yep"/><div><div></div></div>
[73] Fix | Delete
</dd>
[74] Fix | Delete
<dt class="multiline">Use IPv4 protocol
[75] Fix | Delete
<p class="desc">Sometimes servers use older version of Internet protocol. Use setting when you see "Network is unreachable" error.</p></dt>
[76] Fix | Delete
<dd>
[77] Fix | Delete
<label for="general-settings-ipv4">
[78] Fix | Delete
<input id="general-settings-ipv4" class="clearcache switcher" type="checkbox"
[79] Fix | Delete
name="flow_flow_options[general-settings-ipv4]"
[80] Fix | Delete
<?php if (isset($options['general-settings-ipv4']) && $options['general-settings-ipv4'] == 'yep') echo "checked"; ?>
[81] Fix | Delete
value="yep"/><div><div></div></div>
[82] Fix | Delete
</dd>
[83] Fix | Delete
[84] Fix | Delete
<dt class="multiline">Force HTTPS for all resources
[85] Fix | Delete
<p class="desc">Load images and videos via HTTPS. Use this setting if you notice browser security warnings. Be advised, not every API provides resources via HTTPS.</p></dt>
[86] Fix | Delete
<dd>
[87] Fix | Delete
<label for="general-settings-https">
[88] Fix | Delete
<input id="general-settings-https" class="clearcache switcher" type="checkbox"
[89] Fix | Delete
name="flow_flow_options[general-settings-https]"
[90] Fix | Delete
<?php if (isset($options['general-settings-https']) && $options['general-settings-https'] == 'yep') echo "checked"; ?>
[91] Fix | Delete
value="yep"/><div><div></div></div>
[92] Fix | Delete
</dd>
[93] Fix | Delete
[94] Fix | Delete
<dt class="multiline">Аmount of stored posts for each feed
[95] Fix | Delete
<p class="desc"></p></dt>
[96] Fix | Delete
<dd>
[97] Fix | Delete
<label for="general-settings-feed-post-count">
[98] Fix | Delete
<input id="general-settings-feed-post-count" class="clearcache short" type="text"
[99] Fix | Delete
name="flow_flow_options[general-settings-feed-post-count]"
[100] Fix | Delete
value="<?php if (isset($options['general-settings-feed-post-count'])) {
[101] Fix | Delete
echo (int)$options['general-settings-feed-post-count'];
[102] Fix | Delete
} else {
[103] Fix | Delete
if (defined('FF_FEED_POSTS_COUNT')) {
[104] Fix | Delete
echo FF_FEED_POSTS_COUNT;
[105] Fix | Delete
} else {
[106] Fix | Delete
echo 100;
[107] Fix | Delete
}
[108] Fix | Delete
}
[109] Fix | Delete
?>"/><div><div></div></div>
[110] Fix | Delete
</dd>
[111] Fix | Delete
[112] Fix | Delete
<?php if ( LAUtils::slug($context) === 'flow-flow'): ?>
[113] Fix | Delete
<dt class="multiline">Notify about broken feeds
[114] Fix | Delete
<p class="desc">You will get notifications once per day to your blog admin email.</p>
[115] Fix | Delete
</dt>
[116] Fix | Delete
<dd>
[117] Fix | Delete
<label for="general-notifications">
[118] Fix | Delete
<input id="general-notifications" class="clearcache switcher" type="checkbox" name="flow_flow_options[general-notifications]"
[119] Fix | Delete
<?php if (isset($options['general-notifications']) && $options['general-notifications'] == 'yep') echo "checked"; ?> value="yep"/>
[120] Fix | Delete
<div><div></div></div>
[121] Fix | Delete
</dd>
[122] Fix | Delete
[123] Fix | Delete
<dt class="multiline">Alternative way to render shortcode
[124] Fix | Delete
<p class="desc">Check this if nothing is displayed when you add shortcode.</p>
[125] Fix | Delete
</dt>
[126] Fix | Delete
<dd>
[127] Fix | Delete
<label for="general-render-alt">
[128] Fix | Delete
<input id="general-render-alt" class="clearcache switcher" type="checkbox" name="flow_flow_options[general-render-alt]"
[129] Fix | Delete
<?php if (isset($options['general-render-alt']) && $options['general-render-alt'] == 'yep') echo "checked"; ?> value="yep"/>
[130] Fix | Delete
<div><div></div></div>
[131] Fix | Delete
</dd>
[132] Fix | Delete
<?php endif; ?>
[133] Fix | Delete
[134] Fix | Delete
<dt class="multiline">Remove all data on uninstall
[135] Fix | Delete
<p class="desc">Check this if you want to erase all database records that plugin created.<br>Also will remove any Boosts subscription.</p>
[136] Fix | Delete
</dt>
[137] Fix | Delete
<dd>
[138] Fix | Delete
<label for="general-uninstall">
[139] Fix | Delete
<input id="general-uninstall" class="clearcache switcher" type="checkbox" name="flow_flow_options[general-uninstall]"
[140] Fix | Delete
<?php if (isset($options['general-uninstall']) && $options['general-uninstall'] == 'yep') echo "checked"; ?> value="yep"/>
[141] Fix | Delete
<div><div></div></div>
[142] Fix | Delete
</dd>
[143] Fix | Delete
</dl>
[144] Fix | Delete
<span id="general-settings-sbmt" class='admin-button green-button submit-button'>Save Changes</span>
[145] Fix | Delete
</div>
[146] Fix | Delete
<?php
[147] Fix | Delete
/** @noinspection PhpIncludeInspection */
[148] Fix | Delete
include( LAUtils::root($context) . 'views/footer.php');
[149] Fix | Delete
?>
[150] Fix | Delete
[151] Fix | Delete
</div>
[152] Fix | Delete
[153] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function