aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/ui.widgets.js8
-rw-r--r--pages/dashboard.php2
-rw-r--r--views/default/core/dashboard/blurb.php10
-rw-r--r--views/default/css/screen.php22
-rw-r--r--views/default/layout/shells/widgets.php4
5 files changed, 19 insertions, 27 deletions
diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js
index c33056d7c..141ea2d31 100644
--- a/js/lib/ui.widgets.js
+++ b/js/lib/ui.widgets.js
@@ -8,13 +8,13 @@ elgg.provide('elgg.ui.widgets');
elgg.ui.widgets.init = function() {
// widget layout?
- if ($(".widget-column").length == 0) {
+ if ($(".elgg-widgets").length == 0) {
return;
}
- $(".widget-column").sortable({
+ $(".elgg-widgets").sortable({
items: 'div.widget',
- connectWith: '.widget-column',
+ connectWith: '.elgg-widgets',
handle: 'div.drag-handle',
forcePlaceholderSize: true,
placeholder: 'widget-placeholder',
@@ -34,7 +34,7 @@ elgg.ui.widgets.init = function() {
$('.widget-edit > form ').submit(elgg.ui.widgets.saveSettings);
$('a.widget-collapse-button').click(elgg.ui.widgets.collapseToggle);
- elgg.ui.widgets.equalHeight(".widget-column");
+ elgg.ui.widgets.equalHeight(".elgg-widgets");
};
/**
diff --git a/pages/dashboard.php b/pages/dashboard.php
index ef3d987b1..c6a24773a 100644
--- a/pages/dashboard.php
+++ b/pages/dashboard.php
@@ -15,7 +15,7 @@ set_page_owner(get_loggedin_userid());
$title = elgg_echo('dashboard');
// wrap intro message in a div
-$intro_message = elgg_view('dashboard/blurb');
+$intro_message = elgg_view('core/dashboard/blurb');
$params = array(
'box' => $intro_message,
diff --git a/views/default/core/dashboard/blurb.php b/views/default/core/dashboard/blurb.php
index 821c617f5..0f5b60011 100644
--- a/views/default/core/dashboard/blurb.php
+++ b/views/default/core/dashboard/blurb.php
@@ -5,8 +5,10 @@
*/
?>
-<div id="dashboard-info">
- <p>
- <?php echo elgg_echo("dashboard:nowidgets"); ?>
- </p>
+<div class="elgg-col-2of3" id="dashboard-info">
+ <div class="elgg-inner">
+ <p>
+ <?php echo elgg_echo("dashboard:nowidgets"); ?>
+ </p>
+ </div>
</div> \ No newline at end of file
diff --git a/views/default/css/screen.php b/views/default/css/screen.php
index 8f8070f77..971b5b734 100644
--- a/views/default/css/screen.php
+++ b/views/default/css/screen.php
@@ -138,22 +138,10 @@ echo elgg_view('css/elements/skin', $vars);
/* ***************************************
WIDGETS
*************************************** */
-.widget-column {
+.elgg-widgets {
float: right;
min-height: 30px;
}
-.widget-1-columns {
- width: 100%;
-}
-.widget-2-columns {
- width: 50%;
-}
-.widget-3-columns {
- width: 33%;
-}
-.widget-4-columns {
- width: 25%;
-}
#widget-add-button {
padding: 0px;
text-align: right;
@@ -844,10 +832,12 @@ p.elgg-likes-owner {
*************************************** */
#dashboard-info {
float: left;
- width: 625px;
- margin: 0 5px 15px;
- padding: 5px;
+ margin-bottom: 15px;
+}
+#dashboard-info .elgg-inner {
+ margin: 0 5px;
border: 2px solid #dedede;
+ padding: 5px;
}
/* ***************************************
diff --git a/views/default/layout/shells/widgets.php b/views/default/layout/shells/widgets.php
index e5b63114b..e35e8c6c4 100644
--- a/views/default/layout/shells/widgets.php
+++ b/views/default/layout/shells/widgets.php
@@ -30,11 +30,11 @@ if (elgg_can_edit_widget_layout($context)) {
echo $vars['box'];
-$widget_class = "widget-{$num_columns}-columns";
+$widget_class = "elgg-col-1of{$num_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_class elgg-widgets\" id=\"widget-col-$column_index\">";
if (is_array($column_widgets) && sizeof($column_widgets) > 0) {
foreach ($column_widgets as $widget) {
echo elgg_view_entity($widget);