version 1.39.2.2, 2008/12/22 14:41:05
|
version 1.50, 2012/07/03 15:18:54
|
Line 61 sub displayfeedname {
|
Line 61 sub displayfeedname {
|
my $name=$filterfilename; |
my $name=$filterfilename; |
if ($name=~/^CourseBlog/) { |
if ($name=~/^CourseBlog/) { |
$name=&mt('Course Blog'); |
$name=&mt('Course Blog'); |
|
if ($env{'course.'.$env{'request.course.id'}.'.type'} eq 'Community') { |
|
$name = &mt('Community Blog'); |
|
} |
if ($env{'course.'.$env{'request.course.id'}.'.description'}) { |
if ($env{'course.'.$env{'request.course.id'}.'.description'}) { |
$name.=' '.$env{'course.'.$env{'request.course.id'}.'.description'}; |
$name.=' '.$env{'course.'.$env{'request.course.id'}.'.description'}; |
} |
} |
Line 258 sub blocking_blogdisplay {
|
Line 261 sub blocking_blogdisplay {
|
if ($blockcause eq 'user') { |
if ($blockcause eq 'user') { |
$output .= &mt('This is because you are a student in one or more courses in which communication is being blocked.'); |
$output .= &mt('This is because you are a student in one or more courses in which communication is being blocked.'); |
if ($html) { |
if ($html) { |
$output .= '<br />'. |
#$output .= '<br />'. |
&Apache::loncommon::build_block_table($startblock, |
#&Apache::loncommon::build_block_table($startblock, |
$endblock,\%setters); |
# $endblock,\%setters); |
|
my ($blocked, $blocktext) = Apache::loncommon::blocking_status('blogs'); |
|
$output .= '<br /><br />'.$blocktext; |
} |
} |
} 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 283 sub handler {
|
Line 288 sub handler {
|
$edit=1; |
$edit=1; |
$html=1; |
$html=1; |
} |
} |
if (($mode eq 'adm') && (&Apache::lonnet::allowed('mdc',$env{'request.course.id'}))) { |
if (($mode eq 'adm') && (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) |
|
&& ($uname eq $env{'course.'.$env{'request.course.id'}.'.num'} && |
|
$udom eq $env{'course.'.$env{'request.course.id'}.'.domain'})) { |
$edit=1; |
$edit=1; |
$html=1; |
$html=1; |
} |
} |
Line 322 sub handler {
|
Line 329 sub handler {
|
} |
} |
} |
} |
if ($html) { |
if ($html) { |
my $title = $displayfeedname?$displayfeedname |
# my $title = $displayfeedname?$displayfeedname:"Available RSS Feeds and Blogs"; |
:"Available RSS Feeds and Blogs"; |
my $title = "My Space"; |
my $rss_link = &Apache::lonrss::rss_link($uname,$udom); |
my $rss_link = &Apache::lonrss::rss_link($uname,$udom); |
|
my $brcrumb = [{href=>$rss_link,text=>"Available RSS Feeds and Blogs"}]; |
$r->print(&Apache::loncommon::start_page($title,$rss_link, |
$r->print(&Apache::loncommon::start_page($title,$rss_link, |
{'domain' => $udom, |
{'bread_crumbs' => $brcrumb, |
'force_register' => |
'domain' => $udom, |
$env{'form.register'}}). |
'force_register' => $env{'form.register'}}). |
&changed_js()); |
&changed_js()); |
} else { # render RSS |
} else { # render RSS |
my $server = &Apache::lonnet::absolute_url(); |
my $server = &Apache::lonnet::absolute_url(); |
Line 389 sub handler {
|
Line 397 sub handler {
|
} |
} |
# Add a new feed |
# Add a new feed |
if (($html) && ($edit)) { |
if (($html) && ($edit)) { |
|
$r->print('<h4>' . &mt('New RSS Feed or Blog'). '</h4>'); |
$r->print('<form method="post" name="makenewfeed">'); |
$r->print('<form method="post" name="makenewfeed">'); |
$r->print(&mt('Name for New Feed').": <input type='text' size='40' name='namenewblog' />"); |
$r->print(&mt('Name').": <input type='text' size='40' name='namenewblog' />"); |
$r->print('<input type="submit" value="'.&mt('Start a New Feed').'" />'); |
$r->print('<input type="submit" value="'.&mt('New Feed').'" />'); |
$r->print('</form>'); |
$r->print('</form>'); |
} |
} |
if ($displayfeedname) { # this is an existing feed |
if ($displayfeedname) { # this is an existing feed |
Line 508 sub handler {
|
Line 517 sub handler {
|
'private' => 'private', |
'private' => 'private', |
'hidden' => 'hidden', |
'hidden' => 'hidden', |
'delete' => 'delete', |
'delete' => 'delete', |
'store' => 'Save changes', |
'store' => 'Select', |
'title' => 'Title', |
'title' => 'Title', |
'link' => 'Link', |
'link' => 'Link', |
'description' => 'Description', |
'description' => 'Description', |
Line 588 ENDEDIT
|
Line 597 ENDEDIT
|
if ($html) { |
if ($html) { |
$r->print('</ul>'); |
$r->print('</ul>'); |
if ($edit) { |
if ($edit) { |
$r->print('<input type="hidden" name="newid" value="'.$newid.'"/><input type="submit" value="'.&mt('Save Marked Changes').'" />'. |
$r->print('<input type="hidden" name="newid" value="'.$newid.'"/><input type="submit" value="'.&mt('Save Selected').'" />'. |
($displayoption eq 'hidden'?'<input type="submit" name="advertisethisblog" value="'.&mt('Advertise this Feed').'" />': |
($displayoption eq 'hidden'?'<input type="submit" name="advertisethisblog" value="'.&mt('Advertise this Feed').'" />': |
'<input type="submit" name="hidethisblog" value="'.&mt('Hide this Feed').'" />')); |
'<input type="submit" name="hidethisblog" value="'.&mt('Hide this Feed').'" />')); |
} |
} |