aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-04 02:19:44 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-04 02:19:44 +0000
commit719146b6449c1241f70caed2ddb520ce8fbd6da3 (patch)
treecee176853fc12b2e00e207be35a6c46d2d8a7b9e /views/default/page_elements
parent82ed2fe0bea0c12f19b261e0e1cf8ad9cb2ba668 (diff)
downloadelgg-719146b6449c1241f70caed2ddb520ce8fbd6da3.tar.gz
elgg-719146b6449c1241f70caed2ddb520ce8fbd6da3.tar.bz2
striking balance between all classes and giving ids on major layout elements for easy css-only theming
git-svn-id: http://code.elgg.org/elgg/trunk@7524 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r--views/default/page_elements/content.php14
-rw-r--r--views/default/page_elements/footer.php4
-rw-r--r--views/default/page_elements/header.php4
-rw-r--r--views/default/page_elements/topbar.php4
4 files changed, 15 insertions, 11 deletions
diff --git a/views/default/page_elements/content.php b/views/default/page_elements/content.php
index ec0c3ec33..946237828 100644
--- a/views/default/page_elements/content.php
+++ b/views/default/page_elements/content.php
@@ -2,10 +2,14 @@
/**
* Elgg content wrapper
* This file holds the main content
- **/
+ */
-$content = isset($vars['body']) ? $vars['body'] : '';
+$body = elgg_get_array_value('body', $vars, '');
-echo '<div class="elgg-body">';
-echo $content;
-echo '</div>';
+echo <<<HTML
+<div id="elgg-page-body" class="elgg-body">
+ <div id="elgg_page-body-inner" class="elgg-inner elgg-center elgg-width-classic clearfix">
+ $body
+ </div>
+</div>
+HTML;
diff --git a/views/default/page_elements/footer.php b/views/default/page_elements/footer.php
index d3bb0e89a..0e417e030 100644
--- a/views/default/page_elements/footer.php
+++ b/views/default/page_elements/footer.php
@@ -9,8 +9,8 @@
*/
?>
-<div class="elgg-footer">
- <div class="elgg-inner elgg-center elgg-width-classic">
+<div id="elgg-page-footer" class="elgg-footer">
+ <div id="elgg-page-footer-inner" class="elgg-inner elgg-center elgg-width-classic clearfix">
<?php echo elgg_view('footer/links'); ?>
<a href="http://www.elgg.org" class="right">
<img src="<?php echo elgg_get_site_url(); ?>_graphics/powered_by_elgg_badge_drk_bckgnd.gif" alt="Powered by Elgg" />
diff --git a/views/default/page_elements/header.php b/views/default/page_elements/header.php
index eef6fb2ad..f6d158f06 100644
--- a/views/default/page_elements/header.php
+++ b/views/default/page_elements/header.php
@@ -5,8 +5,8 @@
**/
?>
-<div class="elgg-header">
- <div class="elgg-inner elgg-center elgg-width-classic">
+<div id="elgg-page-header" class="elgg-header">
+ <div id="elgg-page-header-inner" class="elgg-inner elgg-center elgg-width-classic">
<?php
// link back to main site.
echo elgg_view('page_elements/header_logo', $vars);
diff --git a/views/default/page_elements/topbar.php b/views/default/page_elements/topbar.php
index 19f15ccb4..0ccfc15c6 100644
--- a/views/default/page_elements/topbar.php
+++ b/views/default/page_elements/topbar.php
@@ -6,8 +6,8 @@
$user = get_loggedin_user();
if (($user instanceof ElggUser) && ($user->guid > 0)) {
- echo '<div class="elgg-topbar">';
- echo '<div class="elgg-inner">';
+ echo '<div id="elgg-topbar">';
+ echo '<div id="elgg-topbar-inner" class="elgg-inner">';
// Elgg logo
echo '<a href="http://www.elgg.org">';