diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/notifications/views/default/notifications/css.php | 1 | ||||
-rw-r--r-- | mod/notifications/views/default/notifications/subscriptions/collections.php | 64 |
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> </td>
+<?php
+ $i = 0;
+ foreach($NOTIFICATION_HANDLERS as $method => $foo) {
+ if ($i > 0)
+ echo "<td class=\"spacercolumn\"> </td>";
+?>
+ <td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
+<?php
+ $i++;
+ }
+?>
+ <td> </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\"> </td>";
+ $toggle = elgg_echo('toggle');
+ $fields .= <<< END
+ <td class="{$method}togglefield">
+ <a href="#" class="{$method}toggleOn"></a>
+ </td>
+END;
+ $i++;
+ }
+ echo $fields;
+
+?>
+
+ <td> </td>
+ </tr>
+<?php
+
+ }
+
+?>
+</table>
+</div>
+<?php
+
+ }
+
?>
\ No newline at end of file |