Updated desktop menu to show ranks_total if bet_type is 1
Updated mobile menu to behave like desktop menu
This commit is contained in:
@@ -799,7 +799,11 @@ class main
|
||||
$selected = ($league && $row['league'] == $league) ? ' selected="selected"' : '';
|
||||
if ($side == 'table' && $league_info['bet_type'])
|
||||
{
|
||||
|
||||
$side = 'ranks_total';
|
||||
}
|
||||
elseif ($side == 'ranks_total' && !$league_info['bet_type'])
|
||||
{
|
||||
$side = 'table';
|
||||
}
|
||||
elseif ($side == 'table' OR $side == 'results_tl')
|
||||
{
|
||||
@@ -821,8 +825,8 @@ class main
|
||||
}
|
||||
$template->assign_block_vars('form_league', array(
|
||||
'S_LEAGUE' => $row['league'],
|
||||
'S_LEAGUENAME' => $row['league_name'],
|
||||
'S_SELECTED' => $selected
|
||||
'S_LEAGUENAME' => $row['league_name'],
|
||||
'S_SELECTED' => $selected
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -1000,8 +1004,9 @@ class main
|
||||
'S_NEXT_CLASS' => $next_class,
|
||||
'S_NEXT_DEADLINE' => $next_deadline,
|
||||
'S_DBMSG' => $dbmsg,
|
||||
'FOOTBALL_LEFT_COLUMN' => $config['football_left_column_width'],
|
||||
'FOOTBALL_RIGHT_COLUMN' => $config['football_right_column_width'],
|
||||
'FOOTBALL_LEFT_COLUMN' => $config['football_left_column_width'],
|
||||
'FOOTBALL_RIGHT_COLUMN' => $config['football_right_column_width'],
|
||||
'S_BET_TYPE' => $league_info['bet_type'],
|
||||
|
||||
));
|
||||
// End assign vars
|
||||
|
||||
Reference in New Issue
Block a user