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: match-detail.php
<?php
[0] Fix | Delete
function lcw_load_match_detail( $class_object, $match_detail_list,$match_player_list,$graphs,$series_id,$match_id,$section_array ){
[1] Fix | Delete
ob_start();
[2] Fix | Delete
if(isset( $match_detail_list->liveMatch->matchDetail->winningTeamId )){
[3] Fix | Delete
[4] Fix | Delete
$away_team_id = $match_detail_list->liveMatch->matchDetail->awayTeam->id;
[5] Fix | Delete
[6] Fix | Delete
$home_team_id = $match_detail_list->liveMatch->matchDetail->homeTeam->id;
[7] Fix | Delete
[8] Fix | Delete
$winning_team = $match_detail_list->liveMatch->matchDetail->winningTeamId;
[9] Fix | Delete
[10] Fix | Delete
if( $away_team_id == $winning_team ){
[11] Fix | Delete
[12] Fix | Delete
$color_away = $match_detail_list->liveMatch->matchDetail->awayTeam->teamColour;
[13] Fix | Delete
$color_home = '';
[14] Fix | Delete
[15] Fix | Delete
}else if( $home_team_id == $winning_team ){
[16] Fix | Delete
[17] Fix | Delete
$color_home = $match_detail_list->liveMatch->matchDetail->homeTeam->teamColour;
[18] Fix | Delete
$color_away = '';
[19] Fix | Delete
[20] Fix | Delete
[21] Fix | Delete
}else{
[22] Fix | Delete
[23] Fix | Delete
$color_home = '';
[24] Fix | Delete
$color_away = '';
[25] Fix | Delete
[26] Fix | Delete
[27] Fix | Delete
}
[28] Fix | Delete
}else{
[29] Fix | Delete
[30] Fix | Delete
$color_home = '';
[31] Fix | Delete
$color_away = '';
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
}
[35] Fix | Delete
//echo $home_team_id . $winning_team . $away_team_id ;
[36] Fix | Delete
?>
[37] Fix | Delete
<h1><?php echo $match_detail_list->liveMatch->matchDetail->homeTeam->name.' VS '.$match_detail_list->liveMatch->matchDetail->awayTeam->name; ?></h1>
[38] Fix | Delete
<div class="lcw-livescore-outer">
[39] Fix | Delete
<?php
[40] Fix | Delete
$tabs_array = array(
[41] Fix | Delete
[42] Fix | Delete
'Summary' => 'detail',
[43] Fix | Delete
[44] Fix | Delete
);
[45] Fix | Delete
if( is_array( $section_array ) && !empty( $section_array ) ){
[46] Fix | Delete
if( in_array( 'show_score_card', $section_array ) ){
[47] Fix | Delete
$tabs_array['Score Card'] = 'score-card ';
[48] Fix | Delete
}
[49] Fix | Delete
if( in_array( 'show_teams', $section_array ) ){
[50] Fix | Delete
$tabs_array['Teams'] = 'teams';
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
echo $class_object->lcw_display_match_tabs(
[54] Fix | Delete
$tabs_array
[55] Fix | Delete
);
[56] Fix | Delete
?>
[57] Fix | Delete
[58] Fix | Delete
<!-- Tab panes -->
[59] Fix | Delete
<div class="tab-content">
[60] Fix | Delete
<div class="tab-pane active" id="detail" role="tabpanel">
[61] Fix | Delete
<!-- Quick Score -->
[62] Fix | Delete
<?php
[63] Fix | Delete
require_once LCW_LIVE_SCORE_ROOT_PATH . '/sections/quick-score.php';
[64] Fix | Delete
?>
[65] Fix | Delete
<?php if(!empty( $match_detail_list->liveMatch->currentBatters )){ ?>
[66] Fix | Delete
<div class="lcw-table lcw-batsmen">
[67] Fix | Delete
<div class="lcw-thead">
[68] Fix | Delete
<div class="lcw-tr">
[69] Fix | Delete
<div class="lcw-td">Batsmens</div>
[70] Fix | Delete
<div class="lcw-td">R</div>
[71] Fix | Delete
<div class="lcw-td">B</div>
[72] Fix | Delete
<div class="lcw-td">4S</div>
[73] Fix | Delete
<div class="lcw-td">6S</div>
[74] Fix | Delete
<div class="lcw-td">SR</div>
[75] Fix | Delete
</div>
[76] Fix | Delete
</div>
[77] Fix | Delete
<div class="lcw-tbody">
[78] Fix | Delete
<?php
[79] Fix | Delete
foreach ( $match_detail_list->liveMatch->currentBatters as $batsmen ) {
[80] Fix | Delete
[81] Fix | Delete
if( $batsmen->isFacing == true ){
[82] Fix | Delete
[83] Fix | Delete
$highlight = '#00ab4e';
[84] Fix | Delete
$face = '*';
[85] Fix | Delete
}else{
[86] Fix | Delete
[87] Fix | Delete
$highlight = '';
[88] Fix | Delete
$face = '';
[89] Fix | Delete
}
[90] Fix | Delete
?>
[91] Fix | Delete
<div class="lcw-tr">
[92] Fix | Delete
<div class="lcw-td"><a href="<?php echo home_url() ?>/player-stats/player/<?php echo $batsmen->id; ?>" style="color: <?php echo $highlight; ?>"><?php echo $batsmen->name ?><?php echo $face; ?></a></div>
[93] Fix | Delete
<div class="lcw-td"><?php echo $batsmen->runs ?></div>
[94] Fix | Delete
<div class="lcw-td"><?php echo $batsmen->ballsFaced ?></div>
[95] Fix | Delete
<div class="lcw-td"><?php echo $batsmen->fours ?></div>
[96] Fix | Delete
<div class="lcw-td"><?php echo $batsmen->sixers ?></div>
[97] Fix | Delete
<div class="lcw-td"><?php echo $batsmen->strikeRate ?></div>
[98] Fix | Delete
</div>
[99] Fix | Delete
<?php } ?>
[100] Fix | Delete
</div>
[101] Fix | Delete
</div>
[102] Fix | Delete
<?php } ?>
[103] Fix | Delete
<?php if(!empty( $match_detail_list->liveMatch->currentbowler )){ ?>
[104] Fix | Delete
<div class="lcw-table lcw-batsmen lcw-bowlers">
[105] Fix | Delete
<div class="lcw-thead">
[106] Fix | Delete
<div class="lcw-tr">
[107] Fix | Delete
<div class="lcw-td">Bowler</div>
[108] Fix | Delete
<div class="lcw-td">O</div>
[109] Fix | Delete
<div class="lcw-td">M</div>
[110] Fix | Delete
<div class="lcw-td">R</div>
[111] Fix | Delete
<div class="lcw-td">W</div>
[112] Fix | Delete
<div class="lcw-td hidden-xs hidden-sm">WD</div>
[113] Fix | Delete
<div class="lcw-td hidden-xs hidden-sm">NB</div>
[114] Fix | Delete
<div class="lcw-td">Econ</div>
[115] Fix | Delete
</div>
[116] Fix | Delete
</div>
[117] Fix | Delete
<div class="lcw-tbody">
[118] Fix | Delete
[119] Fix | Delete
<div class="lcw-tr">
[120] Fix | Delete
<div class="lcw-td"><a href="<?php echo home_url() ?>/player-stats/player/<?php echo $match_detail_list->liveMatch->currentbowler->id; ?>"><?php echo $match_detail_list->liveMatch->currentbowler->name ?></a></div>
[121] Fix | Delete
<div class="lcw-td"><?php echo $match_detail_list->liveMatch->currentbowler->bowlerOver ?></div>
[122] Fix | Delete
<div class="lcw-td"><?php echo $match_detail_list->liveMatch->currentbowler->maiden ?></div>
[123] Fix | Delete
<div class="lcw-td"><?php echo $match_detail_list->liveMatch->currentbowler->runsAgainst ?></div>
[124] Fix | Delete
<div class="lcw-td"><?php echo $match_detail_list->liveMatch->currentbowler->wickets ?></div>
[125] Fix | Delete
<div class="lcw-td hidden-xs hidden-sm"><?php echo $match_detail_list->liveMatch->currentbowler->wide ?></div>
[126] Fix | Delete
<div class="lcw-td hidden-xs hidden-sm"><?php echo $match_detail_list->liveMatch->currentbowler->noBall ?></div>
[127] Fix | Delete
<div class="lcw-td"><?php echo $match_detail_list->liveMatch->currentbowler->economy ?></div>
[128] Fix | Delete
</div>
[129] Fix | Delete
[130] Fix | Delete
</div>
[131] Fix | Delete
</div>
[132] Fix | Delete
<?php } ?>
[133] Fix | Delete
<?php if( isset( $match_detail_list->liveMatch->awards->manOfTheMatchName ) ): ?>
[134] Fix | Delete
[135] Fix | Delete
<div class="lcw-commentry-box-header">
[136] Fix | Delete
<div class="lcw-total-overs">Man of the Match</div>
[137] Fix | Delete
<div class="lcw-total-runs"><?php echo $match_detail_list->liveMatch->awards->manOfTheMatchName ?></div>
[138] Fix | Delete
</div>
[139] Fix | Delete
[140] Fix | Delete
<?php endif; ?>
[141] Fix | Delete
<?php
[142] Fix | Delete
if( is_array( $section_array ) && !empty( $section_array ) ){
[143] Fix | Delete
if( in_array( 'show_commentary', $section_array ) ){
[144] Fix | Delete
[145] Fix | Delete
if(!empty( $match_detail_list->liveMatch->commentary)){
[146] Fix | Delete
require_once LCW_LIVE_SCORE_ROOT_PATH . '/sections/commentary.php';
[147] Fix | Delete
}
[148] Fix | Delete
}
[149] Fix | Delete
}
[150] Fix | Delete
?>
[151] Fix | Delete
</div>
[152] Fix | Delete
<!-- </div> -->
[153] Fix | Delete
<?php
[154] Fix | Delete
[155] Fix | Delete
if( is_array( $section_array ) && !empty( $section_array ) ){
[156] Fix | Delete
if( in_array( 'show_score_card', $section_array ) ){
[157] Fix | Delete
require_once LCW_LIVE_SCORE_ROOT_PATH . '/sections/score-card.php';
[158] Fix | Delete
}
[159] Fix | Delete
}
[160] Fix | Delete
?>
[161] Fix | Delete
<?php
[162] Fix | Delete
[163] Fix | Delete
if( is_array( $section_array ) && !empty( $section_array ) ){
[164] Fix | Delete
if( in_array( 'show_teams', $section_array ) ){
[165] Fix | Delete
require_once LCW_LIVE_SCORE_ROOT_PATH . '/sections/teams.php';
[166] Fix | Delete
}
[167] Fix | Delete
}
[168] Fix | Delete
?>
[169] Fix | Delete
</div>
[170] Fix | Delete
<div class="row">
[171] Fix | Delete
<div class="col-md-12">
[172] Fix | Delete
[173] Fix | Delete
<?php do_action('lcw-ad-code'); ?>
[174] Fix | Delete
[175] Fix | Delete
</div>
[176] Fix | Delete
</div>
[177] Fix | Delete
</div>
[178] Fix | Delete
<?php
[179] Fix | Delete
[180] Fix | Delete
$content = ob_get_clean();
[181] Fix | Delete
return $content;
[182] Fix | Delete
}
[183] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function