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/portfoli.../includes
File: class-portfolio-technologies-widget.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Widget for portfolio Technologies
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[5] Fix | Delete
die();
[6] Fix | Delete
}
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Class for portfolio technologies widget
[10] Fix | Delete
*/
[11] Fix | Delete
class Portfolio_Technologies_Widget extends WP_Widget {
[12] Fix | Delete
/**
[13] Fix | Delete
* Constructor of class
[14] Fix | Delete
*/
[15] Fix | Delete
public function __construct() {
[16] Fix | Delete
parent::__construct(
[17] Fix | Delete
'portfolio_technologies_widget',
[18] Fix | Delete
__( 'Technologies', 'portfolio' ),
[19] Fix | Delete
array( 'description' => __( 'The tag cloud with your most used portfolio technologies.', 'portfolio' ) )
[20] Fix | Delete
);
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Function to displaying widget in front end
[25] Fix | Delete
*
[26] Fix | Delete
* @param array $args Widget args.
[27] Fix | Delete
* @param array $instance Widget data.
[28] Fix | Delete
*/
[29] Fix | Delete
public function widget( $args, $instance ) {
[30] Fix | Delete
$widget_title = isset( $instance['widget_title'] ) ? $instance['widget_title'] : null;
[31] Fix | Delete
$widget_title = apply_filters( 'widget_title', $widget_title, $instance, $this->id_base );
[32] Fix | Delete
echo wp_kses_post( $args['before_widget'] );
[33] Fix | Delete
if ( $widget_title ) {
[34] Fix | Delete
echo wp_kses_post( $args['before_title'] . $widget_title . $args['after_title'] );
[35] Fix | Delete
}
[36] Fix | Delete
echo '<div class="tagcloud">';
[37] Fix | Delete
wp_tag_cloud(
[38] Fix | Delete
apply_filters(
[39] Fix | Delete
'widget_tag_cloud_args',
[40] Fix | Delete
array(
[41] Fix | Delete
'taxonomy' => 'portfolio_technologies',
[42] Fix | Delete
'number' => 0,
[43] Fix | Delete
)
[44] Fix | Delete
)
[45] Fix | Delete
);
[46] Fix | Delete
echo "</div>\n";
[47] Fix | Delete
echo wp_kses_post( $args['after_widget'] );
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
/**
[51] Fix | Delete
* Function to save widget settings
[52] Fix | Delete
*
[53] Fix | Delete
* @param array $new_instance New widget data.
[54] Fix | Delete
* @param array $old_instance Old widget data.
[55] Fix | Delete
*/
[56] Fix | Delete
public function update( $new_instance, $old_instance ) {
[57] Fix | Delete
$instance = array();
[58] Fix | Delete
$instance['widget_title'] = ( ! empty( $new_instance['widget_title'] ) ) ? wp_strip_all_tags( $new_instance['widget_title'] ) : null;
[59] Fix | Delete
return $instance;
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
/**
[63] Fix | Delete
* Function to displaying widget settings in back end
[64] Fix | Delete
*
[65] Fix | Delete
* @param array $instance Widget data.
[66] Fix | Delete
*/
[67] Fix | Delete
public function form( $instance ) {
[68] Fix | Delete
$widget_title = isset( $instance['widget_title'] ) ? stripslashes( esc_html( $instance['widget_title'] ) ) : null;
[69] Fix | Delete
?>
[70] Fix | Delete
<p>
[71] Fix | Delete
<label for="<?php echo esc_attr( $this->get_field_id( 'widget_title' ) ); ?>"><?php esc_html_e( 'Title', 'portfolio' ); ?>:</label>
[72] Fix | Delete
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'widget_title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'widget_title' ) ); ?>" type="text" value="<?php echo esc_attr( $widget_title ); ?>"/>
[73] Fix | Delete
</p>
[74] Fix | Delete
<?php
[75] Fix | Delete
}
[76] Fix | Delete
}
[77] Fix | Delete
[78] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function