aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 18:55:24 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 18:55:24 +0000
commit566b755be286b794a07bc92655ec6791012b58ca (patch)
tree90b60a9f010a61403b51916c9e2e906922fb562f /engine/classes
parentfaf079af4ddc0f35fc2b5835c20f184b4c93e303 (diff)
downloadelgg-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')
-rw-r--r--engine/classes/ElggWidget.php15
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