bp_before_blog_post

  • do_action( 'bp_before_blog_post' )

    Source Reference:

    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/attachment.php :: Trac Source Line: 12
      	<div id="content">
      		<div class="padder">
      
      			<?php do_action( 'bp_before_attachment' ); ?>
      
      			<div class="page" id="attachments-page" role="main">
      
      				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      
      					<?php do_action( 'bp_before_blog_post' ) ?>
      
      					<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      
      						<div class="author-box">
      							<?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
      							<p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), str_replace( '<a href=', '<a rel="author" href=', bp_core_get_userlink( $post->post_author ) ) ); ?></p>
      						</div>
      
      						<div class="post-content">
      							<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/archive.php :: Trac Source Line: 18
      			<h3 class="pagetitle"><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h3>
      
      			<?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(); ?>>
      
      						<div class="author-box">
      							<?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
      							<p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
      						</div>
      
      						<div class="post-content">
      							<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
      
    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/search.php :: Trac Source Line: 20
      			<?php if (have_posts()) : ?>
      
      				<h3 class="pagetitle"><?php _e( 'Search Results', 'buddypress' ) ?></h3>
      
      				<?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(); ?>>
      
      						<div class="author-box">
      							<?php echo get_avatar( get_the_author_meta( 'email' ), '50' ); ?>
      							<p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
      						</div>
      
      						<div class="post-content">
      							<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
      

Comments are closed.