version 1.53.2.5, 2021/12/14 03:22:21
|
version 1.63, 2025/02/28 01:38:28
|
Line 127 sub advertisefeeds {
|
Line 127 sub advertisefeeds {
|
} |
} |
} |
} |
if ($feeds) { |
if ($feeds) { |
return '<h4>'.&mt('Available RSS Feeds and Blogs').'</h4><ul>'.$feeds.'</ul>'; |
return '<h2 class="LC_heading_3">'.&mt('Available RSS Feeds and Blogs').'</h2><ul>'.$feeds.'</ul>'; |
} elsif (!$edit) { |
} elsif (!$edit) { |
return '<h4>'.&mt('No available RSS Feeds and Blogs').'</h4>'; |
return '<h2 class="LC_heading_3">'.&mt('No available RSS Feeds and Blogs').'</h2>'; |
} |
} |
} |
} |
|
|
Line 291 sub blocking_blogdisplay {
|
Line 291 sub blocking_blogdisplay {
|
if ($showdom eq '') { |
if ($showdom eq '') { |
$showdom = $blockdom; |
$showdom = $blockdom; |
} |
} |
$output .= &mt('This restriction was set by an administrator in the [_1] LON-CAPA domain',$showdom); |
$output .= &mt('This restriction was set by an administrator in the [_1] LON-CAPA domain.',$showdom); |
} else { |
} else { |
$output .= &mt('This is because the blog owner is a student in one or more courses in which communication is being blocked.'); |
$output .= &mt('This is because the blog owner is a student in one or more courses in which communication is being blocked.'); |
} |
} |
Line 337 sub handler {
|
Line 337 sub handler {
|
my ($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom); |
my ($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom); |
my ($blocked,$blocktext,$disabled,$disabletext); |
my ($blocked,$blocktext,$disabled,$disabletext); |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
my $clientip = &Apache::lonnet::get_requestor_ip($r); |
my $clientip = &Apache::lonnet::get_requestor_ip($r); |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname,$clientip); |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname,$clientip); |
if (&Apache::lonnet::usertools_access($uname,$udom,'blog')) { |
if (&Apache::lonnet::usertools_access($uname,$udom,'blog')) { |
$disabled = 0; |
$disabled = 0; |