summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/css/elements/icons.php10
-rw-r--r--views/default/css/elements/modules.php5
-rw-r--r--views/default/n1_theme/js.php7
-rw-r--r--views/default/n1_theme/topbar/groups.php20
4 files changed, 40 insertions, 2 deletions
diff --git a/views/default/css/elements/icons.php b/views/default/css/elements/icons.php
index f7c789e..9cae59e 100644
--- a/views/default/css/elements/icons.php
+++ b/views/default/css/elements/icons.php
@@ -13,7 +13,7 @@
*************************************** */
.elgg-icon {
- background: transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat left;
+ background: transparent url(<?php echo elgg_get_site_url(); ?>mod/n1_theme/graphics/elgg_sprites.png) no-repeat left;
width: 16px;
height: 16px;
margin: 0 2px;
@@ -346,3 +346,11 @@
width: 200px;
height: 200px;
}
+
+.elgg-icon-groups {
+ background-position: 0 -1530px;
+}
+
+.elgg-icon-groups:hover {
+ background-position: 0 -1550px;
+}
diff --git a/views/default/css/elements/modules.php b/views/default/css/elements/modules.php
index ef85d4d..4868833 100644
--- a/views/default/css/elements/modules.php
+++ b/views/default/css/elements/modules.php
@@ -30,6 +30,9 @@
/* Popup */
.elgg-module-popup {
+ position: absolute;
+ width: 150px;
+
background-color: white;
border: 1px solid #ccc;
@@ -206,4 +209,4 @@ a.elgg-widget-edit-button {
.elgg-widget-placeholder {
border: 2px dashed #dedede;
margin-bottom: 15px;
-} \ No newline at end of file
+}
diff --git a/views/default/n1_theme/js.php b/views/default/n1_theme/js.php
new file mode 100644
index 0000000..bed07f4
--- /dev/null
+++ b/views/default/n1_theme/js.php
@@ -0,0 +1,7 @@
+$(function(){
+ $('.elgg-menu-item-groups').hover(function(){
+ $('#topbar-groups').show();
+ }, function() {
+ $('#topbar-groups').hide();
+ });
+});
diff --git a/views/default/n1_theme/topbar/groups.php b/views/default/n1_theme/topbar/groups.php
new file mode 100644
index 0000000..b71114d
--- /dev/null
+++ b/views/default/n1_theme/topbar/groups.php
@@ -0,0 +1,20 @@
+<?php
+
+$content = elgg_list_entities_from_relationship_count(array(
+ 'type' => 'group',
+ 'relationship' => 'member',
+ 'relationship_guid' => elgg_get_logged_in_user_guid(),
+ 'list_type' => 'gallery',
+ 'inverse_relationship' => false,
+ 'full_view' => false,
+));
+if (!$content) {
+ $content = elgg_echo('groups:none');
+}
+
+$content .= elgg_view('output/url', array(
+ 'text' => elgg_echo('groups:all'),
+ 'href' => 'groups/all',
+));
+
+echo "<div class='elgg-module elgg-module-popup hidden clearfix' id='topbar-groups'>$content</div>";