version 1.1453, 2025/02/14 22:42:05
|
version 1.1459, 2025/02/20 03:05:34
|
Line 1460 $banner_link
|
Line 1460 $banner_link
|
<a href="$link" title="$title" $linkattr>$text</a> |
<a href="$link" title="$title" $linkattr>$text</a> |
END |
END |
} else { |
} else { |
return ' '.$text.' '; |
return ' <h1 class="LC_helpmenu">'.$text.'</h1> '; |
} |
} |
} |
} |
|
|
Line 1472 sub help_menu_js {
|
Line 1472 sub help_menu_js {
|
my $helptopic=&general_help(); |
my $helptopic=&general_help(); |
my $details_link = $httphost.'/adm/help/'.$helptopic.'.hlp'; |
my $details_link = $httphost.'/adm/help/'.$helptopic.'.hlp'; |
my $nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
my $nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
|
my $bannertitle = &mt('Help Menu'); |
|
&js_escape(\$bannertitle); |
|
my $bodytitle = &mt('Documentation'); |
|
&js_escape(\$bodytitle); |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Help Menu', undef, |
&Apache::loncommon::start_page('Help Menu', undef, |
{'frameset' => 1, |
{'frameset' => 1, |
Line 1483 sub help_menu_js {
|
Line 1487 sub help_menu_js {
|
my $end_page = |
my $end_page = |
&Apache::loncommon::end_page({'frameset' => 1, |
&Apache::loncommon::end_page({'frameset' => 1, |
'js_ready' => 1,}); |
'js_ready' => 1,}); |
|
|
my $template .= <<"ENDTEMPLATE"; |
my $template .= <<"ENDTEMPLATE"; |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
Line 1508 function helpMenu(target) {
|
Line 1511 function helpMenu(target) {
|
return; |
return; |
} |
} |
function writeHelp(caller) { |
function writeHelp(caller) { |
caller.document.writeln('$start_page\\n<frame name="bannerframe" src="'+banner_link+'" marginwidth="0" marginheight="0" frameborder="0">\\n'); |
caller.document.writeln('$start_page\\n<frame name="bannerframe" title="$bannertitle" src="'+banner_link+'" marginwidth="0" marginheight="0" frameborder="0">\\n'); |
caller.document.writeln('<frame name="bodyframe" src="$details_link" marginwidth="0" marginheight="0" frameborder="0">\\n$end_page'); |
caller.document.writeln('<frame name="bodyframe" title="$bodytitle" src="$details_link" marginwidth="0" marginheight="0" frameborder="0">\\n$end_page'); |
caller.document.close(); |
caller.document.close(); |
caller.focus(); |
caller.focus(); |
} |
} |
Line 6947 sub bodytag {
|
Line 6950 sub bodytag {
|
$role = &Apache::lonnet::plaintext($role); |
$role = &Apache::lonnet::plaintext($role); |
} |
} |
|
|
if (!$realm) { $realm=' '; } |
|
|
|
my $extra_body_attr = &make_attr_string($forcereg,\%design); |
my $extra_body_attr = &make_attr_string($forcereg,\%design); |
|
|
# construct main body tag |
# construct main body tag |
Line 6972 sub bodytag {
|
Line 6973 sub bodytag {
|
undef($role); |
undef($role); |
} |
} |
unless ($ltimenu->{'coursetitle'}) { |
unless ($ltimenu->{'coursetitle'}) { |
$realm=' '; |
|
$showcrstitle = 0; |
$showcrstitle = 0; |
} |
} |
} |
} |
Line 6982 sub bodytag {
|
Line 6982 sub bodytag {
|
undef($role); |
undef($role); |
} |
} |
unless ($menuref->{'crs'}) { |
unless ($menuref->{'crs'}) { |
$realm=' '; |
|
$showcrstitle = 0; |
$showcrstitle = 0; |
} |
} |
} |
} |
Line 7050 END
|
Line 7049 END
|
$args->{'links_disabled'}, |
$args->{'links_disabled'}, |
$args->{'links_target'}, |
$args->{'links_target'}, |
$collapsible); |
$collapsible); |
|
my $labeltext = &HTML::Entities::encode(&mt('Primary links')); |
if ($env{'request.noversionuri'} =~ m{^/res/adm/pages/}) { |
if ($env{'request.noversionuri'} =~ m{^/res/adm/pages/}) { |
if ($dc_info) { |
if ($dc_info) { |
$dc_info = qq|<span class="LC_cusr_subheading">$dc_info</span>|; |
$dc_info = qq|<span class="LC_cusr_subheading">$dc_info</span>|; |
} |
} |
$bodytag .= qq|<div id="LC_nav_bar">$left $role<br /> |
$bodytag .= qq|<div id="LC_nav_bar" role="navigation" aria-label="$labeltext">$left $role</div>|; |
<em>$realm</em> $dc_info</div>|; |
unless (($realm eq '') && ($dc_info eq '')) { |
|
$bodytag .= qq|<div id="LC_realm" role="complementary"><em>$realm</em> $dc_info</div>|; |
|
} |
if ($need_endlcint) { |
if ($need_endlcint) { |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
} |
} |
return $bodytag; |
return $bodytag; |
} |
} |
|
|
|
$bodytag .= '<div class="LC_landmark" style="margin: 3px 0 0 0;" role="navigation" aria-label="'.$labeltext.'">'; |
unless ($env{'request.symb'} =~ m/\.page___\d+___/) { |
unless ($env{'request.symb'} =~ m/\.page___\d+___/) { |
$bodytag .= qq|<div id="LC_nav_bar">$left $role</div>|; |
$bodytag .= qq|<div id="LC_nav_bar">$left $role</div>|; |
} |
} |
|
|
$bodytag .= $right; |
$bodytag .= $right.'</div>'; |
|
|
if ($dc_info) { |
if ($dc_info) { |
$dc_info = &dc_courseid_toggle($dc_info); |
$dc_info = &dc_courseid_toggle($dc_info); |
} |
} |
$bodytag .= qq|<div id="LC_realm">$realm $dc_info</div>|; |
unless (($realm eq '') && ($dc_info eq '')) { |
|
$bodytag .= qq|<div id="LC_realm" role="complementary">$realm $dc_info</div>|; |
|
} |
|
$bodytag .= qq|<div style="clear: both; margin: 5px 0 0 0;"></div>|; |
} |
} |
|
|
#if directed to not display the secondary menu, don't. |
#if directed to not display the secondary menu, don't. |
Line 7085 END
|
Line 7090 END
|
#don't show menus for public users |
#don't show menus for public users |
if (!$public){ |
if (!$public){ |
unless ($args->{'no_inline_menu'}) { |
unless ($args->{'no_inline_menu'}) { |
$bodytag .= Apache::lonmenu::secondary_menu($httphost,$ltiscope,$ltimenu, |
$bodytag .= '<div class="LC_landmark" role="navigation" aria-label="Secondary Links">'. |
|
Apache::lonmenu::secondary_menu($httphost,$ltiscope,$ltimenu, |
$args->{'no_primary_menu'}, |
$args->{'no_primary_menu'}, |
$menucoll,$menuref, |
$menucoll,$menuref, |
$args->{'links_disabled'}, |
$args->{'links_disabled'}, |
$args->{'links_target'}); |
$args->{'links_target'}). |
|
'</div>'; |
} |
} |
$bodytag .= Apache::lonmenu::serverform(); |
$bodytag .= Apache::lonmenu::serverform(); |
if ($need_endlcint) { |
if ($need_endlcint) { |
Line 7104 END
|
Line 7111 END
|
$args->{'group'},$args->{'hide_buttons'}, |
$args->{'group'},$args->{'hide_buttons'}, |
$hostname,$ltiscope,$ltiuri,$showncrumbsref); |
$hostname,$ltiscope,$ltiuri,$showncrumbsref); |
} else { |
} else { |
$bodytag .= |
$bodytag .= |
&Apache::lonmenu::prepare_functions($env{'request.noversionuri'}, |
&Apache::lonmenu::prepare_functions($env{'request.noversionuri'}, |
$forcereg,$args->{'group'}, |
$forcereg,$args->{'group'}, |
$args->{'bread_crumbs'}, |
$args->{'bread_crumbs'}, |
Line 7113 END
|
Line 7120 END
|
} else { |
} else { |
# this is to separate menu from content when there's no secondary |
# this is to separate menu from content when there's no secondary |
# menu. Especially needed for publicly accessible resources. |
# menu. Especially needed for publicly accessible resources. |
$bodytag .= '<hr style="clear:both" />'; |
$bodytag .= '<hr style="clear:both" role="complementary" />'; |
if ($need_endlcint) { |
if ($need_endlcint) { |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
} |
} |
Line 7333 form, .inline {
|
Line 7340 form, .inline {
|
|
|
.LC_heading_2 { |
.LC_heading_2 { |
font-size: 1.17em; |
font-size: 1.17em; |
margin-top: 1em; |
} |
margin-bottom: 1em; |
|
|
.LC_heading_3 { |
|
font-size: 1.0em; |
} |
} |
|
|
.LC_menus_content.shown{ |
.LC_menus_content.shown{ |
Line 7995 table.LC_parm_overview_restrictions th {
|
Line 8004 table.LC_parm_overview_restrictions th {
|
border-color: $pgbg; |
border-color: $pgbg; |
} |
} |
|
|
table#LC_helpmenu { |
h1.LC_helpmenu { |
border: none; |
display: inline; |
height: 55px; |
font-size: 100%; |
border-spacing: 0; |
font-weight: normal; |
|
line-height: 1em; |
|
margin: 0; |
|
padding: 0; |
|
border: 0; |
} |
} |
|
|
table#LC_helpmenu fieldset legend { |
.LC_helpdesk_headbox { |
font-size: larger; |
border: 2px groove threedface; |
|
padding: 1em; |
} |
} |
|
|
table#LC_helpmenu_links { |
h1.LC_helpdesk_legend { |
width: 100%; |
float: left; |
border: 1px solid black; |
margin: -1.7em 0 0; |
|
padding: 0 .5em; |
background: $pgbg; |
background: $pgbg; |
|
font-size: 1em; |
|
font-weight: bold; |
|
} |
|
|
|
h1.LC_helpdesk_title { |
|
display: inline; |
|
font-size: 1em; |
|
line-height: 2.5em; |
|
margin: 0; |
padding: 0; |
padding: 0; |
border-spacing: 1px; |
vertical-align: bottom; |
} |
} |
|
|
table#LC_helpmenu_links tr td { |
.LC_helpdesk_links { |
padding: 1px; |
border: 1px solid black; |
|
padding: 3px; |
background: $tabbg; |
background: $tabbg; |
text-align: center; |
text-align: center; |
font-weight: bold; |
font-weight: bold; |
|
display: inline; |
|
margin-right: -6px; |
|
} |
|
|
|
.LC_helpdesk_img, |
|
.LC_helpdesk_text { |
|
padding: 0; |
|
margin: 0; |
|
border: 0; |
|
display: inline; |
} |
} |
|
|
table#LC_helpmenu_links a:link, |
.LC_helpdesk_img a:link, |
table#LC_helpmenu_links a:visited, |
.LC_helpdesk_img a:visited, |
table#LC_helpmenu_links a:active { |
.LC_helpdesk_img a:active, |
|
.LC_helpdesk_text a:link, |
|
.LC_helpdesk_text a:visited, |
|
.LC_helpdesk_text a:active { |
text-decoration: none; |
text-decoration: none; |
color: $font; |
color: $font; |
} |
} |
|
|
table#LC_helpmenu_links a:hover { |
div.LC_helpdesk_text a:hover { |
text-decoration: underline; |
text-decoration: underline; |
color: $vlink; |
color: $vlink; |
} |
} |
Line 8054 table.LC_pick_box {
|
Line 8092 table.LC_pick_box {
|
border-spacing: 1px; |
border-spacing: 1px; |
} |
} |
|
|
table.LC_pick_box td.LC_pick_box_title { |
table.LC_pick_box th.LC_pick_box_title { |
background: $sidebg; |
background: $sidebg; |
font-weight: bold; |
font-weight: bold; |
text-align: left; |
text-align: left; |
Line 9739 OFFLOAD
|
Line 9777 OFFLOAD
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="apple-mobile-web-app-capable" content="yes" />'; |
<meta name="apple-mobile-web-app-capable" content="yes" />'; |
} |
} |
$result .= '<meta name="google" content="notranslate" />'."\n"; |
$result .= '<meta name="google" content="notranslate"'; |
|
if (!$args->{'frameset'}) { |
|
$result .= ' /'; |
|
} |
|
$result .= '>'."\n"; |
return $result.'</head>'; |
return $result.'</head>'; |
} |
} |
|
|
Line 9870 sub xml_begin {
|
Line 9912 sub xml_begin {
|
.'xmlns="http://www.w3.org/1999/xhtml">'; |
.'xmlns="http://www.w3.org/1999/xhtml">'; |
} elsif ($is_frameset) { |
} elsif ($is_frameset) { |
$output='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'."\n". |
$output='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'."\n". |
'<html>'."\n"; |
'<html lang="en">'."\n"; |
} else { |
} else { |
$output='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n". |
$output='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n". |
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n"; |
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n"; |
Line 10783 sub simple_error_page {
|
Line 10825 sub simple_error_page {
|
} |
} |
|
|
my $page = |
my $page = |
&Apache::loncommon::start_page($title,'',\%displayargs). |
&Apache::loncommon::start_page($title,'',\%displayargs)."\n". |
|
'<div class="LC_landmark" style="clear:both" role="main">'. |
'<p class="LC_error">'.$msg.'</p>'. |
'<p class="LC_error">'.$msg.'</p>'. |
|
'</div>'. |
&Apache::loncommon::end_page(); |
&Apache::loncommon::end_page(); |
if (ref($r)) { |
if (ref($r)) { |
$r->print($page); |
$r->print($page); |