]> git.mjollnir.org Git - moodle.git/commitdiff
Adding new wraplevelXX class for easier containers identification. MDL-12339
authorstronk7 <stronk7>
Wed, 28 Nov 2007 18:14:38 +0000 (18:14 +0000)
committerstronk7 <stronk7>
Wed, 28 Nov 2007 18:14:38 +0000 (18:14 +0000)
Merged from MOODLE_19_STABLE

lib/weblib.php

index 6174f4ef775316847acf596ee728a539924386e2..58c6818fc0abdba4a1f548df44cfcf5a180dafa7 100644 (file)
@@ -3993,8 +3993,11 @@ function _print_custom_corners_start($clearfix=false, $classes='', $idbase='') {
         $idi3 = 'id="'.$idbase.'-i3" ';
     }
 
+/// Calculate current level
+    $level = open_containers();
+
 /// Output begins
-    $output = '<div '.$id.'class="wrap '.$classes.'">'."\n";
+    $output = '<div '.$id.'class="wrap wraplevel'.$level.' '.$classes.'">'."\n";
     $output .= '<div '.$idbt.'class="bt"><div>&nbsp;</div></div>';
     $output .= "\n";
     $output .= '<div '.$idi1.'class="i1"><div '.$idi2.'class="i2">';
@@ -6954,4 +6957,4 @@ function is_in_popup() {
 
 
 // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
-?>
\ No newline at end of file
+?>