From 524b3333b347006584e0406629562ff0ffbe40eb Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 11 Nov 2010 01:53:09 +0000 Subject: Refs #2637 moved canvas/layouts to layouts git-svn-id: http://code.elgg.org/elgg/trunk@7290 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 6 +- views/default/layouts/administration.php | 903 ++++++++++++++++++++++ views/default/layouts/default.php | 18 + views/default/layouts/one_column.php | 16 + views/default/layouts/one_column_with_sidebar.php | 30 + views/default/layouts/widgets.php | 337 ++++++++ 6 files changed, 1307 insertions(+), 3 deletions(-) create mode 100644 views/default/layouts/administration.php create mode 100644 views/default/layouts/default.php create mode 100644 views/default/layouts/one_column.php create mode 100644 views/default/layouts/one_column_with_sidebar.php create mode 100644 views/default/layouts/widgets.php diff --git a/engine/lib/views.php b/engine/lib/views.php index 24b25ffd0..144595c50 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -951,10 +951,10 @@ function elgg_view_layout($layout_name, $vars = array()) { $param_array = $vars; } - if (elgg_view_exists("canvas/layouts/{$layout_name}")) { - return elgg_view("canvas/layouts/{$layout_name}", $param_array); + if (elgg_view_exists("layouts/{$layout_name}")) { + return elgg_view("layouts/{$layout_name}", $param_array); } else { - return elgg_view("canvas/default", $param_array); + return elgg_view("layouts/default", $param_array); } } diff --git a/views/default/layouts/administration.php b/views/default/layouts/administration.php new file mode 100644 index 000000000..0e18eb7e8 --- /dev/null +++ b/views/default/layouts/administration.php @@ -0,0 +1,903 @@ + + + +
+

+ + sitename; echo " ".elgg_echo('admin'); ?> + << Return to network +

+
+ +
+ +
+ +
+
+ +
+
+ \ No newline at end of file diff --git a/views/default/layouts/default.php b/views/default/layouts/default.php new file mode 100644 index 000000000..60dc90b0d --- /dev/null +++ b/views/default/layouts/default.php @@ -0,0 +1,18 @@ + +
+
+ + +
+
\ No newline at end of file diff --git a/views/default/layouts/one_column_with_sidebar.php b/views/default/layouts/one_column_with_sidebar.php new file mode 100644 index 000000000..046c49997 --- /dev/null +++ b/views/default/layouts/one_column_with_sidebar.php @@ -0,0 +1,30 @@ + + diff --git a/views/default/layouts/widgets.php b/views/default/layouts/widgets.php new file mode 100644 index 000000000..d114edfcf --- /dev/null +++ b/views/default/layouts/widgets.php @@ -0,0 +1,337 @@ + 0 && $owner && $owner->canEdit()) { + + + + if(get_loggedin_userid() == elgg_get_page_owner_guid() || ($owner instanceof ElggGroup && $owner->canEdit())){ + + if (elgg_get_context() == "profile") { + ?> + +
+ +
+ + + + + + + + + + + + + + + + + +
+ + + + + canEdit())){ + + if (elgg_get_context() != "profile") { + ?> + +
+ +
+ + + +
+ 0) + foreach($area3widgets as $widget) { + echo elgg_view_entity($widget); + } + + ?> + +
+
+ + +
+ + 0) + foreach($area1widgets as $widget) { + echo elgg_view_entity($widget); + } + + ?> + +
+ +
+ + +
+ + + 0) + foreach($area2widgets as $widget) { + echo elgg_view_entity($widget); + } + + ?> + +
+ +
-- cgit v1.2.3