Line 52 | Line 52 |
---|
$notification_methods = $phpbb_notifications->get_subscription_methods();
|
$notification_methods = $phpbb_notifications->get_subscription_methods();
|
foreach($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
| foreach ($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
|
{
|
{
|
foreach($subscription_types as $type => $data)
| foreach ($subscription_types as $type => $data)
|
{
|
{
|
foreach($notification_methods as $method => $method_data)
| foreach ($notification_methods as $method => $method_data)
|
{ if ($request->is_set_post(str_replace('.', '_', $type . '_' . $method_data['id'])) && (!isset($subscriptions[$type]) || !in_array($method_data['id'], $subscriptions[$type]))) {
| { if ($request->is_set_post(str_replace('.', '_', $type . '_' . $method_data['id'])) && (!isset($subscriptions[$type]) || !in_array($method_data['id'], $subscriptions[$type]))) {
|
Line 180 | Line 180 |
---|
{ $notification_methods = $phpbb_notifications->get_subscription_methods();
|
{ $notification_methods = $phpbb_notifications->get_subscription_methods();
|
foreach($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
| foreach ($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
|
{ $template->assign_block_vars($block, array( 'GROUP_NAME' => $user->lang($group), ));
|
{ $template->assign_block_vars($block, array( 'GROUP_NAME' => $user->lang($group), ));
|
foreach($subscription_types as $type => $data)
| foreach ($subscription_types as $type => $data)
|
{ $template->assign_block_vars($block, array( 'TYPE' => $type,
| { $template->assign_block_vars($block, array( 'TYPE' => $type,
|
Line 197 | Line 197 |
---|
'SUBSCRIBED' => (isset($subscriptions[$type])) ? true : false, ));
|
'SUBSCRIBED' => (isset($subscriptions[$type])) ? true : false, ));
|
foreach($notification_methods as $method => $method_data)
| foreach ($notification_methods as $method => $method_data)
|
{ $template->assign_block_vars($block . '.notification_methods', array( 'METHOD' => $method_data['id'],
| { $template->assign_block_vars($block . '.notification_methods', array( 'METHOD' => $method_data['id'],
|
Line 227 | Line 227 |
---|
{ $notification_methods = $phpbb_notifications->get_subscription_methods();
|
{ $notification_methods = $phpbb_notifications->get_subscription_methods();
|
foreach($notification_methods as $method => $method_data)
| foreach ($notification_methods as $method => $method_data)
|
{ $template->assign_block_vars($block, array( 'METHOD' => $method_data['id'],
| { $template->assign_block_vars($block, array( 'METHOD' => $method_data['id'],
|