diff options
Diffstat (limited to 'views/default/canvas/layouts/widgets.php')
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index 6b89d5435..7b3470dd2 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -8,7 +8,6 @@ * @author Curverider Ltd * @link http://elgg.org/ */ - $widgettypes = get_widget_types(); $owner = page_owner_entity(); @@ -26,7 +25,7 @@ if (empty($area1widgets) && empty($area2widgets) && empty($area3widgets)) { } } -if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner && $owner->canEdit()) { +if ($owner && $owner->canEdit()) { ?> @@ -36,7 +35,6 @@ if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner && $owner->canE <h2><?php echo elgg_echo("widgets:gallery"); ?></h2> <div id="widget_picker_gallery"> - <?php foreach($widgettypes as $handler => $widget) { ?> @@ -66,7 +64,6 @@ if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner && $owner->canE </div><!-- /#customise_editpanel_rhs --> </div><!-- /#widget_picker_gallery --> - <div class="customise_editpanel_instructions"> <h2><?php echo elgg_echo('widgets:add'); ?></h2> <?php echo elgg_view('output/longtext', array('value' => elgg_echo('widgets:add:description'))); ?> |