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.../sections
File: teams.php
<div class="tab-pane" id="teams" role="tabpanel">
[0] Fix | Delete
<ul class="nav nav-tabs nav-fill" role="tablist">
[1] Fix | Delete
<li class="nav-item active">
[2] Fix | Delete
<a class="nav-link " data-toggle="tab" href="#team-<?php echo $match_player_list->playersInMatch->homeTeam->teamShortName ?>" role="tab">
[3] Fix | Delete
<?php echo $match_player_list->playersInMatch->homeTeam->teamName ?></a>
[4] Fix | Delete
</li>
[5] Fix | Delete
<li class="nav-item">
[6] Fix | Delete
<a class="nav-link" data-toggle="tab" href="#team-<?php echo $match_player_list->playersInMatch->awayTeam->teamShortName ?>" role="tab">
[7] Fix | Delete
<?php echo $match_player_list->playersInMatch->awayTeam->teamName ?></a>
[8] Fix | Delete
</li>
[9] Fix | Delete
</ul>
[10] Fix | Delete
<div class="tab-content">
[11] Fix | Delete
[12] Fix | Delete
<div class="tab-pane active" id="team-<?php echo $match_player_list->playersInMatch->homeTeam->teamShortName ?>" role="tabpanel">
[13] Fix | Delete
<div class="row">
[14] Fix | Delete
<?php
[15] Fix | Delete
[16] Fix | Delete
foreach ( $match_player_list->playersInMatch->homeTeam->players as $player) {
[17] Fix | Delete
[18] Fix | Delete
if( isset( $player->imageURL ) ){
[19] Fix | Delete
[20] Fix | Delete
$player_image = $player->imageURL;
[21] Fix | Delete
[22] Fix | Delete
}else{
[23] Fix | Delete
[24] Fix | Delete
$player_image = 'http://www.cricket.com.au/-/media/Players/Men/male-silhouette.ashx';
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
?>
[28] Fix | Delete
<a href="<?php echo home_url() ?>/player-stats/player/<?php echo $player->playerId; ?>">
[29] Fix | Delete
<div class="col-xs-4 col-md-2">
[30] Fix | Delete
<div class="user">
[31] Fix | Delete
<img class="profile-img" src="<?php echo $player_image ?>?h=120"
[32] Fix | Delete
alt="<?php echo $player->fullName ?>">
[33] Fix | Delete
<h3 class="lead" align='center'>
[34] Fix | Delete
<?php echo $player->fullName ?>
[35] Fix | Delete
[36] Fix | Delete
</h3>
[37] Fix | Delete
<h3 class="lead" align='center'>
[38] Fix | Delete
<?php
[39] Fix | Delete
if (isset( $player->playerType ) && $player->playerType == 'Bowler') {
[40] Fix | Delete
echo "Bowler";
[41] Fix | Delete
}elseif (isset( $player->playerType ) && $player->playerType == 'Batter') {
[42] Fix | Delete
echo "Batsman";
[43] Fix | Delete
}else if( isset( $player->playerType ) && $player->playerType == 'Allrounder' ){
[44] Fix | Delete
echo "All Rounder";
[45] Fix | Delete
}else if( isset( $player->playerType ) && $player->playerType == 'Wicketkeeper' ){
[46] Fix | Delete
echo "Wicket Keeper";
[47] Fix | Delete
}else{
[48] Fix | Delete
echo "N/A";
[49] Fix | Delete
}
[50] Fix | Delete
?>
[51] Fix | Delete
</h3>
[52] Fix | Delete
</div>
[53] Fix | Delete
</div>
[54] Fix | Delete
</a>
[55] Fix | Delete
<?php } ?>
[56] Fix | Delete
</div>
[57] Fix | Delete
</div>
[58] Fix | Delete
<div class="tab-pane" id="team-<?php echo $match_player_list->playersInMatch->awayTeam->teamShortName ?>" role="tabpanel">
[59] Fix | Delete
[60] Fix | Delete
<div class="row">
[61] Fix | Delete
<?php
[62] Fix | Delete
[63] Fix | Delete
foreach ( $match_player_list->playersInMatch->awayTeam->players as $player) {
[64] Fix | Delete
[65] Fix | Delete
if( isset( $player->imageURL ) ){
[66] Fix | Delete
[67] Fix | Delete
$player_image = $player->imageURL;
[68] Fix | Delete
[69] Fix | Delete
}else{
[70] Fix | Delete
[71] Fix | Delete
$player_image = 'http://www.cricket.com.au/-/media/Players/Men/male-silhouette.ashx';
[72] Fix | Delete
}
[73] Fix | Delete
[74] Fix | Delete
?>
[75] Fix | Delete
<a href="<?php echo home_url() ?>/player-stats/player/<?php echo $player->playerId; ?>">
[76] Fix | Delete
<div class="col-xs-4 col-md-2">
[77] Fix | Delete
<div class="user">
[78] Fix | Delete
<img class="profile-img" src="<?php echo $player_image ?>?h=120"
[79] Fix | Delete
alt="<?php echo $player->fullName ?>">
[80] Fix | Delete
<h3 class="lead" align='center'>
[81] Fix | Delete
<?php echo $player->fullName ?>
[82] Fix | Delete
[83] Fix | Delete
</h3>
[84] Fix | Delete
<h3 class="lead" align='center'>
[85] Fix | Delete
<?php
[86] Fix | Delete
if (isset( $player->playerType ) && $player->playerType == 'Bowler') {
[87] Fix | Delete
echo "Bowler";
[88] Fix | Delete
}elseif (isset( $player->playerType ) && $player->playerType == 'Batter') {
[89] Fix | Delete
echo "Batsman";
[90] Fix | Delete
}else if( isset( $player->playerType ) && $player->playerType == 'Allrounder' ){
[91] Fix | Delete
echo "All Rounder";
[92] Fix | Delete
}else if( isset( $player->playerType ) && $player->playerType == 'Wicketkeeper' ){
[93] Fix | Delete
echo "Wicket Keeper";
[94] Fix | Delete
}else{
[95] Fix | Delete
echo "N/A";
[96] Fix | Delete
}
[97] Fix | Delete
?>
[98] Fix | Delete
</h3>
[99] Fix | Delete
</div>
[100] Fix | Delete
</div>
[101] Fix | Delete
</a>
[102] Fix | Delete
<?php } ?>
[103] Fix | Delete
</div>
[104] Fix | Delete
</div>
[105] Fix | Delete
</div>
[106] Fix | Delete
</div>
[107] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function