diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-04 19:49:24 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-04 19:49:24 +0000 |
commit | b2c08a52541a12050ae12bac2dbc8e1f0563c2b0 (patch) | |
tree | f5994aea1e556a1143e1a201402c6d5cd9c69348 /views/default/page_elements | |
parent | 58e7394e2dabe3bcf92b5efdc1c3917973cdf943 (diff) | |
download | elgg-b2c08a52541a12050ae12bac2dbc8e1f0563c2b0.tar.gz elgg-b2c08a52541a12050ae12bac2dbc8e1f0563c2b0.tar.bz2 |
using classes for page level divs
git-svn-id: http://code.elgg.org/elgg/trunk@7529 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r-- | views/default/page_elements/body.php | 14 | ||||
-rw-r--r-- | views/default/page_elements/content.php | 5 | ||||
-rw-r--r-- | views/default/page_elements/footer.php | 4 | ||||
-rw-r--r-- | views/default/page_elements/header.php | 4 | ||||
-rw-r--r-- | views/default/page_elements/topbar.php | 4 |
5 files changed, 23 insertions, 8 deletions
diff --git a/views/default/page_elements/body.php b/views/default/page_elements/body.php new file mode 100644 index 000000000..6f7691693 --- /dev/null +++ b/views/default/page_elements/body.php @@ -0,0 +1,14 @@ +<?php +/** + * Elgg page body wrapper + * + * @uses $vars['body'] The HTML of the page body + */ + +$body = elgg_get_array_value('body', $vars, ''); + +echo <<<HTML +<div class="elgg-page-body"> + $body +</div> +HTML; diff --git a/views/default/page_elements/content.php b/views/default/page_elements/content.php index 14292ce59..f82720c2f 100644 --- a/views/default/page_elements/content.php +++ b/views/default/page_elements/content.php @@ -1,13 +1,14 @@ <?php /** * Elgg content wrapper - * This file holds the main content + * + * @uses $vars['body'] The main content HTML */ $body = elgg_get_array_value('body', $vars, ''); echo <<<HTML -<div id="elgg-page-body"> +<div class="elgg-page-body"> $body </div> HTML; diff --git a/views/default/page_elements/footer.php b/views/default/page_elements/footer.php index 42cb6a2fc..6c9cdc55e 100644 --- a/views/default/page_elements/footer.php +++ b/views/default/page_elements/footer.php @@ -9,8 +9,8 @@ */ ?> -<div id="elgg-page-footer"> - <div id="elgg-page-footer-inner" class="elgg-center elgg-width-classic clearfix"> +<div class="elgg-page-footer"> + <div class="elgg-page-footer-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 476919591..df23fcbff 100644 --- a/views/default/page_elements/header.php +++ b/views/default/page_elements/header.php @@ -5,8 +5,8 @@ **/ ?> -<div id="elgg-page-header"> - <div id="elgg-page-header-inner" class="elgg-center elgg-width-classic"> +<div class="elgg-page-header"> + <div class="elgg-page-header-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 0f7b8f467..83ffdf54b 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 id="elgg-page-topbar">'; - echo '<div id="elgg-page-topbar-inner">'; + echo '<div class="elgg-page-topbar">'; + echo '<div class="elgg-page-topbar-inner">'; // Elgg logo echo '<a href="http://www.elgg.org">'; |