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

schualex schualex@source.lon-capa.org
Mon, 23 Feb 2009 22:36:30 -0000


schualex		Mon Feb 23 22:36:30 2009 EDT

  Modified files:              
    /loncom/interface	lonsimplepage.pm 
  Log:
  Adding a content box surround the page content.
  
Index: loncom/interface/lonsimplepage.pm
diff -u loncom/interface/lonsimplepage.pm:1.69 loncom/interface/lonsimplepage.pm:1.70
--- loncom/interface/lonsimplepage.pm:1.69	Fri Feb 20 17:45:40 2009
+++ loncom/interface/lonsimplepage.pm	Mon Feb 23 22:36:30 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Simple Page Editor
 #
-# $Id: lonsimplepage.pm,v 1.69 2009/02/20 17:45:40 neumanie Exp $
+# $Id: lonsimplepage.pm,v 1.70 2009/02/23 22:36:30 schualex Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -334,7 +334,9 @@
 			if($allowed){
 				$r->print('<p>');
 			}
-                        $r->print('<h2>'.$message.'</h2>');
+			$r->print('<div class="LC_ContentBoxSpecial">');
+                        $r->print('<h2 class="LC_hcell">'.$message.'</h2>');
+			$r->print('<blockquote>');
                     } else {
                         my $safeinit;
                         $r->print(&Apache::lonxml::xmlparse($r,'tex','<h1>'.$message.'</h1>'));
@@ -385,6 +387,9 @@
 	    $r->print('<p>'.&mt('No page information provided.').'</p>');
         }
     }
+    
+    $r->print('</blockquote>');
+    $r->print('</div>');
     if ($env{'form.grade_target'} ne 'tex') {
 	$r->print(&Apache::loncommon::end_page());
     } else {