]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14815: Added CSS class to blocks when they have editing controls (for themeability)
authorsam_marshall <sam_marshall>
Thu, 15 May 2008 09:50:39 +0000 (09:50 +0000)
committersam_marshall <sam_marshall>
Thu, 15 May 2008 09:50:39 +0000 (09:50 +0000)
blocks/moodleblock.class.php

index 9647b77ba401fbad81a964f2fdf3b6421b841f99..0dc65c64cab4a9c60f040399a43af448f46dcfc5 100644 (file)
@@ -634,7 +634,11 @@ class block_base {
      * @todo finish documenting this function
      */
     function html_attributes() {
-        return array('id' => 'inst'.$this->instance->id, 'class' => 'block_'. $this->name());
+        return array(
+            'id' => 'inst'.$this->instance->id, 
+            'class' => 'block_'. $this->name().
+                ($this->edit_controls ? ' block_with_controls' :'')
+        );
     }
     
     /**