: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php if ( ! defined( 'WPINC' ) ) die;
* Represents the view for the administration dashboard.
* This includes the header, options, and other information that should provide
* The User Interface to the end user.
* @author Looks Awesome <email@looks-awesome.com>
* @link http://looks-awesome.com
* @copyright Looks Awesome
$arr = $context['streams'];
<div class="section-content" data-tab="moderation-tab">
<div class="section" id="moderation-settings">
<h1 class="desc-following"><span>Moderation mode for streams</span></h1>
<p class="desc">Set if stream posts need approval or not. Approve
posts right on site pages. Users will see only approved posts.</p>
<th>Moderation active?</th>
foreach ($arr as $stream) {
if (!isset($stream['id'])) continue;
'<tr data-stream-id="' . $id . '">
<td class="td-name">' . (!empty($stream['name']) ? $stream['name'] : 'Unnamed') . '</td>
<td class="td-moder"></td>' .
echo '<tr><td class="empty-cell" colspan="6">Please add at least one stream</td></tr>';
<span id="moderation-sbmt" class='admin-button green-button submit-button'>Save Changes</span>