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 | |
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
-rw-r--r-- | views/default/layout/objects/widget.php (renamed from views/default/widgets/wrapper.php) | 9 | ||||
-rw-r--r-- | views/default/layout/objects/widget/controls.php (renamed from views/default/widgets/controls.php) | 0 | ||||
-rw-r--r-- | views/default/layout/objects/widget/settings.php (renamed from views/default/widgets/settings.php) | 0 | ||||
-rw-r--r-- | views/default/layout/shells/widgets.php | 4 | ||||
-rw-r--r-- | views/default/layout/shells/widgets/add_button.php (renamed from views/default/widgets/add_button.php) | 0 | ||||
-rw-r--r-- | views/default/layout/shells/widgets/add_panel.php (renamed from views/default/widgets/add_panel.php) | 0 | ||||
-rw-r--r-- | views/default/object/widget.php | 2 |
7 files changed, 7 insertions, 8 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/layout/objects/widget.php index 5c71aa8f8..d109693e1 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/layout/objects/widget.php @@ -1,9 +1,8 @@ <?php /** - * Elgg widget wrapper + * Widget object * - * @package Elgg - * @subpackage Core + * @uses $vars['entity'] */ $widget = $vars['entity']; @@ -30,13 +29,13 @@ $widget_instance = "widget-instance-$handler"; </div> <?php if ($can_edit) { - echo elgg_view('widgets/controls', array('widget' => $widget)); + echo elgg_view('layout/objects/widget/controls', array('widget' => $widget)); } ?> <div class="widget-container"> <?php if ($can_edit) { - echo elgg_view('widgets/settings', array('widget' => $widget)); + echo elgg_view('layout/objects/widget/settings', array('widget' => $widget)); } ?> <div class="widget-content"> diff --git a/views/default/widgets/controls.php b/views/default/layout/objects/widget/controls.php index 5e6aaf193..5e6aaf193 100644 --- a/views/default/widgets/controls.php +++ b/views/default/layout/objects/widget/controls.php diff --git a/views/default/widgets/settings.php b/views/default/layout/objects/widget/settings.php index 5814e5821..5814e5821 100644 --- a/views/default/widgets/settings.php +++ b/views/default/layout/objects/widget/settings.php diff --git a/views/default/layout/shells/widgets.php b/views/default/layout/shells/widgets.php index 130b2eaad..e5b63114b 100644 --- a/views/default/layout/shells/widgets.php +++ b/views/default/layout/shells/widgets.php @@ -19,13 +19,13 @@ $widgets = elgg_get_widgets($owner->guid, $context); if (elgg_can_edit_widget_layout($context)) { if ($show_add_widgets) { - echo elgg_view('widgets/add-button'); + echo elgg_view('layout/shells/widgets/add_button'); } $params = array( 'widgets' => $widgets, 'context' => $context, ); - echo elgg_view('widgets/add_panel', $params); + echo elgg_view('layout/shells/widgets/add_panel', $params); } echo $vars['box']; diff --git a/views/default/widgets/add_button.php b/views/default/layout/shells/widgets/add_button.php index 92de8a99f..92de8a99f 100644 --- a/views/default/widgets/add_button.php +++ b/views/default/layout/shells/widgets/add_button.php diff --git a/views/default/widgets/add_panel.php b/views/default/layout/shells/widgets/add_panel.php index d9acc5518..d9acc5518 100644 --- a/views/default/widgets/add_panel.php +++ b/views/default/layout/shells/widgets/add_panel.php diff --git a/views/default/object/widget.php b/views/default/object/widget.php index b3ef5bb8c..1da5897c3 100644 --- a/views/default/object/widget.php +++ b/views/default/object/widget.php @@ -6,4 +6,4 @@ * @subpackage Core */ -echo elgg_view('widgets/wrapper',$vars); +echo elgg_view('layout/objects/widget', $vars); |