'."\n");
if ($menu) {
$r->print("
');
}
- $r->print(&Apache::loncommon::end_page());
+ $r->print('
'.&Apache::loncommon::end_page());
}
sub helpmenu_items {
@@ -180,6 +181,17 @@ sub helpmenu_items {
lastloc => 'Go back',
close => 'Close',
);
+ my %alt = &Apache::lonlocal::texthash(
+ general => 'Intro help icon',
+ component => 'Topic icon',
+ faq => 'FAQ icon',
+ helpdesk => 'Helpdesk form icon',
+ bugs => 'Bug reporting icon',
+ manuals_web => 'HTML manuals icon',
+ manuals_pdf => 'PDF manuals icon',
+ lastloc => 'Return icon',
+ close => 'Close help icon',
+ );
my ($target,$bugs_target);
if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) ||
(($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) {
@@ -193,58 +205,58 @@ sub helpmenu_items {
general => {
href => '/adm/help/'.$general_help.'.hlp',
img => $location.'/help/help.png',
- alt => $lt{'general'},
+ alt => $alt{'general'},
text => $lt{'general'},
},
component => {
href => $component_url,
img => $location.'/help/help.png',
- alt => $lt{'component'},
+ alt => $alt{'component'},
text => $topic,
},
faq => {
href => $faqbaseurl.'fom/cache/'.$faq.'.html',
img => $location.'/lonMisc/smallFAQ.gif',
- alt => $lt{'faq'},
+ alt => $alt{'faq'},
text => $lt{'faq'},
},
helpdesk => {
href => '#',
onclick => 'gohelpdesk()',
img => $location.'/lonIcons/helpdesk.gif',
- alt => $lt{'helpdesk'},
+ alt => $alt{'helpdesk'},
text => $lt{'helpdesk'},
},
bugs => {
href => $bugurl,
img => $location.'/lonMisc/smallBug.gif',
- alt => $lt{'bugs'},
+ alt => $alt{'bugs'},
text => $lt{'bugs'},
target => $bugs_target,
},
manuals_web => {
href => '',
img => $location.'/lonIcons/html.gif',
- alt => $lt{'manuals_web'},
+ alt => $alt{'manuals_web'},
text => $lt{'manuals_web'},
},
manuals_pdf => {
href => '',
img => $location.'/lonIcons/pdf.gif',
- alt => $lt{'manuals_pdf'},
+ alt => $alt{'manuals_pdf'},
text => $lt{'manuals_pdf'},
},
lastloc => {
href => &HTML::Entities::encode($origurl,'"&<>'),
img => '/res/adm/pages/tolastloc.png',
- alt => $lt{'lastloc'},
+ alt => $alt{'lastloc'},
text => $lt{'lastloc'},
target => $target,
},
close => {
href => 'javascript:window.close()',
img => $location.'/lonIcons/close.gif',
- alt => $lt{'close'},
+ alt => $alt{'close'},
text => $lt{'close'},
target => $target,
},
@@ -349,7 +361,7 @@ sub create_submenu {
my $menu = ' ");
}
if ($stayOnPage && $env{'user.adv'}) {
$r->print('