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/meks-eas.../inc
File: class-ads-widget.php
<?php
[0] Fix | Delete
/*-----------------------------------------------------------------------------------*/
[1] Fix | Delete
/* Ads Widget Class
[2] Fix | Delete
/*-----------------------------------------------------------------------------------*/
[3] Fix | Delete
[4] Fix | Delete
class MKS_Ads_Widget extends WP_Widget {
[5] Fix | Delete
[6] Fix | Delete
var $defaults;
[7] Fix | Delete
[8] Fix | Delete
function __construct() {
[9] Fix | Delete
$widget_ops = array( 'classname' => 'mks_ads_widget', 'description' => __('You can place advertisement links with images here', 'meks-easy-ads-widget') );
[10] Fix | Delete
$control_ops = array( 'id_base' => 'mks_ads_widget' );
[11] Fix | Delete
parent::__construct( 'mks_ads_widget', __('Meks Ads Widget', 'meks-easy-ads-widget'), $widget_ops, $control_ops );
[12] Fix | Delete
[13] Fix | Delete
add_action( 'wp_enqueue_scripts', array($this,'enqueue_scripts'));
[14] Fix | Delete
add_action( 'admin_enqueue_scripts', array($this,'enqueue_admin_scripts'));
[15] Fix | Delete
add_filter( 'use_widgets_block_editor', '__return_false' );
[16] Fix | Delete
[17] Fix | Delete
$this->defaults = array(
[18] Fix | Delete
'title' => __('Advertisement', 'meks-easy-ads-widget'),
[19] Fix | Delete
'size' => 'large',
[20] Fix | Delete
'num_per_view' => 1,
[21] Fix | Delete
'rotate' => 0,
[22] Fix | Delete
'randomize' => 0,
[23] Fix | Delete
'ad_width' => '',
[24] Fix | Delete
'ad_height' => '',
[25] Fix | Delete
'ads' => array(),
[26] Fix | Delete
'nofollow' => 0,
[27] Fix | Delete
'speed' => 5,
[28] Fix | Delete
'no_target_blank' => 0
[29] Fix | Delete
);
[30] Fix | Delete
[31] Fix | Delete
[32] Fix | Delete
[33] Fix | Delete
//Allow themes or plugins to modify default parameters
[34] Fix | Delete
$this->defaults = apply_filters('mks_ads_widget_modify_defaults', $this->defaults);
[35] Fix | Delete
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
function enqueue_scripts(){
[39] Fix | Delete
wp_register_style( 'meks-ads-widget', MKS_ADS_WIDGET_URL.'css/style.css', false, MKS_ADS_WIDGET_VER );
[40] Fix | Delete
wp_enqueue_style( 'meks-ads-widget' );
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
function enqueue_admin_scripts(){
[44] Fix | Delete
wp_enqueue_media();
[45] Fix | Delete
wp_enqueue_style( 'meks-ads-widget-admin', MKS_ADS_WIDGET_URL.'css/admin-style.css', false, MKS_ADS_WIDGET_VER );
[46] Fix | Delete
wp_enqueue_script( 'meks-ads-widget-js', MKS_ADS_WIDGET_URL.'js/main.js', array( 'jquery', 'jquery-ui-sortable', 'jquery-ui-tabs'), MKS_ADS_WIDGET_VER );
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
[50] Fix | Delete
function widget( $args, $instance ) {
[51] Fix | Delete
[52] Fix | Delete
$instance = wp_parse_args( (array) $instance, $this->defaults );
[53] Fix | Delete
[54] Fix | Delete
extract( $args );
[55] Fix | Delete
[56] Fix | Delete
$title = apply_filters('widget_title', $instance['title'] );
[57] Fix | Delete
[58] Fix | Delete
echo $before_widget;
[59] Fix | Delete
if ( !empty($title) ) {
[60] Fix | Delete
echo $before_title . $title . $after_title;
[61] Fix | Delete
}
[62] Fix | Delete
?>
[63] Fix | Delete
[64] Fix | Delete
<?php if(!empty($instance['ads'])) : ?>
[65] Fix | Delete
[66] Fix | Delete
<?php
[67] Fix | Delete
[68] Fix | Delete
if($instance['randomize']){
[69] Fix | Delete
shuffle($instance['ads']);
[70] Fix | Delete
}
[71] Fix | Delete
if(!$instance['rotate']){
[72] Fix | Delete
$instance['ads'] = array_slice($instance['ads'],0,$instance['num_per_view']);
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
$show_ind = 0;
[76] Fix | Delete
[77] Fix | Delete
if( $instance['size'] == 'custom' ){
[78] Fix | Delete
$height = $instance['ad_height'] ? $instance['ad_height'].'px' : 'auto';
[79] Fix | Delete
$ad_size = 'style="max-width:'.$instance['ad_width'].'px; width:100%; height:'.$height.';" width="'.$instance['ad_width'].'" height="'.$instance['ad_height'].'"';
[80] Fix | Delete
$ad_code_size = 'style="width:'.$instance['ad_width'].'px; height:'.$height.';"';
[81] Fix | Delete
} else if($instance['size'] == 'large'){
[82] Fix | Delete
$ad_size = 'style="width:300px; height:250px;" width="300" height="250"';
[83] Fix | Delete
$ad_code_size = 'style="width:300px; height:250px;"';
[84] Fix | Delete
} else if($instance['size'] == 'small'){
[85] Fix | Delete
$ad_size = 'style="width:125px; height:125px;" width="125" height="125"';
[86] Fix | Delete
$ad_code_size = 'style="width:125px; height:125px;"';
[87] Fix | Delete
}
[88] Fix | Delete
[89] Fix | Delete
$nofollow = $instance['nofollow'] ? 'rel="nofollow"' : '';
[90] Fix | Delete
$target = $instance['no_target_blank'] ? '' : 'target="_blank"';
[91] Fix | Delete
[92] Fix | Delete
[93] Fix | Delete
?>
[94] Fix | Delete
[95] Fix | Delete
[96] Fix | Delete
<ul class="mks_adswidget_ul <?php echo $instance['size'];?>">
[97] Fix | Delete
<?php foreach($instance['ads'] as $ind => $ad) : ?>
[98] Fix | Delete
<?php $ad['type'] = !isset( $ad['type'] ) ? 'image' : $ad['type']; ?>
[99] Fix | Delete
<?php if( $ad['type'] === 'image' && !empty($ad['img']) ) : ?>
[100] Fix | Delete
<li data-showind="<?php echo $show_ind; ?>">
[101] Fix | Delete
<a href="<?php echo esc_url($ad['link']);?>" <?php echo $target; ?> <?php echo $nofollow; ?>>
[102] Fix | Delete
<img loading="lazy" src="<?php echo esc_url($ad['img']);?>" alt="<?php echo esc_attr(basename($ad['img'])); ?>" <?php echo $ad_size; ?>/>
[103] Fix | Delete
</a>
[104] Fix | Delete
</li>
[105] Fix | Delete
<?php else: ?>
[106] Fix | Delete
<?php if( $ad['type'] === 'code' && !empty( $ad['code'] ) ) : ?>
[107] Fix | Delete
<li data-showind="<?php echo $show_ind; ?>">
[108] Fix | Delete
<div <?php echo $ad_code_size; ?>>
[109] Fix | Delete
<?php echo do_shortcode($ad['code']); ?>
[110] Fix | Delete
</div>
[111] Fix | Delete
</li>
[112] Fix | Delete
<?php endif; ?>
[113] Fix | Delete
<?php endif; ?>
[114] Fix | Delete
<?php
[115] Fix | Delete
if( !(($ind+1) % $instance['num_per_view'])){
[116] Fix | Delete
$show_ind++;
[117] Fix | Delete
}
[118] Fix | Delete
?>
[119] Fix | Delete
<?php endforeach; ?>
[120] Fix | Delete
</ul>
[121] Fix | Delete
[122] Fix | Delete
<?php
[123] Fix | Delete
[124] Fix | Delete
if(count($instance['ads']) % $instance['num_per_view']){
[125] Fix | Delete
$show_ind++;
[126] Fix | Delete
}
[127] Fix | Delete
[128] Fix | Delete
?>
[129] Fix | Delete
[130] Fix | Delete
<?php if($instance['rotate']) :
[131] Fix | Delete
$widget_id = $this->id;
[132] Fix | Delete
$slide_func_id = str_replace("-","",$this->id);
[133] Fix | Delete
$li_ind = 'li_ind_'.$slide_func_id;
[134] Fix | Delete
?>
[135] Fix | Delete
[136] Fix | Delete
<script type="text/javascript">
[137] Fix | Delete
/* <![CDATA[ */
[138] Fix | Delete
var <?php echo $li_ind; ?> = 0;
[139] Fix | Delete
(function($) {
[140] Fix | Delete
[141] Fix | Delete
$(document).ready(function(){
[142] Fix | Delete
slide_ads_<?php echo $slide_func_id; ?>();
[143] Fix | Delete
});
[144] Fix | Delete
[145] Fix | Delete
})(jQuery);
[146] Fix | Delete
[147] Fix | Delete
function slide_ads_<?php echo str_replace("-","",$this->id); ?>(){
[148] Fix | Delete
[149] Fix | Delete
jQuery("#<?php echo $widget_id; ?> ul li").hide();
[150] Fix | Delete
jQuery("#<?php echo $widget_id; ?> ul li[data-showind='"+<?php echo $li_ind; ?>+"']").fadeIn(300);
[151] Fix | Delete
<?php echo $li_ind; ?>++;
[152] Fix | Delete
[153] Fix | Delete
if(<?php echo $li_ind; ?> > <?php echo ($show_ind - 1);?>){
[154] Fix | Delete
<?php echo $li_ind; ?> = 0;
[155] Fix | Delete
}
[156] Fix | Delete
[157] Fix | Delete
setTimeout('slide_ads_<?php echo $slide_func_id; ?>()', <?php echo absint( $instance['speed'] * 1000 ); ?> );
[158] Fix | Delete
}
[159] Fix | Delete
/* ]]> */
[160] Fix | Delete
</script>
[161] Fix | Delete
[162] Fix | Delete
<?php endif; ?>
[163] Fix | Delete
[164] Fix | Delete
<?php endif; ?>
[165] Fix | Delete
[166] Fix | Delete
<?php
[167] Fix | Delete
[168] Fix | Delete
echo $after_widget;
[169] Fix | Delete
}
[170] Fix | Delete
[171] Fix | Delete
[172] Fix | Delete
function update( $new_instance, $old_instance ) {
[173] Fix | Delete
[174] Fix | Delete
$instance = $old_instance;
[175] Fix | Delete
$instance['title'] = strip_tags( $new_instance['title'] );
[176] Fix | Delete
$instance['size'] = $new_instance['size'];
[177] Fix | Delete
$instance['num_per_view'] = absint($new_instance['num_per_view']);
[178] Fix | Delete
$instance['rotate'] = isset($new_instance['rotate']) ? 1 : 0;
[179] Fix | Delete
$instance['randomize'] = isset($new_instance['randomize']) ? 1 : 0;
[180] Fix | Delete
$instance['nofollow'] = isset($new_instance['nofollow']) ? 1 : 0;
[181] Fix | Delete
$instance['no_target_blank'] = isset($new_instance['no_target_blank']) ? 1 : 0;
[182] Fix | Delete
$instance['speed'] = absint($new_instance['speed']);
[183] Fix | Delete
$instance['ad_width'] = absint($new_instance['ad_width']);
[184] Fix | Delete
$instance['ad_height'] = absint($new_instance['ad_height']);
[185] Fix | Delete
$instance['ads'] = array();
[186] Fix | Delete
[187] Fix | Delete
if(!empty($new_instance['ad_img']) && !empty($new_instance['ad_link']) && !empty($new_instance['ad_code']) ){
[188] Fix | Delete
for($i=0; $i < (count($new_instance['ad_img']) - 1); $i++){
[189] Fix | Delete
$ad = array();
[190] Fix | Delete
$ad['link'] = !empty($new_instance['ad_link']) ? esc_url( $new_instance['ad_link'][$i] ) : '';
[191] Fix | Delete
$ad['img'] = !empty($new_instance['ad_img']) ? esc_url( $new_instance['ad_img'][$i] ) : '';
[192] Fix | Delete
$ad['code'] = !empty($new_instance['ad_code']) ? wptexturize($new_instance['ad_code'][$i]) : '';
[193] Fix | Delete
$ad['type'] = !empty($new_instance['ad_type']) ? $new_instance['ad_type'][$i] : '';
[194] Fix | Delete
$instance['ads'][] = $ad;
[195] Fix | Delete
}
[196] Fix | Delete
}
[197] Fix | Delete
[198] Fix | Delete
return $instance;
[199] Fix | Delete
}
[200] Fix | Delete
[201] Fix | Delete
function form( $instance ) {
[202] Fix | Delete
[203] Fix | Delete
$instance = wp_parse_args( (array) $instance, $this->defaults ); ?>
[204] Fix | Delete
[205] Fix | Delete
<p>
[206] Fix | Delete
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title', 'meks-easy-ads-widget'); ?>:</label>
[207] Fix | Delete
<input id="<?php echo $this->get_field_id( 'title' ); ?>" type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" class="widefat" />
[208] Fix | Delete
</p>
[209] Fix | Delete
[210] Fix | Delete
<h4><?php _e('Ads Size', 'meks-easy-ads-widget'); ?>:</h4>
[211] Fix | Delete
<p>
[212] Fix | Delete
<input type="radio" name="<?php echo $this->get_field_name( 'size' ); ?>" class="mks-ad-size" value="small" <?php checked($instance['size'],'small'); ?>/>
[213] Fix | Delete
<label><?php _e('Small (125x125 px)', 'meks-easy-ads-widget'); ?></label><br/>
[214] Fix | Delete
<input type="radio" name="<?php echo $this->get_field_name( 'size' ); ?>" class="mks-ad-size" value="large" <?php checked($instance['size'],'large'); ?>/>
[215] Fix | Delete
<label><?php _e('Large (300x250 px)', 'meks-easy-ads-widget'); ?></label><br/>
[216] Fix | Delete
<input type="radio" name="<?php echo $this->get_field_name( 'size' ); ?>" class="mks-ad-size" value="custom" <?php checked($instance['size'],'custom'); ?>/>
[217] Fix | Delete
<label><?php _e('Custom', 'meks-easy-ads-widget'); ?></label>
[218] Fix | Delete
</p>
[219] Fix | Delete
<?php
[220] Fix | Delete
$custom_display = $instance['size'] == 'custom' ? 'display:block;' : 'display:none';
[221] Fix | Delete
?>
[222] Fix | Delete
<p style="<?php echo $custom_display; ?>">
[223] Fix | Delete
<?php _e('Width', 'meks-easy-ads-widget'); ?>:
[224] Fix | Delete
<input id="<?php echo $this->get_field_id( 'ad_width' ); ?>" type="text" name="<?php echo $this->get_field_name( 'ad_width' ); ?>" value="<?php echo absint($instance['ad_width']); ?>" class="small-text" />px
[225] Fix | Delete
<?php _e('Height', 'meks-easy-ads-widget'); ?>:
[226] Fix | Delete
<input id="<?php echo $this->get_field_id( 'ad_height' ); ?>" type="text" name="<?php echo $this->get_field_name( 'ad_height' ); ?>" value="<?php echo absint($instance['ad_height']); ?>" class="small-text" />px
[227] Fix | Delete
</p>
[228] Fix | Delete
[229] Fix | Delete
<h4><?php _e('Options', 'meks-easy-ads-widget'); ?>:</h4>
[230] Fix | Delete
<p>
[231] Fix | Delete
<input id="<?php echo $this->get_field_id( 'rotate' ); ?>" class="mks-ad-rotate" type="checkbox" name="<?php echo $this->get_field_name( 'rotate' ); ?>" value="1" <?php checked(1,$instance['rotate']);?> />
[232] Fix | Delete
<label for="<?php echo $this->get_field_id( 'rotate' ); ?>"><?php _e('Rotate (slide) Ads', 'meks-easy-ads-widget'); ?>? </label>
[233] Fix | Delete
</p>
[234] Fix | Delete
[235] Fix | Delete
<?php $speed_display = !empty($instance['rotate']) ? 'display:block;' : 'display:none'; ?>
[236] Fix | Delete
<p style="<?php echo esc_attr( $speed_display ); ?>">
[237] Fix | Delete
<?php _e('Rotation speed', 'meks-easy-ads-widget'); ?>:
[238] Fix | Delete
<input id="<?php echo $this->get_field_id( 'speed' ); ?>" type="text" name="<?php echo $this->get_field_name( 'speed' ); ?>" value="<?php echo absint($instance['speed']); ?>" class="small-text" />
[239] Fix | Delete
<small class="howto"><?php _e('Number of seconds between ads rotation', 'meks-easy-ads-widget'); ?></small>
[240] Fix | Delete
</p>
[241] Fix | Delete
[242] Fix | Delete
<p>
[243] Fix | Delete
<input id="<?php echo $this->get_field_id( 'randomize' ); ?>" type="checkbox" name="<?php echo $this->get_field_name( 'randomize' ); ?>" value="1" <?php checked(1,$instance['randomize']);?> />
[244] Fix | Delete
<label for="<?php echo $this->get_field_id( 'randomize' ); ?>"><?php _e('Randomize Ads', 'meks-easy-ads-widget'); ?>? </label>
[245] Fix | Delete
</p>
[246] Fix | Delete
[247] Fix | Delete
<p>
[248] Fix | Delete
<input id="<?php echo $this->get_field_id( 'nofollow' ); ?>" type="checkbox" name="<?php echo $this->get_field_name( 'nofollow' ); ?>" value="1" <?php checked(1,$instance['nofollow']);?> />
[249] Fix | Delete
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Add "nofollow" to ad links', 'meks-easy-ads-widget'); ?>? </label>
[250] Fix | Delete
</p>
[251] Fix | Delete
[252] Fix | Delete
<p>
[253] Fix | Delete
<input id="<?php echo $this->get_field_id( 'no_target_blank' ); ?>" type="checkbox" name="<?php echo $this->get_field_name( 'no_target_blank' ); ?>" value="1" <?php checked(1,$instance['no_target_blank']);?> />
[254] Fix | Delete
<label for="<?php echo $this->get_field_id( 'no_target_blank' ); ?>"><?php _e('Do not open links in new window', 'meks-easy-ads-widget'); ?>? </label>
[255] Fix | Delete
</p>
[256] Fix | Delete
[257] Fix | Delete
<p>
[258] Fix | Delete
<label for="<?php echo $this->get_field_id( 'num_per_view' ); ?>"><?php _e('Number of Ads per view', 'meks-easy-ads-widget'); ?>: </label>
[259] Fix | Delete
<input id="<?php echo $this->get_field_id( 'num_per_view' ); ?>" type="text" name="<?php echo $this->get_field_name( 'num_per_view' ); ?>" value="<?php echo absint($instance['num_per_view']); ?>" class="small-text" />
[260] Fix | Delete
<small class="howto"><?php _e('Means how many ads to display per page load or slide', 'meks-easy-ads-widget'); ?></small>
[261] Fix | Delete
</p>
[262] Fix | Delete
[263] Fix | Delete
[264] Fix | Delete
<h4><?php _e('Ads', 'meks-easy-ads-widget'); ?>:</h4>
[265] Fix | Delete
<p>
[266] Fix | Delete
<ul class="mks-ads-container mks-ads-sortable">
[267] Fix | Delete
<?php foreach( $instance['ads'] as $ad ) : ?>
[268] Fix | Delete
<?php $this->generate_ad_field( $ad ); ?>
[269] Fix | Delete
<?php endforeach; ?>
[270] Fix | Delete
</ul>
[271] Fix | Delete
</p>
[272] Fix | Delete
[273] Fix | Delete
<p>
[274] Fix | Delete
<a href="#" class="mks-ads-add button"><?php _e('Add New', 'meks-easy-ads-widget'); ?></a>
[275] Fix | Delete
</p>
[276] Fix | Delete
[277] Fix | Delete
<div class="mks-ads-clone" style="display:none">
[278] Fix | Delete
<?php $this->generate_ad_field(); ?>
[279] Fix | Delete
</div>
[280] Fix | Delete
[281] Fix | Delete
<?php
[282] Fix | Delete
}
[283] Fix | Delete
[284] Fix | Delete
function generate_ad_field( $ad = array() ){
[285] Fix | Delete
[286] Fix | Delete
$ad = wp_parse_args( $ad, array('link' => '', 'img' => '', 'code' => '', 'type' => 'image' ) );
[287] Fix | Delete
$tab_1 = $ad['type'] === 'image' ? "active" : '';
[288] Fix | Delete
$tab_2 = $ad['type'] === 'code' ? "active" : '';
[289] Fix | Delete
?>
[290] Fix | Delete
[291] Fix | Delete
<li>
[292] Fix | Delete
<span class="mks-remove-ad dashicons dashicons-no-alt"></span>
[293] Fix | Delete
<ul class="mks-tabs">
[294] Fix | Delete
<li class="mks-tab-link <?php echo $tab_1; ?>" data-tab="tab-1">Image</li>
[295] Fix | Delete
<li class="mks-tab-link <?php echo $tab_2; ?>" data-tab="tab-2">Code</li>
[296] Fix | Delete
</ul>
[297] Fix | Delete
<div class="mks-tabs-wrapper">
[298] Fix | Delete
<div id="tab-1" class="mks-tab-content <?php echo $tab_1; ?>" data-type="image">
[299] Fix | Delete
<label><?php _e('Link URL', 'meks-easy-ads-widget'); ?>:</label>
[300] Fix | Delete
<input type="text" name="<?php echo $this->get_field_name( 'ad_link' ); ?>[]" value="<?php echo esc_url($ad['link']); ?>" class="widefat" />
[301] Fix | Delete
<label><?php _e('Image URL', 'meks-easy-ads-widget'); ?>:</label>
[302] Fix | Delete
<input type="text" name="<?php echo $this->get_field_name( 'ad_img' ); ?>[]" value="<?php echo esc_url($ad['img']); ?>" class="mks-ads-field-width"/>
[303] Fix | Delete
<a href="#" class="mks-ads-select-image-btn button"><?php _e('Select image', 'meks-easy-ads-widget'); ?></a>
[304] Fix | Delete
<small class="howto"><?php _e('Specify URLs to your image and link', 'meks-easy-ads-widget'); ?></small>
[305] Fix | Delete
</div>
[306] Fix | Delete
<div id="tab-2" class="mks-tab-content <?php echo $tab_2; ?>" data-type="code">
[307] Fix | Delete
<label class="mks-ads-code-label"><?php _e('Ad Code', 'meks-easy-ads-widget'); ?>:</label>
[308] Fix | Delete
<textarea name="<?php echo $this->get_field_name( 'ad_code' ); ?>[]" rows="4" cols="50" class="widefat"><?php echo $ad['code']; ?></textarea>
[309] Fix | Delete
<small class="howto"><?php _e('Paste your ad code here. Note: Scripts, HTML and shortcodes are supported.', 'meks-easy-ads-widget'); ?></small>
[310] Fix | Delete
</div>
[311] Fix | Delete
<input type="hidden" id="tab-type" type="text" name="<?php echo $this->get_field_name( 'ad_type' ); ?>[]" value="<?php echo $ad['type']; ?>"/>
[312] Fix | Delete
</div>
[313] Fix | Delete
</li>
[314] Fix | Delete
[315] Fix | Delete
<?php
[316] Fix | Delete
}
[317] Fix | Delete
[318] Fix | Delete
}
[319] Fix | Delete
[320] Fix | Delete
[321] Fix | Delete
add_action( 'plugins_loaded', 'mks_load_ads_widget_text_domain' );
[322] Fix | Delete
[323] Fix | Delete
/* Load text domain */
[324] Fix | Delete
function mks_load_ads_widget_text_domain() {
[325] Fix | Delete
load_plugin_textdomain( 'meks-easy-ads-widget', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
[326] Fix | Delete
}
[327] Fix | Delete
[328] Fix | Delete
[329] Fix | Delete
[330] Fix | Delete
[331] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function