aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-02 03:29:06 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-02 03:29:06 +0000
commitab36344d8e480b7c1b053130f2afc19ed2cf9e6c (patch)
tree71a4c5b7233593cbd781738e932db35370f4771a /views/default/widgets
parent4d80bc33b8924038bd1ca57d548828afe661bb42 (diff)
downloadelgg-ab36344d8e480b7c1b053130f2afc19ed2cf9e6c.tar.gz
elgg-ab36344d8e480b7c1b053130f2afc19ed2cf9e6c.tar.bz2
Refs #2700 fixed the widget code with the new CSS element names
git-svn-id: http://code.elgg.org/elgg/trunk@7494 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets')
-rw-r--r--views/default/widgets/add_panel.php8
-rw-r--r--views/default/widgets/wrapper.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/views/default/widgets/add_panel.php b/views/default/widgets/add_panel.php
index 9dbc8f78f..d9acc5518 100644
--- a/views/default/widgets/add_panel.php
+++ b/views/default/widgets/add_panel.php
@@ -20,7 +20,7 @@ foreach ($widgets as $column_widgets) {
<ul>
<?php
foreach ($widget_types as $handler => $widget_type) {
- $id = "widget_type_$handler";
+ $id = "widget-type-$handler";
// check if widget added and only one instance allowed
if ($widget_type->multiple == false && in_array($handler, $current_handlers)) {
$class = 'widget-unavailable';
@@ -31,9 +31,9 @@ foreach ($widgets as $column_widgets) {
}
if ($widget_type->multiple) {
- $class .= ' widget_multiple';
+ $class .= ' widget-multiple';
} else {
- $class .= ' widget_single';
+ $class .= ' widget-single';
}
echo "<li title=\"$tooltip\" id=\"$id\" class=\"$class\">$widget_type->name</li>";
@@ -42,7 +42,7 @@ foreach ($widgets as $column_widgets) {
</ul>
<?php
$params = array(
- 'internalname' => 'widget_context',
+ 'internalname' => 'widget-context',
'value' => $context
);
echo elgg_view('input/hidden', $params);
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 4483be887..2f82426ab 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -20,8 +20,8 @@ $title = $widget->getTitle();
$can_edit = $widget->canEdit();
-$widget_id = "widget_$widget->guid";
-$widget_instance = "widget_instance_$handler";
+$widget_id = "widget-$widget->guid";
+$widget_instance = "widget-instance-$handler";
?>
<div class="widget draggable <?php echo $widget_instance?>" id="<?php echo $widget_id; ?>">