: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
function lcw_load_upcomming_matches( $matches ){
$live_score = new LCW_Live_Score();
<div class="lcw-fixtures-full">
<div class="lcw-fixtures--sec">
foreach ($matches as $match) {
$home_score = isset( $match->scores->homeScore ) ? $match->scores->homeScore.'(' : '';
$awayOvers = isset( $match->scores->awayOvers ) ? $match->scores->awayOvers .')' : '';
$away_score = isset( $match->scores->awayScore ) ? $match->scores->awayScore.'(' : '';
$home_overs = isset( $match->scores->homeOvers ) ? $match->scores->homeOvers .')': '';
$status = strtolower( $match->status );
<div class="col-md-6" itemscope itemtype="http://schema.org/SportsEvent">
<meta content="<?php echo date('Y-m-d',strtotime($match->cmsMatchStartDate)) ?>" itemprop="startDate">
<meta content="<?php echo date('Y-m-d',strtotime( $match->cmsMatchEndDate ) ) ?>" itemprop="endDate">
<div content="No offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta content="0" itemprop="price">
<meta content="No" itemprop="availability">
<meta content="No" itemprop="priceCurrency">
<meta content="<?php echo home_url(); ?>" itemprop="url">
<meta content="<?php echo date('Y-m-d',strtotime( $match->cmsMatchStartDate ) ) ?>" itemprop="validFrom">
<meta content="No performer" itemprop="performer">
<meta content="<?php echo $match->series->shieldImageUrl ?>" itemprop="image">
<meta content="<?php echo $match->name ?>" itemprop="name">
<meta content="Match Between <?php echo $match->name ?>" itemprop="description">
<div class="lcw-fixtures">
<div class="lcw-fixtures--header">
<div class="lcw-fixtures--match-types">
<span class="lcw-fixtures--match-type">
<?php if ( $status == 'live' || $status == 'inprogress' ): ?>
<a href="#" onclick="lcw_update_home_series_score('<?php echo $match->series->id ?>','<?php echo $match->id ?>',event)"><i class="fas fa-sync-alt spin"></i></a>
<?php echo $match->cmsMatchType ?></span>
<div class="lcw-match-timing">
<span class="lcw-match-StartDate">
<?php echo date('d F Y',strtotime( $match->startDateTime ) ); ?>
<span class="lcw-match-StartTime">
if( isset( $_COOKIE['timezone'] ) ){
$arr = $live_score->lcw_get_user_timezone( $match->startDateTime );
echo date('H:i A',strtotime( $match->startDateTime ) );
<a href="<?php echo home_url('match-detail/series/'.$match->series->id.'/match/'.$match->id.'/status/'.$status); ?>" >
<div class="lcw-fixtures-inner">
<div class="lcw-fixtures-tm-detail left-tm">
<div class="lcw-team" itemprop="competitor" itemscope itemtype="http://schema.org/SportsTeam">
<div class="lcw-team-logo">
<span class="lcw-team-image">
<i class="sprite sprite-<?php echo strtolower( $match->awayTeam->shortName )?>"></i>
<span class="lcw-team-shortname" itemprop="name" content="<?php echo $match->awayTeam->name ?>" style="color: <?php echo $color_away ?>">
<?php echo $match->awayTeam->shortName ?>
<span class="lcw-team-score away_score_<?php echo $match->series->id ?><?php echo $match->id ?>" style="color: <?php echo $color_away ?>">
if(isset($match->scores->awayScore)){
echo $match->scores->awayScore ?>(<?php echo $match->scores->awayOvers ?>)
<div class="lcw-fixtures-tm-detail right-tm">
<div class="lcw-team" itemprop="competitor" itemscope itemtype="http://schema.org/SportsTeam">
<div class="lcw-team-logo left-txt">
<span class="lcw-team-image">
<i class="sprite sprite-<?php echo strtolower($match->homeTeam->shortName)?>"></i>
<span class="lcw-team-shortname" itemprop="name" content="<?php echo $match->homeTeam->name ?>" style="color: <?php echo $color_home ?>">
<?php echo $match->homeTeam->shortName ?>
<span class="lcw-team-score home_score_<?php echo $match->series->id ?><?php echo $match->id ?>" style="color: <?php echo $color_home ?>">
if(isset($match->scores->homeScore)){
echo $match->scores->homeScore ?>(<?php echo $match->scores->homeOvers ?>)
<div class="lcw-fixtures-tm-mt-detail fixture-full-detail">
<div class="lcw-match lcw-green">
<div class="lcw-match-title" style="color: <?php if( !empty( $color_home)){
}else{ echo $color_away; } ?>"><?php echo $match->currentMatchState ?></div>
<div class="lcw-match-info" itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="<?php echo $match->venue->name ?>"/>
<meta itemprop="address" content="<?php echo $match->venue->name ?>"/>
<?php echo $match->name ?> - <?php echo $match->venue->name ?></div>
$content = ob_get_clean();