/** * AJAXable edit panel taken from the profile edit panel for widgets. The difference * is that this one is built for AJAX, and capable of handling multiple wheres (dashboard, * profile, or whatever else you want). * * Radio buttons are provided to change contexts (not elgg contexts, just contexts) * between the different wheres. Care has been taken to ensure that when you switch, * no state is held from the last one, so you don't end up saving a 'hidden' field or anything. * (WYSIWYG). * */ global $CONFIG; $widgettypes = get_widget_types(); $swTypes = getSWTypes(); $swWheres = getSWContexts(); $owner = page_owner_entity(); ?> <!-- <script type="text/javascript" src="<?php echo $vars['url']; ?> vendors/jquery/service/dragsndrops/jquery-ui-personalized-1.6rc5.min.js"></script>--> <script type="text/javascript"> <!-- var swType = '<?php echo $swTypes[0]; ?> '; var swWhere = '<?php
echo $type; ?> -<?php echo $context; ?> "><?php echo elgg_echo("sw:context:{$context}"); ?> </a></li> <?php } ?> </ul> <?php foreach (getSWContexts() as $context) { ?> <div id="<?php echo $type; ?> -<?php echo $context; ?> "><?php echo elgg_view("sticky_widgets/defaults_config", array("swType" => $type, "context" => $context, "widgets" => $widgets)); ?> </div> <?php } ?> </div>