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