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 /views/default/widgets/wrapper.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 'views/default/widgets/wrapper.php')
-rw-r--r-- | views/default/widgets/wrapper.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index a8651e666..8d589aabd 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -16,10 +16,7 @@ $widgettypes = elgg_get_widget_types('all'); $handler = $widget->handler; -$title = $widget->title; -if (!$title) { - $title = $widgettypes[$handler]->name; -} +$title = $widget->getTitle(); $can_edit = $widget->canEdit(); @@ -36,12 +33,14 @@ $widget_instance = "widget_instance_$handler"; } ?> </div> - <?php - if ($can_edit) { - echo elgg_view('widgets/settings', array('widget' => $widget)); - } - ?> - <div class="widget_content"> - <?php echo elgg_view("widgets/$handler/view", $vars); ?> + <div class="widget_container"> + <?php + if ($can_edit) { + echo elgg_view('widgets/settings', array('widget' => $widget)); + } + ?> + <div class="widget_content"> + <?php echo elgg_view("widgets/$handler/view", $vars); ?> + </div> </div> </div> |