HTMLArea.replaceAll();
@@ -828,6 +867,13 @@ sub htmlareaactive {
ENDSCRIPT
}
+# --------------------------------------------------------------------- Blocked
+
+sub htmlareablocked {
+ unless (&htmlareabrowser()) { return ''; }
+ return 1;
+}
+
# ---------------------------------------- Browser capable of running HTMLArea?
sub htmlareabrowser {
@@ -853,6 +899,9 @@ All inputs can be undef without problems
Inputs: $color (the background color of the table returned),
$component (the large text on the right side of the table),
$component_help
+ $function (role to get colors from)
+ $domain (domian of role)
+ $menulink (boolean, controls whether to include a link to /adm/menu)
Returns a string containing breadcrumbs for the current page.
@@ -878,7 +927,8 @@ returns: nothing
my @Crumbs;
sub breadcrumbs {
- my ($color,$component,$component_help,$function,$domain) = @_;
+ my ($color,$component,$component_help,$function,$domain,$menulink) =
+ @_;
if (! defined($color)) {
if (! defined($function)) {
$function = &Apache::loncommon::get_users_function();
@@ -895,11 +945,12 @@ returns: nothing
# Make the faq and bug data cascade
my $faq = '';
my $bug = '';
- # The last breadcrumb does not have a link, so handle it seperately.
+ # The last breadcrumb does not have a link, so handle it separately.
my $last = pop(@Crumbs);
#
# The first one should be the course, I guess.
- if (exists($ENV{'request.course.id'})) {
+ if (!defined($menulink)) { $menulink=1; }
+ if ($menulink && exists($ENV{'request.course.id'})) {
my $cid = $ENV{'request.course.id'};
unshift(@Crumbs,{
href=>'/adm/menu',
@@ -912,8 +963,8 @@ returns: nothing
map {
$faq = $_->{'faq'} if (exists($_->{'faq'}));
$bug = $_->{'bug'} if (exists($_->{'bug'}));
- ''.
- $_->{'text'}.''
+ ''.
+ &mt($_->{'text'}).''
} @Crumbs
);
$links .= '->' if ($links ne '');
@@ -936,7 +987,7 @@ returns: nothing
#
if (defined($component)) {
$Str .= ''.
- ''.$component.'';
+ ''.&mt($component).'';
if (defined($component_help)) {
$Str .=
&Apache::loncommon::help_open_topic($component_help);
|