aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/js/initialise_elgg.php4
-rw-r--r--views/default/layouts/widgets.php4
-rw-r--r--views/default/widgets/add_panel.php8
-rw-r--r--views/default/widgets/wrapper.php4
4 files changed, 10 insertions, 10 deletions
diff --git a/views/default/js/initialise_elgg.php b/views/default/js/initialise_elgg.php
index 5157bb8bc..0db4b88bb 100644
--- a/views/default/js/initialise_elgg.php
+++ b/views/default/js/initialise_elgg.php
@@ -145,14 +145,14 @@ $(document).ready(function () {
}
});
- elgg-system-message();
+ elgg_system_message();
}); /* end document ready function */
// display & hide elgg system messages
-function elgg-system-message() {
+function elgg_system_message() {
$("#elgg-system-message").animate({opacity: 0.9}, 1000);
$("#elgg-system-message").animate({opacity: 0.9}, 5000);
$("#elgg-system-message").fadeOut('slow');
diff --git a/views/default/layouts/widgets.php b/views/default/layouts/widgets.php
index c5607314a..130b2eaad 100644
--- a/views/default/layouts/widgets.php
+++ b/views/default/layouts/widgets.php
@@ -30,11 +30,11 @@ if (elgg_can_edit_widget_layout($context)) {
echo $vars['box'];
-$widget_class = "widget_{$num_columns}_columns";
+$widget_class = "widget-{$num_columns}-columns";
for ($column_index = 1; $column_index <= $num_columns; $column_index++) {
$column_widgets = $widgets[$column_index];
- echo "<div class=\"widget-column $widget_class\" id=\"widget_col_$column_index\">";
+ echo "<div class=\"widget-column $widget_class\" id=\"widget-col-$column_index\">";
if (is_array($column_widgets) && sizeof($column_widgets) > 0) {
foreach ($column_widgets as $widget) {
echo elgg_view_entity($widget);
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; ?>">