summaryrefslogtreecommitdiff
path: root/actions/doc.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-22 12:35:25 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-22 12:35:25 +0100
commita2a2dd88b5a580715a1b8256a5d8b7743675711c (patch)
treed9daa558200526d52aec315ccd196bef7dd46d5a /actions/doc.php
parent6a3204d08e035812cf111e20f72bf0c7ffb4c601 (diff)
parentf89f6a8eb0d16fc7c4114ba9279466189b857ea6 (diff)
Merge branch 'master' of evan@dev.controlyourself.ca:/var/www/trunk
Diffstat (limited to 'actions/doc.php')
-rw-r--r--actions/doc.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/actions/doc.php b/actions/doc.php
index aaf006f07..3755bb051 100644
--- a/actions/doc.php
+++ b/actions/doc.php
@@ -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);
}
}
-