summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-18 23:25:45 -0500
committerEvan Prodromou <evan@status.net>2010-01-18 23:25:45 -0500
commit71f519f64aed1dd6823a0f09db5c4c2e409da778 (patch)
tree93d8e4dcc5d4f3c408c075c62d9a18c49557772e /lib
parent21c3e08804b312aaea21ae6bd0a0691304d6e4cd (diff)
add event for showing content license in action
Diffstat (limited to 'lib')
-rw-r--r--lib/action.php37
1 files changed, 20 insertions, 17 deletions
diff --git a/lib/action.php b/lib/action.php
index a521bcb50..813d089fe 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -791,23 +791,26 @@ class Action extends HTMLOutputter // lawsuit
*/
function showContentLicense()
{
- $this->element('dt', array('id' => 'site_content_license'), _('Site content license'));
- $this->elementStart('dd', array('id' => 'site_content_license_cc'));
- $this->elementStart('p');
- $this->element('img', array('id' => 'license_cc',
- 'src' => common_config('license', 'image'),
- 'alt' => common_config('license', 'title'),
- 'width' => '80',
- 'height' => '15'));
- //TODO: This is dirty: i18n
- $this->text(_('All '.common_config('site', 'name').' content and data are available under the '));
- $this->element('a', array('class' => 'license',
- 'rel' => 'external license',
- 'href' => common_config('license', 'url')),
- common_config('license', 'title'));
- $this->text(_('license.'));
- $this->elementEnd('p');
- $this->elementEnd('dd');
+ if (Event::handle('StartShowContentLicense', array($this))) {
+ $this->element('dt', array('id' => 'site_content_license'), _('Site content license'));
+ $this->elementStart('dd', array('id' => 'site_content_license_cc'));
+ $this->elementStart('p');
+ $this->element('img', array('id' => 'license_cc',
+ 'src' => common_config('license', 'image'),
+ 'alt' => common_config('license', 'title'),
+ 'width' => '80',
+ 'height' => '15'));
+ //TODO: This is dirty: i18n
+ $this->text(_('All '.common_config('site', 'name').' content and data are available under the '));
+ $this->element('a', array('class' => 'license',
+ 'rel' => 'external license',
+ 'href' => common_config('license', 'url')),
+ common_config('license', 'title'));
+ $this->text(_('license.'));
+ $this->elementEnd('p');
+ $this->elementEnd('dd');
+ Event::handle('EndShowContentLicense', array($this));
+ }
}
/**