]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add class="admin" to the content div of admin panels for styling
authorZach Copley <zach@status.net>
Wed, 3 Mar 2010 20:18:20 +0000 (12:18 -0800)
committerZach Copley <zach@status.net>
Wed, 3 Mar 2010 20:18:20 +0000 (12:18 -0800)
lib/adminpanelaction.php

index 536d97cdf5d440329a4a0a16681289840020b026..9ea4fe2066adf2444ad951fd65e5e8737d8e53a9 100644 (file)
@@ -171,6 +171,24 @@ class AdminPanelAction extends Action
         $this->showForm();
     }
 
+    /**
+     * Show content block. Overrided just to add a special class
+     * to the content div to allow styling. 
+     *
+     * @return nothing
+     */
+    function showContentBlock()
+    {
+        $this->elementStart('div', array('id' => 'content', 'class' => 'admin'));
+        $this->showPageTitle();
+        $this->showPageNoticeBlock();
+        $this->elementStart('div', array('id' => 'content_inner'));
+        // show the actual content (forms, lists, whatever)
+        $this->showContent();
+        $this->elementEnd('div');
+        $this->elementEnd('div');
+    }
+
     /**
      * show human-readable instructions for the page, or
      * a success/failure on save.