template_notices

  • do_action( 'template_notices' )

    Source Reference:

    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/index.php :: Trac Source Line: 8
      <?php get_header() ?>
      
      	<div id="content">
      		<div class="padder">
      
      		<?php do_action( 'bp_before_blog_home' ) ?>
      
      		<?php do_action( 'template_notices' ) ?>
      
      		<div class="page" id="blog-latest" role="main">
      
      			<?php if ( have_posts() ) : ?>
      
      				<?php bp_dtheme_content_nav( 'nav-above' ); ?>
      
      				<?php while (have_posts()) : the_post(); ?>
      
      					<?php do_action( 'bp_before_blog_post' ) ?>
      
      					<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/registration/register.php :: Trac Source Line: 13
      		<div class="padder">
      
      		<?php do_action( 'bp_before_register_page' ) ?>
      
      		<div class="page" id="register-page">
      
      			<form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
      
      			<?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
      				<?php do_action( 'template_notices' ) ?>
      				<?php do_action( 'bp_before_registration_disabled' ) ?>
      
      					<p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
      
      				<?php do_action( 'bp_after_registration_disabled' ); ?>
      			<?php endif; // registration-disabled signup setp ?>
      
      			<?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
      
      				<h2><?php _e( 'Create an Account', 'buddypress' ) ?></h2>
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/blogs/create.php :: Trac Source Line: 19
      ?>
      
      <?php get_header( 'buddypress' ); ?>
      
      	<?php do_action( 'bp_before_directory_blogs_content' ); ?>
      
      	<div id="content">
      		<div class="padder" role="main">
      
      		<?php do_action( 'template_notices' ); ?>
      
      			<h3><?php _e( 'Create a Site', 'buddypress' ); ?> &nbsp;<a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() ) ?>"><?php _e( 'Site Directory', 'buddypress' ); ?></a></h3>
      
      		<?php do_action( 'bp_before_create_blog_content' ); ?>
      
      		<?php if ( bp_blog_signup_enabled() ) : ?>
      
      			<?php bp_show_blog_signup_form(); ?>
      
      		<?php else: ?>
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/registration/register.php :: Trac Source Line: 25
      					<p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
      
      				<?php do_action( 'bp_after_registration_disabled' ); ?>
      			<?php endif; // registration-disabled signup setp ?>
      
      			<?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
      
      				<h2><?php _e( 'Create an Account', 'buddypress' ) ?></h2>
      
      				<?php do_action( 'template_notices' ) ?>
      
      				<p><?php _e( 'Registering for this site is easy, just fill in the fields below and we'll get a new account set up for you in no time.', 'buddypress' ) ?></p>
      
      				<?php do_action( 'bp_before_account_details_fields' ) ?>
      
      				<div class="register-section" id="basic-details-section">
      
      					<?php /***** Basic Account Details ******/ ?>
      
      					<h4><?php _e( 'Account Details', 'buddypress' ) ?></h4>
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/groups/create.php :: Trac Source Line: 30
      			<div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
      				<ul>
      
      					<?php bp_group_creation_tabs(); ?>
      
      				</ul>
      			</div>
      
      			<?php do_action( 'template_notices' ); ?>
      
      			<div class="item-body" id="group-create-body">
      
      				<?php /* Group creation step 1: Basic group details */ ?>
      				<?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
      
      					<?php do_action( 'bp_before_group_details_creation_step' ); ?>
      
      					<label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
      					<input type="text" name="group-name" id="group-name" aria-required="true" value="<?php bp_new_group_name(); ?>" />
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/groups/index.php :: Trac Source Line: 33
      			<?php do_action( 'bp_before_directory_groups_content' ); ?>
      
      			<div id="group-dir-search" class="dir-search" role="search">
      
      				<?php bp_directory_groups_search_form() ?>
      
      			</div><!-- #group-dir-search -->
      
      			<?php do_action( 'template_notices' ); ?>
      
      			<div class="item-list-tabs" role="navigation">
      				<ul>
      					<li class="selected" id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>
      
      					<?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
      
      						<li id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
      
      					<?php endif; ?>
      
    • 		</div><!-- #item-buttons -->
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/activity/index.php :: Trac Source Line: 35
      			<?php do_action( 'bp_before_directory_activity_content' ); ?>
      
      			<?php if ( is_user_logged_in() ) : ?>
      
      				<?php locate_template( array( 'activity/post-form.php'), true ); ?>
      
      			<?php endif; ?>
      
      			<?php do_action( 'template_notices' ); ?>
      
      			<div class="item-list-tabs activity-type-tabs" role="navigation">
      				<ul>
      					<?php do_action( 'bp_before_activity_type_tab_all' ); ?>
      
      					<li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/'; ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_site_member_count() ); ?></a></li>
      
      					<?php if ( is_user_logged_in() ) : ?>
      
      						<?php do_action( 'bp_before_activity_type_tab_friends' ) ?>
      
    • 		</div><!-- #item-buttons -->
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/forums/index.php :: Trac Source Line: 102
      					<?php if ( bp_is_active( 'groups' ) && bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
      
      						<form action="" method="post" id="forum-topic-form" class="standard-form">
      
      							<?php do_action( 'groups_forum_new_topic_before' ) ?>
      
      							<a name="post-new"></a>
      							<h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
      
      							<?php do_action( 'template_notices' ); ?>
      
      							<label><?php _e( 'Title:', 'buddypress' ); ?></label>
      							<input type="text" name="topic_title" id="topic_title" value="" />
      
      							<label><?php _e( 'Content:', 'buddypress' ); ?></label>
      							<textarea name="topic_text" id="topic_text"></textarea>
      
      							<label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
      							<input type="text" name="topic_tags" id="topic_tags" value="" />
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/registration/register.php :: Trac Source Line: 232
      				<?php wp_nonce_field( 'bp_new_signup' ) ?>
      
      			<?php endif; // request-details signup step ?>
      
      			<?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
      
      				<h2><?php _e( 'Sign Up Complete!', 'buddypress' ) ?></h2>
      
      				<?php do_action( 'template_notices' ) ?>
      				<?php do_action( 'bp_before_registration_confirmed' ) ?>
      
      				<?php if ( bp_registration_needs_activation() ) : ?>
      					<p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ) ?></p>
      				<?php else : ?>
      					<p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ) ?></p>
      				<?php endif; ?>
      
      				<?php do_action( 'bp_after_registration_confirmed' ) ?>
      

Hook: add_action: template_notices instances (1)

  • add_action( 'template_notices', 'bp_core_render_message' )
    $function_to_add: bp_core_render_message
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 536
      function bp_core_setup_message() {
      	global $bp;
      
      	if ( empty( $bp->template_message ) && isset( $_COOKIE['bp-message'] ) )
      		$bp->template_message = $_COOKIE['bp-message'];
      
      	if ( empty( $bp->template_message_type ) && isset( $_COOKIE['bp-message-type'] ) )
      		$bp->template_message_type = $_COOKIE['bp-message-type'];
      
      	add_action( 'template_notices', 'bp_core_render_message' );
      
      	@setcookie( 'bp-message',      false, time() - 1000, COOKIEPATH );
      	@setcookie( 'bp-message-type', false, time() - 1000, COOKIEPATH );
      }
      add_action( 'bp_actions', 'bp_core_setup_message', 5 );
      
      /**
       * Renders a feedback message (either error or success message) to the theme template.
       * The hook action 'template_notices' is used to call this function, it is not called directly.
       *
      

Comments are closed.