version 1.315.2.4, 2010/09/14 03:16:04
|
version 1.315.2.6, 2010/12/30 21:36:50
|
Line 245 sub primary_menu {
|
Line 245 sub primary_menu {
|
|
|
|
|
if ($$menuitem[3] eq 'Help') { # special treatment for helplink |
if ($$menuitem[3] eq 'Help') { # special treatment for helplink |
$menu .= '<li>'.&Apache::loncommon::top_nav_help('Help').'</li>'; |
if ($public) { |
|
my $origmail = $Apache::lonnet::perlvar{'lonSupportEMail'}; |
|
my $defdom = &Apache::lonnet::default_login_domain(); |
|
my $to = &Apache::loncommon::build_recipient_list(undef, |
|
'helpdeskmail', |
|
$defdom,$origmail); |
|
if ($to ne '') { |
|
$menu .= &prep_menuitem($menuitem); |
|
} |
|
} else { |
|
$menu .= '<li>'.&Apache::loncommon::top_nav_help('Help').'</li>'; |
|
} |
} else { |
} else { |
my @items = @{$menuitem}; |
my @items = @{$menuitem}; |
$items[0] = 'javascript:'.$menuitem->[0].';'; |
$items[0] = 'javascript:'.$menuitem->[0].';'; |
Line 463 sub innerregister {
|
Line 474 sub innerregister {
|
my @crumbs; |
my @crumbs; |
unless (($forcereg) && ($env{'request.noversionuri'} eq '/adm/navmaps') |
unless (($forcereg) && ($env{'request.noversionuri'} eq '/adm/navmaps') |
&& ($mapurl eq $env{'course.'.$env{'request.course.id'}.'.url'})) { |
&& ($mapurl eq $env{'course.'.$env{'request.course.id'}.'.url'})) { |
|
my $navhref = "javascript:gopost('/adm/navmaps','')"; |
|
if ($env{'environment.remotenavmap'} eq 'on') { |
|
$navhref = "javascript:gonav('/adm/navmaps');"; |
|
} |
@crumbs = ({text => $contentstext, |
@crumbs = ({text => $contentstext, |
href => "Javascript:gopost('/adm/navmaps','')"}); |
href => $navhref}); |
} |
} |
if ($mapurl ne $env{'course.'.$env{'request.course.id'}.'.url'}) { |
if ($mapurl ne $env{'course.'.$env{'request.course.id'}.'.url'}) { |
push(@crumbs, {text => '...', |
push(@crumbs, {text => '...', |
Line 1325 sub rawconfig {
|
Line 1340 sub rawconfig {
|
my ($row,$col,$pro,$prt,$img,$top,$bot,$act,$desc,$cat)=split(/\:/,$line); |
my ($row,$col,$pro,$prt,$img,$top,$bot,$act,$desc,$cat)=split(/\:/,$line); |
$prt=~s/\$uname/$uname/g; |
$prt=~s/\$uname/$uname/g; |
$prt=~s/\$udom/$udom/g; |
$prt=~s/\$udom/$udom/g; |
|
if ($env{'environment.remotenavmap'} eq 'on') { |
|
unless ($env{'environment.remote'} eq 'on') { |
|
if ($img eq 'nav.gif') { |
|
$act = "gonav('/adm/navmaps','')"; |
|
} |
|
} |
|
} |
if ($prt =~ /\$crs/) { |
if ($prt =~ /\$crs/) { |
next unless ($env{'request.course.id'}); |
next unless ($env{'request.course.id'}); |
next if ($crstype eq 'Community'); |
next if ($crstype eq 'Community'); |