aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications/views/default/notifications/subscriptions
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-15 10:56:29 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-15 10:56:29 +0000
commitbf00633c600eb33574cc8e364ce1af72335af526 (patch)
treef50080617a5445ca7084905682d23e2b89887ba2 /mod/notifications/views/default/notifications/subscriptions
parent6c23be59bae940353a71a5b7d210c30c98b38c72 (diff)
downloadelgg-bf00633c600eb33574cc8e364ce1af72335af526.tar.gz
elgg-bf00633c600eb33574cc8e364ce1af72335af526.tar.bz2
Updated Notifications to new UI.
git-svn-id: http://code.elgg.org/elgg/trunk@5387 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications/views/default/notifications/subscriptions')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/collections.php20
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/form.php4
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/forminternals.php20
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/groupsform.php12
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/personal.php6
5 files changed, 28 insertions, 34 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/collections.php b/mod/notifications/views/default/notifications/subscriptions/collections.php
index 8fe49e672..87906bf76 100644
--- a/mod/notifications/views/default/notifications/subscriptions/collections.php
+++ b/mod/notifications/views/default/notifications/subscriptions/collections.php
@@ -13,16 +13,14 @@
}
</script>
-
+<div class="notification_friends">
<h3>
<?php echo elgg_echo('notifications:subscriptions:collections:title'); ?>
</h3>
-<div class="notification_personal">
-<p>
+<p class="margin_none">
<?php echo elgg_echo('notifications:subscriptions:collections:description'); ?>
- <a href="<?php echo $vars['url']; ?>pg/collections/<?php echo $vars['user']->username; ?>"><?php echo elgg_echo('notifications:subscriptions:collections:edit') ?></a>
</p>
-<table id="notificationstable" cellspacing="0" cellpadding="4" border="1" width="100%">
+<table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
<tr>
<td>&nbsp;</td>
<?php
@@ -30,7 +28,7 @@
global $NOTIFICATION_HANDLERS;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
if ($i > 0)
- echo "<td class=\"spacercolumn\">&nbsp;</td>";
+ echo "<td class='spacercolumn'>&nbsp;</td>";
?>
<td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
<?php
@@ -71,7 +69,7 @@
$collectionschecked[$method] = '';
}
}
- if ($i > 0) $fields .= "<td class=\"spacercolumn\">&nbsp;</td>";
+ if ($i > 0) $fields .= "<td class='spacercolumn'>&nbsp;</td>";
$fields .= <<< END
<td class="{$method}togglefield">
<a border="0" id="{$method}collections-1" class="{$method}toggleOff" onclick="adjust{$method}_alt('{$method}collections-1'); setCollection([{$members}],'{$method}',-1);">
@@ -85,7 +83,10 @@ END;
<td>&nbsp;</td>
</tr>
<?php
-
+/*
+ @todo
+ collections removed from notifications - they are no longer used and will be replaced with shared access collections
+
if ($collections = get_user_access_collections($vars['user']->guid)) {
foreach($collections as $collection) {
$members = get_members_of_access_collection($collection->id, true);
@@ -117,7 +118,7 @@ END;
$collectionschecked[$method] = '';
}
}
- if ($i > 0) $fields .= "<td class=\"spacercolumn\">&nbsp;</td>";
+ if ($i > 0) $fields .= "<td class='spacercolumn'>&nbsp;</td>";
$fields .= <<< END
<td class="{$method}togglefield">
<a border="0" id="{$method}collections{$collection->id}" class="{$method}toggleOff" onclick="adjust{$method}_alt('{$method}collections{$collection->id}'); setCollection([{$members}],'{$method}',{$collection->id});">
@@ -136,6 +137,7 @@ END;
}
}
+*/
?>
</table>
</div>
diff --git a/mod/notifications/views/default/notifications/subscriptions/form.php b/mod/notifications/views/default/notifications/subscriptions/form.php
index d96d6b7a7..8ad0110bf 100644
--- a/mod/notifications/views/default/notifications/subscriptions/form.php
+++ b/mod/notifications/views/default/notifications/subscriptions/form.php
@@ -18,8 +18,7 @@
// Display a description
?>
-<div class="contentWrapper">
-<div class="notification_methods">
+<div class="user_settings notifications">
<?php
echo elgg_view('input/form',array(
@@ -32,4 +31,3 @@
?>
</div>
-</div> \ No newline at end of file
diff --git a/mod/notifications/views/default/notifications/subscriptions/forminternals.php b/mod/notifications/views/default/notifications/subscriptions/forminternals.php
index 9030d20a8..97fe77cac 100644
--- a/mod/notifications/views/default/notifications/subscriptions/forminternals.php
+++ b/mod/notifications/views/default/notifications/subscriptions/forminternals.php
@@ -1,7 +1,9 @@
+
+<div class="notifications_per_user">
<h3>
<?php echo elgg_echo('notifications:subscriptions:title'); ?>
</h3>
- <p class="notification_methods_intro">
+ <p>
<?php echo elgg_echo('notifications:subscriptions:description'); ?>
</p>
<?php
@@ -169,14 +171,14 @@
ksort($users[$letter]);
?>
-<table id="notificationstable" cellspacing="0" cellpadding="4" border="1" width="100%">
+<table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
<tr>
<td>&nbsp;</td>
<?php
$i = 0;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
if ($i > 0)
- echo "<td class=\"spacercolumn\">&nbsp;</td>";
+ echo "<td class='spacercolumn'>&nbsp;</td>";
?>
<td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
<?php
@@ -205,7 +207,7 @@
} else {
$checked[$method] = '';
}
- if ($i > 0) $fields .= "<td class=\"spacercolumn\">&nbsp;</td>";
+ if ($i > 0) $fields .= "<td class='spacercolumn'>&nbsp;</td>";
$fields .= <<< END
<td class="{$method}togglefield">
<a border="0" id="{$method}{$friend->guid}" class="{$method}toggleOff" onclick="adjust{$method}_alt('{$method}{$friend->guid}');">
@@ -303,13 +305,9 @@ END;
}
?>
-
-
-
-<div class="clearfloat"></div>
-<div class="friendspicker_savebuttons">
+<div class="divider">
<input type="submit" value="<?php echo elgg_echo('save'); ?>" />
-<br /></div>
-
+</div>
+</div>
\ No newline at end of file
diff --git a/mod/notifications/views/default/notifications/subscriptions/groupsform.php b/mod/notifications/views/default/notifications/subscriptions/groupsform.php
index cf7f44906..4beefb943 100644
--- a/mod/notifications/views/default/notifications/subscriptions/groupsform.php
+++ b/mod/notifications/views/default/notifications/subscriptions/groupsform.php
@@ -12,11 +12,8 @@
$subsbig[$method] = $tmparray;
}
-?>
-<?php echo elgg_view_title(elgg_echo('notifications:subscriptions:changesettings:groups')); ?>
-<div class="contentWrapper">
- <div class="notification_methods">
-
+echo elgg_view_title(elgg_echo('notifications:subscriptions:changesettings:groups')); ?>
+<div class="notification_groups margin_top">
<?php
echo elgg_view('notifications/subscriptions/jsfuncs',$vars);
?>
@@ -33,7 +30,7 @@
if (isset($vars['groups']) && !empty($vars['groups'])) {
?>
-<table id="notificationstable" cellspacing="0" cellpadding="4" border="1" width="100%">
+<table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
<tr>
<td>&nbsp;</td>
<?php
@@ -41,7 +38,7 @@
$i = 0;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
if ($i > 0)
- echo "<td class=\"spacercolumn\">&nbsp;</td>";
+ echo "<td class='spacercolumn'>&nbsp;</td>";
?>
<td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
<?php
@@ -95,5 +92,4 @@ END;
?>
<input type="submit" value="<?php echo elgg_echo('save'); ?>" />
- </div>
</div> \ No newline at end of file
diff --git a/mod/notifications/views/default/notifications/subscriptions/personal.php b/mod/notifications/views/default/notifications/subscriptions/personal.php
index 6779fde73..d8ce0e97e 100644
--- a/mod/notifications/views/default/notifications/subscriptions/personal.php
+++ b/mod/notifications/views/default/notifications/subscriptions/personal.php
@@ -9,14 +9,14 @@
<?php echo elgg_echo('notifications:subscriptions:personal:title'); ?>
</h3>
</div>
-<table id="notificationstable" cellspacing="0" cellpadding="4" border="1" width="100%">
+<table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
<tr>
<td>&nbsp;</td>
<?php
$i = 0;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
if ($i > 0)
- echo "<td class=\"spacercolumn\">&nbsp;</td>";
+ echo "<td class='spacercolumn'>&nbsp;</td>";
?>
<td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
<?php
@@ -45,7 +45,7 @@
$personalchecked[$method] = '';
}
}
- if ($i > 0) $fields .= "<td class=\"spacercolumn\">&nbsp;</td>";
+ if ($i > 0) $fields .= "<td class='spacercolumn'>&nbsp;</td>";
$fields .= <<< END
<td class="{$method}togglefield">
<a border="0" id="{$method}personal" class="{$method}toggleOff" onclick="adjust{$method}_alt('{$method}personal');">