diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 18:55:24 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 18:55:24 +0000 |
commit | 566b755be286b794a07bc92655ec6791012b58ca (patch) | |
tree | 90b60a9f010a61403b51916c9e2e906922fb562f /engine/classes/ElggWidget.php | |
parent | faf079af4ddc0f35fc2b5835c20f184b4c93e303 (diff) | |
download | elgg-566b755be286b794a07bc92655ec6791012b58ca.tar.gz elgg-566b755be286b794a07bc92655ec6791012b58ca.tar.bz2 |
added some light styling to the widget control buttons
git-svn-id: http://code.elgg.org/elgg/trunk@7388 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggWidget.php')
-rw-r--r-- | engine/classes/ElggWidget.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/classes/ElggWidget.php b/engine/classes/ElggWidget.php index 1622aa5b3..15e942aa3 100644 --- a/engine/classes/ElggWidget.php +++ b/engine/classes/ElggWidget.php @@ -102,6 +102,21 @@ class ElggWidget extends ElggObject { } /** + * Get the title of the widget + * + * @return string + * @since 1.8.0 + */ + public function getTitle() { + $title = $this->title; + if (!$title) { + global $CONFIG; + $title = $CONFIG->widgets->handlers[$this->handler]->name; + } + return $title; + } + + /** * Move the widget * * @param int $column The widget column |