diff options
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r-- | views/default/widgets/wrapper.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index fd849bdee..55cdd18b6 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -21,15 +21,22 @@ if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'w $title = elgg_echo("error"); } +$title = "Widget Title"; + $display_view = "widgets/$handler/view"; $edit_view = "widgets/$handler/edit"; ?> <div class="widget draggable" id="widget_<?php echo $widget->guid; ?>"> <div class="widget_title drag_handle"> - <h3>Widget Title</h3> - </div> - <div class="widget_content"> + <h3><?php echo $title; ?></h3> + <?php + if ($widget->canEdit()) { + echo elgg_view('widgets/controls', array('widget' => $widget)); + } + ?> + </div> + <div class="widget_content"> <?php echo elgg_view($display_view, $vars); ?> <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p> </div> |