]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added some CSS classes for styling doc pages differently
authorZach Copley <zach@controlyourself.ca>
Thu, 22 Jan 2009 04:26:15 +0000 (04:26 +0000)
committerZach Copley <zach@controlyourself.ca>
Thu, 22 Jan 2009 04:26:15 +0000 (04:26 +0000)
actions/doc.php
actions/register.php

index aaf006f07159abbbd8ca91f52a72a28cea91ebef..3755bb051d29adb3f7f6a19b9976dfd527e03ba7 100644 (file)
@@ -67,6 +67,25 @@ class DocAction extends Action
         $this->showPage();
     }
 
+    // overrrided to add entry-title class
+    function showPageTitle() {
+        $this->element('h1', array('class' => 'entry-title'), $this->title());
+    }
+    
+    // overrided to add hentry, and content-inner classes
+    function showContentBlock()
+     {
+         $this->elementStart('div', array('id' => 'content', 'class' => 'hentry'));
+         $this->showPageTitle();
+         $this->showPageNoticeBlock();
+         $this->elementStart('div', array('id' => 'content_inner', 
+             'class' => 'entry-content'));
+         // show the actual content (forms, lists, whatever)
+         $this->showContent();
+         $this->elementEnd('div');
+         $this->elementEnd('div');
+     }
+
     /**
      * Display content.
      * 
@@ -89,4 +108,3 @@ class DocAction extends Action
         return ucfirst($this->title);
     }
 }
-
index 159daaa737417b73229710b2db8cfbd0ace22f10..a63da2e0fd8aa047c431440a9a52e7d3c820614e 100644 (file)
@@ -248,6 +248,25 @@ class RegisterAction extends Action
         return ($user !== false);
     }
 
+    // overrrided to add entry-title class
+    function showPageTitle() {
+        $this->element('h1', array('class' => 'entry-title'), $this->title());
+    }
+    
+    // overrided to add hentry, and content-inner class
+    function showContentBlock()
+     {
+         $this->elementStart('div', array('id' => 'content', 'class' => 'hentry'));
+         $this->showPageTitle();
+         $this->showPageNoticeBlock();
+         $this->elementStart('div', array('id' => 'content_inner', 
+             'class' => 'entry-content'));
+         // show the actual content (forms, lists, whatever)
+         $this->showContent();
+         $this->elementEnd('div');
+         $this->elementEnd('div');
+     }
+
     /**
      * Instructions or a notice for the page
      *