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/themify-.../template.../partials
File: date.php
<?php if (!empty($args['val']['icon'])): ?>
[0] Fix | Delete
<span><?php echo themify_get_icon($args['val']['icon'])?></span>
[1] Fix | Delete
<?php endif; ?>
[2] Fix | Delete
<?php
[3] Fix | Delete
$args['val'] = empty($args['val']) ? array() : $args['val'];
[4] Fix | Delete
$format =Tbp_Utils::getDateFormat($args['val']);
[5] Fix | Delete
$isDate=$args['type']!=='time';
[6] Fix | Delete
$args=null;
[7] Fix | Delete
/* default format value */
[8] Fix | Delete
if ( empty( $format ) ) {
[9] Fix | Delete
$format = $isDate===true?get_option('date_format'):get_option('time_format');
[10] Fix | Delete
}
[11] Fix | Delete
$time = get_the_time('c');
[12] Fix | Delete
$format=str_split( $format );
[13] Fix | Delete
?>
[14] Fix | Delete
<time itemprop="datePublished" content="<?php echo $time?>" class="entry-date updated" datetime="<?php echo $time; ?>">
[15] Fix | Delete
<?php foreach ( $format as $format_character ):?>
[16] Fix | Delete
<?php if ( in_array( $format_character, array( 'd', 'D', 'j', 'l', 'N', 'S', 'w', 'z' ),true ) ):?>
[17] Fix | Delete
<span class="tbp_post_day"><?php the_time( $format_character )?></span>
[18] Fix | Delete
<?php elseif ( $format_character==='w'):?>
[19] Fix | Delete
<span class="tbp_post_week"><?php the_time( $format_character )?></span>
[20] Fix | Delete
<?php elseif ( in_array( $format_character, array( 'F', 'm', 'M', 'n', 't' ),true ) ):?>
[21] Fix | Delete
<span class="tbp_post_month"><?php the_time( $format_character )?></span>
[22] Fix | Delete
<?php elseif ( in_array( $format_character, array( 'L', 'o', 'Y', 'y' ),true) ):?>
[23] Fix | Delete
<span class="tbp_post_year"><?php the_time( $format_character )?></span>
[24] Fix | Delete
<?php elseif ( in_array( $format_character, array( 'a', 'A', 'B', 'g', 'G', 'h', 'H', 'i', 's', 'u', 'v' ),true ) ):?>
[25] Fix | Delete
<span class="tbp_post_time"><?php the_time( $format_character )?></span>
[26] Fix | Delete
<?php elseif ( in_array( $format_character, array( 'e', 'I', 'O', 'P', 'T', 'Z' ),true ) ):?>
[27] Fix | Delete
<span class="tbp_post_timezone"><?php the_time( $format_character )?></span>
[28] Fix | Delete
<?php elseif ( in_array( $format_character, array( 'c', 'r', 'U' ),true ) ):?>
[29] Fix | Delete
<span class="tbp_post_datetime"><?php the_time( $format_character )?></span>
[30] Fix | Delete
<?php else:?>
[31] Fix | Delete
<?php echo $format_character;?>
[32] Fix | Delete
<?php endif;?>
[33] Fix | Delete
<?php endforeach;?>
[34] Fix | Delete
<?php if ( $isDate === true ) : ?>
[35] Fix | Delete
<meta itemprop="dateModified" content="<?php echo get_the_modified_time('c') ?>">
[36] Fix | Delete
<?php endif; ?>
[37] Fix | Delete
</time>
[38] Fix | Delete
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function