Diff for /loncom/interface/lonhelpmenu.pm between versions 1.45 and 1.49

version 1.45, 2017/02/20 00:36:40 version 1.49, 2022/05/30 12:31:06
Line 180  sub helpmenu_items { Line 180  sub helpmenu_items {
                                             lastloc       => 'Go back',                                              lastloc       => 'Go back',
                                             close         => 'Close',                                              close         => 'Close',
                                          );                                           );
       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'))) {
           $target = '_parent';
           $bugs_target = '_blank';
       } else {
           $target = '_top';
           $bugs_target = '_top';
       }
     my %items = (      my %items = (
                     general => {                      general => {
                                  href => '/adm/help/'.$general_help.'.hlp',                                   href => '/adm/help/'.$general_help.'.hlp',
Line 211  sub helpmenu_items { Line 220  sub helpmenu_items {
                                    img  => $location.'/lonMisc/smallBug.gif',                                      img  => $location.'/lonMisc/smallBug.gif', 
                                    alt  => $lt{'bugs'},                                     alt  => $lt{'bugs'},
                                    text => $lt{'bugs'},                                     text => $lt{'bugs'},
                                      target => $bugs_target,
                                 },                                  },
                     manuals_web  => {                      manuals_web  => {
                                        href => '',                                         href => '',
Line 229  sub helpmenu_items { Line 239  sub helpmenu_items {
                                    img    => '/res/adm/pages/tolastloc.png',                                     img    => '/res/adm/pages/tolastloc.png',
                                    alt    => $lt{'lastloc'},                                     alt    => $lt{'lastloc'},
                                    text   => $lt{'lastloc'},                                     text   => $lt{'lastloc'},
                                    target => '_top',                                     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    => $lt{'close'},
                                    text   => $lt{'close'},                                     text   => $lt{'close'},
                                    target => '_top',                                     target => $target,
                                 },                                  },
     );      );
     my %help_submenu = (      my %help_submenu = (
Line 392  sub display_help_mainpage { Line 402  sub display_help_mainpage {
         $r->print(&Apache::loncommon::start_page('Help Content',undef,          $r->print(&Apache::loncommon::start_page('Help Content',undef,
                                                  {'only_body' => 1,}));                                                   {'only_body' => 1,}));
     }      }
       my $target = '_top';
       if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) ||
           (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) {
           $target = '_parent';
       }
     if ($stayOnPage) {      if ($stayOnPage) {
         $r->print('<div>');          $r->print('<div>');
     }       }
     $r->print('<b>'.$lt{'chen'});      $r->print('<b>'.$lt{'chen'});
     if ($requestmail) {      if ($requestmail) {
         $r->print(', '.$lt{'orto'});          $r->print(', '.$lt{'orto'});
Line 425  sub display_help_mainpage { Line 440  sub display_help_mainpage {
                        &mt('[_1]Note[_2]: questions about course content should not be directed to the support team, but instead should be sent to the course instructor.').                          &mt('[_1]Note[_2]: questions about course content should not be directed to the support team, but instead should be sent to the course instructor.'). 
                        ' '.                         ' '.
                        &mt('This can be done by clicking the [_1]Communicate[_2] link or the "Send Feedback" link when viewing a content page.',                         &mt('This can be done by clicking the [_1]Communicate[_2] link or the "Send Feedback" link when viewing a content page.',
                           '<a href="/adm/communicate" target="_top">','</a>'));                             '<a href="/adm/communicate" target="'.$target.'">','</a>')); 
          }           }
          $r->print("</p>");           $r->print("</p>");
     }      }

Removed from v.1.45  
changed lines
  Added in v.1.49


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>