Index: src/bp-templates/bp-legacy/buddypress/members/single/settings/screen-notifications.php
===================================================================
--- src/bp-templates/bp-legacy/buddypress/members/single/settings/screen-notifications.php	(nonexistent)
+++ src/bp-templates/bp-legacy/buddypress/members/single/settings/screen-notifications.php	(working copy)
@@ -0,0 +1,146 @@
+<?php
+/**
+ * BuddyPress - Members Settings Screen Notifications
+ *
+ * @since 2.6.0
+ *
+ * @package BuddyPress
+ * @subpackage bp-legacy
+ */
+
+/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
+do_action( 'bp_before_member_settings_template' ); ?>
+
+<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/screen-notifications'; ?>" method="post" class="standard-form" id="settings-form">
+
+<p><?php _e('Enable or disable on screen display of notifications.', 'buddypress'); ?></p>
+
+<?php
+	$components = bp_notifications_get_registered_components();
+
+	// Fudge xprofile component.
+	$profile = array_search( 'xprofile', $components );
+	if ( false !== $profile ) {
+		$components[] = 'profile';
+		unset( $components[ $profile ] );
+	}
+
+	sort( $components, SORT_STRING );
+
+	// Initialize registered notification actions.
+	bp_notifications_init_registered_actions();
+
+	foreach ( $components as $component ) :
+		$enabled = bp_get_user_meta( bp_loggedin_user_id(), "notifications_{$component}_enabled", true );
+		if ( '' === $enabled ) {
+			$enabled = 1;
+		}
+
+		$action_count = ! empty( buddypress()->notifications->actions[$component] ) ? count( buddypress()->notifications->actions[$component] ) : 0;
+?>
+
+<fieldset class="<?php echo $component; ?>">
+
+<?php bp_notifications_component_settings_title( $component, 'legend' ); ?>
+
+	<label for="<?php esc_attr_e( "{$component}-notification-enable" ); ?>">
+		<input type="checkbox" name="<?php esc_attr_e( "{$component}[enabled]" ); ?>" data-component="<?php esc_attr_e( $component ); ?>" id="<?php esc_attr_e( "{$component}-notification-enable" ); ?>" value="1" <?php checked( $enabled, 1, true ) ?>/>
+
+		<?php esc_html_e( 'Enable screen notifications for this component', 'buddypress' ); ?>
+	</label>
+
+	<?php if ( ! empty( buddypress()->notifications->actions[$component] ) ) : ?>
+
+		<table class="notification-settings" id="<?php esc_attr_e( "{$component}-screen-notification-settings" ); ?>">
+			<thead>
+				<tr>
+					<th class="icon">&nbsp;</th>
+					<th>&nbsp;</th>
+					<th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
+					<th class="no"><?php _e( 'No', 'buddypress' )?></th>
+				</tr>
+			</thead>
+
+			<tbody>
+				<?php
+					foreach ( buddypress()->notifications->actions[$component] as $action => $val ) :
+						$action = sanitize_key( $action );
+
+						$enabled = bp_get_user_meta( bp_loggedin_user_id(), "notifications_{$component}_{$action}_enabled", true );
+						if ( '' === $enabled ) {
+							$enabled = 1;
+						}
+				?>
+
+					<tr id="<?php esc_html_e( "{$component}-{$action}" ); ?>" class="<?php esc_attr_e( "{$component}-screen-notification-singular" ); ?>">
+						<td>&nbsp;</td>
+						<td><?php esc_html_e( $val['settings_label' ] ); ?></td>
+						<td class="yes"><input type="radio" name="<?php esc_attr_e( "{$component}[{$action}]" ); ?>" id="<?php esc_attr_e( "{$component}-notification-{$action}-yes" ); ?>" value="1" <?php checked( $enabled, 1, true ) ?>/><label for="<?php esc_attr_e( "{$component}-notification-{$action}-yes" ); ?>" class="bp-screen-reader-text"><?php _e( 'Yes', 'buddypress' ); ?></label></td>
+						<td class="no"><input type="radio" name="<?php esc_attr_e( "{$component}[{$action}]" ); ?>" id="<?php esc_attr_e( "{$component}-notification-{$action}-no" ); ?>" value="0" <?php checked( $enabled, 0, true ) ?>/><label for="<?php esc_attr_e( "{$component}-notification-{$action}-no" ); ?>" class="bp-screen-reader-text"><?php _e( 'No', 'buddypress' ); ?></label></td>
+					</tr>
+
+				<?php
+					endforeach;
+				?>
+			</tbody>
+		</table>
+
+
+
+	<?php endif; ?>
+	</fieldset>
+<?php endforeach; ?>
+
+	<script type="text/javascript">
+	// This will be moved to bp-legacy's buddypress.js file.  Or maybe not?
+	jQuery(function($){
+		$('#settings-form input[type=checkbox]').each(function( index, elem ) {
+			toggleSettingsComponentFields( $(this) );
+		});
+
+		$('#settings-form').on('click', 'input[type=checkbox]', function(e) {
+			toggleSettingsComponentFields( $(this) );
+		});
+
+		function toggleSettingsComponentFields( elem ) {
+			var component = $( elem ).data( 'component' );
+
+			if ( elem.is(':checked') ) {
+				$('#' + component + '-screen-notification-settings').fadeIn('fast');
+			} else {
+				$('#' + component + '-screen-notification-settings').fadeOut('fast');
+			}
+		}
+	});
+	</script>
+
+	<?php
+
+	/**
+	 * Fires before the display of the submit button for user notification saving.
+	 *
+	 * @since 2.6.0
+	 */
+	do_action( 'bp_members_screen_notification_settings_before_submit' ); ?>
+
+	<div class="submit">
+		<input type="submit" name="screen-notifications-submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" id="submit" class="auto" />
+	</div>
+
+	<?php
+
+	/**
+	 * Fires after the display of the submit button for user notification saving.
+	 *
+	 * @since 2.6.0
+	 */
+	do_action( 'bp_members_screen_notification_settings_after_submit' ); ?>
+
+	<?php wp_nonce_field( 'bp_settings_screen_notifications' ); ?>
+
+</form>
+
+<?php
+
+/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
+do_action( 'bp_after_member_settings_template' );

Property changes on: src/bp-templates/bp-legacy/buddypress/members/single/settings/screen-notifications.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
