: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<h1><?php esc_html_e( 'Settings', 'ninja-forms' ); ?>
<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">
<img src="<?php echo Ninja_Forms::$url . 'assets/img/help_icon.png'; ?>" alt="Documentation Link" width="25" height="25"></a>
<h2 class="nav-tab-wrapper">
<?php foreach( $tabs as $tab => $name ): ?>
<?php if( $tab == $active_tab ): ?>
<span class="nav-tab nav-tab-active"><?php echo $name ?></span>
<a href="<?php echo esc_url( add_query_arg( 'tab', $tab ) ); ?>" target="" class="nav-tab "><?php echo $name ?></a>
<?php if( 'settings' != $active_tab ): ?>
<?php do_meta_boxes('nf_settings_' . $active_tab, 'advanced', NULL ); ?>
<form action="" method="POST">
<?php foreach( $errors as $error_id => $error ): ?>
<?php $message = $error . " <a href='#$error_id'>" . esc_html__( 'Fix it.', 'ninja-forms' ) . '</a>'; ?>
<?php Ninja_Forms::template( 'admin-notice.html.php', array( 'class' => 'error', 'message' => $message ) ); ?>
<?php foreach( $grouped_settings as $group => $settings ) : ?>
<div id="ninja_forms_metabox_<?php echo $group; ?>_settings" class="postbox">
<span class="item-controls">
<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>
<h3 class="hndle"><span><?php echo $groups[ $group ][ 'label' ]; ?></span></h3>
<div class="inside" style="">
<table class="form-table">
<?php foreach( $settings as $key => $setting ) : ?>
<?php if( 'prompt' == $setting[ 'type' ] ) continue; ?>
<tr id="row_<?php echo $setting[ 'id' ]; ?>">
<label for="<?php echo $setting[ 'id' ]; ?>"><?php echo $setting[ 'label' ]; ?></label>
switch ( $setting[ 'type' ] ) {
echo $setting[ 'value' ];
echo "<input type='text' class='code widefat' name='{$setting['id']}' id='{$setting['id']}' value='" . esc_attr($setting['value']) . "'>";
echo "<input type='password' class='code widefat' name='{$setting['id']}' id='{$setting['id']}' value='" . esc_attr($setting['value']) . "'>";
$checked = ( $setting[ 'value' ] ) ? 'checked' : '';
echo "<input type='hidden' name='{$setting['id']}' value='0'>";
echo "<input type='checkbox' name='{$setting['id']}' value='1' id='{$setting['id']}' class='widefat' $checked>";
echo "<select name='{$setting['id']}' id='{$setting['id']}'>";
foreach( $setting['options'] as $option ) {
$selected = ( $setting['value'] == $option['value'] ) ? 'selected="selected"' : '';
echo "<option value='{$option['value']}' {$selected}>{$option['label']}</option>";
if( isset( $setting[ 'desc' ] ) ) {
echo "<p class='description'>" . $setting[ 'desc' ] . "</p>";
if( isset( $setting[ 'errors' ] ) ){
foreach( $setting[ 'errors' ] as $error_id => $error ){
echo "<div id='$error_id' class='error'><p>$error</p></div>";
<input type="hidden" name="update_ninja_forms_settings_nonce" value="<?php echo wp_create_nonce( "ninja_forms_settings_nonce" ); ?>">
<input type="hidden" name="update_ninja_forms_settings">
<input type="submit" class="button button-primary" value="<?php echo $save_button_text; ?>">