version 1.49, 2022/05/30 12:31:06
|
version 1.50, 2025/02/20 03:05:34
|
Line 155 SCRIPT_TWO
|
Line 155 SCRIPT_TWO
|
{'only_body' => 1,})); |
{'only_body' => 1,})); |
} |
} |
my $menu = &helpmenu_items($dom,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage); |
my $menu = &helpmenu_items($dom,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage); |
|
$r->print('<div class="LC_landmark" role="main">'."\n"); |
if ($menu) { |
if ($menu) { |
$r->print("<ul id=\"LC_secondary_menu\">$menu</ul>"); |
$r->print("<ul id=\"LC_secondary_menu\">$menu</ul>"); |
} |
} |
if ($stayOnPage && $env{'user.adv'}) { |
if ($stayOnPage && $env{'user.adv'}) { |
$r->print('<br />'); |
$r->print('<br />'); |
} |
} |
$r->print(&Apache::loncommon::end_page()); |
$r->print('</div>'.&Apache::loncommon::end_page()); |
} |
} |
|
|
sub helpmenu_items { |
sub helpmenu_items { |
Line 180 sub helpmenu_items {
|
Line 181 sub helpmenu_items {
|
lastloc => 'Go back', |
lastloc => 'Go back', |
close => 'Close', |
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); |
my ($target,$bugs_target); |
if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) || |
if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) || |
(($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) { |
(($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) { |
Line 193 sub helpmenu_items {
|
Line 205 sub helpmenu_items {
|
general => { |
general => { |
href => '/adm/help/'.$general_help.'.hlp', |
href => '/adm/help/'.$general_help.'.hlp', |
img => $location.'/help/help.png', |
img => $location.'/help/help.png', |
alt => $lt{'general'}, |
alt => $alt{'general'}, |
text => $lt{'general'}, |
text => $lt{'general'}, |
}, |
}, |
component => { |
component => { |
href => $component_url, |
href => $component_url, |
img => $location.'/help/help.png', |
img => $location.'/help/help.png', |
alt => $lt{'component'}, |
alt => $alt{'component'}, |
text => $topic, |
text => $topic, |
}, |
}, |
faq => { |
faq => { |
href => $faqbaseurl.'fom/cache/'.$faq.'.html', |
href => $faqbaseurl.'fom/cache/'.$faq.'.html', |
img => $location.'/lonMisc/smallFAQ.gif', |
img => $location.'/lonMisc/smallFAQ.gif', |
alt => $lt{'faq'}, |
alt => $alt{'faq'}, |
text => $lt{'faq'}, |
text => $lt{'faq'}, |
}, |
}, |
helpdesk => { |
helpdesk => { |
href => '#', |
href => '#', |
onclick => 'gohelpdesk()', |
onclick => 'gohelpdesk()', |
img => $location.'/lonIcons/helpdesk.gif', |
img => $location.'/lonIcons/helpdesk.gif', |
alt => $lt{'helpdesk'}, |
alt => $alt{'helpdesk'}, |
text => $lt{'helpdesk'}, |
text => $lt{'helpdesk'}, |
}, |
}, |
bugs => { |
bugs => { |
href => $bugurl, |
href => $bugurl, |
img => $location.'/lonMisc/smallBug.gif', |
img => $location.'/lonMisc/smallBug.gif', |
alt => $lt{'bugs'}, |
alt => $alt{'bugs'}, |
text => $lt{'bugs'}, |
text => $lt{'bugs'}, |
target => $bugs_target, |
target => $bugs_target, |
}, |
}, |
manuals_web => { |
manuals_web => { |
href => '', |
href => '', |
img => $location.'/lonIcons/html.gif', |
img => $location.'/lonIcons/html.gif', |
alt => $lt{'manuals_web'}, |
alt => $alt{'manuals_web'}, |
text => $lt{'manuals_web'}, |
text => $lt{'manuals_web'}, |
}, |
}, |
manuals_pdf => { |
manuals_pdf => { |
href => '', |
href => '', |
img => $location.'/lonIcons/pdf.gif', |
img => $location.'/lonIcons/pdf.gif', |
alt => $lt{'manuals_pdf'}, |
alt => $alt{'manuals_pdf'}, |
text => $lt{'manuals_pdf'}, |
text => $lt{'manuals_pdf'}, |
}, |
}, |
lastloc => { |
lastloc => { |
href => &HTML::Entities::encode($origurl,'"&<>'), |
href => &HTML::Entities::encode($origurl,'"&<>'), |
img => '/res/adm/pages/tolastloc.png', |
img => '/res/adm/pages/tolastloc.png', |
alt => $lt{'lastloc'}, |
alt => $alt{'lastloc'}, |
text => $lt{'lastloc'}, |
text => $lt{'lastloc'}, |
target => $target, |
target => $target, |
}, |
}, |
close => { |
close => { |
href => 'javascript:window.close()', |
href => 'javascript:window.close()', |
img => $location.'/lonIcons/close.gif', |
img => $location.'/lonIcons/close.gif', |
alt => $lt{'close'}, |
alt => $alt{'close'}, |
text => $lt{'close'}, |
text => $lt{'close'}, |
target => $target, |
target => $target, |
}, |
}, |
Line 349 sub create_submenu {
|
Line 361 sub create_submenu {
|
my $menu = '<li class="LC_hoverable">'.$img. |
my $menu = '<li class="LC_hoverable">'.$img. |
'<a href="'.$link.'"'.$disptarget.'>'. |
'<a href="'.$link.'"'.$disptarget.'>'. |
'<span class="LC_nobreak">'.$title. |
'<span class="LC_nobreak">'.$title. |
'<span class="LC_fontsize_small" style="font-weight:normal;">'. |
'<span class="LC_fontsize_medium" style="font-weight:normal;">'. |
' ▼</span></span></a>'. |
' ▼</span></span></a>'. |
'<ul>'; |
'<ul>'; |
my $count = 0; |
my $count = 0; |