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/ninja-fo.../includes/Template...
File: admin-menu-settings.html.php
<div class="wrap">
[0] Fix | Delete
[1] Fix | Delete
<h1><?php esc_html_e( 'Settings', 'ninja-forms' ); ?>
[2] Fix | Delete
<a href="https://ninjaforms.com/docs/plugin-settings/?utm_source=Ninja+Forms+Plugin&utm_medium=Settings&utm_campaign=Documentation&utm_content=Plugin+Settings+Documentation" target="_blank">
[3] Fix | Delete
<img src="<?php echo Ninja_Forms::$url . 'assets/img/help_icon.png'; ?>" alt="Documentation Link" width="25" height="25"></a>
[4] Fix | Delete
</h1>
[5] Fix | Delete
[6] Fix | Delete
<h2 class="nav-tab-wrapper">
[7] Fix | Delete
<?php foreach( $tabs as $tab => $name ): ?>
[8] Fix | Delete
<?php if( $tab == $active_tab ): ?>
[9] Fix | Delete
<span class="nav-tab nav-tab-active"><?php echo $name ?></span>
[10] Fix | Delete
<?php else: ?>
[11] Fix | Delete
<a href="<?php echo esc_url( add_query_arg( 'tab', $tab ) ); ?>" target="" class="nav-tab "><?php echo $name ?></a>
[12] Fix | Delete
<?php endif; ?>
[13] Fix | Delete
<?php endforeach; ?>
[14] Fix | Delete
</h2>
[15] Fix | Delete
[16] Fix | Delete
<div id="poststuff">
[17] Fix | Delete
<?php if( 'settings' != $active_tab ): ?>
[18] Fix | Delete
[19] Fix | Delete
<?php do_meta_boxes('nf_settings_' . $active_tab, 'advanced', NULL ); ?>
[20] Fix | Delete
[21] Fix | Delete
<?php else: ?>
[22] Fix | Delete
<form action="" method="POST">
[23] Fix | Delete
[24] Fix | Delete
<?php if( $errors ): ?>
[25] Fix | Delete
<?php foreach( $errors as $error_id => $error ): ?>
[26] Fix | Delete
<?php $message = $error . " <a href='#$error_id'>" . esc_html__( 'Fix it.', 'ninja-forms' ) . '</a>'; ?>
[27] Fix | Delete
<?php Ninja_Forms::template( 'admin-notice.html.php', array( 'class' => 'error', 'message' => $message ) ); ?>
[28] Fix | Delete
<?php endforeach; ?>
[29] Fix | Delete
<?php endif; ?>
[30] Fix | Delete
[31] Fix | Delete
<?php foreach( $grouped_settings as $group => $settings ) : ?>
[32] Fix | Delete
<div id="ninja_forms_metabox_<?php echo $group; ?>_settings" class="postbox">
[33] Fix | Delete
<span class="item-controls">
[34] Fix | Delete
<a class="item-edit metabox-item-edit" id="edit_id" title="<?php esc_html_e( 'Edit Menu Item', 'ninja-forms' ); ?>" href="#"><?php esc_html_e( 'Edit Menu Item', 'ninja-forms' ); ?></a>
[35] Fix | Delete
</span>
[36] Fix | Delete
<h3 class="hndle"><span><?php echo $groups[ $group ][ 'label' ]; ?></span></h3>
[37] Fix | Delete
<div class="inside" style="">
[38] Fix | Delete
<table class="form-table">
[39] Fix | Delete
<tbody>
[40] Fix | Delete
<?php foreach( $settings as $key => $setting ) : ?>
[41] Fix | Delete
[42] Fix | Delete
<?php if( 'prompt' == $setting[ 'type' ] ) continue; ?>
[43] Fix | Delete
[44] Fix | Delete
<tr id="row_<?php echo $setting[ 'id' ]; ?>">
[45] Fix | Delete
<th scope="row">
[46] Fix | Delete
<label for="<?php echo $setting[ 'id' ]; ?>"><?php echo $setting[ 'label' ]; ?></label>
[47] Fix | Delete
</th>
[48] Fix | Delete
<td>
[49] Fix | Delete
<?php
[50] Fix | Delete
switch ( $setting[ 'type' ] ) {
[51] Fix | Delete
case 'html':
[52] Fix | Delete
echo $setting[ 'html'];
[53] Fix | Delete
break;
[54] Fix | Delete
case 'desc' :
[55] Fix | Delete
echo $setting[ 'value' ];
[56] Fix | Delete
break;
[57] Fix | Delete
case 'textbox' :
[58] Fix | Delete
echo "<input type='text' class='code widefat' name='{$setting['id']}' id='{$setting['id']}' value='" . esc_attr($setting['value']) . "'>";
[59] Fix | Delete
break;
[60] Fix | Delete
case 'password' :
[61] Fix | Delete
echo "<input type='password' class='code widefat' name='{$setting['id']}' id='{$setting['id']}' value='" . esc_attr($setting['value']) . "'>";
[62] Fix | Delete
break;
[63] Fix | Delete
case 'checkbox' :
[64] Fix | Delete
$checked = ( $setting[ 'value' ] ) ? 'checked' : '';
[65] Fix | Delete
echo "<input type='hidden' name='{$setting['id']}' value='0'>";
[66] Fix | Delete
echo "<input type='checkbox' name='{$setting['id']}' value='1' id='{$setting['id']}' class='widefat' $checked>";
[67] Fix | Delete
break;
[68] Fix | Delete
case 'select' :
[69] Fix | Delete
echo "<select name='{$setting['id']}' id='{$setting['id']}'>";
[70] Fix | Delete
foreach( $setting['options'] as $option ) {
[71] Fix | Delete
$selected = ( $setting['value'] == $option['value'] ) ? 'selected="selected"' : '';
[72] Fix | Delete
echo "<option value='{$option['value']}' {$selected}>{$option['label']}</option>";
[73] Fix | Delete
}
[74] Fix | Delete
echo "</select>";
[75] Fix | Delete
break;
[76] Fix | Delete
}
[77] Fix | Delete
if( isset( $setting[ 'desc' ] ) ) {
[78] Fix | Delete
echo "<p class='description'>" . $setting[ 'desc' ] . "</p>";
[79] Fix | Delete
}
[80] Fix | Delete
?>
[81] Fix | Delete
<?php
[82] Fix | Delete
if( isset( $setting[ 'errors' ] ) ){
[83] Fix | Delete
foreach( $setting[ 'errors' ] as $error_id => $error ){
[84] Fix | Delete
echo "<div id='$error_id' class='error'><p>$error</p></div>";
[85] Fix | Delete
}
[86] Fix | Delete
}
[87] Fix | Delete
?>
[88] Fix | Delete
</td>
[89] Fix | Delete
</tr>
[90] Fix | Delete
</tbody>
[91] Fix | Delete
<?php endforeach; ?>
[92] Fix | Delete
</table>
[93] Fix | Delete
</div>
[94] Fix | Delete
</div>
[95] Fix | Delete
<?php endforeach; ?>
[96] Fix | Delete
[97] Fix | Delete
<input type="hidden" name="update_ninja_forms_settings_nonce" value="<?php echo wp_create_nonce( "ninja_forms_settings_nonce" ); ?>">
[98] Fix | Delete
<input type="hidden" name="update_ninja_forms_settings">
[99] Fix | Delete
<input type="submit" class="button button-primary" value="<?php echo $save_button_text; ?>">
[100] Fix | Delete
[101] Fix | Delete
</form>
[102] Fix | Delete
<?php endif; ?>
[103] Fix | Delete
</div>
[104] Fix | Delete
[105] Fix | Delete
</div>
[106] Fix | Delete
[107] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function