aboutsummaryrefslogtreecommitdiff
path: root/views/default/notifications
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 17:14:59 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 17:14:59 +0000
commitee18a9dc58e75113b3377d08f460788dde419869 (patch)
tree166497cedeae1f0a355241c4c28054e4e1e29b0f /views/default/notifications
parent3e5f7cf353e44de8d4d22c19f3c904b0a16401a8 (diff)
downloadelgg-ee18a9dc58e75113b3377d08f460788dde419869.tar.gz
elgg-ee18a9dc58e75113b3377d08f460788dde419869.tar.bz2
Closes #83 - API & Interface for selecting notification methods
git-svn-id: https://code.elgg.org/elgg/trunk@1110 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/notifications')
-rw-r--r--views/default/notifications/settings/usersettings.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/views/default/notifications/settings/usersettings.php b/views/default/notifications/settings/usersettings.php
new file mode 100644
index 000000000..71c12fdc5
--- /dev/null
+++ b/views/default/notifications/settings/usersettings.php
@@ -0,0 +1,46 @@
+<?php
+ /**
+ * User settings for notifications.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ global $NOTIFICATION_HANDLERS;
+ $notification_settings = get_user_notification_settings();
+?>
+<form action="<?php echo $vars['url']; ?>action/notifications/settings/usersettings/save" method="post">
+ <h2><?php echo elgg_echo('notifications:usersettings'); ?></h2>
+
+ <p><?php echo elgg_echo('notifications:methods'); ?>
+
+ <table>
+<?php
+ // Loop through options
+ foreach ($NOTIFICATION_HANDLERS as $k => $v)
+ {
+?>
+ <tr>
+ <td><?php echo $k; ?>: </td>
+
+ <td>
+ <input type="radio" name="method[<?php echo $k; ?>]" value="yes" <?php if ($notification_settings->$k) echo "checked=\"yes\" "; ?>/><?php echo elgg_echo("yes"); ?><br />
+ <input type="radio" name="method[<?php echo $k; ?>]" value="no" <?php if (!$notification_settings->$k) echo "checked=\"yes\" "; ?>/><?php echo elgg_echo("no"); ?>
+ </td>
+ </tr>
+<?php
+ }
+?>
+ </table>
+ <p>
+ <input type="submit" value="<?php
+
+ echo elgg_echo('save');
+
+ ?>" />
+ </p>
+</form> \ No newline at end of file