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/ultimate.../template...
File: upcomming-matches.php
<?php
[0] Fix | Delete
function lcw_load_upcomming_matches( $matches ){
[1] Fix | Delete
$live_score = new LCW_Live_Score();
[2] Fix | Delete
ob_start();
[3] Fix | Delete
$i = 0;
[4] Fix | Delete
?>
[5] Fix | Delete
<div class="lcw-fixtures-full">
[6] Fix | Delete
<div class="lcw-fixtures--sec">
[7] Fix | Delete
<div class="row">
[8] Fix | Delete
<?php
[9] Fix | Delete
foreach ($matches as $match) {
[10] Fix | Delete
[11] Fix | Delete
$home_score = isset( $match->scores->homeScore ) ? $match->scores->homeScore.'(' : '';
[12] Fix | Delete
$awayOvers = isset( $match->scores->awayOvers ) ? $match->scores->awayOvers .')' : '';
[13] Fix | Delete
$away_score = isset( $match->scores->awayScore ) ? $match->scores->awayScore.'(' : '';
[14] Fix | Delete
$home_overs = isset( $match->scores->homeOvers ) ? $match->scores->homeOvers .')': '';
[15] Fix | Delete
$status = strtolower( $match->status );
[16] Fix | Delete
[17] Fix | Delete
?>
[18] Fix | Delete
<div class="col-md-6" itemscope itemtype="http://schema.org/SportsEvent">
[19] Fix | Delete
<meta content="<?php echo date('Y-m-d',strtotime($match->cmsMatchStartDate)) ?>" itemprop="startDate">
[20] Fix | Delete
<meta content="<?php echo date('Y-m-d',strtotime( $match->cmsMatchEndDate ) ) ?>" itemprop="endDate">
[21] Fix | Delete
<div content="No offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
[22] Fix | Delete
<meta content="0" itemprop="price">
[23] Fix | Delete
<meta content="No" itemprop="availability">
[24] Fix | Delete
<meta content="No" itemprop="priceCurrency">
[25] Fix | Delete
<meta content="<?php echo home_url(); ?>" itemprop="url">
[26] Fix | Delete
<meta content="<?php echo date('Y-m-d',strtotime( $match->cmsMatchStartDate ) ) ?>" itemprop="validFrom">
[27] Fix | Delete
</div>
[28] Fix | Delete
<meta content="No performer" itemprop="performer">
[29] Fix | Delete
<meta content="<?php echo $match->series->shieldImageUrl ?>" itemprop="image">
[30] Fix | Delete
[31] Fix | Delete
<meta content="<?php echo $match->name ?>" itemprop="name">
[32] Fix | Delete
<meta content="Match Between <?php echo $match->name ?>" itemprop="description">
[33] Fix | Delete
<div class="lcw-fixtures">
[34] Fix | Delete
<div class="lcw-fixtures--header">
[35] Fix | Delete
<div class="lcw-fixtures--match-types">
[36] Fix | Delete
<span class="lcw-fixtures--match-type">
[37] Fix | Delete
<?php if ( $status == 'live' || $status == 'inprogress' ): ?>
[38] Fix | Delete
<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>
[39] Fix | Delete
<?php endif ?>
[40] Fix | Delete
<?php echo $match->cmsMatchType ?></span>
[41] Fix | Delete
<div class="lcw-match-timing">
[42] Fix | Delete
<span class="lcw-match-StartDate">
[43] Fix | Delete
<?php echo date('d F Y',strtotime( $match->startDateTime ) ); ?>
[44] Fix | Delete
</span>
[45] Fix | Delete
</div>
[46] Fix | Delete
<span class="lcw-match-StartTime">
[47] Fix | Delete
<?php
[48] Fix | Delete
[49] Fix | Delete
if( isset( $_COOKIE['timezone'] ) ){
[50] Fix | Delete
[51] Fix | Delete
$arr = $live_score->lcw_get_user_timezone( $match->startDateTime );
[52] Fix | Delete
echo $arr;
[53] Fix | Delete
[54] Fix | Delete
}else{
[55] Fix | Delete
[56] Fix | Delete
echo date('H:i A',strtotime( $match->startDateTime ) );
[57] Fix | Delete
}
[58] Fix | Delete
?>
[59] Fix | Delete
</span>
[60] Fix | Delete
</div>
[61] Fix | Delete
</div>
[62] Fix | Delete
<a href="<?php echo home_url('match-detail/series/'.$match->series->id.'/match/'.$match->id.'/status/'.$status); ?>" >
[63] Fix | Delete
<div class="lcw-fixtures-inner">
[64] Fix | Delete
<div class="lcw-fixtures-tm-detail left-tm">
[65] Fix | Delete
<div class="lcw-team" itemprop="competitor" itemscope itemtype="http://schema.org/SportsTeam">
[66] Fix | Delete
<div class="lcw-team-logo">
[67] Fix | Delete
<span class="lcw-team-image">
[68] Fix | Delete
<i class="sprite sprite-<?php echo strtolower( $match->awayTeam->shortName )?>"></i>
[69] Fix | Delete
<span class="lcw-team-shortname" itemprop="name" content="<?php echo $match->awayTeam->name ?>" style="color: <?php echo $color_away ?>">
[70] Fix | Delete
<?php echo $match->awayTeam->shortName ?>
[71] Fix | Delete
</span>
[72] Fix | Delete
</span>
[73] Fix | Delete
<div class="lcw-team">
[74] Fix | Delete
<span class="lcw-team-score away_score_<?php echo $match->series->id ?><?php echo $match->id ?>" style="color: <?php echo $color_away ?>">
[75] Fix | Delete
[76] Fix | Delete
<?php
[77] Fix | Delete
if(isset($match->scores->awayScore)){
[78] Fix | Delete
echo $match->scores->awayScore ?>(<?php echo $match->scores->awayOvers ?>)
[79] Fix | Delete
<?php
[80] Fix | Delete
}else{
[81] Fix | Delete
[82] Fix | Delete
echo "0-0(0)";
[83] Fix | Delete
[84] Fix | Delete
}
[85] Fix | Delete
?>
[86] Fix | Delete
</span>
[87] Fix | Delete
</div>
[88] Fix | Delete
</div>
[89] Fix | Delete
</div>
[90] Fix | Delete
</div>
[91] Fix | Delete
<div class="lcw-fixtures-tm-detail right-tm">
[92] Fix | Delete
<div class="lcw-team" itemprop="competitor" itemscope itemtype="http://schema.org/SportsTeam">
[93] Fix | Delete
[94] Fix | Delete
<div class="lcw-team-logo left-txt">
[95] Fix | Delete
<span class="lcw-team-image">
[96] Fix | Delete
<i class="sprite sprite-<?php echo strtolower($match->homeTeam->shortName)?>"></i>
[97] Fix | Delete
<span class="lcw-team-shortname" itemprop="name" content="<?php echo $match->homeTeam->name ?>" style="color: <?php echo $color_home ?>">
[98] Fix | Delete
<?php echo $match->homeTeam->shortName ?>
[99] Fix | Delete
</span>
[100] Fix | Delete
</span>
[101] Fix | Delete
<div class="lcw-team">
[102] Fix | Delete
[103] Fix | Delete
<span class="lcw-team-score home_score_<?php echo $match->series->id ?><?php echo $match->id ?>" style="color: <?php echo $color_home ?>">
[104] Fix | Delete
<?php
[105] Fix | Delete
if(isset($match->scores->homeScore)){
[106] Fix | Delete
echo $match->scores->homeScore ?>(<?php echo $match->scores->homeOvers ?>)
[107] Fix | Delete
<?php
[108] Fix | Delete
}else{
[109] Fix | Delete
[110] Fix | Delete
echo "0-0(0)";
[111] Fix | Delete
[112] Fix | Delete
}
[113] Fix | Delete
?>
[114] Fix | Delete
</span>
[115] Fix | Delete
</div>
[116] Fix | Delete
</div>
[117] Fix | Delete
</div>
[118] Fix | Delete
</div>
[119] Fix | Delete
<div class="lcw-fixtures-tm-mt-detail fixture-full-detail">
[120] Fix | Delete
<div class="lcw-match lcw-green">
[121] Fix | Delete
<div class="lcw-match-title" style="color: <?php if( !empty( $color_home)){
[122] Fix | Delete
echo $color_home;
[123] Fix | Delete
}else{ echo $color_away; } ?>"><?php echo $match->currentMatchState ?></div>
[124] Fix | Delete
[125] Fix | Delete
<div class="lcw-match-info" itemprop="location" itemscope itemtype="http://schema.org/Place">
[126] Fix | Delete
[127] Fix | Delete
<meta itemprop="name" content="<?php echo $match->venue->name ?>"/>
[128] Fix | Delete
<meta itemprop="address" content="<?php echo $match->venue->name ?>"/>
[129] Fix | Delete
<?php echo $match->name ?> - <?php echo $match->venue->name ?></div>
[130] Fix | Delete
</div>
[131] Fix | Delete
</div>
[132] Fix | Delete
</div>
[133] Fix | Delete
</a>
[134] Fix | Delete
</div>
[135] Fix | Delete
</div>
[136] Fix | Delete
<?php
[137] Fix | Delete
$i++;
[138] Fix | Delete
}
[139] Fix | Delete
?>
[140] Fix | Delete
</div>
[141] Fix | Delete
</div>
[142] Fix | Delete
</div>
[143] Fix | Delete
<?php
[144] Fix | Delete
$content = ob_get_clean();
[145] Fix | Delete
return $content;
[146] Fix | Delete
}
[147] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function