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: ad-main-metabox.php
<?php $types = Advanced_Ads::get_instance()->ad_types; ?>
[0] Fix | Delete
<?php if ( empty( $types ) ) : ?>
[1] Fix | Delete
<p><?php esc_html_e( 'No ad types defined', 'advanced-ads' ); ?></p>
[2] Fix | Delete
<?php else : ?>
[3] Fix | Delete
<ul id="advanced-ad-type">
[4] Fix | Delete
<?php
[5] Fix | Delete
// Choose first type if none set.
[6] Fix | Delete
$ad_type = ( isset( $ad->type ) ) ? $ad->type : current( $types )->ID;
[7] Fix | Delete
foreach ( $types as $_type ) :
[8] Fix | Delete
$ad_type_title = empty( $_type->title ) ? $_type->ID : $_type->title;
[9] Fix | Delete
if ( isset( $_type->is_upgrade ) && $_type->is_upgrade ) :
[10] Fix | Delete
// Ad types that are available through an upgrade.
[11] Fix | Delete
?>
[12] Fix | Delete
<li class="advanced-ads-type-list-<?php echo esc_attr( $_type->ID ); ?>">
[13] Fix | Delete
<input type="radio" disabled="disabled"/>
[14] Fix | Delete
<label><?php echo esc_html( $ad_type_title ); ?></label>
[15] Fix | Delete
<?php
[16] Fix | Delete
if ( ! empty( $_type->description ) ) :
[17] Fix | Delete
?>
[18] Fix | Delete
<span class="advads-help"><span class="advads-tooltip">
[19] Fix | Delete
<?php
[20] Fix | Delete
echo esc_html( $_type->description );
[21] Fix | Delete
?>
[22] Fix | Delete
</span></span>
[23] Fix | Delete
<?php
[24] Fix | Delete
// the URL needs to be placed outside the tooltip
[25] Fix | Delete
if ( ! empty( $_type->upgrade_url ) ) :
[26] Fix | Delete
echo ' ';
[27] Fix | Delete
Advanced_Ads_Admin_Upgrades::upgrade_link( __( 'Manual', 'advanced-ads' ), $_type->upgrade_url, 'upgrade-ad-type-' . $_type->ID );
[28] Fix | Delete
endif;
[29] Fix | Delete
endif;
[30] Fix | Delete
?>
[31] Fix | Delete
</li>
[32] Fix | Delete
<?php
[33] Fix | Delete
else :
[34] Fix | Delete
?>
[35] Fix | Delete
<li class="advanced-ads-type-list-<?php echo esc_attr( $_type->ID ); ?>">
[36] Fix | Delete
<input type="radio" name="advanced_ad[type]" id="advanced-ad-type-<?php echo esc_attr( $_type->ID ); ?>" value="<?php echo esc_attr( $_type->ID ); ?>" <?php checked( $ad_type, $_type->ID ); ?>/>
[37] Fix | Delete
<label for="advanced-ad-type-<?php echo esc_attr( $_type->ID ); ?>"><?php echo esc_html( $ad_type_title ); ?></label>
[38] Fix | Delete
<?php
[39] Fix | Delete
if ( ! empty( $_type->description ) ) :
[40] Fix | Delete
?>
[41] Fix | Delete
<span class="advads-help"><span class="advads-tooltip"><?php echo esc_html( $_type->description ); ?></span></span><?php endif; ?>
[42] Fix | Delete
</li>
[43] Fix | Delete
<?php
[44] Fix | Delete
endif;
[45] Fix | Delete
endforeach;
[46] Fix | Delete
?>
[47] Fix | Delete
</ul>
[48] Fix | Delete
<?php endif; ?>
[49] Fix | Delete
<script>
[50] Fix | Delete
jQuery( document ).on('change', '#advanced-ad-type input', function () {
[51] Fix | Delete
AdvancedAdsAdmin.AdImporter.onChangedAdType();
[52] Fix | Delete
advads_update_ad_type_headline();
[53] Fix | Delete
});
[54] Fix | Delete
[55] Fix | Delete
// dynamically move ad type to the meta box title
[56] Fix | Delete
advads_main_metabox_title = jQuery('#ad-main-box h2').text();
[57] Fix | Delete
function advads_update_ad_type_headline(){
[58] Fix | Delete
var advads_selected_type = jQuery('#advanced-ad-type input:checked + label').text();
[59] Fix | Delete
var advads_selected_id = jQuery('#advanced-ad-type input:checked').attr('id');
[60] Fix | Delete
jQuery('#ad-main-box h2').html( advads_main_metabox_title + ': ' + advads_selected_type );
[61] Fix | Delete
}
[62] Fix | Delete
advads_update_ad_type_headline();
[63] Fix | Delete
</script>
[64] Fix | Delete
[65] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function