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/advanced.../modules/ad-posit.../views
File: ad-spacing.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Settings for the spacing
[2] Fix | Delete
*
[3] Fix | Delete
* @var array $spacings array with values for top, right, bottom, left spacing pixel values.
[4] Fix | Delete
* @var bool $is_centered Whether the "Block Center" position has been selected.
[5] Fix | Delete
*/
[6] Fix | Delete
?>
[7] Fix | Delete
<hr class"advads-hide-in-wizard">
[8] Fix | Delete
[9] Fix | Delete
<div class="advads-ad-positioning-spacing advads-option-list">
[10] Fix | Delete
<span class="label"><?php esc_html_e( 'Margin', 'advanced-ads' ); ?></span>
[11] Fix | Delete
[12] Fix | Delete
<div class="advads-ad-positioning-spacing-wrapper">
[13] Fix | Delete
<?php foreach ( $spacings as $direction => $spacing ) : ?>
[14] Fix | Delete
<?php $input_id = 'advads-ad-positioning-spacing-' . $direction; ?>
[15] Fix | Delete
[16] Fix | Delete
<label for="<?php echo esc_attr( $input_id ); ?>">
[17] Fix | Delete
<span class="label screen-reader-text"><?php echo esc_html( $spacing['label'] ); ?></span>
[18] Fix | Delete
[19] Fix | Delete
<input
[20] Fix | Delete
type="number"
[21] Fix | Delete
step="1"
[22] Fix | Delete
id="<?php echo esc_attr( $input_id ); ?>"
[23] Fix | Delete
class="advads-ad-positioning-spacing-option"
[24] Fix | Delete
name="advanced_ad[output][margin][<?php echo esc_attr( $direction ); ?>]"
[25] Fix | Delete
value="<?php echo esc_attr( $spacing['value'] ); ?>"
[26] Fix | Delete
<?php __checked_selected_helper( $is_centered && ( in_array( $direction, [ 'left', 'right' ], true ) ), true, true, 'readonly' ); ?>
[27] Fix | Delete
>
[28] Fix | Delete
</label>
[29] Fix | Delete
[30] Fix | Delete
<div class="advads-ad-positioning-spacing-direction <?php echo esc_attr( $input_id ); ?>" aria-hidden="true">
[31] Fix | Delete
<?php
[32] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- allow inline svg
[33] Fix | Delete
echo preg_replace( '/\s+/', ' ', file_get_contents( ADVADS_ABSPATH . 'modules/ad-positioning/assets/img/advads-bknd-ui-pos-margin.svg' ) );
[34] Fix | Delete
?>
[35] Fix | Delete
</div>
[36] Fix | Delete
<?php endforeach; ?>
[37] Fix | Delete
<div class="advads-ad-positioning-spacing-adcenter" aria-hidden="true">
[38] Fix | Delete
<?php esc_html_e( 'Ad', 'advanced-ads' ); ?>
[39] Fix | Delete
</div>
[40] Fix | Delete
<span class="advads-ad-positioning-spacing-legend"><?php echo esc_html_x( 'in px', 'Ad positioning spacing legend text', 'advanced-ads' ); ?></span>
[41] Fix | Delete
</div>
[42] Fix | Delete
</div>
[43] Fix | Delete
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function