'; } add_action('wp_footer', 'admin_widgets_head'); class admin_widgets_default extends AdminPanelAction { //var $validators = array(array('content', 'content', 'notEmpty', false, false)); var $events = array('save'); function get_widget_lists($wlist, $wpos, &$widget_list, $registered_w, $add_empties) { if (!isset($wlist[$wpos])) return; $widget_list[$wpos] = array(); foreach($wlist[$wpos] as $idx => $wdg) { $widget_list[$wpos][$idx] = array(); @list($newid, $params) = explode(":", $wdg); $widget_list[$wpos][$idx]['id'] = $newid; if (isset($registered_w[$newid])){ $thiswdg =& $registered_w[$newid]; $widget_list[$wpos][$idx]['name'] = $thiswdg['name']; if ($thiswdg['nparams'] > 0) { $widget_list[$wpos][$idx]['params'] = $params; } /* * here should go the check for * limited parameters: parameters limited to a * particular set would mean using a