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.../admin/views
File: placements-content-index.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Render content index option for placements.
[2] Fix | Delete
*
[3] Fix | Delete
* @var string $_placement_slug slug of the current placement.
[4] Fix | Delete
* @var array $_placement information of the current placement.
[5] Fix | Delete
* @var string $option_xpath xpath option.
[6] Fix | Delete
* @var string $option_tag tag option.
[7] Fix | Delete
* @var string $option_index index option.
[8] Fix | Delete
* @var array $positions positions option.
[9] Fix | Delete
*/
[10] Fix | Delete
?>
[11] Fix | Delete
<select name="advads[placements][<?php echo esc_attr( $_placement_slug ); ?>][options][position]">
[12] Fix | Delete
<?php foreach ( $positions as $_pos_key => $_pos ) : ?>
[13] Fix | Delete
<option value="<?php echo esc_attr( $_pos_key ); ?>"
[14] Fix | Delete
<?php
[15] Fix | Delete
if ( isset( $_placement['options']['position'] ) ) {
[16] Fix | Delete
selected( $_placement['options']['position'], $_pos_key );
[17] Fix | Delete
}
[18] Fix | Delete
?>
[19] Fix | Delete
>
[20] Fix | Delete
<?php echo esc_html( $_pos ); ?></option>
[21] Fix | Delete
<?php endforeach; ?>
[22] Fix | Delete
</select>
[23] Fix | Delete
[24] Fix | Delete
<input type="number" name="advads[placements][<?php echo esc_attr( $_placement_slug ); ?>][options][index]" value="<?php echo absint( $option_index ); ?>" min="1"/>.
[25] Fix | Delete
[26] Fix | Delete
<?php $tags = Advanced_Ads_Placements::tags_for_content_injection(); ?>
[27] Fix | Delete
<select class="advads-placements-content-tag" name="advads[placements][<?php echo esc_attr( $_placement_slug ); ?>][options][tag]">
[28] Fix | Delete
<?php foreach ( $tags as $_tag_key => $_tag ) : ?>
[29] Fix | Delete
<option value="<?php echo esc_attr( $_tag_key ); ?>"
[30] Fix | Delete
<?php
[31] Fix | Delete
if ( $option_tag ) {
[32] Fix | Delete
selected( $option_tag, $_tag_key ); }
[33] Fix | Delete
?>
[34] Fix | Delete
><?php echo esc_html( $_tag ); ?></option>
[35] Fix | Delete
<?php endforeach; ?>
[36] Fix | Delete
</select>
[37] Fix | Delete
[38] Fix | Delete
<div id="advads-frontend-element-<?php echo esc_attr( $_placement_slug ); ?>" class="advads-placements-content-custom-xpath<?php echo 'custom' !== $option_tag ? ' hidden' : ''; ?>">
[39] Fix | Delete
<input name="advads[placements][<?php echo esc_attr( $_placement_slug ); ?>][options][xpath]"
[40] Fix | Delete
class="advads-frontend-element "
[41] Fix | Delete
type="text"
[42] Fix | Delete
value="<?php echo esc_html( $option_xpath ); ?>"
[43] Fix | Delete
placeholder="<?php esc_html_e( 'use xpath, e.g. `p[not(parent::blockquote)]`', 'advanced-ads' ); ?>"/>
[44] Fix | Delete
<button style="display:none; color: red;" type="button" class="advads-deactivate-frontend-picker button "><?php echo esc_html_x( 'stop selection', 'frontend picker', 'advanced-ads' ); ?></button>
[45] Fix | Delete
<button type="button" class="advads-activate-frontend-picker button " data-placementid="<?php echo esc_attr( $_placement_slug ); ?>" data-pathtype="xpath" data-boundary="true"><?php esc_html_e( 'select position', 'advanced-ads' ); ?></button>
[46] Fix | Delete
</div>
[47] Fix | Delete
[48] Fix | Delete
<p><label><input type="checkbox" name="advads[placements][<?php echo esc_attr( $_placement_slug ); ?>][options][start_from_bottom]" value="1"
[49] Fix | Delete
<?php
[50] Fix | Delete
if ( isset( $_placement['options']['start_from_bottom'] ) ) {
[51] Fix | Delete
checked( $_placement['options']['start_from_bottom'], 1 ); }
[52] Fix | Delete
?>
[53] Fix | Delete
/><?php esc_html_e( 'start counting from bottom', 'advanced-ads' ); ?></label></p>
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function