mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 11:44:08 +02:00
Some slight alterations for another forthcoming feature.
Tom: If you want to clean up my CSS changes for this or change the colour for completed stages, feel free ;-) git-svn-id: file:///svn/phpbb/trunk@5635 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -206,6 +206,10 @@ class module
|
||||
{
|
||||
$this->sub = strtolower((in_array(strtoupper($selected_submod), $row['module_subs'])) ? $selected_submod : $row['module_subs'][0]);
|
||||
}
|
||||
elseif (is_array($row['module_stages']))
|
||||
{
|
||||
$this->sub = strtolower((in_array(strtoupper($selected_submod), $row['module_stages'])) ? $selected_submod : $row['module_stages'][0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->sub = '';
|
||||
@@ -361,6 +365,24 @@ class module
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($this->module_ary[$this->id]['stages']))
|
||||
{
|
||||
$subs = $this->module_ary[$this->id]['stages'];
|
||||
$matched = false;
|
||||
foreach ($subs as $option)
|
||||
{
|
||||
$l_option = (!empty($lang['STAGE_' . $option])) ? $lang['STAGE_' . $option] : preg_replace('#_#', ' ', $option);
|
||||
$option = strtolower($option);
|
||||
$matched = ($this->sub == $option) ? true : $matched;
|
||||
|
||||
$template->assign_block_vars('l_block2', array(
|
||||
'L_TITLE' => $l_option,
|
||||
'S_SELECTED' => ($this->sub == $option),
|
||||
'S_COMPLETE' => !$matched,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user