summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-02 17:10:25 -0400
committerEvan Prodromou <evan@status.net>2010-09-02 17:10:25 -0400
commitc7d81f2d9d8cf318db80b82d68807f4f333692f8 (patch)
tree2651a15cf54304f2d40b13bec5a021e432c495dd /lib/action.php
parent82b1d6daefc29c870ea71b29ab851153642f270b (diff)
hooks for showing <title> and <h1> elements
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/action.php b/lib/action.php
index 2b3b707c5..1d85f19e9 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -121,7 +121,10 @@ class Action extends HTMLOutputter // lawsuit
// XXX: attributes (profile?)
$this->elementStart('head');
if (Event::handle('StartShowHeadElements', array($this))) {
- $this->showTitle();
+ if (Event::handle('StartShowHeadTitle', array($this))) {
+ $this->showTitle();
+ Event::handle('EndShowHeadTitle', array($this));
+ }
$this->showShortcutIcon();
$this->showStylesheets();
$this->showOpenSearch();
@@ -235,7 +238,7 @@ class Action extends HTMLOutputter // lawsuit
Event::handle('EndShowDesign', array($this));
}
Event::handle('EndShowStyles', array($this));
-
+
if (common_config('custom_css', 'enabled')) {
$css = common_config('custom_css', 'css');
if (Event::handle('StartShowCustomCss', array($this, &$css))) {
@@ -616,7 +619,10 @@ class Action extends HTMLOutputter // lawsuit
function showContentBlock()
{
$this->elementStart('div', array('id' => 'content'));
- $this->showPageTitle();
+ if (Event::handle('StartShowPageTitle', array($this))) {
+ $this->showPageTitle();
+ Event::handle('EndShowPageTitle', array($this));
+ }
$this->showPageNoticeBlock();
$this->elementStart('div', array('id' => 'content_inner'));
// show the actual content (forms, lists, whatever)