bp_nouveau_template_message_classes()

Add classes to style the template notice/feedback message


Source Source

File: bp-templates/bp-nouveau/includes/template-tags.php

function bp_nouveau_template_message_classes() {
	$bp_nouveau = bp_nouveau();
	$classes    = array( 'bp-feedback', 'bp-messages' );

	if ( ! empty( $bp_nouveau->template_message['message'] ) ) {
		$classes[] = 'bp-template-notice';
	}

	$classes[] = bp_nouveau_get_template_message_type();
	echo join( ' ', array_map( 'sanitize_html_class', $classes ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.