From 7c41b1812fdbd8b8e4f7d2d04446107feb50fd22 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 17 Nov 2010 03:33:06 +0000 Subject: Refs #821 #1793 early widget layout - does not include edit settings, delete, collapsing, reloading, or adding widgets git-svn-id: http://code.elgg.org/elgg/trunk@7329 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/widgets/wrapper.php | 90 ++++----------------------------------- 1 file changed, 9 insertions(+), 81 deletions(-) (limited to 'views/default/widgets') diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index c89a878ca..13d8da50e 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -6,13 +6,7 @@ * @subpackage Core */ -static $widgettypes; - -$callback = get_input('callback'); - -if (!isset($widgettypes)) { - $widgettypes = get_widget_types(); -} +$widgettypes = get_widget_types(); if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'widget') { $handler = $vars['entity']->handler; @@ -25,78 +19,12 @@ if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'w $title = elgg_echo("error"); } -if ($callback != "true") { - - ?> - -
-
-
- -canEdit()) { ?> -

+?> +
+
+

Widget Title

+
+
+

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.

- canEdit()) { - ?> -
elgg_view("widgets/{$handler}/edit",$vars), - 'entity' => $vars['entity'] - ) - ); - - ?>
- -
- getGUID()}\">"; -} else { // end if callback != "true" - if (elgg_view_exists("widgets/{$handler}/view")) { - echo elgg_view("widgets/{$handler}/view",$vars); - } else { - echo elgg_echo('widgets:handlernotfound'); - } - - ?> - - - "; - - ?> -
-
-
- - - - -- cgit v1.2.3