[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm lonsyllabus.pm

neumanie neumanie@source.lon-capa.org
Thu, 19 Feb 2009 18:55:53 -0000


neumanie		Thu Feb 19 18:55:53 2009 EDT

  Modified files:              
    /loncom/interface	lonaboutme.pm lonsyllabus.pm 
  Log:
  Add Box around Rss feeds in sylabus
  
  
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.99 loncom/interface/lonaboutme.pm:1.100
--- loncom/interface/lonaboutme.pm:1.99	Thu Feb 19 17:32:39 2009
+++ loncom/interface/lonaboutme.pm	Thu Feb 19 18:55:53 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Personal Information Page
 #
-# $Id: lonaboutme.pm,v 1.99 2009/02/19 17:32:39 neumanie Exp $
+# $Id: lonaboutme.pm,v 1.100 2009/02/19 18:55:53 neumanie Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -342,11 +342,8 @@
        {	
 				
 		&print_portfiles_link($r,$is_course);
-		if(&Apache::lonrss::advertisefeeds($cnum,$cdom) ne ''){
-			$r->print('<div class="LC_ContentBoxSpecial">');
-			$r->print('<h4 class="LC_hcell">'.'RSS Feeds and Blogs'.'</h4>');
-			$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom));
-			$r->print('</div>');
+		if(&Apache::lonrss::advertisefeeds($cnum,$cdom) ne ''){			
+			&Apache::lontemplate::print_template($r,'RSS Feeds and Blogs',&Apache::lonrss::advertisefeeds($cnum,$cdom),1,'LC_ContentBoxSpecial');
 		}	
 		
        }#End  Print RSS and portfiles
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.77 loncom/interface/lonsyllabus.pm:1.78
--- loncom/interface/lonsyllabus.pm:1.77	Thu Feb 19 17:32:39 2009
+++ loncom/interface/lonsyllabus.pm	Thu Feb 19 18:55:53 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.77 2009/02/19 17:32:39 neumanie Exp $
+# $Id: lonsyllabus.pm,v 1.78 2009/02/19 18:55:53 neumanie Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -168,15 +168,6 @@
 	$r->print('\noindent{\large\textbf{'.$courseenv{'description'}.'}}\\\\\\\\\textbf{'.
 		  &Apache::lonnet::domain($cdom,'description').'}\\\\');
     }
-# -------------------------------------------------------------- Announcements?
-    my $day = &Apache::lonannounce::showday(time,2,
-			 &Apache::lonannounce::readcalendar($cdom.'_'.$cnum));
-    if ($target ne 'tex') {
-	$r->print($day. &Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit));
-    } else {
-	$r->print(&Apache::lonxml::xmlparse($r,'tex',$day));
-    }
-
 # -------------------------------------------------------- Get course personnel
     my %coursepersonnel=&Apache::lonnet::get_course_adv_roles($cdom.'/'.$cnum);
     if ($target ne 'tex') {
@@ -220,6 +211,14 @@
     } else {
 	$r->print('\end{tabular}\\\\');
     }
+# -------------------------------------------------------------- Announcements?
+    my $day = &Apache::lonannounce::showday(time,2,
+			 &Apache::lonannounce::readcalendar($cdom.'_'.$cnum));
+    if ($target ne 'tex') {	
+	&Apache::lontemplate::print_template($r,'RSS Feeds and Blogs',&Apache::lonrss::advertisefeeds($cnum,$cdom,$forceedit),1,'LC_ContentBoxSpecial');
+    } else {
+	$r->print(&Apache::lonxml::xmlparse($r,'tex',$day));
+    }
 # ---------------------------------------------------------- Load syllabus info
     my %syllabus=&Apache::lonnet::dump('syllabus',$cdom,$cnum);
     my $allowed=0;