--- loncom/interface/lonmenu.pm 2009/11/30 21:29:47 1.308
+++ loncom/interface/lonmenu.pm 2010/02/10 08:24:31 1.313
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.308 2009/11/30 21:29:47 raeburn Exp $
+# $Id: lonmenu.pm,v 1.313 2010/02/10 08:24:31 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -150,6 +150,9 @@ sub prep_menuitem {
} else { # textual Link
$link = &mt($$menuitem[3]);
}
+ if($$menuitem[4] eq 'newmsg'){ #special style for New Messages
+ return '
'.$link.'';
+ }
return ''.$link.'';
}
@@ -290,7 +293,7 @@ sub initlittle {
'roles' => (&Apache::loncommon::show_course()?
'Courses':'Roles'),
'other' => 'Other Roles',
- 'docs' => 'Edit Course',
+ 'docs' => 'Course Editor',
'exit' => 'Logout',
'login' => 'Log In',
'launch' => 'Launch Remote Control',
@@ -839,39 +842,29 @@ ENDMENUITEMS
my $inlinebuttons='';
if ($addremote) {
- #SD START (work in progress!)
Apache::lonhtmlcommon::clear_breadcrumb_tools();
- # Arrows for navigation
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[21] );
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[23] );
- if(hidden_button_check() ne 'yes'){
- # notes
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'B', $inlineremote[93]);
- # bookmark
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'B', $inlineremote[91]);
- # evaluate
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'B', $inlineremote[81]);
- # feedback
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'B', $inlineremote[82]);
- # print
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'B', $inlineremote[83]);
- # metadata
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'B', $inlineremote[63]);
-
- # ?
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'C', $inlineremote[61]);
- # ?
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'C', $inlineremote[71]);
- # ?
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'C', $inlineremote[72]);
- # ?
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'C', $inlineremote[73]);
- # ?
- Apache::lonhtmlcommon::add_breadcrumb_tool( 'C', $inlineremote[92]);
+ Apache::lonhtmlcommon::add_breadcrumb_tool(
+ 'navigation', @inlineremote[21,23]);
+
+ if(hidden_button_check() ne 'yes') {
+ Apache::lonhtmlcommon::add_breadcrumb_tool(
+ 'tools', @inlineremote[93,91,81,82,83]);
+
+ #publish button in construction space
+ if ($env{'request.state'} eq 'construct'){
+ Apache::lonhtmlcommon::add_breadcrumb_tool(
+ 'advtools', @inlineremote[63]);
+ }else{
+ Apache::lonhtmlcommon::add_breadcrumb_tool(
+ 'tools', @inlineremote[63]);
+ }
+
+
+ Apache::lonhtmlcommon::add_breadcrumb_tool(
+ 'advtools', @inlineremote[61,71,72,73,92]);
}
- #SD END
# # Registered, textual output
# if ( $env{'environment.icons'} eq 'iconsonly' ) {
# $inlinebuttons = (<
@@ -1336,15 +1328,15 @@ sub inlinemenu {
undef(%category_members);
# calling rawconfig with "1" will evaluate mydesk.tab, even if there is no active remote control
&rawconfig(1);
- my $output='';
+ my $output='';
for (my $col=1; $col<=2; $col++) {
$output.='';
for (my $row=1; $row<=8; $row++) {
foreach my $cat (keys(%category_members)) {
if ($category_positions{$cat} ne "$col,$row") { next; }
#$output.=' ';
- $output.='';
- $output.=' '.&mt($category_names{$cat}).'';
+ $output.=' ';
+ $output.=' '.&mt($category_names{$cat}).'';
$output.=' ';
my %active=();
foreach my $menu_item (split(/\:/,$category_members{$cat})) {
|