version 1.186.2.6, 2011/05/16 00:57:08
|
version 1.192, 2011/05/16 00:55:53
|
Line 620 sub iconchanger {
|
Line 620 sub iconchanger {
|
my ($inlinetools,$toolsorder) = &icon_previews(); |
my ($inlinetools,$toolsorder) = &icon_previews(); |
if ((ref($inlinetools) eq 'HASH') && (ref($toolsorder) eq 'ARRAY')) { |
if ((ref($inlinetools) eq 'HASH') && (ref($toolsorder) eq 'ARRAY')) { |
foreach my $tool (@{$toolsorder}) { |
foreach my $tool (@{$toolsorder}) { |
my ($command,$row,$col,$img,$top,$bot,$act,$desc) = |
my ($command,$row,$col,$img,$top,$bot,$act,$desc) = |
split(/\&/,$inlinetools->{$tool}); |
split(/\&/,$inlinetools->{$tool}); |
$iconic_preview .= '<li><a title="'.$desc.'" class="LC_menubuttons_link" href=""><img alt="'.$desc.'" src="/res/adm/pages/'.$img.'" class="LC_icon" /><span class="LC_menubuttons_inline_text">'.$top.(' ' x 2).'</span></a></li>'; |
$iconic_preview .= '<li><a title="'.$desc.'" class="LC_menubuttons_link" href=""><img alt="'.$desc.'" src="/res/adm/pages/'.$img.'" class="LC_icon" /><span class="LC_menubuttons_inline_text">'.$top.(' ' x 2).'</span></a></li>'; |
$iconsonly_preview .= '<li><a title="'.$desc.'" class="LC_menubuttons_link" href=""><img alt="'.$desc.'" src="/res/adm/pages/'.$img.'" class="LC_icon" /> </a></li>'; |
$iconsonly_preview .= '<li><a title="'.$desc.'" class="LC_menubuttons_link" href=""><img alt="'.$desc.'" src="/res/adm/pages/'.$img.'" class="LC_icon" /> </a></li>'; |
Line 633 sub iconchanger {
|
Line 633 sub iconchanger {
|
$iconic_preview = '<ul class="LC_breadcrumb_tools_outerlist"><li>'. |
$iconic_preview = '<ul class="LC_breadcrumb_tools_outerlist"><li>'. |
'<ul>'. |
'<ul>'. |
$iconic_preview. |
$iconic_preview. |
'</ul></li></ul>'; |
'</ul></li></ul>'; |
$r->print(<<ENDSCREEN); |
$r->print(<<ENDSCREEN); |
$classic |
$classic |
<form name="prefs" action="/adm/preferences" method="post"> |
<form name="prefs" action="/adm/preferences" method="post"> |
Line 663 sub verify_and_change_icons {
|
Line 663 sub verify_and_change_icons {
|
} |
} |
|
|
sub icon_options { |
sub icon_options { |
my %lt = &Apache::lonlocal::texthash( |
return &Apache::lonlocal::texthash( |
iconic => 'Use icons and text', |
iconic => 'Use icons and text', |
iconsonly => 'Use icons only', |
iconsonly => 'Use icons only', |
); |
); |
return %lt; |
|
} |
} |
|
|
sub icon_previews { |
sub icon_previews { |
my %icon_text = ( |
my %icon_text = ( |
annotate => 'Notes', |
annotate => 'Notes', |
bookmark => 'Bookmark', |
wishlist => 'Wishlist', |
catalog => 'Info', |
catalog => 'Info', |
evaluate => 'Evaluate', |
evaluate => 'Evaluate', |
feedback => 'Communicate', |
feedback => 'Communicate', |
Line 681 sub icon_previews {
|
Line 680 sub icon_previews {
|
); |
); |
my %inlinetools = ( |
my %inlinetools = ( |
printout => "s&8&3&prt.png&$icon_text{'printout'}&printout[_1]&gopost('/adm/printout',currentURL)&Prepare a printable document", |
printout => "s&8&3&prt.png&$icon_text{'printout'}&printout[_1]&gopost('/adm/printout',currentURL)&Prepare a printable document", |
bookmark => "s&9&1&sbkm.png&$icon_text{'bookmark'}&bookmark[_2]&set_bookmark()&Set a bookmark for this resource", |
wishlist => "s&9&1&wishlist-link.png&$icon_text{'wishlist'}&wishlistlink[_2]&set_wishlistlink()&Set a link for this resource to wishlist", |
evaluate => "s&8&1&eval.png&$icon_text{'evaluate'}&this[_1]&gopost('/adm/evaluate',currentURL,1)&Provide my evaluation of this resource", |
evaluate => "s&8&1&eval.png&$icon_text{'evaluate'}&this[_1]&gopost('/adm/evaluate',currentURL,1)&Provide my evaluation of this resource", |
feedback => "s&8&2&fdbk.png&$icon_text{'feedback'}&discuss[_1]&gopost('/adm/feedback',currentURL,1)&Provide feedback messages or contribute to the course discussion about this resource", |
feedback => "s&8&2&fdbk.png&$icon_text{'feedback'}&discuss[_1]&gopost('/adm/feedback',currentURL,1)&Provide feedback messages or contribute to the course discussion about this resource", |
annotate => "s&9&3&anot.png&$icon_text{'annotate'}&tations[_1]&annotate()&Make notes and annotations about this resource", |
annotate => "s&9&3&anot.png&$icon_text{'annotate'}&tations[_1]&annotate()&Make notes and annotations about this resource", |
catalog => "s&6&3&catalog.png&$icon_text{'catalog'}&info[_1]&catalog_info()&Show Metadata", |
catalog => "s&6&3&catalog.png&$icon_text{'catalog'}&info[_1]&catalog_info()&Show Metadata", |
); |
); |
my @toolsorder = qw(annotate bookmark evaluate feedback printout catalog); |
my @toolsorder = qw(annotate wishlist evaluate feedback printout catalog); |
return (\%inlinetools,\@toolsorder); |
return (\%inlinetools,\@toolsorder); |
} |
} |
|
|
Line 2095 push(@{ $menu[0]->{items} }, {
|
Line 2094 push(@{ $menu[0]->{items} }, {
|
linktitle => 'Change your password.', |
linktitle => 'Change your password.', |
}); |
}); |
} |
} |
if ($env{'environment.remote'} eq 'off') { |
|
push(@{ $menu[1]->{items} }, { |
|
linktext => 'Launch Remote Control', |
|
url => '/adm/remote?url=/adm/preferences&action=launch', |
|
permission => 'F', |
|
#help => '', |
|
icon => 'remotecontrol.png', |
|
linktitle => 'Launch the remote control for LON-CAPA.', |
|
}); |
|
}else{ |
|
push(@{ $menu[1]->{items} }, { |
|
linktext => 'Collapse Remote Control', |
|
url => '/adm/remote?url=/adm/preferences&action=collapse', |
|
permission => 'F', |
|
#help => '', |
|
icon => 'remotecontrol.png', |
|
linktitle => 'Collapse the remote control for LON-CAPA.', |
|
}); |
|
} |
|
|
|
|
|
if (&can_toggle_namelocking()) { |
if (&can_toggle_namelocking()) { |
push(@{ $menu[0]->{items} }, { |
push(@{ $menu[0]->{items} }, { |