/**
 * Return the mark unread link for the current notification.
 *
 * @since BuddyPress (1.9.0)
 */
function bp_get_the_notification_mark_unread_link()
{
    // Start the output buffer
    ob_start();
    ?>

		<a href="<?php 
    bp_the_notification_mark_unread_url();
    ?>
" class="mark-unread primary"><?php 
    _ex('Unread', 'Notification screen action', 'buddypress');
    ?>
</a>

		<?php 
    $retval = ob_get_clean();
    /**
     * Filters the link used for marking a single notification as unread.
     *
     * @since BuddyPress (1.9.0)
     *
     * @param string $retval HTML for the mark unread link for the current notification.
     */
    return apply_filters('bp_get_the_notification_mark_unread_link', $retval);
}
Esempio n. 2
0
/**
 * Return the mark read link for the current notification.
 *
 * @since BuddyPress (1.9.0)
 */
function bp_get_the_notification_mark_unread_link()
{
    // Start the output buffer
    ob_start();
    ?>

		<a href="<?php 
    bp_the_notification_mark_unread_url();
    ?>
" class="mark-unread primary"><?php 
    _ex('Unread', 'Notification screen action', 'buddypress');
    ?>
</a>

		<?php 
    $retval = ob_get_clean();
    return apply_filters('bp_get_the_notification_mark_unread_link', $retval);
}