[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/includes/notifications/ -> functions.php (summary)

Notifications functions

Version: 3.1.0
File Size: 251 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  bp_nouveau_notifications_register_scripts()
  bp_nouveau_notifications_enqueue_scripts()
  bp_nouveau_notifications_init_filters()
  bp_nouveau_notifications_register_filter()
  bp_nouveau_notifications_get_filters()
  bp_nouveau_notifications_sort()
  bp_nouveau_notifications_dashiconified_link()
  bp_nouveau_notifications_mark_unread_link()
  bp_nouveau_notifications_mark_read_link()
  bp_nouveau_notifications_delete_link()

Functions
Functions that are not part of a class:

bp_nouveau_notifications_register_scripts( $scripts = array()   X-Ref
Register Scripts for the Notifications component

param: array  $scripts  The array of scripts to register
return: array  The same array with the specific notifications scripts.
since: 3.0.0

bp_nouveau_notifications_enqueue_scripts()   X-Ref
Enqueue the notifications scripts

since: 3.0.0

bp_nouveau_notifications_init_filters()   X-Ref
Init Notifications filters and fire a hook to let
plugins/components register their filters.

since: 3.0.0

bp_nouveau_notifications_register_filter( $args = array()   X-Ref
Register new filters for the notifications screens.

param: array  $args {
return: bool True if the filter has been successfully registered. False otherwise.
since: 3.0.0

bp_nouveau_notifications_get_filters( $id = '' )   X-Ref
Get one or all notifications filters.

param: string $id  The notificication component action to get the filter of.
return: array|false All or a specific notifications parameters. False if no match are found.
since: 3.0.0

bp_nouveau_notifications_sort( $filters = array()   X-Ref
Sort Notifications according to their position arguments.

param: array  $filters The notifications filters to order.
return: array  The sorted filters.
since: 3.0.0

bp_nouveau_notifications_dashiconified_link( $link = '', $bp_tooltip = '', $dashicon = '' )   X-Ref
Add a dashicon to Notifications action links

param: string $link        The action link.
param: string $bp_tooltip  The data-bp-attribute of the link.
param: string $aria_label  The aria-label attribute of the link.
param: string $dashicon    The dashicon class.
return: string              Link Output.
since: 3.0.0

bp_nouveau_notifications_mark_unread_link( $link = '' )   X-Ref
Edit the Mark Unread action link to include a dashicon

param: string $link Optional. The Mark Unread action link.
return: string Link Output.
since: 3.0.0

bp_nouveau_notifications_mark_read_link( $link = '' )   X-Ref
Edit the Mark Read action link to include a dashicon

param: string $link Optional. The Mark Read action link.
return: string Link Output.
since: 3.0.0

bp_nouveau_notifications_delete_link( $link = '' )   X-Ref
Edit the Delete action link to include a dashicon

param: string $link Optional. The Delete action link.
return: string Link Output.
since: 3.0.0



Generated: Tue Mar 19 01:01:09 2024 Cross-referenced by PHPXref 0.7.1