mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-16046 Fixed up the portfolio tabs
This commit is contained in:
parent
838a8eb146
commit
55de6e0784
3 changed files with 9 additions and 6 deletions
|
@ -37,7 +37,7 @@ $navigation = build_navigation($navlinks);
|
|||
print_header("$course->fullname: $fullname: $strportfolios", $course->fullname,
|
||||
$navigation, "", "", true, " ", navmenu($course));
|
||||
|
||||
$currenttab = 'portfolios';
|
||||
$currenttab = 'portfolioconf';
|
||||
$showroles = 1;
|
||||
include('tabs.php');
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ $navigation = build_navigation($navlinks);
|
|||
print_header("$course->fullname: $fullname: $strportfolios", $course->fullname,
|
||||
$navigation, "", "", true, " ", navmenu($course));
|
||||
|
||||
$currenttab = 'portfolios';
|
||||
$currenttab = 'portfoliologs';
|
||||
$showroles = 1;
|
||||
include('tabs.php');
|
||||
|
||||
|
|
|
@ -245,10 +245,13 @@
|
|||
require_once($CFG->libdir . '/portfoliolib.php');
|
||||
if (portfolio_instances(true, false)) {
|
||||
$toprow[] = new tabobject('portfolios', $CFG->wwwroot .'/user/portfolio.php', get_string('portfolios', 'portfolio'));
|
||||
$inactive = array('portfolios');
|
||||
$activetwo = array('portfolios');
|
||||
$secondrow[] = new tabobject('configure', $CFG->wwwroot . '/user/portfolio.php', get_string('configure', 'portfolio'));
|
||||
$secondrow[] = new tabobject('logs', $CFG->wwwroot . '/user/portfoliologs.php', get_string('logs', 'portfolio'));
|
||||
if (in_array($currenttab, array('portfolioconf', 'portfoliologs'))) {
|
||||
$inactive = array('portfolios');
|
||||
$activetwo = array('portfolios');
|
||||
$secondrow = array();
|
||||
$secondrow[] = new tabobject('portfolioconf', $CFG->wwwroot . '/user/portfolio.php', get_string('configure', 'portfolio'));
|
||||
$secondrow[] = new tabobject('portfoliologs', $CFG->wwwroot . '/user/portfoliologs.php', get_string('logs', 'portfolio'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue