Added event to let the site owner add more information into <address>
for contact e.g., email, location, tagline
This commit is contained in:
parent
35a5934503
commit
a9c83b064f
@ -1,5 +1,4 @@
|
|||||||
InitializePlugin: a chance to initialize a plugin in a complete
|
InitializePlugin: a chance to initialize a plugin in a complete environment
|
||||||
environment
|
|
||||||
|
|
||||||
CleanupPlugin: a chance to cleanup a plugin at the end of a program
|
CleanupPlugin: a chance to cleanup a plugin at the end of a program
|
||||||
|
|
||||||
@ -117,3 +116,9 @@ EndLogout: After logging out
|
|||||||
|
|
||||||
ArgsInitialized: After the argument array has been initialized
|
ArgsInitialized: After the argument array has been initialized
|
||||||
- $args: associative array of arguments, can be modified
|
- $args: associative array of arguments, can be modified
|
||||||
|
|
||||||
|
StartAddressData: Allows the site owner to provide additional information about themselves for contact (e.g., tagline, email, location)
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
EndAddressData: At the end of <address>
|
||||||
|
- $action: the current action
|
||||||
|
@ -383,15 +383,18 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
{
|
{
|
||||||
$this->elementStart('address', array('id' => 'site_contact',
|
$this->elementStart('address', array('id' => 'site_contact',
|
||||||
'class' => 'vcard'));
|
'class' => 'vcard'));
|
||||||
$this->elementStart('a', array('class' => 'url home bookmark',
|
if (Event::handle('StartAddressData', array($this))) {
|
||||||
'href' => common_local_url('public')));
|
$this->elementStart('a', array('class' => 'url home bookmark',
|
||||||
if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) {
|
'href' => common_local_url('public')));
|
||||||
$this->element('img', array('class' => 'logo photo',
|
if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) {
|
||||||
'src' => (common_config('site', 'logo')) ? common_config('site', 'logo') : theme_path('logo.png'),
|
$this->element('img', array('class' => 'logo photo',
|
||||||
'alt' => common_config('site', 'name')));
|
'src' => (common_config('site', 'logo')) ? common_config('site', 'logo') : theme_path('logo.png'),
|
||||||
|
'alt' => common_config('site', 'name')));
|
||||||
|
}
|
||||||
|
$this->element('span', array('class' => 'fn org'), common_config('site', 'name'));
|
||||||
|
$this->elementEnd('a');
|
||||||
|
Event::handle('EndAddressData', array($this));
|
||||||
}
|
}
|
||||||
$this->element('span', array('class' => 'fn org'), common_config('site', 'name'));
|
|
||||||
$this->elementEnd('a');
|
|
||||||
$this->elementEnd('address');
|
$this->elementEnd('address');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user