aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-05 18:07:18 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-05 18:07:18 +0000
commitc6567bb2bb5c3c6d6ab8e87755b8c57e57e51bdc (patch)
treeae74f710c4c29ed36918ac233edecc3aafb0734b /mod/notifications
parent5356a17ae82982ebe96e91ea309ab89713cf888d (diff)
downloadelgg-c6567bb2bb5c3c6d6ab8e87755b8c57e57e51bdc.tar.gz
elgg-c6567bb2bb5c3c6d6ab8e87755b8c57e57e51bdc.tar.bz2
Access collections toggle beginnings
git-svn-id: https://code.elgg.org/elgg/trunk@2659 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications')
-rw-r--r--mod/notifications/views/default/notifications/css.php1
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/collections.php64
2 files changed, 65 insertions, 0 deletions
diff --git a/mod/notifications/views/default/notifications/css.php b/mod/notifications/views/default/notifications/css.php
index db766a2c9..c28de60cd 100644
--- a/mod/notifications/views/default/notifications/css.php
+++ b/mod/notifications/views/default/notifications/css.php
@@ -40,6 +40,7 @@
background: url(<?php echo $vars['url']; ?>mod/notifications/graphics/icon_notifications_email.gif) no-repeat right -36px;
}
+.notification_collections,
.notification_personal {
margin-bottom: 25px;
} \ No newline at end of file
diff --git a/mod/notifications/views/default/notifications/subscriptions/collections.php b/mod/notifications/views/default/notifications/subscriptions/collections.php
index 0165eb215..fa33312ec 100644
--- a/mod/notifications/views/default/notifications/subscriptions/collections.php
+++ b/mod/notifications/views/default/notifications/subscriptions/collections.php
@@ -1,3 +1,67 @@
<?php
+ if ($collections = get_user_access_collections($vars['user']->guid)) {
+ global $NOTIFICATION_HANDLERS;
+?>
+<div class="notification_personal">
+<table id="notificationstable" cellspacing="0" cellpadding="4" border="1" width="100%">
+ <tr>
+ <td>&nbsp;</td>
+<?php
+ $i = 0;
+ foreach($NOTIFICATION_HANDLERS as $method => $foo) {
+ if ($i > 0)
+ echo "<td class=\"spacercolumn\">&nbsp;</td>";
+?>
+ <td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
+<?php
+ $i++;
+ }
+?>
+ <td>&nbsp;</td>
+ </tr>
+<?php
+
+ foreach($collections as $collection) {
+
+?>
+ <tr>
+ <td class="namefield">
+ <p>
+ <?php echo $collection->name; ?>
+ </p>
+
+ </td>
+
+<?php
+
+ $fields = '';
+ $i = 0;
+ foreach($NOTIFICATION_HANDLERS as $method => $foo) {
+ if ($i > 0) $fields .= "<td class=\"spacercolumn\">&nbsp;</td>";
+ $toggle = elgg_echo('toggle');
+ $fields .= <<< END
+ <td class="{$method}togglefield">
+ <a href="#" class="{$method}toggleOn"></a>
+ </td>
+END;
+ $i++;
+ }
+ echo $fields;
+
+?>
+
+ <td>&nbsp;</td>
+ </tr>
+<?php
+
+ }
+
+?>
+</table>
+</div>
+<?php
+
+ }
+
?> \ No newline at end of file