From 49e478da9d5540da798a7d497615f0d2903c8e4a Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 9 Nov 2010 01:09:50 +0000 Subject: Fixes #2631 removes 'elgg_' namespace from the page element views - anyone working with the trunk will need to update their theme and/or flush their cache git-svn-id: http://code.elgg.org/elgg/trunk@7268 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/canvas/layouts/administration.php | 2 +- .../canvas/layouts/one_column_with_sidebar.php | 2 +- views/default/page_elements/content.php | 9 +++++ views/default/page_elements/elgg_content.php | 9 ----- views/default/page_elements/elgg_footer.php | 21 ----------- views/default/page_elements/elgg_header.php | 24 ------------ views/default/page_elements/elgg_header_logo.php | 10 ----- views/default/page_elements/elgg_sidebar.php | 19 ---------- views/default/page_elements/elgg_topbar.php | 44 ---------------------- views/default/page_elements/elgg_topbar_logout.php | 14 ------- views/default/page_elements/footer.php | 21 +++++++++++ views/default/page_elements/header.php | 24 ++++++++++++ views/default/page_elements/header_logo.php | 10 +++++ views/default/page_elements/sidebar.php | 19 ++++++++++ views/default/page_elements/topbar.php | 44 ++++++++++++++++++++++ views/default/page_elements/topbar_logout.php | 14 +++++++ views/default/page_shells/admin.php | 2 +- views/default/page_shells/default.php | 8 ++-- 18 files changed, 148 insertions(+), 148 deletions(-) create mode 100644 views/default/page_elements/content.php delete mode 100644 views/default/page_elements/elgg_content.php delete mode 100644 views/default/page_elements/elgg_footer.php delete mode 100644 views/default/page_elements/elgg_header.php delete mode 100644 views/default/page_elements/elgg_header_logo.php delete mode 100644 views/default/page_elements/elgg_sidebar.php delete mode 100644 views/default/page_elements/elgg_topbar.php delete mode 100644 views/default/page_elements/elgg_topbar_logout.php create mode 100644 views/default/page_elements/footer.php create mode 100644 views/default/page_elements/header.php create mode 100644 views/default/page_elements/header_logo.php create mode 100644 views/default/page_elements/sidebar.php create mode 100644 views/default/page_elements/topbar.php create mode 100644 views/default/page_elements/topbar_logout.php (limited to 'views') diff --git a/views/default/canvas/layouts/administration.php b/views/default/canvas/layouts/administration.php index c8d8e31e4..9b0144ade 100644 --- a/views/default/canvas/layouts/administration.php +++ b/views/default/canvas/layouts/administration.php @@ -891,7 +891,7 @@ ul.admin_plugins {
diff --git a/views/default/canvas/layouts/one_column_with_sidebar.php b/views/default/canvas/layouts/one_column_with_sidebar.php index 5b6207a92..dff45a452 100644 --- a/views/default/canvas/layouts/one_column_with_sidebar.php +++ b/views/default/canvas/layouts/one_column_with_sidebar.php @@ -9,7 +9,7 @@ '; diff --git a/views/default/page_elements/footer.php b/views/default/page_elements/footer.php new file mode 100644 index 000000000..93aac4d96 --- /dev/null +++ b/views/default/page_elements/footer.php @@ -0,0 +1,21 @@ + + + + diff --git a/views/default/page_elements/header.php b/views/default/page_elements/header.php new file mode 100644 index 000000000..43ddf7251 --- /dev/null +++ b/views/default/page_elements/header.php @@ -0,0 +1,24 @@ + +
+
+ +
+
diff --git a/views/default/page_elements/header_logo.php b/views/default/page_elements/header_logo.php new file mode 100644 index 000000000..1e5e5269d --- /dev/null +++ b/views/default/page_elements/header_logo.php @@ -0,0 +1,10 @@ + + +

+sitename; ?> +

diff --git a/views/default/page_elements/sidebar.php b/views/default/page_elements/sidebar.php new file mode 100644 index 000000000..2706a23c5 --- /dev/null +++ b/views/default/page_elements/sidebar.php @@ -0,0 +1,19 @@ +guid > 0)) { + echo '
'; + echo '
'; + + // Elgg logo + echo ''; + echo "\"Elgg"; + echo ''; + + // avatar + $user_link = $user->getURL(); + $user_image = $user->getIcon('topbar'); + echo "\"User"; + + // logout link + echo elgg_view('page_elements/topbar_logout', $vars); + + // elgg tools menu + // need to echo this empty view for backward compatibility. + echo elgg_view("navigation/topbar_tools"); + + // enable elgg topbar extending + echo elgg_view('elgg_topbar/extend', $vars); + + // user settings + $settings = elgg_echo('settings'); + echo "$settings"; + + // The administration link is for admin or site admin users only + if ($user->isAdmin()) { + $admin = elgg_echo("admin"); + echo "$admin"; + } + + echo '
'; + echo '
'; +} diff --git a/views/default/page_elements/topbar_logout.php b/views/default/page_elements/topbar_logout.php new file mode 100644 index 000000000..38a37bc22 --- /dev/null +++ b/views/default/page_elements/topbar_logout.php @@ -0,0 +1,14 @@ +'; +echo elgg_view('output/url', array( + 'href' => "action/logout", + 'text' => elgg_echo('logout'), + 'is_action' => TRUE +)); +echo ''; diff --git a/views/default/page_shells/admin.php b/views/default/page_shells/admin.php index 9ca10f606..6925608e9 100644 --- a/views/default/page_shells/admin.php +++ b/views/default/page_shells/admin.php @@ -25,5 +25,5 @@ if (empty($vars['title'])) { echo elgg_view('page_elements/html_begin_admin', $vars); echo elgg_view('messages/list', array('object' => $vars['sysmessages'])); -echo elgg_view('page_elements/elgg_content', $vars); +echo elgg_view('page_elements/content', $vars); echo elgg_view('page_elements/html_end', $vars); \ No newline at end of file diff --git a/views/default/page_shells/default.php b/views/default/page_shells/default.php index 86171b24f..30196a139 100644 --- a/views/default/page_shells/default.php +++ b/views/default/page_shells/default.php @@ -25,10 +25,10 @@ if (empty($vars['title'])) { } echo elgg_view('page_elements/html_begin', $vars); -echo elgg_view('page_elements/elgg_topbar', $vars); +echo elgg_view('page_elements/topbar', $vars); // @todo this probably should be somewhere else echo elgg_view('messages/list', array('object' => $vars['sysmessages'])); -echo elgg_view('page_elements/elgg_header', $vars); -echo elgg_view('page_elements/elgg_content', $vars); -echo elgg_view('page_elements/elgg_footer', $vars); +echo elgg_view('page_elements/header', $vars); +echo elgg_view('page_elements/content', $vars); +echo elgg_view('page_elements/footer', $vars); echo elgg_view('page_elements/html_end', $vars); -- cgit v1.2.3