diff options
author | PayBas <contact@paybas.com> | 2014-05-28 21:33:17 +0200 |
---|---|---|
committer | PayBas <contact@paybas.com> | 2014-06-15 10:02:08 +0200 |
commit | d5f4d288e92499b64e96aeafe673ed05708cc8da (patch) | |
tree | dbffc7117e7d3412fa2a4c01a0e00247d653b5f9 /phpBB/phpbb/notification/type/topic.php | |
parent | 3a96c5b753cbbde459f9835e952b2cb75008a9fc (diff) | |
download | forums-d5f4d288e92499b64e96aeafe673ed05708cc8da.tar forums-d5f4d288e92499b64e96aeafe673ed05708cc8da.tar.gz forums-d5f4d288e92499b64e96aeafe673ed05708cc8da.tar.bz2 forums-d5f4d288e92499b64e96aeafe673ed05708cc8da.tar.xz forums-d5f4d288e92499b64e96aeafe673ed05708cc8da.zip |
[ticket/12608] Improve notifications drop-down menu styling in header
PHPBB3-12608
Diffstat (limited to 'phpBB/phpbb/notification/type/topic.php')
-rw-r--r-- | phpBB/phpbb/notification/type/topic.php | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/phpBB/phpbb/notification/type/topic.php b/phpBB/phpbb/notification/type/topic.php index 144c4e58a0..a512a12f20 100644 --- a/phpBB/phpbb/notification/type/topic.php +++ b/phpBB/phpbb/notification/type/topic.php @@ -151,8 +151,32 @@ class topic extends \phpbb\notification\type\base return $this->user->lang( $this->language_key, - $username, - censor_text($this->get_data('topic_title')), + $username + ); + } + + /** + * Get the HTML formatted reference of the notification + * + * @return string + */ + public function get_reference() + { + return $this->user->lang( + 'NOTIFICATION_REFERENCE', + censor_text($this->get_data('topic_title')) + ); + } + + /** + * Get the forum of the notification reference + * + * @return string + */ + public function get_forum() + { + return $this->user->lang( + 'NOTIFICATION_FORUM', $this->get_data('forum_name') ); } |