summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-07-02 16:06:06 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-07-02 16:06:06 +0000
commita9c83b064f38a2a1c431710c20eef611057711e8 (patch)
treea1ffb4a6abdf781498b023fdc3bc24bc464129f3 /lib/action.php
parent35a5934503542d585447e3eef3bebc38af8c1931 (diff)
Added event to let the site owner add more information into <address>
for contact e.g., email, location, tagline
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/action.php b/lib/action.php
index 3bfa6ba15..c89fe180a 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -383,15 +383,18 @@ class Action extends HTMLOutputter // lawsuit
{
$this->elementStart('address', array('id' => 'site_contact',
'class' => 'vcard'));
- $this->elementStart('a', array('class' => 'url home bookmark',
- 'href' => common_local_url('public')));
- if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) {
- $this->element('img', array('class' => 'logo photo',
- 'src' => (common_config('site', 'logo')) ? common_config('site', 'logo') : theme_path('logo.png'),
- 'alt' => common_config('site', 'name')));
+ if (Event::handle('StartAddressData', array($this))) {
+ $this->elementStart('a', array('class' => 'url home bookmark',
+ 'href' => common_local_url('public')));
+ if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) {
+ $this->element('img', array('class' => 'logo photo',
+ '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');
}