--- rat/lonwrapper.pm 2016/11/29 19:53:58 1.54 +++ rat/lonwrapper.pm 2017/02/07 02:07:28 1.56 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.54 2016/11/29 19:53:58 damieng Exp $ +# $Id: lonwrapper.pm,v 1.56 2017/02/07 02:07:28 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -76,6 +76,9 @@ sub wrapper { if ($absolute) { $args->{'use_absolute'} = $absolute; } + if ($env{'form.only_body'}) { + $args->{'only_body'} = $env{'form.only_body'}; + } my $startpage = &Apache::loncommon::start_page('Menu',undef,$args); my $endpage = &Apache::loncommon::end_page(); @@ -111,11 +114,16 @@ sub wrapper { $output .= $endpage; return $output; } else { + my $offset = 5; + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['inhibitmenu']); + if ($env{'form.inhibitmenu'} eq 'yes') { + $offset = 0; + } my $script = &Apache::lonhtmlcommon::scripttag(<