hooks for showing <title> and <h1> elements
This commit is contained in:
parent
82b1d6daef
commit
c7d81f2d9d
12
EVENTS.txt
12
EVENTS.txt
|
@ -1066,3 +1066,15 @@ EndRssEntryArray: at the end of copying a notice to an array
|
|||
|
||||
NoticeDeleteRelated: at the beginning of deleting related fields to a notice
|
||||
- $notice: notice being deleted
|
||||
|
||||
StartShowHeadTitle: when beginning to show the <title> element
|
||||
- $action: action being shown
|
||||
|
||||
EndShowHeadTitle: when done showing the <title>
|
||||
- $action: action being shown
|
||||
|
||||
StartShowPageTitle: when beginning to show the page title <h1>
|
||||
- $action: action being shown
|
||||
|
||||
EndShowPageTitle: when done showing the page title <h1>
|
||||
- $action: action being shown
|
|
@ -121,7 +121,10 @@ class Action extends HTMLOutputter // lawsuit
|
|||
// XXX: attributes (profile?)
|
||||
$this->elementStart('head');
|
||||
if (Event::handle('StartShowHeadElements', array($this))) {
|
||||
if (Event::handle('StartShowHeadTitle', array($this))) {
|
||||
$this->showTitle();
|
||||
Event::handle('EndShowHeadTitle', array($this));
|
||||
}
|
||||
$this->showShortcutIcon();
|
||||
$this->showStylesheets();
|
||||
$this->showOpenSearch();
|
||||
|
@ -616,7 +619,10 @@ class Action extends HTMLOutputter // lawsuit
|
|||
function showContentBlock()
|
||||
{
|
||||
$this->elementStart('div', array('id' => 'content'));
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user