version 1.107, 2010/03/03 21:33:15
|
version 1.108, 2010/03/10 14:20:53
|
Line 356 ENDSCRIPT
|
Line 356 ENDSCRIPT
|
&Apache::lonannounce::readcalendar($cdom.'_'.$cnum)); |
&Apache::lonannounce::readcalendar($cdom.'_'.$cnum)); |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if ($allowed) { |
if ($allowed) { |
&Apache::lontemplate::print_start_template($r,'RSS Feeds and Blogs','LC_Box'); |
&Apache::lontemplate::print_start_template($r,&mt('RSS Feeds and Blogs'),'LC_Box'); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
my $editurl= &Apache::lonnet::absolute_url().'/adm/'.$cdom.'/'.$cnum.'/_rss.html'; |
my $editurl= &Apache::lonnet::absolute_url().'/adm/'.$cdom.'/'.$cnum.'/_rss.html'; |
$r->print( '<a href="'.$editurl.'">'.&mt('New RSS Feed or Blog').'</a>'); |
$r->print( '<a href="'.$editurl.'">'.&mt('New RSS Feed or Blog').'</a>'); |
&Apache::lontemplate::print_end_template($r); |
&Apache::lontemplate::print_end_template($r); |
} elsif (&Apache::lonrss::advertisefeeds($cnum,$cdom) ne '') { |
} elsif (&Apache::lonrss::advertisefeeds($cnum,$cdom) ne '') { |
&Apache::lontemplate::print_start_template($r,'RSS Feeds and Blogs','LC_Box'); |
&Apache::lontemplate::print_start_template($r,&mt('RSS Feeds and Blogs'),'LC_Box'); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit)); |
&Apache::lontemplate::print_end_template($r); |
&Apache::lontemplate::print_end_template($r); |
} |
} |