: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @package AdvancedAds\Framework\Form
* @author Advanced Ads <info@wpadvancedads.com>
namespace AdvancedAds\Framework\Form;
defined( 'ABSPATH' ) || exit;
class Field_Position extends Field {
public function render() {
<table class="<?php echo sanitize_html_class( $this->get( 'class' ) ); ?>">
<?php foreach ( [ 'top', 'center', 'bottom' ] as $parent ) : ?>
foreach ( [ 'left', 'center', 'right' ] as $child ) :
if ( 'centercenter' === $key ) {
<input type="radio" name="<?php echo esc_attr( $this->get( 'name' ) ); ?>" value="<?php echo esc_attr( $key ); ?>"<?php checked( $key, $this->get( 'value' ) ); ?><?php disabled( in_array( $key, $this->get( 'disabled', [] ), true ) ); ?> />