aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-25 23:02:19 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-25 23:02:19 +0000
commit610c8f6ee67553a19de1342d8348b8c6f1e9b9d8 (patch)
treedacafc933687fe19e03a4aaf2c2ddafb207066cb
parent4f3fd669adb5a65e92c426d488337097758af7a4 (diff)
downloadelgg-610c8f6ee67553a19de1342d8348b8c6f1e9b9d8.tar.gz
elgg-610c8f6ee67553a19de1342d8348b8c6f1e9b9d8.tar.bz2
Refs #2895: Added support for an "alt" section in the footer menu. Put "powered by Elgg" badge in here
git-svn-id: http://code.elgg.org/elgg/trunk@8480 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php9
-rw-r--r--views/default/css/elements/layout.php7
-rw-r--r--views/default/css/elements/navigation.php3
-rw-r--r--views/default/page/elements/footer.php6
4 files changed, 12 insertions, 13 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 12e9bdcf9..01b5a24e9 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1821,6 +1821,15 @@ function elgg_init() {
'weight' => 1,
));
+ $powered_url = elgg_get_site_url() . "_graphics/powered_by_elgg_badge_drk_bckgnd.gif";
+
+ elgg_register_menu_item('footer', array(
+ 'name' => 'powered_by_elgg',
+ 'href' => 'http://elgg.org',
+ 'text' => "<img src=\"$powered_url\" alt=\"Powered by Elgg\" />",
+ 'section' => 'alt',
+ ));
+
// Sets a blacklist of words in the current language.
// This is a comma separated list in word:blacklist.
// @todo possibly deprecate
diff --git a/views/default/css/elements/layout.php b/views/default/css/elements/layout.php
index d2be769fa..6ae0a7a21 100644
--- a/views/default/css/elements/layout.php
+++ b/views/default/css/elements/layout.php
@@ -126,16 +126,9 @@
.elgg-page-footer {
position: relative;
}
-.elgg-page-footer .elgg-menu {
- float: left;
- width: 100%;
-}
.elgg-page-footer * {
color: #999999;
}
.elgg-page-footer a:hover {
color: #666666;
-}
-.elgg-page-footer a.elgg-alt {
- float: right;
} \ No newline at end of file
diff --git a/views/default/css/elements/navigation.php b/views/default/css/elements/navigation.php
index 6e59ad6a8..19998365d 100644
--- a/views/default/css/elements/navigation.php
+++ b/views/default/css/elements/navigation.php
@@ -316,3 +316,6 @@
.elgg-menu-footer li:last-child:after {
content: "";
}
+.elgg-menu-footer.elgg-section-alt {
+ float: right;
+} \ No newline at end of file
diff --git a/views/default/page/elements/footer.php b/views/default/page/elements/footer.php
index 001d856b1..3fba27bc7 100644
--- a/views/default/page/elements/footer.php
+++ b/views/default/page/elements/footer.php
@@ -10,9 +10,3 @@
echo elgg_view_menu('footer', array('class' => 'elgg-menu-footer'));
echo elgg_view('footer/links');
-
-?>
-
-<a href="http://www.elgg.org" class="elgg-alt">
- <img src="<?php echo elgg_get_site_url(); ?>_graphics/powered_by_elgg_badge_drk_bckgnd.gif" alt="Powered by Elgg" />
-</a>