Ticket #944: bp_pagetitles.patch
File bp_pagetitles.patch, 3.2 KB (added by , 15 years ago) |
---|
-
bp-core/bp-core-templatetags.php
1720 1720 return implode( ' ', $class ); 1721 1721 } 1722 1722 1723 function bp_the_page_hook() { 1724 echo bp_get_the_page_hook(); 1725 } 1723 1726 1727 function bp_get_the_page_hook() { 1728 $page = explode( ' ', bp_get_the_body_class() ); 1729 return $page[count( $page ) - 1]; 1730 } 1731 1732 function bp_pagetitle( $title ) { 1733 echo bp_get_pagetitle( $title ); 1734 } 1735 1736 function bp_get_pagetitle( $title ) { 1737 return apply_filters( 'bp_get_pagetitle', $title, bp_get_the_page_hook() ); 1738 } 1739 1724 1740 ?> 1741 No newline at end of file -
bp-themes/bp-sn-framework/archive.php
1 <?php get_header() ;?>1 <?php get_header() ?> 2 2 3 3 <div id="content"> 4 4 … … 6 6 7 7 <div class="page" id="blog-archives"> 8 8 9 <h2 class="pagetitle"><?php _e( 'Blog', 'buddypress') ?></h2>9 <h2 class="pagetitle"><?php bp_pagetitle( __( 'Blog', 'buddypress' ) ) ?></h2> 10 10 11 11 <?php if ( have_posts() ) : ?> 12 12 13 <h3><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ) ;?></h3>13 <h3><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ) ?></h3> 14 14 15 15 <div class="navigation"> 16 16 … … 19 19 20 20 </div> 21 21 22 <?php while ( have_posts()) : the_post();?>22 <?php while ( have_posts() ) : the_post() ?> 23 23 24 24 <?php do_action( 'bp_before_blog_post' ) ?> 25 25 26 26 <div class="post"> 27 27 28 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title(); ?>"><?php the_title();?></a></h3>28 <h3 <?php post_class() ?> id="post-<?php the_ID() ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title() ?>"><?php the_title() ?></a></h3> 29 29 <small><?php the_time('F j, Y') ?></small> 30 30 31 31 <div class="entry"> 32 32 <?php the_content() ?> 33 33 </div> 34 34 35 <p class="postmetadata"><?php _e( 'Posted in', 'buddypress' ) ?> <?php the_category(', ') ?> | <?php edit_post_link( __( 'Edit', 'buddypress' ), '', ' | ') ; ?> <?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) );?></p>35 <p class="postmetadata"><?php _e( 'Posted in', 'buddypress' ) ?> <?php the_category(', ') ?> | <?php edit_post_link( __( 'Edit', 'buddypress' ), '', ' | ') ?> <?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ) ?></p> 36 36 37 37 </div> 38 38 … … 50 50 <?php else : ?> 51 51 52 52 <h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2> 53 <?php load_template ( TEMPLATEPATH . '/searchform.php' ) ;?>53 <?php load_template ( TEMPLATEPATH . '/searchform.php' ) ?> 54 54 55 55 <?php endif; ?> 56 56