diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-15 22:20:20 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-15 22:20:20 +0000 |
commit | 5922d93173db6353e3404c1c2a941842a9f166ed (patch) | |
tree | 00eff462ba782d5792795e2e69362b62c23dc423 /views/default/widgets/wrapper.php | |
parent | 1c61bbef8f87c9bc96b7b265816f638899ea3e13 (diff) | |
download | elgg-5922d93173db6353e3404c1c2a941842a9f166ed.tar.gz elgg-5922d93173db6353e3404c1c2a941842a9f166ed.tar.bz2 |
moved widget into layout/objects as one of our core css objects
git-svn-id: http://code.elgg.org/elgg/trunk@7639 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r-- | views/default/widgets/wrapper.php | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php deleted file mode 100644 index 5c71aa8f8..000000000 --- a/views/default/widgets/wrapper.php +++ /dev/null @@ -1,53 +0,0 @@ -<?php -/** - * Elgg widget wrapper - * - * @package Elgg - * @subpackage Core - */ - -$widget = $vars['entity']; -if (!elgg_instanceof($widget, 'object', 'widget')) { - return true; -} - -// @todo catch for disabled plugins -$widgettypes = elgg_get_widget_types('all'); - -$handler = $widget->handler; - -$title = $widget->getTitle(); - -$can_edit = $widget->canEdit(); - -$widget_id = "widget-$widget->guid"; -$widget_instance = "widget-instance-$handler"; - -?> -<div class="widget draggable <?php echo $widget_instance?>" id="<?php echo $widget_id; ?>"> - <div class="widget-title drag-handle"> - <h3><?php echo $title; ?></h3> - </div> - <?php - if ($can_edit) { - echo elgg_view('widgets/controls', array('widget' => $widget)); - } - ?> - <div class="widget-container"> - <?php - if ($can_edit) { - echo elgg_view('widgets/settings', array('widget' => $widget)); - } - ?> - <div class="widget-content"> - <?php - if (elgg_view_exists("widgets/$handler/content")) { - echo elgg_view("widgets/$handler/content", $vars); - } else { - elgg_deprecated_notice("widgets use content as the display view", 1.8); - echo elgg_view("widgets/$handler/view", $vars); - } - ?> - </div> - </div> -</div> |