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/wp-conte.../plugins/network-.../views/post
File: title.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Created by PhpStorm.
[2] Fix | Delete
* User: Admin
[3] Fix | Delete
* Date: 04.04.2017
[4] Fix | Delete
* Time: 8:30
[5] Fix | Delete
*/
[6] Fix | Delete
use NetworkPosts\Components\NetsPostsHtmlHelper;
[7] Fix | Delete
if ( ! defined( 'POST_VIEWS_PATH' ) ) {
[8] Fix | Delete
die();
[9] Fix | Delete
}
[10] Fix | Delete
if ( $shortcode_mgr->get_boolean( 'titles_only' ) ) {
[11] Fix | Delete
$title_class = 'netsposts-post-titles-only';
[12] Fix | Delete
} else {
[13] Fix | Delete
$title_class = 'netsposts-posttitle';
[14] Fix | Delete
}
[15] Fix | Delete
$temp = sanitize_quotes( $shortcode_mgr->get( 'wrap_title_start' ) );
[16] Fix | Delete
$html .= htmlspecialchars_decode( $temp );
[17] Fix | Delete
/*
[18] Fix | Delete
* This code creates title link
[19] Fix | Delete
*/
[20] Fix | Delete
$title_color = $shortcode_mgr->get( 'title_color' );
[21] Fix | Delete
if( $shortcode_mgr->has_value( 'title_length' ) ){
[22] Fix | Delete
$title_length = intval( $shortcode_mgr->get( 'title_length' ) );
[23] Fix | Delete
$title = netsposts_strip_text_words( $the_post['post_title'], $title_length );
[24] Fix | Delete
} else {
[25] Fix | Delete
$title_length_chars = intval( $shortcode_mgr->get( 'title_length_characters' ) );
[26] Fix | Delete
$title = shorten_text_exact( $the_post['post_title'], $title_length_chars );
[27] Fix | Delete
}
[28] Fix | Delete
$title .= esc_html( $shortcode_mgr->get( 'title_after' ) );
[29] Fix | Delete
$title_style = 'color: ' . $title_color . ';';
[30] Fix | Delete
if ( $shortcode_mgr->get_boolean( 'include_link_title' ) ) {
[31] Fix | Delete
if ( !isset( $exclude_title_links) || ! array_has_value( $the_post['ID'], $exclude_title_links ) ) {
[32] Fix | Delete
$html .= NetsPostsHtmlHelper::create_title_link( array(
[33] Fix | Delete
'url' => $the_post['guid'],
[34] Fix | Delete
'text' => $title,
[35] Fix | Delete
'title' => $the_post['guid'],
[36] Fix | Delete
'class' => 'netsposts-posttitle-link',
[37] Fix | Delete
'open_link_in_new_tab' => $open_link_in_new_tab
[38] Fix | Delete
) );
[39] Fix | Delete
} else {
[40] Fix | Delete
$html .= NetsPostsHtmlHelper::create_span($title, $title_class, $title_style );
[41] Fix | Delete
}
[42] Fix | Delete
} else {
[43] Fix | Delete
$html .= NetsPostsHtmlHelper::create_span($title, $title_class, $title_style );
[44] Fix | Delete
}
[45] Fix | Delete
$html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_title_end' ) );
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function