summaryrefslogtreecommitdiff
path: root/actions/doc.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-22 04:26:15 +0000
committerZach Copley <zach@controlyourself.ca>2009-01-22 04:26:15 +0000
commit1a941d03fdcfcd1319da17c5400fe8972a755091 (patch)
tree41708a00228c41b476555eccbe7befa77a8b0c73 /actions/doc.php
parent41f74218f2ab70b78ba96d386b41fb6a1f958f75 (diff)
Added some CSS classes for styling doc pages differently
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);
}
}
-