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: moderation.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
*/
[11] Fix | Delete
$arr = $context['streams'];
[12] Fix | Delete
?>
[13] Fix | Delete
<div class="section-content" data-tab="moderation-tab">
[14] Fix | Delete
<div class="section" id="moderation-settings">
[15] Fix | Delete
<h1 class="desc-following"><span>Moderation mode for streams</span></h1>
[16] Fix | Delete
<p class="desc">Set if stream posts need approval or not. Approve
[17] Fix | Delete
posts right on site pages. Users will see only approved posts.</p>
[18] Fix | Delete
<table>
[19] Fix | Delete
<thead>
[20] Fix | Delete
<tr>
[21] Fix | Delete
<th>Stream</th>
[22] Fix | Delete
<th>Moderation active?</th>
[23] Fix | Delete
</tr>
[24] Fix | Delete
</thead>
[25] Fix | Delete
<tbody>
[26] Fix | Delete
<?php
[27] Fix | Delete
[28] Fix | Delete
foreach ($arr as $stream) {
[29] Fix | Delete
if (!isset($stream['id'])) continue;
[30] Fix | Delete
$id = $stream['id'];
[31] Fix | Delete
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
[35] Fix | Delete
echo
[36] Fix | Delete
'<tr data-stream-id="' . $id . '">
[37] Fix | Delete
<td class="td-name">' . (!empty($stream['name']) ? $stream['name'] : 'Unnamed') . '</td>
[38] Fix | Delete
<td class="td-moder"></td>' .
[39] Fix | Delete
'</tr>';
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
if (empty($arr)) {
[43] Fix | Delete
echo '<tr><td class="empty-cell" colspan="6">Please add at least one stream</td></tr>';
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
?>
[47] Fix | Delete
</tbody>
[48] Fix | Delete
</table>
[49] Fix | Delete
<span id="moderation-sbmt" class='admin-button green-button submit-button'>Save Changes</span>
[50] Fix | Delete
[51] Fix | Delete
</div>
[52] Fix | Delete
</div>
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function