Ticket #1176: cleanup-bp-sn-parent.patch
File cleanup-bp-sn-parent.patch, 177.9 KB (added by , 15 years ago) |
---|
-
bp-friends/bp-friends-templatetags.php
385 385 } 386 386 387 387 function bp_friends_filter_title() { 388 global $bp; 389 390 $current_filter = $bp->action_variables[0]; 391 392 switch ( $current_filter ) { 393 case 'recently-active': default: 394 _e( 'Recently Active', 'buddypress' ); 395 break; 396 case 'newest': 397 _e( 'Newest', 'buddypress' ); 398 break; 399 case 'alphabetically': 400 _e( 'Alphabetically', 'buddypress' ); 401 break; 402 } 388 echo bp_get_friends_filter_title(); 403 389 } 404 390 391 function bp_get_friends_filter_title() { 392 global $bp; 393 394 $current_filter = $bp->action_variables[0]; 395 396 switch ( $current_filter ) { 397 case 'recently-active': default: 398 return __( 'Recently Active', 'buddypress' ); 399 400 case 'newest': 401 return __( 'Newest', 'buddypress' ); 402 403 case 'alphabetically': 404 return __( 'Alphabetically', 'buddypress' ); 405 } 406 } 407 405 408 function bp_friends_random_friends() { 406 409 global $bp; 407 410 -
bp-themes/bp-sn-parent/404.php
1 <?php get_header() ;?>1 <?php get_header() ?> 2 2 3 3 <div id="content"> 4 4 5 5 <?php do_action( 'bp_before_404' ) ?> 6 6 7 7 <div class="page 404"> 8 8 9 9 <h2 class="pagetitle"><?php _e( 'Page Not Found', 'buddypress' ) ?></h2> 10 10 11 11 <div id="message" class="info"> 12 12 13 13 <p><?php _e( 'The page you were looking for was not found.', 'buddypress' ) ?> 14 14 15 15 </div> 16 16 17 17 <?php do_action( 'bp_404' ) ?> … … 19 19 </div> 20 20 21 21 <?php do_action( 'bp_after_404' ) ?> 22 22 23 23 </div> 24 24 25 25 <?php get_sidebar() ?> 26 26 27 <?php get_footer() ;?>28 No newline at end of file 27 <?php get_footer() ?> 28 No newline at end of file -
bp-themes/bp-sn-parent/activity/just-me.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <?php bp_last_activity() ?> 6 5 7 </div> 6 8 7 9 <div id="content"> 10 8 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 9 12 10 13 <?php do_action( 'bp_before_my_activity_content' ) ?> 11 14 12 15 <div class="left-menu"> 16 13 17 <!-- Profile Menu (Avatar, Add Friend, Send Message buttons etc) --> 14 18 <?php locate_template( array( 'profile/profile-menu.php' ), true ) ?> 19 15 20 </div> 16 21 17 22 <div class="main-column"> 18 23 19 24 <?php bp_get_profile_header() ?> 20 25 21 26 <div class="bp-widget"> 22 <h4><?php echo bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ) ?> <a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></h4>23 27 28 <h4><?php echo bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ) ?> 29 30 <a href="<?php bp_activities_member_rss_link() ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></h4> 31 24 32 <ul id="activity-filter-links"> 33 25 34 <?php bp_activity_filter_links() ?> 35 26 36 </ul> 27 37 28 38 <?php if ( bp_has_activities( 'type=personal&per_page=25&max=500' ) ) : ?> 29 39 30 40 <div class="pagination"> 31 41 32 42 <div class="pag-count" id="activity-count"> 43 33 44 <?php bp_activity_pagination_count() ?> 45 34 46 </div> 35 47 36 48 <div class="pagination-links" id="activity-pag"> 49 37 50 <?php bp_activity_pagination_links() ?> 51 38 52 </div> 39 53 40 54 </div> 41 55 42 56 <ul id="activity-list" class="item-list activity-list"> 43 <?php while ( bp_activities() ) : bp_the_activity(); ?> 44 <li class="<?php bp_activity_css_class() ?>"> 45 <div class="activity-avatar"> 46 <?php bp_activity_avatar() ?> 47 </div> 48 49 <?php bp_activity_content() ?> 50 51 <?php do_action( 'bp_my_activity_item' ) ?> 52 </li> 53 <?php endwhile; ?> 57 58 <?php while ( bp_activities() ) : bp_the_activity() ?> 59 60 <li class="<?php bp_activity_css_class() ?>"> 61 62 <div class="activity-avatar"> 63 64 <?php bp_activity_avatar() ?> 65 66 </div> 67 68 <?php bp_activity_content() ?> 69 70 <?php do_action( 'bp_my_activity_item' ) ?> 71 72 </li> 73 74 <?php endwhile ?> 75 54 76 </ul> 55 77 56 78 <?php do_action( 'bp_my_activity_content' ) ?> 57 79 58 <?php else : ?>80 <?php else : ?> 59 81 60 82 <div id="message" class="info"> 83 61 84 <p><?php echo bp_word_or_name( __( "You haven't done anything yet.", 'buddypress' ), __( "%s hasn't done anything yet.", 'buddypress' ), true, false ) ?></p> 85 62 86 </div> 63 87 64 <?php endif;?> 88 <?php endif ?> 89 65 90 </div> 66 91 67 92 </div> 68 93 69 94 <?php do_action( 'bp_after_my_activity_content' ) ?> -
bp-themes/bp-sn-parent/activity/my-friends.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <?php bp_last_activity() ?> 6 5 7 </div> 6 8 7 9 <div id="content"> 10 8 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 9 12 10 13 <?php do_action( 'bp_before_friends_activity_content' ) ?> 11 14 12 15 <div class="left-menu"> 16 13 17 <!-- Profile Menu (Avatar, Add Friend, Send Message buttons etc) --> 14 18 <?php locate_template( array( 'profile/profile-menu.php' ), true ) ?> 19 15 20 </div> 16 21 17 22 <div class="main-column"> … … 19 24 <?php bp_get_profile_header() ?> 20 25 21 26 <div class="bp-widget"> 22 <h4><?php _e( 'My Friends Activity', 'buddypress' ) ?> <a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></h4>23 27 28 <h4><?php _e( 'My Friends Activity', 'buddypress' ) ?> 29 30 <a href="<?php bp_activities_member_rss_link() ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></h4> 31 24 32 <ul id="activity-filter-links"> 33 25 34 <?php bp_activity_filter_links() ?> 35 26 36 </ul> 27 37 28 38 <?php if ( bp_has_activities( 'type=friends&per_page=25&max=500' ) ) : ?> 29 39 30 40 <div class="pagination"> 31 41 32 42 <div class="pag-count" id="activity-count"> 43 33 44 <?php bp_activity_pagination_count() ?> 45 34 46 </div> 35 47 36 48 <div class="pagination-links" id="activity-pag"> 49 37 50 <?php bp_activity_pagination_links() ?> 51 38 52 </div> 39 53 40 54 </div> 41 55 42 56 <ul id="activity-list" class="item-list activity-list"> 43 <?php while ( bp_activities() ) : bp_the_activity(); ?>44 <li class="<?php bp_activity_css_class() ?>">45 <div class="activity-avatar">46 <?php bp_activity_avatar() ?>47 </div>48 49 <?php bp_activity_content() ?>50 57 51 <?php do_action( 'bp_friends_activity_item' ) ?> 52 </li> 53 <?php endwhile; ?> 58 <?php while ( bp_activities() ) : bp_the_activity() ?> 59 60 <li class="<?php bp_activity_css_class() ?>"> 61 62 <div class="activity-avatar"> 63 64 <?php bp_activity_avatar() ?> 65 66 </div> 67 68 <?php bp_activity_content() ?> 69 70 <?php do_action( 'bp_friends_activity_item' ) ?> 71 72 </li> 73 74 <?php endwhile ?> 75 54 76 </ul> 55 77 56 78 <?php do_action( 'bp_friends_activity_content' ) ?> 57 79 58 <?php else : ?>80 <?php else : ?> 59 81 60 82 <div id="message" class="info"> 83 61 84 <p><?php _e( "Your friends haven't done anything yet.", 'buddypress' ) ?></p> 85 62 86 </div> 63 87 64 <?php endif;?> 88 <?php endif ?> 89 65 90 </div> 66 91 67 92 </div> 68 93 69 94 <?php do_action( 'bp_after_friends_activity_content' ) ?> 70 95 71 96 </div> 72 97 73 <?php get_footer() ?> 74 98 <?php get_footer() ?> 99 No newline at end of file -
bp-themes/bp-sn-parent/archive.php
1 <?php get_header() ;?>1 <?php get_header() ?> 2 2 3 3 <div id="content"> 4 4 5 5 <?php do_action( 'bp_before_archive' ) ?> 6 6 7 7 <div class="page" id="blog-archives"> 8 8 9 9 <h2 class="pagetitle"><?php _e( '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 %s.', 'buddypress' ), wp_title( false, false ) ) ?></h3> 14 14 15 15 <div class="navigation"> 16 16 17 17 <div class="alignleft"><?php next_posts_link( __( '« Previous Entries', 'buddypress' ) ) ?></div> 18 18 <div class="alignright"><?php previous_posts_link( __( 'Next Entries »', 'buddypress' ) ) ?></div> 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 26 <div class="post"> 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> 25 26 <div <?php post_class( $i++ & 1 ? '' : 'alt' ) ?> id="post-<?php the_ID() ?>"> 27 28 <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permanent Link to %s', 'buddypress' ), get_the_title() ) ?>"><?php the_title() ?></a></h3> 29 29 30 <small><?php the_time('F j, Y') ?></small> 30 31 31 32 <div class="entry"> 33 32 34 <?php the_content() ?> 35 33 36 </div> 34 37 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>38 <p class="postmetadata"><?php printf( __( 'Posted in %s', 'buddypress' ), get_the_category_list(',') ) ?> 36 39 40 <?php _e( '|', 'buddypress' ) ?> 41 42 <?php edit_post_link( __( 'Edit', 'buddypress' ), '', "\n\n" . __( '|', 'buddypress' ) ) ?> 43 44 <?php comments_popup_link( 45 __( 'No Comments »', 'buddypress' ), 46 __( '1 Comment »', 'buddypress' ), 47 __( '% Comments »', 'buddypress' ) ) ?></p> 48 37 49 </div> 38 50 39 51 <?php do_action( 'bp_after_blog_post' ) ?> 40 52 41 <?php endwhile ;?>53 <?php endwhile ?> 42 54 43 55 <div class="navigation"> 44 56 45 57 <div class="alignleft"><?php next_posts_link( __( '« Previous Entries', 'buddypress' ) ) ?></div> 46 58 <div class="alignright"><?php previous_posts_link( __( 'Next Entries »', 'buddypress' ) ) ?></div> 47 59 48 60 </div> 49 61 50 62 <?php else : ?> 51 63 52 64 <h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2> 65 53 66 <?php locate_template( array( 'searchform.php' ), true ) ?> 54 55 <?php endif; ?>56 67 68 <?php endif ?> 69 57 70 </div> 58 71 59 72 <?php do_action( 'bp_after_archive' ) ?> 60 73 61 74 </div> 62 75 63 <?php get_sidebar();?>76 <?php get_sidebar() ?> 64 77 65 <?php get_footer(); ?> 78 <?php get_footer() ?> 79 No newline at end of file -
bp-themes/bp-sn-parent/attachment.php
1 <?php get_header() ;?>1 <?php get_header() ?> 2 2 3 3 <div id="content"> 4 4 5 5 <?php do_action( 'bp_before_attachment' ) ?> 6 6 7 7 <div class="page" id="attachments-page"> 8 8 9 9 <h2 class="pagetitle"><?php _e( 'Blog', 'buddypress' ) ?></h2> 10 11 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>12 10 11 <?php if ( have_posts() ) : while ( have_posts() ) : the_post() ?> 12 13 13 <?php do_action( 'bp_before_blog_post' ) ?> 14 14 15 <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?> 16 <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> 17 18 <div class="post" id="post-<?php the_ID(); ?>"> 19 20 <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> 21 15 <div <?php post_class( $i++ & 1 ? '' : 'alt' ) ?> id="post-<?php the_ID() ?>"> 16 17 <h2><a href="<?php echo get_permalink( $post->post_parent ) ?>" rev="attachment"><?php echo get_the_title( $post->post_parent ) ?></a> 18 19 <?php _e( '»', 'buddypress' ) ?> 20 21 <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php esc_attr_e( __( 'Permanent Link: %s', 'buddypress' ), get_the_title() ) ?>"><?php the_title() ?></a></h2> 22 22 23 <div class="entry"> 23 <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>24 24 25 <?php the_content( __('<p class="serif">Read the rest of this entry »</p>', 'buddypress' ) ); ?> 25 <p class="<?php 26 // This also populates the iconsize for the next line 27 $attachment_link = get_the_attachment_link( $post->ID, true, array( 450, 800 ) ); 28 $_post = &get_post( $post->ID ); 29 // This lets us style narrow icons specially 30 echo ( $_post->iconsize[0] <= 128 ? 'small ' : '' ) 31 ?>attachment"><?php echo $attachment_link ?> 26 32 27 <?php wp_link_pages( array( 'before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?> 33 <br /> 34 35 <?php echo basename( $post->guid ) ?></p> 36 37 <?php the_content( '<p class="serif">' . __('Read the rest of this entry »', 'buddypress' ) . '</p>' ) ?> 38 39 <?php wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'buddypress' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number') ) ?> 40 28 41 </div> 29 42 30 43 </div> 31 44 32 45 <?php do_action( 'bp_after_blog_post' ) ?> 33 46 34 <?php comments_template();?>47 <?php comments_template() ?> 35 48 36 <?php endwhile ; else:?>49 <?php endwhile ?> 37 50 38 <p><?php _e( 'Sorry, no attachments matched your criteria.', 'buddypress' ) ?></p>51 <?php else : ?> 39 52 40 <?php endif; ?> 53 <p><?php _e( 'Sorry, no attachments matched your criteria.', 'buddypress' ) ?></p> 54 55 <?php endif ?> 56 41 57 </div> 42 58 43 59 <?php do_action( 'bp_after_attachment' ) ?> 44 60 45 61 </div> 46 62 47 <?php get_footer(); ?> 63 <?php get_footer() ?> 64 No newline at end of file -
bp-themes/bp-sn-parent/blogs/create.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <?php _e( 'Create a Blog', 'buddypress' ) ?> 6 5 7 </div> 6 8 7 9 <div id="content"> 8 10 9 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 10 12 11 13 <h2><?php _e( 'Create a Blog', 'buddypress' ) ?></h2> 12 14 13 15 <?php do_action( 'bp_before_create_blog_content' ) ?> 14 16 15 17 <?php if ( bp_blog_signup_enabled() ) : ?> 16 18 17 19 <?php bp_show_blog_signup_form() ?> 18 19 <?php else: ?>20 20 21 <?php else : ?> 22 21 23 <div id="message" class="info"> 22 <p><?php _e( 'Blog registration is currently disabled', 'buddypress' ); ?></p> 24 25 <p><?php _e( 'Blog registration is currently disabled', 'buddypress' ) ?></p> 26 23 27 </div> 24 28 25 <?php endif ;?>29 <?php endif ?> 26 30 27 31 <?php do_action( 'bp_after_create_blog_content' ) ?> 28 32 29 33 </div> 30 34 31 <?php get_footer() ?> 32 35 <?php get_footer() ?> 36 No newline at end of file -
bp-themes/bp-sn-parent/blogs/my-blogs.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <?php bp_blogs_blog_tabs() ?> 6 5 7 </div> 6 8 7 9 <div id="content"> 8 10 9 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 10 12 11 13 <h2><?php bp_word_or_name( __( "My Blogs", 'buddypress' ), __( "%s's Blogs", 'buddypress' ) ) ?></h2> 12 14 13 15 <?php do_action( 'bp_before_my_blogs_content' ) ?> 14 16 15 17 <?php if ( bp_has_blogs() ) : ?> 16 18 17 19 <ul id="blog-list" class="item-list"> 18 <?php while ( bp_blogs() ) : bp_the_blog(); ?> 19 20 <li> 20 21 <?php while ( bp_blogs() ) : bp_the_blog() ?> 22 23 <li<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?>> 24 21 25 <h4><a href="<?php bp_blog_permalink() ?>"><?php bp_blog_title() ?></a></h4> 26 22 27 <p><?php bp_blog_description() ?></p> 23 28 24 29 <?php do_action( 'bp_my_blogs_item' ) ?> 30 25 31 </li> 26 27 <?php endwhile; ?> 32 33 <?php endwhile ?> 34 28 35 </ul> 29 36 30 37 <?php do_action( 'bp_my_blogs_content' ) ?> 31 32 <?php else: ?>33 38 39 <?php else : ?> 40 34 41 <div id="message" class="info"> 35 <p><?php bp_word_or_name( __( "You haven't created any blogs yet.", 'buddypress' ), __( "%s hasn't created any public blogs yet.", 'buddypress' ) ) ?> <?php bp_create_blog_link() ?> </p> 42 43 <p><?php bp_word_or_name( __( "You haven't created any blogs yet.", 'buddypress' ), __( "%s hasn't created any public blogs yet.", 'buddypress' ) ) ?> 44 45 <?php bp_create_blog_link() ?></p> 46 36 47 </div> 37 48 38 <?php endif ;?>49 <?php endif ?> 39 50 40 51 <?php do_action( 'bp_after_my_blogs_content' ) ?> 41 52 -
bp-themes/bp-sn-parent/blogs/recent-comments.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <?php bp_blogs_blog_tabs() ?> 6 5 7 </div> 6 8 7 9 <div id="content"> 8 10 9 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 10 11 <h2><?php _e("Recent Comments", "buddypress"); ?></h2>12 12 13 <h2><?php _e( 'Recent Comments', 'buddypress' ) ?></h2> 14 13 15 <?php do_action( 'bp_before_recent_comments_content' ) ?> 14 16 15 17 <?php if ( bp_has_comments() ) : ?> 16 18 17 19 <ul id="comment-list" class="item-list"> 18 <?php while ( bp_comments() ) : bp_the_comment(); ?> 19 20 <li id="comment-<?php bp_comment_id() ?>"> 21 <span class="small"><?php printf( __( 'On %1$s %2$s said:', 'buddypress' ), bp_comment_date( __( 'F jS, Y', 'buddypress' ), false ), bp_comment_author( false ) ); ?></span> 20 21 <?php while ( bp_comments() ) : bp_the_comment() ?> 22 23 <li<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?> id="comment-<?php bp_comment_id() ?>"> 24 25 <span class="small"><?php printf( __( 'On %1$s %2$s said:', 'buddypress' ), bp_comment_date( __( 'F jS, Y', 'buddypress' ), false ), bp_comment_author( false ) ) ?></span> 26 22 27 <p><?php bp_comment_content() ?></p> 23 <span class="small"><?php printf( __( 'Commented on the post <a href="%1$s">%2$s</a> on the blog <a href="%3$s">%4$s</a>.', 'buddypress' ), bp_comment_post_permalink( false ), bp_comment_post_title( false ), bp_comment_blog_permalink( false ), bp_comment_blog_name( false ) ); ?></span>24 28 29 <span class="small"><?php printf( __( 'Commented on the post <a href="%1$s">%2$s</a> on the blog <a href="%3$s">%4$s</a>.', 'buddypress' ), bp_comment_post_permalink( false ), bp_comment_post_title( false ), bp_comment_blog_permalink( false ), bp_comment_blog_name( false ) ) ?></span> 30 25 31 <?php do_action( 'bp_recent_comments_item' ) ?> 32 26 33 </li> 27 28 <?php endwhile; ?> 34 35 <?php endwhile ?> 36 29 37 </ul> 30 38 31 39 <?php do_action( 'bp_recent_comments_content' ) ?> 32 40 33 <?php else : ?>41 <?php else : ?> 34 42 35 43 <div id="message" class="info"> 44 36 45 <p><?php bp_word_or_name( __( "You haven't posted any comments yet.", 'buddypress' ), __( "%s hasn't posted any comments yet.", 'buddypress' ) ) ?></p> 46 37 47 </div> 38 48 39 <?php endif ;?>49 <?php endif ?> 40 50 41 51 <?php do_action( 'bp_after_recent_comments_content' ) ?> 42 52 -
bp-themes/bp-sn-parent/blogs/recent-posts.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <?php bp_blogs_blog_tabs() ?> 6 5 7 </div> 6 8 7 9 <div id="content"> 8 10 9 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 10 12 11 <h2><?php _e( "Recent Posts", "buddypress");?></h2>13 <h2><?php _e( 'Recent Posts', 'buddypress' ) ?></h2> 12 14 13 <?php do_action( 'bp_before_recent_posts_content' ) ?> 15 <?php do_action( 'bp_before_recent_posts_content' ) ?> 14 16 15 17 <?php if ( bp_has_posts() ) : ?> 16 17 <?php while ( bp_posts() ) : bp_the_post(); ?>18 19 <div class="post" id="post-<?php bp_post_id(); ?>">20 21 <h2><a href="<?php bp_post_permalink() ?>" rel="bookmark" title="<?php printf ( __( 'Permanent Link to %s', 'buddypress' ), bp_post_title( false ) ); ?>"><?php bp_post_title(); ?></a></h2>22 23 <p class="date"><?php printf( __( '%1$s <em>in %2$s by %3$s</em>', 'buddypress' ), bp_post_date(__('F jS, Y', 'buddypress'), false ), bp_post_category( ', ', '', null, false ), bp_post_author( false ) ); ?></p>24 <?php bp_post_content(__('Read the rest of this entry »')); ?>25 <p class="postmetadata"><?php bp_post_tags( '<span class="tags">', ', ', '</span>' ); ?> <span class="comments"><?php bp_post_comments( __('No Comments'), __('1 Comment'), __('% Comments') ); ?></span></p>26 27 <?php do_action( 'bp_recent_posts_item' ) ?>28 18 19 <?php while ( bp_posts() ) : bp_the_post() ?> 20 21 <div <?php post_class( ( $i++ & 1 ? '' : 'alt' ), bp_get_post_id() ) ?> id="post-<?php bp_post_id() ?>"> 22 23 <h2><a href="<?php bp_post_permalink() ?>" rel="bookmark" title="<?php printf ( esc_attr__( 'Permanent Link to %s', 'buddypress' ), bp_post_title( false ) ) ?>"><?php bp_post_title() ?></a></h2> 24 25 <p class="date"><?php printf( __( '%1$s <em>in %2$s by %3$s</em>', 'buddypress' ), bp_post_date( __('F jS, Y', 'buddypress' ), false ), bp_post_category( ', ', '', null, false ), bp_post_author( false ) ) ?></p> 26 27 <?php bp_post_content( __( 'Read the rest of this entry »', 'buddypress' ) ) ?> 28 <p class="postmetadata"><?php bp_post_tags( '<span class="tags">', ', ', '</span>' ) ?> 29 30 <span class="comments"><?php bp_post_comments( 31 __( 'No Comments', 'buddypress' ), 32 __( '1 Comment', 'buddypress' ), 33 __( '% Comments', 'buddypress' ) 34 ) ?></span></p> 35 36 <?php do_action( 'bp_recent_posts_item' ) ?> 37 29 38 <hr /> 30 39 31 40 </div> 32 33 <?php endwhile; ?>34 41 35 <?php do_action( 'bp_recent_posts_content' ) ?> 36 37 <?php else: ?> 42 <?php endwhile ?> 38 43 44 <?php do_action( 'bp_recent_posts_content' ) ?> 45 46 <?php else : ?> 47 39 48 <div id="message" class="info"> 49 40 50 <p><?php bp_word_or_name( __( "You haven't made any posts yet.", 'buddypress' ), __( "%s hasn't made any posts yet.", 'buddypress' ) ) ?></p> 51 41 52 </div> 42 53 43 <?php endif ;?>54 <?php endif ?> 44 55 45 <?php do_action( 'bp_after_recent_posts_content' ) ?> 56 <?php do_action( 'bp_after_recent_posts_content' ) ?> 46 57 47 58 </div> 48 59 -
bp-themes/bp-sn-parent/comments.php
1 <?php 2 if ( post_password_required() ) : 3 echo '<h3 class="comments-header">' . __('Password Protected', 'buddypress') . '</h3>'; 4 echo '<p class="alert password-protected">' . __('Enter the password to view comments.', 'buddypress') . '</p>'; 5 return; 6 endif; 1 <?php if ( post_password_required() ) : ?> 7 2 8 if ( is_page() && !have_comments() && !comments_open() && !pings_open() ) 9 return; 10 ?> 3 <h3 class="comments-header"><?php _e( 'Password Protected', 'buddypress' ) ?></h3> 11 4 5 <p class="alert password-protected"><?php _e( 'Enter the password to view comments.', 'buddypress' ) ?></p> 6 7 <?php return ?> 8 9 <?php endif ?> 10 11 <?php if ( is_page() && !have_comments() && !comments_open() && !pings_open() ) 12 return ?> 13 12 14 <div id="comments-template"> 13 15 14 16 <?php if ( have_comments() ) : ?> 15 17 16 18 <div id="comments"> 17 19 18 <h3 id="comments-number" class="comments-header"><?php comments_number( sprintf( __('No responses to %1$s', 'buddypress'), the_title( '“', '”', false ) ), sprintf( __('One response to %1$s', 'buddypress'), the_title( '“', '”', false ) ), sprintf( __('%1$s responses to %2$s', 'buddypress'), '%', the_title( '“', '”', false ) ) ); ?></h3> 20 <h3 id="comments-number" class="comments-header"><?php comments_number( 21 sprintf( __( 'No responses to “%s”', 'buddypress' ), get_the_title() ), 22 sprintf( __( 'One response to “%s”', 'buddypress' ), get_the_title() ), 23 sprintf( __( '%1$s responses to “%2$s”', 'buddypress' ), '%', get_the_title() ) 24 ) ?></h3> 19 25 20 26 <?php do_action( 'bp_before_blog_comment_list' ) ?> 21 27 22 28 <ol class="commentlist"> 23 <?php wp_list_comments( array( 'style' => 'ol', 'type' => 'all' ) ); ?>24 </ol><!-- .comment-list -->25 29 30 <?php wp_list_comments( array( 'style' => 'ol', 'type' => 'all' ) ) ?> 31 32 </ol><!-- .commentlist --> 33 26 34 <?php do_action( 'bp_after_blog_comment_list' ) ?> 27 35 28 36 <?php if ( get_option( 'page_comments' ) ) : ?> 29 37 30 38 <div class="comment-navigation paged-navigation"> 31 32 <?php paginate_comments_links(); ?>33 39 40 <?php paginate_comments_links() ?> 41 34 42 </div> 35 <?php endif; ?>36 43 44 <?php endif ?> 45 37 46 </div><!-- #comments --> 38 47 39 48 <?php else : ?> 40 49 41 50 <?php if ( pings_open() && !comments_open() && is_single() ) : ?> 42 51 43 <p class="comments-closed pings-open"> 44 <?php printf( __('Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'buddypress'), trackback_url( '0' ) ); ?> 45 </p> 52 <p class="comments-closed pings-open"><?php printf( __( 'Comments are closed, but <a href="%s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'buddypress' ), trackback_url( '0' ) ) ?></p> 46 53 47 54 <?php elseif ( !comments_open() && is_single() ) : ?> 48 55 49 <p class="comments-closed"> 50 <?php _e('Comments are closed.', 'buddypress'); ?> 51 </p> 56 <p class="comments-closed"><?php _e( 'Comments are closed.', 'buddypress' ) ?></p> 52 57 53 <?php endif ;?>58 <?php endif ?> 54 59 55 <?php endif ;?>60 <?php endif ?> 56 61 57 62 <?php if ( comments_open() ) : ?> 58 63 59 64 <div id="respond"> 60 65 61 <h3 id="reply" class="comments-header"> 62 <?php comment_form_title( __('Leave a Reply', 'buddypress'), __('Leave a Reply to %s', 'buddypress'), true ); ?> 63 </h3> 66 <h3 id="reply" class="comments-header"><?php comment_form_title( __( 'Leave a Reply', 'buddypress' ), __( 'Leave a Reply to %s', 'buddypress' ), true ) ?></h3> 64 67 65 <p id="cancel-comment-reply"> 66 <?php cancel_comment_reply_link( __('Click here to cancel reply.', 'buddypress') ); ?> 67 </p> 68 <p id="cancel-comment-reply"><?php cancel_comment_reply_link( __( 'Click here to cancel reply.', 'buddypress' ) ) ?></p> 68 69 69 70 <?php if ( get_option( 'comment_registration' ) && !$user_ID ) : ?> 70 71 71 <p class="alert"> 72 <?php printf( __('You must be <a href="%1$s" title="Log in">logged in</a> to post a comment.', 'buddypress'), wp_login_url( get_permalink() ) ); ?> 73 </p> 72 <p class="alert"><?php printf( __( 'You must be <a href="%s" title="Log in">logged in</a> to post a comment.', 'buddypress'), wp_login_url( get_permalink() ) ) ?></p> 74 73 75 74 <?php else : ?> 76 75 77 76 <?php do_action( 'bp_before_blog_comment_form' ) ?> 78 79 <form action="<?php echo get_option( 'siteurl' ); ?>/wp-comments-post.php" method="post" id="commentform" class="standard-form">80 77 78 <form action="<?php echo get_option( 'siteurl' ) ?>/wp-comments-post.php" method="post" id="commentform" class="standard-form"> 79 81 80 <?php if ( $user_ID ) : ?> 82 81 83 <p class="log-in-out"> 84 <?php printf( __('Logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'buddypress'), bp_loggedin_user_domain(), $user_identity ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'buddypress'); ?>"><?php _e('Log out »', 'buddypress'); ?></a> 85 </p> 82 <p class="log-in-out"><?php printf( __( 'Logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'buddypress' ), bp_loggedin_user_domain(), $user_identity ) ?> 86 83 84 <a href="<?php echo wp_logout_url( get_permalink() ) ?>" title="<?php esc_attr_e( 'Log out of this account', 'buddypress' ) ?>"><?php _e('Log out »', 'buddypress') ?></a></p> 85 87 86 <?php else : ?> 88 87 89 <?php $req = get_option( 'require_name_email' ) ;?>88 <?php $req = get_option( 'require_name_email' ) ?> 90 89 91 <p class="form-author"> 92 <label for="author"><?php _e('Name', 'buddypress'); ?> <?php if ( $req ) : ?><span class="required"><?php _e('*', 'buddypress'); ?></span><?php endif; ?></label> 93 <input type="text" class="text-input" name="author" id="author" value="<?php echo $comment_author; ?>" size="40" tabindex="1" /> 94 </p> 90 <p class="form-author"><label for="author"><?php _e( 'Name', 'buddypress' ); 95 91 96 <p class="form-email"> 97 <label for="email"><?php _e('Email', 'buddypress'); ?> <?php if ( $req ) : ?><span class="required"><?php _e('*', 'buddypress'); ?></span><?php endif; ?></label> 98 <input type="text" class="text-input" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" /> 99 </p> 92 if ( $req ) : ?> 100 93 101 <p class="form-url"> 102 <label for="url"><?php _e('Website', 'buddypress'); ?></label> 103 <input type="text" class="text-input" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" /> 104 </p> 94 <span class="required"><?php _e( '*', 'buddypress' ) ?></span><?php endif ?></label> 105 95 106 <?php endif; ?>96 <input type="text" class="text-input" name="author" id="author" value="<?php echo $comment_author; ?>" size="40" tabindex="1" /></p> 107 97 108 <p class="form-textarea"> 109 <label for="comment"><?php _e('Comment', 'buddypress'); ?></label> 110 <textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea> 111 </p> 98 <p class="form-email"><label for="email"><?php _e( 'Email', 'buddypress' ); 112 99 100 if ( $req ) : ?> 101 102 <span class="required"><?php _e( '*', 'buddypress' ) ?></span><?php endif ?></label> 103 104 <input type="text" class="text-input" name="email" id="email" value="<?php echo $comment_author_email ?>" size="40" tabindex="2" /></p> 105 106 <p class="form-url"><label for="url"><?php _e( 'Website', 'buddypress' ) ?></label> 107 108 <input type="text" class="text-input" name="url" id="url" value="<?php echo $comment_author_url ?>" size="40" tabindex="3" /></p> 109 110 <?php endif ?> 111 112 <p class="form-textarea"><label for="comment"><?php _e( 'Comment', 'buddypress' ) ?></label> 113 114 <textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea></p> 115 113 116 <?php do_action( 'bp_blog_comment_form' ) ?> 114 117 115 <p class="form-submit"> 116 <input class="submit-comment button" name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit', 'buddypress'); ?>" /> 117 <input class="reset-comment button" name="reset" type="reset" id="reset" tabindex="6" value="<?php _e('Reset', 'buddypress'); ?>" /> 118 <?php comment_id_fields(); ?> 119 </p> 118 <p class="form-submit"><input class="submit-comment button" name="submit" type="submit" id="submit" tabindex="5" value="<?php _e( 'Submit', 'buddypress' ) ?>" /> 120 119 120 <input class="reset-comment button" name="reset" type="reset" id="reset" tabindex="6" value="<?php _e( 'Reset', 'buddypress' ) ?>" /> 121 122 <?php comment_id_fields() ?></p> 123 121 124 <div class="comment-action"> 122 <?php do_action( 'comment_form', $post->ID ); ?> 125 126 <?php do_action( 'comment_form', $post->ID ) ?> 127 123 128 </div> 124 129 125 130 </form> 126 131 127 132 <?php do_action( 'bp_after_blog_comment_form' ) ?> 128 133 129 <?php endif ;?>134 <?php endif ?> 130 135 131 136 </div> 132 137 133 <?php endif; ?> 134 135 </div> 136 137 No newline at end of file 138 <?php endif ?> 139 140 </div> 141 No newline at end of file -
bp-themes/bp-sn-parent/directories/blogs/blogs-loop.php
1 <?php if ( bp_has_site_blogs( 'type=active&per_page=10' ) ) : ?> 2 3 <div class="pagination"> 4 5 <div class="pag-count" id="blog-dir-count"> 6 <?php bp_site_blogs_pagination_count() ?> 7 </div> 1 <?php if ( bp_has_site_blogs( 'type=active&per_page=10' ) ) : ?> 8 2 9 <div class="pagination-links" id="blog-dir-pag"> 10 <?php bp_site_blogs_pagination_links() ?> 11 </div> 12 13 </div> 3 <div class="pagination"> 14 4 15 <?php do_action( 'bp_before_directory_blogs_list' ) ?>5 <div class="pag-count" id="blog-dir-count"> 16 6 17 <ul id="blogs-list" class="item-list"> 18 <?php while ( bp_site_blogs() ) : bp_the_site_blog(); ?> 7 <?php bp_site_blogs_pagination_count() ?> 19 8 20 <li>21 <div class="item-avatar">22 <a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_avatar_thumb() ?></a>23 9 </div> 24 10 25 <div class="item"> 26 <div class="item-title"><a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_name() ?></a></div> 27 <div class="item-meta"><span class="activity"><?php bp_the_site_blog_last_active() ?></span></div> 11 <div class="pagination-links" id="blog-dir-pag"> 28 12 29 <?php do_action( 'bp_core_directory_blogs_item' ) ?> 13 <?php bp_site_blogs_pagination_links() ?> 14 30 15 </div> 31 16 32 <div class="action"> 33 <div class="generic-button blog-button visit"> 34 <a href="<?php bp_the_site_blog_link() ?>" class="visit" title="<?php _e( 'Visit Blog', 'buddypress' ) ?>"><?php _e( 'Visit Blog', 'buddypress' ) ?></a> 17 </div> 18 19 <?php do_action( 'bp_before_directory_blogs_list' ) ?> 20 21 <ul id="blogs-list" class="item-list"> 22 23 <?php while ( bp_site_blogs() ) : bp_the_site_blog() ?> 24 25 <li<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?>> 26 27 <div class="item-avatar"> 28 29 <a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_avatar_thumb() ?></a> 30 35 31 </div> 36 37 <div class="meta"> 38 <?php bp_the_site_blog_latest_post() ?> 32 33 <div class="item"> 34 35 <div class="item-title"><a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_name() ?></a></div> 36 37 <div class="item-meta"><span class="activity"><?php bp_the_site_blog_last_active() ?></span></div> 38 39 <?php do_action( 'bp_core_directory_blogs_item' ) ?> 40 39 41 </div> 40 41 <?php do_action( 'bp_directory_blogs_actions' ) ?>42 </div>43 42 44 <div class="clear"></div> 45 </li> 43 <div class="action"> 46 44 47 <?php endwhile; ?> 48 </ul> 45 <div class="generic-button blog-button visit"> 49 46 50 <?php do_action( 'bp_after_directory_blogs_list' ) ?> 51 52 <?php else: ?> 47 <a href="<?php bp_the_site_blog_link() ?>" class="visit" title="<?php esc_attr_e( 'Visit Blog', 'buddypress' ) ?>"><?php _e( 'Visit Blog', 'buddypress' ) ?></a> 53 48 54 <div id="message" class="info"> 55 <p><?php _e( 'No blogs found. Blogs must fill in at least one piece of profile data to show in blog lists.', 'buddypress' ) ?></p> 56 </div> 49 </div> 57 50 58 <?php endif; ?>51 <div class="meta"> 59 52 60 <?php bp_the_site_blog_hidden_fields() ?> 61 No newline at end of file 53 <?php bp_the_site_blog_latest_post() ?> 54 55 </div> 56 57 <?php do_action( 'bp_directory_blogs_actions' ) ?> 58 59 </div> 60 61 <div class="clear"></div> 62 63 </li> 64 65 <?php endwhile ?> 66 67 </ul> 68 69 <?php do_action( 'bp_after_directory_blogs_list' ) ?> 70 71 <?php else : ?> 72 73 <div id="message" class="info"> 74 75 <p><?php _e( 'No blogs found. Blogs must fill in at least one piece of profile data to show in blog lists.', 'buddypress' ) ?></p> 76 77 </div> 78 79 <?php endif ?> 80 81 <?php bp_the_site_blog_hidden_fields() ?> 82 No newline at end of file -
bp-themes/bp-sn-parent/directories/blogs/index.php
1 1 <?php get_header() ?> 2 2 3 <?php do_action( 'bp_before_directory_blogs_content' ) ?> 3 <?php do_action( 'bp_before_directory_blogs_content' ) ?> 4 4 5 5 <div id="content"> 6 6 7 7 <div class="page" id="blogs-directory-page"> 8 8 9 9 <form action="<?php echo site_url() . '/' ?>" method="post" id="blogs-directory-form"> 10 10 11 <h3><?php _e( 'Blog Directory', 'buddypress' ) ?></h3> 11 12 12 13 <ul id="letter-list"> 14 13 15 <li><a href="#a" id="letter-a">A</a></li> 14 16 <li><a href="#b" id="letter-b">B</a></li> 15 17 <li><a href="#c" id="letter-c">C</a></li> … … 36 38 <li><a href="#x" id="letter-x">X</a></li> 37 39 <li><a href="#y" id="letter-y">Y</a></li> 38 40 <li><a href="#z" id="letter-z">Z</a></li> 41 39 42 </ul> 40 43 41 44 <div id="blogs-directory-listing" class="directory-listing"> 45 42 46 <h3><?php _e( 'Blog Listing', 'buddypress' ) ?></h3> 43 47 44 48 <div id="blog-dir-list"> 49 45 50 <?php locate_template( array( 'directories/blogs/blogs-loop.php' ), true ) ?> 51 46 52 </div> 47 53 48 54 </div> … … 52 58 <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blog-filter' ) ?> 53 59 54 60 </form> 55 61 56 62 </div> 57 63 58 64 </div> 59 65 60 <?php do_action( 'bp_after_directory_blogs_content' ) ?> 61 <?php do_action( 'bp_before_directory_blogs_sidebar' ) ?> 66 <?php do_action( 'bp_after_directory_blogs_content' ) ?> 67 <?php do_action( 'bp_before_directory_blogs_sidebar' ) ?> 62 68 63 69 <div id="sidebar" class="directory-sidebar"> 64 70 65 <?php do_action( 'bp_before_directory_blogs_search' ) ?> 71 <?php do_action( 'bp_before_directory_blogs_search' ) ?> 66 72 67 73 <div id="blogs-directory-search" class="directory-widget"> 68 74 69 75 <h3><?php _e( 'Find Blogs', 'buddypress' ) ?></h3> 70 76 71 77 <?php bp_directory_blogs_search_form() ?> 72 78 73 <?php do_action( 'bp_directory_blogs_search' ) ?> 79 <?php do_action( 'bp_directory_blogs_search' ) ?> 74 80 75 81 </div> 76 82 77 <?php do_action( 'bp_after_directory_blogs_search' ) ?> 78 <?php do_action( 'bp_before_directory_blogs_featured' ) ?> 83 <?php do_action( 'bp_after_directory_blogs_search' ) ?> 84 <?php do_action( 'bp_before_directory_blogs_featured' ) ?> 79 85 80 86 <div id="blogs-directory-featured" class="directory-widget"> 81 87 82 88 <h3><?php _e( 'Random Blogs', 'buddypress' ) ?></h3> 83 89 84 90 <?php if ( bp_has_site_blogs( 'type=random&max=3' ) ) : ?> 85 91 86 92 <ul id="featured-blogs-list" class="item-list"> 87 <?php while ( bp_site_blogs() ) : bp_the_site_blog(); ?>88 93 89 <li> 94 <?php while ( bp_site_blogs() ) : bp_the_site_blog() ?> 95 96 <li<?php echo ( $j++ & 1 ? '' : ' class="alt"' ) ?>> 97 90 98 <div class="item-avatar"> 99 91 100 <a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_avatar_thumb() ?></a> 101 92 102 </div> 93 103 94 104 <div class="item"> 105 95 106 <div class="item-title"><a href="<?php bp_the_site_blog_link() ?>"><?php bp_the_site_blog_name() ?></a></div> 96 107 <div class="item-meta"><span class="activity"><?php bp_the_site_blog_last_active() ?></span></div> 97 108 98 109 <div class="field-data"> 110 99 111 <div class="field-name"> 112 100 113 <strong><?php _e( 'Description: ', 'buddypress' ) ?></strong> 114 101 115 <?php bp_the_site_blog_description() ?> 116 102 117 </div> 118 103 119 </div> 104 120 105 121 <?php do_action( 'bp_directory_blogs_featured_item' ) ?> 122 106 123 </div> 124 107 125 </li> 108 126 109 <?php endwhile; ?> 110 </ul> 127 <?php endwhile ?> 111 128 112 <?php do_action( 'bp_directory_blogs_featured' ) ?> 129 </ul> 130 131 <?php do_action( 'bp_directory_blogs_featured' ) ?> 113 132 114 <?php else : ?>133 <?php else : ?> 115 134 116 135 <div id="message" class="info"> 136 117 137 <p><?php _e( 'There are not enough blogs to feature.', 'buddypress' ) ?></p> 138 118 139 </div> 119 140 120 <?php endif ;?>121 141 <?php endif ?> 142 122 143 </div> 123 144 124 <?php do_action( 'bp_after_directory_blogs_featured' ) ?> 145 <?php do_action( 'bp_after_directory_blogs_featured' ) ?> 125 146 126 147 </div> 127 148 128 <?php do_action( 'bp_after_directory_blogs_sidebar' ) ?> 149 <?php do_action( 'bp_after_directory_blogs_sidebar' ) ?> 129 150 130 151 <?php get_footer() ?> 152 No newline at end of file -
bp-themes/bp-sn-parent/directories/forums/forums-loop.php
1 <?php if ( bp_has_forum_topics( 'type=' . bp_get_forum_topic_type() . '&per_page=25&max=250' ) ) : ?> 2 3 <div class="pagination"> 4 5 <div id="post-count" class="pag-count"> 6 <?php bp_forum_pagination_count() ?> 7 </div> 1 <?php if ( bp_has_forum_topics( 'type=' . bp_get_forum_topic_type() . '&per_page=25&max=250' ) ) : ?> 8 2 9 <div class="pagination-links" id="topic-pag"> 10 <?php bp_forum_pagination() ?> 3 <div class="pagination"> 4 5 <div id="post-count" class="pag-count"> 6 7 <?php bp_forum_pagination_count() ?> 8 9 </div> 10 11 <div class="pagination-links" id="topic-pag"> 12 13 <?php bp_forum_pagination() ?> 14 15 </div> 16 11 17 </div> 12 13 </div>14 18 15 <?php do_action( 'bp_before_directory_forums_list' ) ?> 16 17 <table id="global-forum-topic-list"> 18 19 <tr> 20 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th> 21 <th id="th-poster"><?php _e( 'Last Poster', 'buddypress' ) ?></th> 22 <th id="th-group"><?php _e( 'Posted In', 'buddypress' ) ?></th> 23 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th> 24 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th> 25 </tr> 26 27 <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?> 28 29 <tr class="<?php bp_the_topic_css_class() ?>"> 30 <td class="td-title"> 31 <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"> 32 <?php bp_the_topic_title() ?> 33 </a> 34 </td> 35 <td class="td-poster"> 36 <a href="<?php bp_the_topic_permalink() ?>"> 37 <?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?> 38 </a> 39 <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div> 40 </td> 41 <td class="td-group"> 42 <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a> 43 <div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div> 44 </td> 45 <td class="td-postcount"> 46 <?php bp_the_topic_total_posts() ?> 47 </td> 48 <td class="td-freshness"> 49 <?php bp_the_topic_time_since_last_post() ?> 50 </td> 19 <?php do_action( 'bp_before_directory_forums_list' ) ?> 51 20 52 <?php do_action( 'bp_directory_forums_extra_cell' ) ?> 53 </tr> 21 <table id="global-forum-topic-list"> 54 22 55 <?php do_action( 'bp_directory_forums_extra_row' ) ?> 23 <tr> 24 25 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th> 26 <th id="th-poster"><?php _e( 'Last Poster', 'buddypress' ) ?></th> 27 <th id="th-group"><?php _e( 'Posted In', 'buddypress' ) ?></th> 28 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th> 29 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th> 30 31 </tr> 32 33 <?php while ( bp_forum_topics() ) : bp_the_forum_topic() ?> 34 35 <tr class="<?php bp_the_topic_css_class() ?>"> 36 37 <td class="td-title"> 38 39 <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php printf( esc_attr__( '%s - Permalink', 'buddypress' ), bp_get_the_topic_title() ) ?>"><?php bp_the_topic_title() ?></a> 40 41 </td> 42 43 <td class="td-poster"> 44 45 <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a> 46 47 <div class="poster-name"> 48 49 <?php bp_the_topic_last_poster_name() ?> 50 51 </div> 52 53 </td> 54 55 <td class="td-group"> 56 57 <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a> 58 59 <div class="object-name"> 60 61 <a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a> 62 63 </div> 64 65 </td> 66 67 <td class="td-postcount"> 68 69 <?php bp_the_topic_total_posts() ?> 70 71 </td> 72 73 <td class="td-freshness"> 74 75 <?php bp_the_topic_time_since_last_post() ?> 76 77 </td> 78 79 <?php do_action( 'bp_directory_forums_extra_cell' ) ?> 80 81 </tr> 82 83 <?php do_action( 'bp_directory_forums_extra_row' ) ?> 84 85 <?php endwhile ?> 86 87 </table> 88 89 <?php do_action( 'bp_after_directory_forums_list' ) ?> 56 90 57 <?php endwhile; ?> 58 59 </table> 91 <?php else : ?> 60 92 61 <?php do_action( 'bp_after_directory_forums_list' ) ?> 62 63 <?php else: ?> 93 <div id="message" class="info"> 64 94 65 <div id="message" class="info"> 66 <p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ) ?></p> 67 </div> 95 <p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ) ?></p> 68 96 69 <?php endif;?> 70 No newline at end of file 97 </div> 98 99 <?php endif ?> 100 No newline at end of file -
bp-themes/bp-sn-parent/directories/forums/index.php
1 1 <?php get_header() ?> 2 2 3 <?php do_action( 'bp_before_directory_forums_content' ) ?> 3 <?php do_action( 'bp_before_directory_forums_content' ) ?> 4 4 5 5 <div id="content"> 6 6 7 7 <div class="page" id="forums-directory-page"> 8 9 <form action="<?php echo site_url() . '/' ?>" method="post" id="forums-directory-form">10 8 9 <form action="<?php echo site_url() ?>/" method="post" id="forums-directory-form"> 10 11 11 <?php if ( bp_has_site_groups( 'type=most-forum-topics&max=6' ) ) : ?> 12 12 13 13 <div id="popular-group-forum-listing"> 14 14 15 <h3><?php _e( 'Popular Group Forums', 'buddypress' ) ?></h3> 15 16 <?php do_action( 'bp_before_directory_popular_group_forums' ) ?>17 16 18 <?php while ( bp_site_groups() ) : bp_the_site_group();?>17 <?php do_action( 'bp_before_directory_popular_group_forums' ) ?> 19 18 20 <div class="group-forum"> 19 <?php while ( bp_site_groups() ) : bp_the_site_group() ?> 20 21 <div class="group-forum<?php echo ( $i++ & 1 ? '' : ' alt' ) ?>"> 22 21 23 <div class="item-avatar"> 24 22 25 <a href="<?php bp_the_site_group_link() ?>/forum/"><?php bp_the_site_group_avatar_thumb() ?></a> 26 23 27 </div> 24 28 25 29 <div class="item"> 26 <div class="item-title"><a href="<?php bp_the_site_group_link() ?>/forum/"><?php bp_the_site_group_name() ?></a> (<?php bp_the_site_group_forum_topic_count( 'showtext=true' ) ?>, <?php bp_the_site_group_forum_post_count( 'showtext=true' ) ?>)</div>27 <div class="item-meta desc"><?php bp_the_site_group_description_excerpt() ?></div>28 30 31 <div class="item-title"> 32 33 <a href="<?php bp_the_site_group_link() ?>/forum/"><?php bp_the_site_group_name() ?></a> 34 35 (<?php bp_the_site_group_forum_topic_count( 'showtext=true' ) ?>, <?php bp_the_site_group_forum_post_count( 'showtext=true' ) ?>) 36 37 </div> 38 39 <div class="item-meta desc"> 40 41 <?php bp_the_site_group_description_excerpt() ?> 42 43 </div> 44 29 45 <?php do_action( 'bp_directory_popular_group_forums_item' ) ?> 46 30 47 </div> 48 31 49 </div> 32 50 33 <?php endwhile ;?>51 <?php endwhile ?> 34 52 35 <?php do_action( 'bp_after_directory_popular_group_forums' ) ?> 36 53 <?php do_action( 'bp_after_directory_popular_group_forums' ) ?> 54 37 55 </div> 38 39 <?php endif; ?>40 56 57 <?php endif ?> 58 41 59 <div id="forums-directory-listing" class="directory-listing"> 60 42 61 <h3><?php _e( 'Latest Forum Topics', 'buddypress' ) ?></h3> 43 62 44 63 <div id="forum-dir-list"> 45 64 46 65 <?php do_action( 'bp_before_directory_forums_topic_filters' ) ?> 47 66 48 67 <div id="global-forum-topic-filters"> 68 49 69 <ul> 50 <li<?php if ( '' == bp_current_action() && !isset( $_GET['fs'] ) ) : ?> class="selected"<?php endif; ?> id="forums-newest"><a href="<?php bp_newest_forum_topics_link() ?>" title="<?php _e( 'Newest Topics', 'buddypress' ) ?>"><?php _e( 'Newest Topics', 'buddypress') ?></a></li> 51 <li<?php if ( 'popular' == bp_current_action() ) : ?> class="selected"<?php endif; ?> id="forums-popular"><a href="<?php bp_popular_forum_topics_link() ?>" title="<?php _e( 'Most Popular Topics', 'buddypress' ) ?>"><?php _e( 'Most Popular Topics', 'buddypress') ?></a></li> 52 <li<?php if ( 'unreplied' == bp_current_action() ) : ?> class="selected"<?php endif; ?> id="forums-unreplied"><a href="<?php bp_unreplied_forum_topics_link() ?>" title="<?php _e( 'Unreplied Topics', 'buddypress' ) ?>"><?php _e( 'Unreplied Topics', 'buddypress') ?></a></li> 53 70 71 <li<?php if ( '' == bp_current_action() && !isset( $_GET['fs'] ) ) echo ' class="selected"' ?> id="forums-newest"><a href="<?php bp_newest_forum_topics_link() ?>" title="<?php esc_attr_e( 'Newest Topics', 'buddypress' ) ?>"><?php _e( 'Newest Topics', 'buddypress') ?></a></li> 72 73 <li<?php if ( 'popular' == bp_current_action() ) echo ' class="selected"' ?> id="forums-popular"><a href="<?php bp_popular_forum_topics_link() ?>" title="<?php esc_attr_e( 'Most Popular Topics', 'buddypress' ) ?>"><?php _e( 'Most Popular Topics', 'buddypress') ?></a></li> 74 75 <li<?php if ( 'unreplied' == bp_current_action() ) echo ' class="selected"' ?> id="forums-unreplied"><a href="<?php bp_unreplied_forum_topics_link() ?>" title="<?php esc_attr_e( 'Unreplied Topics', 'buddypress' ) ?>"><?php _e( 'Unreplied Topics', 'buddypress') ?></a></li> 76 54 77 <?php if ( is_user_logged_in() ) : ?> 55 <li<?php if ( 'personal' == bp_current_action() ) : ?> class="selected"<?php endif; ?> id="forums-personal"><a href="<?php bp_my_forum_topics_link() ?>" title="<?php_e( 'Topics I have started or replied to', 'buddypress' ) ?>"><?php _e( 'My Topics', 'buddypress') ?></a></li>56 <?php endif ;?>57 78 <li<?php if ( 'personal' == bp_current_action() ) echo ' class="selected"' ?> id="forums-personal"><a href="<?php bp_my_forum_topics_link() ?>" title="<?php esc_attr_e( 'Topics I have started or replied to', 'buddypress' ) ?>"><?php _e( 'My Topics', 'buddypress') ?></a></li> 79 <?php endif ?> 80 58 81 <?php if ( 'tag' == bp_current_action() ) : ?> 59 <li class="selected" id="forums-tag"><a href="<?php bp_newest_forum_topics_link() ?>" title="<?php _e( 'Tag', 'buddypress' ) ?>"><?php printf( __( 'Tagged: %s', 'buddypress' ), bp_get_forums_tag_name() ) ?></a></li>60 <?php endif ;?>61 82 <li class="selected" id="forums-tag"><a href="<?php bp_newest_forum_topics_link() ?>" title="<?php esc_attr_e( 'Tag', 'buddypress' ) ?>"><?php printf( __( 'Tagged: %s', 'buddypress' ), bp_get_forums_tag_name() ) ?></a></li> 83 <?php endif ?> 84 62 85 <?php if ( isset( $_GET['fs'] ) ) : ?> 63 <li class="selected" id="forums-search"><a href="<?php bp_newest_forum_topics_link() ?>" title="<?php _e( 'Search', 'buddypress' ) ?>"><?php printf( __( 'Matching: %s', 'buddypress' ), attribute_escape( $_GET['fs'] ) ) ?></a></li>64 <?php endif ;?>65 86 <li class="selected" id="forums-search"><a href="<?php bp_newest_forum_topics_link() ?>" title="<?php esc_attr_e( 'Search', 'buddypress' ) ?>"><?php printf( __( 'Matching: %s', 'buddypress' ), attribute_escape( $_GET['fs'] ) ) ?></a></li> 87 <?php endif ?> 88 66 89 <?php do_action( 'bp_directory_forums_topic_filters' ) ?> 67 </ul> 90 91 </ul> 92 68 93 </div> 69 94 70 95 <?php do_action( 'bp_after_directory_forums_topic_filters' ) ?> 71 96 72 97 <?php locate_template( array( 'directories/forums/forums-loop.php' ), true ) ?> 98 73 99 </div> 74 100 75 101 </div> 76 102 77 103 <?php do_action( 'bp_directory_forums_content' ) ?> 78 104 79 105 </form> 80 106 81 107 </div> 82 108 83 109 </div> 84 110 85 <?php do_action( 'bp_after_directory_forums_content' ) ?> 86 <?php do_action( 'bp_before_directory_forums_sidebar' ) ?> 111 <?php do_action( 'bp_after_directory_forums_content' ) ?> 112 <?php do_action( 'bp_before_directory_forums_sidebar' ) ?> 87 113 88 114 <div id="sidebar" class="directory-sidebar"> 89 115 90 <?php do_action( 'bp_before_directory_forums_search' ) ?> 116 <?php do_action( 'bp_before_directory_forums_search' ) ?> 91 117 92 118 <div id="forums-directory-search" class="directory-widget"> 93 119 94 120 <h3><?php _e( 'Forum Topic Search', 'buddypress' ) ?></h3> 95 121 96 122 <?php bp_directory_forums_search_form() ?> 97 123 98 124 <?php do_action( 'bp_directory_forums_search' ) ?> 99 125 100 126 </div> 101 127 102 128 <?php do_action( 'bp_after_directory_forums_search' ) ?> 103 <?php do_action( 'bp_before_directory_forums_tags' ) ?> 129 <?php do_action( 'bp_before_directory_forums_tags' ) ?> 104 130 105 131 <div id="forums-directory-tags" class="directory-widget"> 106 132 107 133 <h3><?php _e( 'Forum Topic Tags', 'buddypress' ) ?></h3> 108 134 109 <?php bp_forums_tag_heat_map() ;?>135 <?php bp_forums_tag_heat_map() ?> 110 136 111 137 <?php do_action( 'bp_directory_forums_search' ) ?> 112 138 113 139 </div> 114 140 115 <?php do_action( 'bp_after_directory_forums_search' ) ?> 141 <?php do_action( 'bp_after_directory_forums_search' ) ?> 116 142 117 143 </div> 118 119 <?php do_action( 'bp_after_directory_forums_sidebar' ) ?>120 144 145 <?php do_action( 'bp_after_directory_forums_sidebar' ) ?> 146 121 147 <?php get_footer() ?> 148 No newline at end of file -
bp-themes/bp-sn-parent/directories/groups/groups-loop.php
1 <?php if ( bp_has_site_groups( 'type=active&per_page=10' ) ) : ?> 2 3 <div class="pagination"> 4 5 <div class="pag-count" id="group-dir-count"> 6 <?php bp_site_groups_pagination_count() ?> 7 </div> 1 <?php if ( bp_has_site_groups( 'type=active&per_page=10' ) ) : ?> 8 2 9 <div class="pagination-links" id="group-dir-pag"> 10 <?php bp_site_groups_pagination_links() ?> 11 </div> 12 13 </div> 14 15 <?php do_action( 'bp_before_directory_groups_list' ) ?> 3 <div class="pagination"> 16 4 17 <ul id="groups-list" class="item-list"> 18 <?php while ( bp_site_groups() ) : bp_the_site_group(); ?> 5 <div class="pag-count" id="group-dir-count"> 19 6 20 <li> 21 <div class="item-avatar"> 22 <a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_avatar_thumb() ?></a> 7 <?php bp_site_groups_pagination_count() ?> 8 23 9 </div> 24 10 25 <div class="item"> 26 <div class="item-title"><a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_name() ?></a></div> 27 <div class="item-meta"><span class="activity"><?php bp_the_site_group_last_active() ?></span></div> 11 <div class="pagination-links" id="group-dir-pag"> 28 12 29 < div class="item-meta desc"><?php bp_the_site_group_description_excerpt() ?></div>13 <?php bp_site_groups_pagination_links() ?> 30 14 31 <?php do_action( 'bp_directory_groups_item' ) ?>32 15 </div> 33 16 34 <div class="action"> 35 <?php bp_the_site_group_join_button() ?> 17 </div> 36 18 37 <div class="meta"> 38 <?php bp_the_site_group_type() ?> / <?php bp_the_site_group_member_count() ?> 19 <?php do_action( 'bp_before_directory_groups_list' ) ?> 20 21 <ul id="groups-list" class="item-list"> 22 23 <?php while ( bp_site_groups() ) : bp_the_site_group() ?> 24 25 <li<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?>> 26 27 <div class="item-avatar"> 28 29 <a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_avatar_thumb() ?></a> 30 39 31 </div> 40 41 <?php do_action( 'bp_directory_groups_actions' ) ?>42 </div>43 32 44 <div class="clear"></div> 45 </li> 33 <div class="item"> 46 34 47 <?php endwhile; ?> 48 </ul> 35 <div class="item-title"> 49 36 50 <?php do_action( 'bp_after_directory_groups_list' ) ?> 51 52 <?php else: ?> 37 <a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_name() ?></a> 53 38 54 <div id="message" class="info"> 55 <p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p> 56 </div> 39 </div> 57 40 58 <?php endif; ?>41 <div class="item-meta"> 59 42 60 <?php bp_the_site_group_hidden_fields() ?> 61 No newline at end of file 43 <span class="activity"><?php bp_the_site_group_last_active() ?></span> 44 45 </div> 46 47 <div class="item-meta desc"> 48 49 <?php bp_the_site_group_description_excerpt() ?> 50 51 </div> 52 53 <?php do_action( 'bp_directory_groups_item' ) ?> 54 55 </div> 56 57 <div class="action"> 58 59 <?php bp_the_site_group_join_button() ?> 60 61 <div class="meta"> 62 63 <?php bp_the_site_group_type() ?> 64 65 <?php _e( '/', 'buddypress' ) ?> 66 67 <?php bp_the_site_group_member_count() ?> 68 69 </div> 70 71 <?php do_action( 'bp_directory_groups_actions' ) ?> 72 73 </div> 74 75 <div class="clear"></div> 76 77 </li> 78 79 <?php endwhile ?> 80 81 </ul> 82 83 <?php do_action( 'bp_after_directory_groups_list' ) ?> 84 85 <?php else : ?> 86 87 <div id="message" class="info"> 88 89 <p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p> 90 91 </div> 92 93 <?php endif ?> 94 95 <?php bp_the_site_group_hidden_fields() ?> 96 No newline at end of file -
bp-themes/bp-sn-parent/directories/groups/index.php
1 1 <?php get_header() ?> 2 2 3 <?php do_action( 'bp_before_directory_groups_content' ) ?> 3 <?php do_action( 'bp_before_directory_groups_content' ) ?> 4 4 5 5 <div id="content"> 6 6 7 7 <div class="page" id="groups-directory-page"> 8 8 9 9 <form action="<?php echo site_url() . '/' ?>" method="post" id="groups-directory-form"> 10 10 11 <h3><?php _e( 'Groups Directory', 'buddypress' ) ?></h3> 11 12 12 13 <ul id="letter-list"> 14 13 15 <li><a href="#a" id="letter-a">A</a></li> 14 16 <li><a href="#b" id="letter-b">B</a></li> 15 17 <li><a href="#c" id="letter-c">C</a></li> … … 36 38 <li><a href="#x" id="letter-x">X</a></li> 37 39 <li><a href="#y" id="letter-y">Y</a></li> 38 40 <li><a href="#z" id="letter-z">Z</a></li> 41 39 42 </ul> 40 43 41 44 <div id="groups-directory-listing" class="directory-listing"> 45 42 46 <h3><?php _e( 'Groups Listing', 'buddypress' ) ?></h3> 43 47 44 48 <div id="group-dir-list"> 49 45 50 <?php locate_template( array( 'directories/groups/groups-loop.php' ), true ) ?> 51 46 52 </div> 47 53 48 54 </div> 49 55 50 56 <?php do_action( 'bp_directory_groups_content' ) ?> 51 57 52 58 <?php wp_nonce_field( 'directory_groups', '_wpnonce-group-filter' ) ?> … … 57 63 58 64 </div> 59 65 60 <?php do_action( 'bp_after_directory_groups_content' ) ?> 61 <?php do_action( 'bp_before_directory_groups_sidebar' ) ?> 66 <?php do_action( 'bp_after_directory_groups_content' ) ?> 67 <?php do_action( 'bp_before_directory_groups_sidebar' ) ?> 62 68 63 69 <div id="sidebar" class="directory-sidebar"> 64 70 65 <?php do_action( 'bp_before_directory_groups_search' ) ?> 71 <?php do_action( 'bp_before_directory_groups_search' ) ?> 66 72 67 73 <div id="groups-directory-search" class="directory-widget"> 68 74 69 75 <h3><?php _e( 'Find Groups', 'buddypress' ) ?></h3> 70 76 71 77 <?php bp_directory_groups_search_form() ?> 72 78 73 79 <?php do_action( 'bp_directory_groups_search' ) ?> 74 80 75 81 </div> 76 82 77 <?php do_action( 'bp_after_directory_groups_search' ) ?> 78 <?php do_action( 'bp_before_directory_groups_featured' ) ?> 83 <?php do_action( 'bp_after_directory_groups_search' ) ?> 84 <?php do_action( 'bp_before_directory_groups_featured' ) ?> 79 85 80 86 <div id="groups-directory-featured" class="directory-widget"> 81 87 82 88 <h3><?php _e( 'Random Groups', 'buddypress' ) ?></h3> 83 89 84 90 <?php if ( bp_has_site_groups( 'type=random&max=3' ) ) : ?> 85 91 86 92 <ul id="groups-list" class="item-list"> 87 <?php while ( bp_site_groups() ) : bp_the_site_group(); ?>88 93 89 <li> 94 <?php while ( bp_site_groups() ) : bp_the_site_group() ?> 95 96 <li<?php echo ( $j++ & 1 ? '' : ' class="alt"' ) ?>> 97 90 98 <div class="item-avatar"> 99 91 100 <a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_avatar_thumb() ?></a> 101 92 102 </div> 93 103 94 104 <div class="item"> 95 96 <div class="item-title"><a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_name() ?></a></div> 97 <div class="item-meta"><span class="activity"><?php bp_the_site_group_last_active() ?></span></div> 98 105 106 <div class="item-title"> 107 108 <a href="<?php bp_the_site_group_link() ?>"><?php bp_the_site_group_name() ?></a> 109 110 </div> 111 112 <div class="item-meta"> 113 114 <span class="activity"><?php bp_the_site_group_last_active() ?></span> 115 116 </div> 117 99 118 <div class="field-data"> 119 100 120 <div class="field-name"> 121 101 122 <strong><?php _e( 'Members:', 'buddypress' ) ?></strong> 123 102 124 <?php bp_the_site_group_member_count() ?> 125 103 126 </div> 104 127 105 128 <div class="field-name"> 129 106 130 <strong><?php _e( 'Description:', 'buddypress' ) ?></strong> 131 107 132 <?php bp_the_site_group_description_excerpt() ?> 133 108 134 </div> 135 109 136 </div> 110 137 111 138 <?php do_action( 'bp_directory_groups_featured_item' ) ?> 112 139 113 140 </div> 114 141 115 142 </li> 116 143 117 <?php endwhile; ?> 118 </ul> 144 <?php endwhile ?> 119 145 120 <?php do_action( 'bp_directory_groups_featured' ) ?> 121 122 <?php else: ?> 146 </ul> 123 147 148 <?php do_action( 'bp_directory_groups_featured' ) ?> 149 150 <?php else : ?> 151 124 152 <div id="message" class="info"> 153 125 154 <p><?php _e( 'No groups found.', 'buddypress' ) ?></p> 155 126 156 </div> 127 157 128 <?php endif ;?>129 158 <?php endif ?> 159 130 160 </div> 131 161 132 <?php do_action( 'bp_after_directory_groups_featured' ) ?> 162 <?php do_action( 'bp_after_directory_groups_featured' ) ?> 133 163 134 164 </div> 135 136 <?php do_action( 'bp_after_directory_groups_sidebar' ) ?>137 165 166 <?php do_action( 'bp_after_directory_groups_sidebar' ) ?> 167 138 168 <?php get_footer() ?> 169 No newline at end of file -
bp-themes/bp-sn-parent/directories/members/index.php
1 1 <?php get_header() ?> 2 2 3 <?php do_action( 'bp_before_directory_members_content' ) ?> 3 <?php do_action( 'bp_before_directory_members_content' ) ?> 4 4 5 5 <div id="content"> 6 6 7 7 <div class="page" id="members-directory-page"> 8 8 9 9 <form action="<?php echo site_url() . '/' ?>" method="post" id="members-directory-form"> 10 10 11 <h3><?php _e( 'Members Directory', 'buddypress' ) ?></h3> 11 12 12 13 <ul id="letter-list"> 14 13 15 <li><a href="#a" id="letter-a">A</a></li> 14 16 <li><a href="#b" id="letter-b">B</a></li> 15 17 <li><a href="#c" id="letter-c">C</a></li> … … 36 38 <li><a href="#x" id="letter-x">X</a></li> 37 39 <li><a href="#y" id="letter-y">Y</a></li> 38 40 <li><a href="#z" id="letter-z">Z</a></li> 41 39 42 </ul> 40 43 41 44 <div id="members-directory-listing" class="directory-widget"> 45 42 46 <h3><?php _e( 'Member Listing', 'buddypress' ) ?></h3> 43 47 44 48 <div id="member-dir-list"> 49 45 50 <?php locate_template( array( 'directories/members/members-loop.php' ), true ) ?> 51 46 52 </div> 47 53 48 54 </div> 49 55 50 56 <?php do_action( 'bp_directory_members_content' ) ?> 51 52 <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?> 53 57 58 <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?> 59 54 60 </form> 55 61 56 62 </div> 57 63 58 64 </div> 59 60 <?php do_action( 'bp_after_directory_members_content' ) ?>61 <?php do_action( 'bp_before_directory_members_sidebar' ) ?>62 65 66 <?php do_action( 'bp_after_directory_members_content' ) ?> 67 <?php do_action( 'bp_before_directory_members_sidebar' ) ?> 68 63 69 <div id="sidebar" class="directory-sidebar"> 64 70 65 71 <?php do_action( 'bp_before_directory_members_search' ) ?> 66 72 67 73 <div id="members-directory-search" class="directory-widget"> 74 68 75 <h3><?php _e( 'Find Members', 'buddypress' ) ?></h3> 69 76 70 77 <?php bp_directory_members_search_form() ?> 71 78 72 79 <?php do_action( 'bp_directory_members_search' ) ?> 80 73 81 </div> 74 82 75 <?php do_action( 'bp_after_directory_members_search' ) ?> 76 <?php do_action( 'bp_before_directory_members_featured' ) ?> 83 <?php do_action( 'bp_after_directory_members_search' ) ?> 84 <?php do_action( 'bp_before_directory_members_featured' ) ?> 77 85 78 86 <div id="members-directory-featured" class="directory-widget"> 87 79 88 <h3><?php _e( 'Random Members', 'buddypress' ) ?></h3> 80 89 81 90 <?php if ( bp_has_site_members( 'type=random&max=3' ) ) : ?> 82 91 83 92 <ul id="featured-members-list" class="item-list"> 84 <?php while ( bp_site_members() ) : bp_the_site_member(); ?>85 93 86 <li> 87 <div class="item-avatar"> 88 <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_avatar() ?></a> 89 </div> 94 <?php while ( bp_site_members() ) : bp_the_site_member() ?> 90 95 91 <div class="item"> 92 <div class="item-title"><a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a></div> 93 <div class="item-meta"><span class="activity"><?php bp_the_site_member_last_active() ?></span></div> 94 95 <div class="field-data"> 96 <div class="field-name"><?php bp_the_site_member_total_friend_count() ?></div> 97 <div class="field-name xprofile-data"><?php bp_the_site_member_random_profile_data() ?></div> 96 <li<?php echo ( $j++ & 1 ? '' : ' class="alt"' ) ?>> 97 98 <div class="item-avatar"> 99 100 <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_avatar() ?></a> 101 98 102 </div> 99 100 <?php do_action( 'bp_directory_members_featured_item' ) ?>101 </div>102 </li>103 103 104 <?php endwhile; ?> 105 </ul> 104 <div class="item"> 106 105 107 <?php do_action( 'bp_directory_members_featured' ) ?> 108 109 <?php else: ?> 106 <div class="item-title"> 110 107 108 <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a> 109 110 </div> 111 112 <div class="item-meta"> 113 114 <span class="activity"><?php bp_the_site_member_last_active() ?></span> 115 116 </div> 117 118 <div class="field-data"> 119 120 <div class="field-name"> 121 122 <?php bp_the_site_member_total_friend_count() ?> 123 124 </div> 125 126 <div class="field-name xprofile-data"> 127 128 <?php bp_the_site_member_random_profile_data() ?> 129 130 </div> 131 132 </div> 133 134 <?php do_action( 'bp_directory_members_featured_item' ) ?> 135 136 </div> 137 138 </li> 139 140 <?php endwhile ?> 141 142 </ul> 143 144 <?php do_action( 'bp_directory_members_featured' ) ?> 145 146 <?php else : ?> 147 111 148 <div id="message" class="info"> 149 112 150 <p><?php _e( 'There are not enough members to feature.', 'buddypress' ) ?></p> 151 113 152 </div> 114 153 115 <?php endif ;?>116 154 <?php endif ?> 155 117 156 </div> 118 157 119 <?php do_action( 'bp_after_directory_members_featured' ) ?> 158 <?php do_action( 'bp_after_directory_members_featured' ) ?> 120 159 121 160 </div> 122 161 123 <?php do_action( 'bp_after_directory_members_sidebar' ) ?> 162 <?php do_action( 'bp_after_directory_members_sidebar' ) ?> 124 163 125 164 <?php get_footer() ?> 165 No newline at end of file -
bp-themes/bp-sn-parent/directories/members/members-loop.php
1 <?php if ( bp_has_site_members( 'type=active&per_page=10' ) ) : ?> 2 3 <div class="pagination"> 4 5 <div class="pag-count" id="member-dir-count"> 6 <?php bp_site_members_pagination_count() ?> 7 </div> 1 <?php if ( bp_has_site_members( 'type=active&per_page=10' ) ) : ?> 8 2 9 <div class="pagination-links" id="member-dir-pag"> 10 <?php bp_site_members_pagination_links() ?> 11 </div> 3 <div class="pagination"> 12 4 13 </div> 14 15 <?php do_action( 'bp_before_directory_members_list' ) ?> 5 <div class="pag-count" id="member-dir-count"> 16 6 17 <ul id="members-list" class="item-list"> 18 <?php while ( bp_site_members() ) : bp_the_site_member(); ?> 7 <?php bp_site_members_pagination_count() ?> 19 8 20 <li>21 <div class="item-avatar">22 <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_avatar() ?></a>23 9 </div> 24 10 25 <div class="item"> 26 <div class="item-title"><a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a></div> 27 <div class="item-meta"><span class="activity"><?php bp_the_site_member_last_active() ?></span></div> 11 <div class="pagination-links" id="member-dir-pag"> 28 12 29 <?php do_action( 'bp_directory_members_item' ) ?> 13 <?php bp_site_members_pagination_links() ?> 14 30 15 </div> 31 16 32 <div class="action"> 33 <?php bp_the_site_member_add_friend_button() ?> 17 </div> 34 18 35 <?php do_action( 'bp_directory_members_actions' ) ?> 36 </div> 19 <?php do_action( 'bp_before_directory_members_list' ) ?> 37 20 38 <div class="clear"></div> 39 </li> 21 <ul id="members-list" class="item-list"> 40 22 41 <?php endwhile; ?> 42 </ul> 23 <?php while ( bp_site_members() ) : bp_the_site_member() ?> 43 24 44 <?php do_action( 'bp_after_directory_members_list' ) ?> 45 46 <?php else: ?> 25 <li<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?>> 47 26 48 <div id="message" class="info"> 49 <p><?php _e( 'No members found. Members must fill in at least one piece of profile data to show in member lists.', 'buddypress' ) ?></p> 50 </div> 27 <div class="item-avatar"> 51 28 52 <?php endif; ?>29 <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_avatar() ?></a> 53 30 54 <?php bp_the_site_member_hidden_fields() ?> 55 No newline at end of file 31 </div> 32 33 <div class="item"> 34 35 <div class="item-title"> 36 37 <a href="<?php bp_the_site_member_link() ?>"><?php bp_the_site_member_name() ?></a> 38 39 </div> 40 41 <div class="item-meta"> 42 43 <span class="activity"><?php bp_the_site_member_last_active() ?></span> 44 45 </div> 46 47 <?php do_action( 'bp_directory_members_item' ) ?> 48 49 </div> 50 51 <div class="action"> 52 53 <?php bp_the_site_member_add_friend_button() ?> 54 55 <?php do_action( 'bp_directory_members_actions' ) ?> 56 57 </div> 58 59 <div class="clear"></div> 60 61 </li> 62 63 <?php endwhile ?> 64 65 </ul> 66 67 <?php do_action( 'bp_after_directory_members_list' ) ?> 68 69 <?php else : ?> 70 71 <div id="message" class="info"> 72 73 <p><?php _e( 'No members found. Members must fill in at least one piece of profile data to show in member lists.', 'buddypress' ) ?></p> 74 75 </div> 76 77 <?php endif ?> 78 79 <?php bp_the_site_member_hidden_fields() ?> 80 No newline at end of file -
bp-themes/bp-sn-parent/footer.php
1 </div> 2 1 </div><!-- #container --> 2 3 3 <?php do_action( 'bp_after_container' ) ?> 4 4 5 5 <div class="clear"></div> 6 7 <?php do_action( 'bp_before_footer' ) ?>8 6 7 <?php do_action( 'bp_before_footer' ) ?> 8 9 9 <div id="footer"> 10 <p><?php printf( __( '%s is proudly powered by <a href="http://mu.wordpress.org">WordPress MU</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), bloginfo('name') ); ?></p> 11 10 11 <p><?php printf( __( '%s is proudly powered by <a href="http://mu.wordpress.org">WordPress MU</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), bloginfo( 'name' ) ) ?></p> 12 12 13 <?php do_action( 'bp_footer' ) ?> 14 13 15 </div> 14 16 15 17 <?php do_action( 'bp_after_footer' ) ?> 16 18 17 <?php wp_footer() ;?>18 19 <?php wp_footer() ?> 20 19 21 </body> 20 22 21 23 </html> 24 No newline at end of file -
bp-themes/bp-sn-parent/friends/friends-loop.php
1 <?php do_action( 'bp_before_my_friends_loop' ) ?> 1 <?php do_action( 'bp_before_my_friends_loop' ) ?> 2 2 3 <div id="friends-loop"> 4 5 <?php if ( bp_has_friendships() ) : ?> 6 7 <div class="pagination"> 3 <div id="friends-loop"> 8 4 9 <div class="pag-count"> 10 <?php bp_friend_pagination_count() ?> 5 <?php if ( bp_has_friendships() ) : ?> 6 7 <div class="pagination"> 8 9 <div class="pag-count"> 10 11 <?php bp_friend_pagination_count() ?> 12 13 </div> 14 15 <div class="pagination-links" id="pag"> 16 17 <?php bp_friend_pagination() ?> 18 19 </div> 20 11 21 </div> 12 13 <div class="pagination-links" id="pag">14 <?php bp_friend_pagination() ?>15 </div>16 17 </div>18 19 <?php do_action( 'bp_before_my_friends_list' ) ?>20 21 <ul id="friend-list" class="item-list">22 <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?>23 24 <li>25 <?php bp_friend_avatar_thumb() ?>26 <h4><?php bp_friend_link() ?></h4>27 <span class="activity"><?php bp_friend_last_active() ?></span>28 22 29 <?php do_action( 'bp_my_friends_list_item' ) ?> 30 31 <div class="action"> 32 <?php bp_add_friend_button() ?> 33 34 <?php do_action( 'bp_my_friends_list_item_action' ) ?> 35 </div> 36 </li> 37 38 <?php endwhile; ?> 39 </ul> 23 <?php do_action( 'bp_before_my_friends_list' ) ?> 40 24 41 <?php do_action( 'bp_after_my_friends_list' ) ?> 42 43 <?php else: ?> 25 <ul id="friend-list" class="item-list"> 44 26 45 <?php if ( bp_friends_is_filtered() ) : ?> 46 47 <div id="message" class="info"> 48 <p><?php _e( "No friends matched your search filter terms", 'buddypress' ) ?></p> 49 </div> 50 27 <?php while ( bp_user_friendships() ) : bp_the_friendship() ?> 28 29 <li<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?>> 30 31 <?php bp_friend_avatar_thumb() ?> 32 33 <h4><?php bp_friend_link() ?></h4> 34 35 <span class="activity"><?php bp_friend_last_active() ?></span> 36 37 <?php do_action( 'bp_my_friends_list_item' ) ?> 38 39 <div class="action"> 40 41 <?php bp_add_friend_button() ?> 42 43 <?php do_action( 'bp_my_friends_list_item_action' ) ?> 44 45 </div> 46 47 </li> 48 49 <?php endwhile ?> 50 51 </ul> 52 53 <?php do_action( 'bp_after_my_friends_list' ) ?> 54 51 55 <?php else : ?> 52 53 <div id="message" class="info">54 <p><?php bp_word_or_name( __( "Your friends list is currently empty", 'buddypress' ), __( "%s's friends list is currently empty", 'buddypress' ) ) ?></p>55 </div>56 57 <?php endif; ?>58 59 <?php if ( bp_is_home() && !bp_friends_is_filtered() ) : ?>60 56 61 <?php do_action( 'bp_before_random_members_list' ) ?> 62 63 <h3><?php _e( 'Why not make friends with some of these members?', 'buddypress' ) ?></h3> 64 <?php bp_friends_random_members() ?> 57 <?php if ( bp_friends_is_filtered() ) : ?> 65 58 66 <?php do_action( 'bp_after_random_members_list' ) ?> 67 68 <?php endif; ?> 69 70 <?php endif;?> 71 72 </div> 59 <div id="message" class="info"> 73 60 74 <?php do_action( 'bp_after_my_friends_loop' ) ?> 75 No newline at end of file 61 <p><?php _e( "No friends matched your search filter terms", 'buddypress' ) ?></p> 62 63 </div> 64 65 <?php else : ?> 66 67 <div id="message" class="info"> 68 69 <p><?php bp_word_or_name( __( "Your friends list is currently empty", 'buddypress' ), __( "%s's friends list is currently empty", 'buddypress' ) ) ?></p> 70 71 </div> 72 73 <?php endif ?> 74 75 <?php if ( bp_is_home() && !bp_friends_is_filtered() ) : ?> 76 77 <?php do_action( 'bp_before_random_members_list' ) ?> 78 79 <h3><?php _e( 'Why not make friends with some of these members?', 'buddypress' ) ?></h3> 80 81 <?php bp_friends_random_members() ?> 82 83 <?php do_action( 'bp_after_random_members_list' ) ?> 84 85 <?php endif ?> 86 87 <?php endif ?> 88 89 </div> 90 91 <?php do_action( 'bp_after_my_friends_loop' ) ?> 92 No newline at end of file -
bp-themes/bp-sn-parent/friends/index.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <ul class="content-header-nav"> 6 5 7 <?php bp_friends_header_tabs() ?> 8 6 9 </ul> 10 7 11 </div> 8 12 9 13 <div id="content"> 10 <h2><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> » <?php bp_friends_filter_title() ?></h2>11 14 12 <?php do_action( 'bp_before_my_friends_content' ) ?> 13 15 <h2><?php printf( __( '%1$s » %2$s', 'buddypress' ), bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ), true, false ), bp_get_friends_filter_title() ) ?></h2> 16 17 <?php do_action( 'bp_before_my_friends_content' ) ?> 18 14 19 <div class="left-menu"> 20 15 21 <?php do_action( 'bp_before_my_friends_search' ) ?> 16 22 17 23 <?php bp_friend_search_form() ?> 18 24 19 25 <?php do_action( 'bp_after_my_friends_search' ) ?> 26 20 27 </div> 21 28 22 29 <div class="main-column"> 30 23 31 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 24 32 25 33 <?php locate_template( array( 'friends/friends-loop.php' ), true ) ?> 34 26 35 </div> 27 36 28 <?php do_action( 'bp_after_my_friends_content' ) ?> 37 <?php do_action( 'bp_after_my_friends_content' ) ?> 38 29 39 </div> 30 40 31 41 <?php get_footer() ?> 42 No newline at end of file -
bp-themes/bp-sn-parent/friends/requests.php
1 1 <?php get_header() ?> 2 2 3 <div class="content-header"> 4 </div> 3 <div class="content-header"><!-- --></div> 5 4 6 5 <div id="content"> 7 6 8 7 <div class="pagination"> 9 8 10 9 <div class="pagination-links" id="pag"> 10 11 11 <?php bp_friend_pagination() ?> 12 12 13 </div> 13 14 14 15 </div> 15 16 <h2><?php _e( 'Friendship Requests', 'buddypress' ); ?></h2> 16 17 <h2><?php _e( 'Friendship Requests', 'buddypress' ) ?></h2> 18 17 19 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 18 20 19 <?php do_action( 'bp_before_friend_requests_content' ) ?> 20 21 <?php do_action( 'bp_before_friend_requests_content' ) ?> 22 21 23 <?php if ( bp_has_friendships() ) : ?> 22 24 23 25 <ul id="friend-list" class="item-list"> 24 <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?> 25 26 <li> 26 27 <?php while ( bp_user_friendships() ) : bp_the_friendship() ?> 28 29 <li<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?>> 30 27 31 <?php bp_friend_avatar_thumb() ?> 32 28 33 <h4><?php bp_friend_link() ?></h4> 34 29 35 <span class="activity"><?php bp_friend_time_since_requested() ?></span> 30 31 <?php do_action( 'bp_friend_requests_item' ) ?> 32 36 37 <?php do_action( 'bp_friend_requests_item' ) ?> 38 33 39 <div class="action"> 40 34 41 <div class="generic-button accept"> 35 <a href="<?php bp_friend_accept_request_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 42 43 <a href="<?php bp_friend_accept_request_link() ?>"><?php _e( 'Accept', 'buddypress' ) ?></a> 44 36 45 </div> 37 38 39 46 47 48 40 49 <div class="generic-button reject"> 41 <a href="<?php bp_friend_reject_request_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 50 51 <a href="<?php bp_friend_reject_request_link() ?>"><?php _e( 'Reject', 'buddypress' ) ?></a> 52 42 53 </div> 43 44 <?php do_action( 'bp_friend_requests_item_action' ) ?> 54 55 <?php do_action( 'bp_friend_requests_item_action' ) ?> 56 45 57 </div> 58 46 59 </li> 47 48 <?php endwhile; ?> 60 61 <?php endwhile ?> 62 49 63 </ul> 50 51 <?php do_action( 'bp_friend_requests_content' ) ?>52 53 <?php else: ?>54 64 65 <?php do_action( 'bp_friend_requests_content' ) ?> 66 67 <?php else : ?> 68 55 69 <div id="message" class="info"> 56 <p><?php _e( 'You have no pending friendship requests.', 'buddypress' ); ?></p> 70 71 <p><?php _e( 'You have no pending friendship requests.', 'buddypress' ) ?></p> 72 57 73 </div> 58 74 59 <?php endif ;?>75 <?php endif ?> 60 76 61 <?php do_action( 'bp_after_friend_requests_content' ) ?> 62 77 <?php do_action( 'bp_after_friend_requests_content' ) ?> 78 63 79 </div> 64 80 65 81 <?php get_footer() ?> 82 No newline at end of file -
bp-themes/bp-sn-parent/functions.php
1 1 <?php 2 2 3 3 /* Register the widget columns */ 4 register_sidebars( 1, 5 array( 4 register_sidebars( 1, 5 array( 6 6 'name' => 'first-section', 7 7 'before_widget' => '<div id="%1$s" class="widget %2$s">', 8 9 10 11 ) 8 'after_widget' => '</div>', 9 'before_title' => '<h2 class="widgettitle">', 10 'after_title' => '</h2>' 11 ) 12 12 ); 13 13 14 14 register_sidebars( 1, 15 array( 15 array( 16 16 'name' => 'second-section', 17 17 'before_widget' => '<div id="%1$s" class="widget %2$s">', 18 19 20 21 ) 18 'after_widget' => '</div>', 19 'before_title' => '<h2 class="widgettitle">', 20 'after_title' => '</h2>' 21 ) 22 22 ); 23 23 24 24 register_sidebars( 1, 25 array( 25 array( 26 26 'name' => 'third-section', 27 27 'before_widget' => '<div id="%1$s" class="widget %2$s">', 28 29 30 31 ) 28 'after_widget' => '</div>', 29 'before_title' => '<h2 class="widgettitle">', 30 'after_title' => '</h2>' 31 ) 32 32 ); 33 33 34 34 register_sidebars( 1, 35 array( 35 array( 36 36 'name' => 'blog-sidebar', 37 37 'before_widget' => '<div id="%1$s" class="widget %2$s">', 38 39 40 41 ) 38 'after_widget' => '</div>', 39 'before_title' => '<h2 class="widgettitle">', 40 'after_title' => '</h2>' 41 ) 42 42 ); 43 43 44 44 /* Load the AJAX functions for the theme */ … … 51 51 /* Make sure the blog index page shows under /[HOME_BLOG_SLUG] if enabled */ 52 52 function bp_dtheme_show_home_blog() { 53 53 global $bp, $query_string, $paged; 54 55 if ( $bp->current_component == BP_HOME_BLOG_SLUG && ( !$bp->current_action || 'page' == $bp->current_action ) ) { 54 55 if ( $bp->current_component == BP_HOME_BLOG_SLUG && ( !$bp->current_action || 'page' == $bp->current_action ) ) { 56 56 unset( $query_string ); 57 57 58 58 if ( ( 'page' == $bp->current_action && $bp->action_variables[0] ) && false === strpos( $query_string, 'paged' ) ) { 59 59 $query_string .= '&paged=' . $bp->action_variables[0]; 60 60 $paged = $bp->action_variables[0]; 61 61 } 62 62 63 query_posts( $query_string);64 63 query_posts( $query_string ); 64 65 65 bp_core_load_template( 'index', true ); 66 66 } 67 67 } -
bp-themes/bp-sn-parent/header.php
1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 2 3 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ;?>>3 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>> 4 4 5 5 <head profile="http://gmpg.org/xfn/11"> 6 6 7 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type'); ?>; charset=<?php bloginfo('charset');?>" />7 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ) ?>; charset=<?php bloginfo( 'charset' ) ?>" /> 8 8 9 9 <title><?php bp_page_title() ?></title> 10 10 11 11 <?php do_action( 'bp_head' ) ?> 12 12 13 <meta name="generator" content="WordPress <?php bloginfo( 'version'); ?>" /><!-- leave this for stats -->13 <meta name="generator" content="WordPress <?php bloginfo( 'version' ) ?>" /><!-- leave this for stats --> 14 14 15 <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url');?>" type="text/css" media="screen" />15 <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ) ?>" type="text/css" media="screen" /> 16 16 17 17 <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?> 18 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name'); ?> <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />19 <?php endif ;?>18 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> <?php _e( 'Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" /> 19 <?php endif ?> 20 20 21 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" /> 22 <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" /> 21 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo( 'rss2_url' ) ?>" /> 23 22 24 <link rel=" pingback" href="<?php bloginfo('pingback_url');?>" />23 <link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ) ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo( 'atom_url' ) ?>" /> 25 24 26 < ?php wp_head(); ?>25 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>" /> 27 26 27 <?php wp_head() ?> 28 28 29 </head> 29 30 30 31 <body <?php body_class() ?>> 31 32 <?php do_action( 'bp_before_search_login_bar' ) ?> 33 32 33 <?php do_action( 'bp_before_search_login_bar' ) ?> 34 34 35 <div id="search-login-bar"> 35 36 36 37 <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form"> 37 <input type="text" id="search-terms" name="search-terms" value="" /> 38 39 <input type="text" id="search-terms" name="search-terms" value="" /> 40 38 41 <?php echo bp_search_form_type_select() ?> 39 42 40 43 <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 44 41 45 <?php wp_nonce_field( 'bp_search_form' ) ?> 46 42 47 </form> 43 48 44 49 <?php if ( !is_user_logged_in() ) : ?> 45 50 46 51 <form name="login-form" id="login-form" action="<?php echo site_url( 'wp-login.php' ) ?>" method="post"> 52 47 53 <input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" /> 54 48 55 <input type="password" name="pwd" id="user_pass" class="input" value="" /> 49 56 50 57 <input type="checkbox" name="rememberme" id="rememberme" value="forever" title="<?php _e( 'Remember Me', 'buddypress' ) ?>" /> 51 52 <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'buddypress' ) ?>"/> 53 54 <?php if ( 'none' != bp_get_signup_allowed() && 'blog' != bp_get_signup_allowed() ) : ?> 58 59 <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'buddypress' ) ?>"/> 60 61 <?php if ( 'none' != bp_get_signup_allowed() && 'blog' != bp_get_signup_allowed() ) : ?> 55 62 <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', 'buddypress' ) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" /> 56 <?php endif ;?>57 63 <?php endif ?> 64 58 65 <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain() ?>" /> 66 59 67 <input type="hidden" name="testcookie" value="1" /> 60 68 61 69 <?php do_action( 'bp_login_bar_logged_out' ) ?> 70 62 71 </form> 63 72 64 73 <?php else : ?> 65 74 66 75 <div id="logout-link"> 67 <?php bp_loggedin_user_avatar( 'width=20&height=20' ) ?> <?php bp_loggedinuser_link() ?> / <?php bp_log_out_link() ?> 68 76 77 <?php bp_loggedin_user_avatar( 'width=20&height=20' ) ?> 78 79 <?php bp_loggedinuser_link() ?> 80 81 <?php _e( '/', 'buddypress' ) ?> 82 83 <?php bp_log_out_link() ?> 84 69 85 <?php do_action( 'bp_login_bar_logged_in' ) ?> 86 70 87 </div> 71 72 <?php endif ;?>73 88 89 <?php endif ?> 90 74 91 <?php do_action( 'bp_search_login_bar' ) ?> 75 92 76 93 </div> 77 94 78 <?php do_action( 'bp_after_search_login_bar' ) ?> 79 <?php do_action( 'bp_before_header' ) ?> 95 <?php do_action( 'bp_after_search_login_bar' ) ?> 96 <?php do_action( 'bp_before_header' ) ?> 80 97 81 <div id="header"> 82 83 <h1 id="logo"><a href="<?php echo get_option( 'home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>84 98 <div id="header"> 99 100 <h1 id="logo"><a href="<?php echo get_option( 'home' ) ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1> 101 85 102 <ul id="nav"> 86 <li<?php if ( bp_is_page( 'home' ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>87 <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_HOME_BLOG_SLUG ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li>88 <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>89 103 104 <li<?php if ( bp_is_page( 'home' ) ) echo ' class="selected"' ?>><a href="<?php echo get_option( 'home' ) ?>" title="<?php esc_attr_e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li> 105 106 <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) echo ' class="selected"' ?>><a href="<?php echo get_option( 'home' ) ?>/<?php echo BP_HOME_BLOG_SLUG ?>" title="<?php esc_attr_e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li> 107 108 <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) echo ' class="selected"' ?>><a href="<?php echo get_option( 'home' ) ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php esc_attr_e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li> 109 90 110 <?php if ( function_exists( 'groups_install' ) ) : ?> 91 <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php_e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>92 <?php endif ;?>111 <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) echo ' class="selected"' ?>><a href="<?php echo get_option( 'home' ) ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php esc_attr_e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li> 112 <?php endif ?> 93 113 94 114 <?php if ( function_exists( 'groups_install' ) && ( function_exists( 'bp_forums_setup' ) && !(int) get_site_option( 'bp-disable-forum-directory' ) ) ) : ?> 95 <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_FORUMS_SLUG ?>" title="<?php_e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a></li>96 <?php endif ;?>97 115 <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) echo ' class="selected"' ?>><a href="<?php echo get_option( 'home' ) ?>/<?php echo BP_FORUMS_SLUG ?>" title="<?php esc_attr_e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a></li> 116 <?php endif ?> 117 98 118 <?php if ( function_exists( 'bp_blogs_install' ) ) : ?> 99 <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php_e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>100 <?php endif ;?>119 <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) echo ' class="selected"' ?>><a href="<?php echo get_option( 'home' ) ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php esc_attr_e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li> 120 <?php endif ?> 101 121 102 <?php do_action( 'bp_nav_items' ); ?> 122 <?php do_action( 'bp_nav_items' ) ?> 123 103 124 </ul> 104 125 105 126 <?php do_action( 'bp_header' ) ?> 106 127 107 128 </div> 108 129 109 130 <?php do_action( 'bp_after_header' ) ?> 110 131 <?php do_action( 'bp_before_container' ) ?> 111 132 112 133 <div id="container"> 113 134 114 135 <?php if ( !bp_is_blog_page() && !bp_is_directory() && !bp_is_register_page() && !bp_is_activation_page() ) : ?> 115 136 116 137 <?php locate_template( array( 'userbar.php' ), true ) /* Load the user navigation */ ?> 138 117 139 <?php locate_template( array( 'optionsbar.php' ), true ) /* Load the currently displayed object navigation */ ?> 118 119 <?php endif; ?> 120 121 No newline at end of file 140 141 <?php endif ?> 142 No newline at end of file -
bp-themes/bp-sn-parent/home.php
1 <?php get_header() ;?>1 <?php get_header() ?> 2 2 3 3 <div id="content"> 4 4 5 5 <?php do_action( 'bp_before_home' ) ?> 6 6 7 7 <div id="third-section" class="widget-section"> 8 8 9 <?php if ( !function_exists('dynamic_sidebar') 9 10 10 || !dynamic_sidebar('third-section') ) : ?> 11 11 12 <div class="widget-error"> 12 <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=first-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a> 13 14 <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> 15 16 <a href="<?php echo get_option( 'siteurl' ) ?>/wp-admin/widgets.php?s=&show=&sidebar=first-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a> 17 13 18 </div> 14 15 <?php endif; ?> 19 20 <?php endif ?> 21 16 22 </div> 17 23 18 24 <div id="second-section" class="widget-section"> 25 19 26 <?php if ( !function_exists('dynamic_sidebar') 20 21 27 || !dynamic_sidebar('second-section') ) : ?> 28 22 29 <div class="widget-error"> 23 <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=second-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a> 30 31 <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> 32 33 <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=second-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a> 34 24 35 </div> 25 26 <?php endif; ?> 36 37 <?php endif ?> 38 27 39 </div> 28 40 29 41 <div id="first-section" class="widget-section"> 42 30 43 <?php if ( !function_exists('dynamic_sidebar') 31 44 || !dynamic_sidebar('first-section') ) : ?> 32 45 33 46 <div class="widget-error"> 34 <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=third-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a> 35 </div> 36 37 <?php endif; ?> 47 48 <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> 49 50 <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=third-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a> 51 52 </div> 53 54 <?php endif ?> 55 38 56 </div> 39 57 40 58 <?php do_action( 'bp_after_home' ) ?> 41 59 42 60 </div> 43 61 44 <?php get_footer(); ?> 62 <?php get_footer() ?> 63 No newline at end of file -
bp-themes/bp-sn-parent/index.php
1 <?php get_header() ;?>1 <?php get_header() ?> 2 2 3 3 <div id="content"> 4 4 5 5 <?php do_action( 'bp_before_blog_home' ) ?> 6 6 7 7 <div class="page" id="blog-latest"> 8 8 9 9 <h2 class="pagetitle"><?php _e( 'Blog', 'buddypress' ) ?></h2> 10 11 <?php if ( have_posts() ) : ?>12 10 13 <?php while (have_posts()) : the_post();?>14 11 <?php if ( have_posts() ) : while ( have_posts() ) : the_post() ?> 12 15 13 <?php do_action( 'bp_before_blog_post' ) ?> 16 17 <div class="post" id="post-<?php the_ID(); ?>">18 19 <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>20 21 <p class="date"><?php the_time('F j, Y') ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink($post->post_author) ) ?></em></p>22 14 15 <div <?php post_class( $i++ & 1 ? '' : 'alt' ) ?> id="post-<?php the_ID() ?>"> 16 17 <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permanent Link to %s', 'buddypress' ), get_the_title() ) ?>"><?php the_title() ?></a></h3> 18 19 <p class="date"><?php the_time('F j, Y') ?> 20 21 <em><?php printf( __( 'in %s', 'buddypress' ), get_the_category_list(',') ) ?> 22 23 <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p> 24 23 25 <div class="entry"> 24 <?php the_content( __( 'Read the rest of this entry »', 'buddypress' ) ); ?> 26 27 <?php the_content( __( 'Read the rest of this entry »', 'buddypress' ) ) ?> 28 25 29 </div> 26 30 27 <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />') ; ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?></span></p>31 <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />') ?></span> 28 32 33 <span class="comments"><?php comments_popup_link( 34 __( 'No Comments »', 'buddypress' ), 35 __( '1 Comment »', 'buddypress' ), 36 __( '% Comments »', 'buddypress' ) 37 ) ?></span></p> 38 29 39 </div> 30 40 31 41 <?php do_action( 'bp_after_blog_post' ) ?> 32 42 33 <?php endwhile ;?>43 <?php endwhile ?> 34 44 35 45 <div class="navigation"> 36 46 37 47 <div class="alignleft"><?php next_posts_link( __( '« Previous Entries', 'buddypress' ) ) ?></div> 38 48 <div class="alignright"><?php previous_posts_link( __( 'Next Entries »', 'buddypress' ) ) ?></div> 39 49 40 50 </div> 41 51 42 52 <?php else : ?> 43 53 44 54 <h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2> 45 <p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ) ?></p>46 55 56 <p class="center"><?php _e( "Sorry, but you are looking for something that isn't here.", 'buddypress' ) ?></p> 57 47 58 <?php locate_template( array( 'searchform.php' ), true ) ?> 48 59 49 <?php endif; ?> 60 <?php endif ?> 61 50 62 </div> 51 63 52 64 <?php do_action( 'bp_after_blog_home' ) ?> 53 65 54 66 </div> 55 67 56 <?php get_sidebar() ;?>68 <?php get_sidebar() ?> 57 69 58 <?php get_footer(); ?> 70 <?php get_footer() ?> 71 No newline at end of file -
bp-themes/bp-sn-parent/links.php
4 4 */ 5 5 ?> 6 6 7 <?php get_header() ;?>7 <?php get_header() ?> 8 8 9 9 <div id="content"> 10 10 11 11 <?php do_action( 'bp_before_blog_links' ) ?> 12 12 13 <div class="page"id="blog-latest">14 13 <div <?php post_class() ?> id="blog-latest"> 14 15 15 <h2 class="pagetitle"><?php _e( 'Links', 'buddypress' ) ?></h2> 16 16 17 17 <ul id="links-list"> 18 <?php get_links_list(); ?> 18 19 <?php get_links_list() ?> 20 19 21 </ul> 20 22 21 23 </div> 22 24 23 25 <?php do_action( 'bp_after_blog_links' ) ?> 24 26 25 27 </div> 26 28 27 <?php get_footer(); ?> 29 <?php get_footer() ?> 30 No newline at end of file -
bp-themes/bp-sn-parent/messages/compose.php
1 1 <?php get_header() ?> 2 2 3 <div class="content-header"> 3 <div class="content-header"><!-- --></div> 4 4 5 < /div>5 <div id="content"> 6 6 7 <div id="content"> 8 <h2><?php _e( 'Compose Message', 'buddypress' ); ?></h2> 9 7 <h2><?php _e( 'Compose Message', 'buddypress' ) ?></h2> 8 10 9 <?php do_action( 'template_notices' ) ?> 11 10 12 11 <form action="<?php bp_messages_form_action('compose') ?>" method="post" id="send_message_form" class="standard-form"> 13 12 14 13 <?php do_action( 'bp_before_messages_compose_content' ) ?> 15 16 <label for="send-to-input"><?php _e("Send To", 'buddypress') ?> <span class="ajax-loader"></span></label> 14 15 <label for="send-to-input"><?php _e( 'Send To', 'buddypress') ?> <span class="ajax-loader"></span></label> 16 17 17 <ul class="first acfb-holder"> 18 18 19 <li> 20 19 21 <?php bp_message_get_recipient_tabs() ?> 22 20 23 <input type="text" name="send-to-input" class="send-to-input" id="send-to-input" /> 24 21 25 </li> 26 22 27 </ul> 23 28 24 29 <?php if ( is_site_admin() ) : ?> 25 <input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", "buddypress" ) ?>26 <?php endif; ?>27 30 31 <input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( 'This is a notice to all users.', 'buddypress' ) ?> 32 33 <?php endif ?> 34 28 35 <label for="subject"><?php _e( 'Subject', 'buddypress') ?></label> 36 29 37 <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value() ?>" /> 30 38 31 39 <label for="content"><?php _e( 'Message', 'buddypress') ?></label> 40 32 41 <textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value() ?></textarea> 33 42 34 <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames() ;?>" class="<?php bp_message_get_recipient_usernames() ?>" />35 43 <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames() ?>" class="<?php bp_message_get_recipient_usernames() ?>" /> 44 36 45 <?php do_action( 'bp_after_messages_compose_content' ) ?> 37 46 38 <p class="submit"> 39 <input type="submit" value="<?php _e("Send", 'buddypress') ?> »" name="send" id="send" /> 40 </p> 41 47 <p class="submit"><input type="submit" value="<?php esc_attr_e( 'Send »', 'buddypress' ) ?>" name="send" id="send" /></p> 48 42 49 <?php wp_nonce_field( 'messages_send_message' ) ?> 50 43 51 </form> 44 52 45 53 <script type="text/javascript"> 46 document.getElementById( "send-to-input").focus();54 document.getElementById( 'send-to-input' ).focus(); 47 55 </script> 56 48 57 </div> 49 58 50 <?php get_footer() ?> 51 59 <?php get_footer() ?> 60 No newline at end of file -
bp-themes/bp-sn-parent/messages/index.php
3 3 <form action="<?php bp_messages_form_action() ?>" method="post" id="messages-form"> 4 4 5 5 <div class="content-header"> 6 <div class="messages-options"> 6 7 <div class="messages-options"> 8 7 9 <?php bp_messages_options() ?> 10 8 11 </div> 12 9 13 </div> 10 14 11 15 <div id="content"> 12 <h2><?php _e( "Inbox", "buddypress" ); ?></h2> 13 16 17 <h2><?php _e( 'Inbox', 'buddypress' ) ?></h2> 18 14 19 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 15 20 16 21 <?php do_action( 'bp_before_messages_inbox_content' ) ?> 17 18 <?php bp_message_get_notices(); // (admin created site wide notices) ?>19 22 23 <?php bp_message_get_notices() // (admin created site wide notices) ?> 24 20 25 <?php if ( bp_has_message_threads() ) : ?> 21 26 22 27 <div class="pagination"> 23 28 24 29 <div class="pagination-links"> 30 25 31 <?php bp_messages_pagination() ?> 32 26 33 </div> 27 34 28 35 </div> 29 36 30 37 <?php do_action( 'bp_before_messages_inbox_list' ) ?> 31 38 32 39 <table id="message-threads"> 33 <?php while ( bp_message_threads() ) : bp_message_thread(); ?> 34 35 <tr id="m-<?php bp_message_thread_id() ?>"<?php if ( bp_message_thread_has_unread() ) : ?> class="unread"<?php else: ?> class="read"<?php endif; ?>> 40 41 <?php while ( bp_message_threads() ) : bp_message_thread() ?> 42 43 <tr id="m-<?php bp_message_thread_id() ?>" class="<?php echo ( $i++ & 1 ? '' : 'alt ' ); 44 if ( bp_message_thread_has_unread() ) 45 echo 'unread'; 46 else 47 echo 'read' ?>"> 48 36 49 <td width="1%"> 50 37 51 <span class="unread-count"><?php bp_message_thread_unread_count() ?></span> 52 38 53 </td> 39 <td width="1%"><?php bp_message_thread_avatar() ?></td> 54 55 <td width="1%"> 56 57 <?php bp_message_thread_avatar() ?> 58 59 </td> 60 40 61 <td width="27%"> 41 <p><?php _e("From:", "buddypress"); ?> <?php bp_message_thread_from() ?></p> 62 63 <p><?php printf( __( 'From: %s', 'buddypress' ), bp_get_message_thread_from() ) ?></p> 64 42 65 <p class="date"><?php bp_message_thread_last_post_date() ?></p> 66 43 67 </td> 68 44 69 <td width="40%"> 45 <p><a href="<?php bp_message_thread_view_link() ?>" title="<?php _e("View Message", "buddypress"); ?>"><?php bp_message_thread_subject() ?></a></p> 70 71 <p><a href="<?php bp_message_thread_view_link() ?>" title="<?php esc_attr_e( 'View Message', 'buddypress' ) ?>"><?php bp_message_thread_subject() ?></a></p> 72 46 73 <p><?php bp_message_thread_excerpt() ?></p> 74 47 75 </td> 48 76 49 77 <?php do_action( 'bp_messages_inbox_list_item' ) ?> 50 78 51 79 <td width="10%"> 52 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>" class="delete confirm"><?php _e("Delete", "buddypress"); ?></a> 80 81 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php esc_attr_e( 'Delete Message', 'buddypress' ) ?>" class="delete confirm"><?php _e( 'Delete', 'buddypress' ) ?></a> 82 53 83 <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id() ?>" /> 84 54 85 </td> 86 55 87 </tr> 56 57 <?php endwhile; ?> 88 89 <?php endwhile ?> 90 58 91 </table> 59 92 60 93 <?php do_action( 'bp_after_messages_inbox_list' ) ?> 61 62 <?php else : ?>63 94 95 <?php else : ?> 96 64 97 <div id="message" class="info"> 65 <p><?php _e( 'You have no messages in your inbox.', 'buddypress' ); ?></p>66 </div>67 68 <?php endif;?>69 98 99 <p><?php _e( 'You have no messages in your inbox.', 'buddypress' ) ?></p> 100 101 </div> 102 103 <?php endif ?> 104 70 105 <?php do_action( 'bp_after_messages_inbox_content' ) ?> 71 106 72 107 </div> -
bp-themes/bp-sn-parent/messages/notices.php
1 1 <?php get_header() ?> 2 2 3 <div class="content-header"> 3 <div class="content-header"><!-- --></div> 4 4 5 < /div>5 <div id="content"> 6 6 7 <div id="content">8 9 7 <div class="pagination"> 10 8 11 9 <div class="pagination-links"> 10 12 11 <?php bp_messages_pagination() ?> 12 13 13 </div> 14 14 15 15 </div> 16 17 <h2><?php _e( 'Sent Notices', 'buddypress' ) ;?></h2>18 16 17 <h2><?php _e( 'Sent Notices', 'buddypress' ) ?></h2> 18 19 19 <?php do_action( 'template_notices' ) ?> 20 20 21 21 <?php do_action( 'bp_before_messages_notices_content' ) ?> … … 23 23 <?php if ( bp_has_message_threads() ) : ?> 24 24 25 25 <?php do_action( 'bp_before_messages_notices_list' ) ?> 26 26 27 27 <table id="message-threads" class="notices"> 28 <?php while ( bp_message_threads() ) : bp_message_thread(); ?>29 28 29 <?php while ( bp_message_threads() ) : bp_message_thread() ?> 30 30 31 <tr> 31 <td width="1%"> 32 </td> 32 33 <td width="1%"><!-- --></td> 34 33 35 <td width="40%"> 36 34 37 <p><strong><?php bp_message_notice_subject() ?></strong></p> 38 35 39 <p><?php bp_message_notice_text() ?></p> 40 36 41 </td> 42 37 43 <td width="27%"> 44 38 45 <p><?php bp_message_is_active_notice() ?></p> 39 <p class="date"><?php _e("Sent:", "buddypress"); ?> <?php bp_message_notice_post_date() ?></p> 46 47 <p class="date"><?php printf( __('Sent: %s', 'buddypress'), bp_get_message_notice_post_date() ) ?></p> 48 40 49 </td> 41 50 42 51 <?php do_action( 'bp_messages_notices_list_item' ) ?> 43 52 44 53 <td width="4%"> 45 <a href="<?php bp_message_activate_deactivate_link() ?>" class="confirm"><?php bp_message_activate_deactivate_text() ?></a> 46 <a href="<?php bp_message_notice_delete_link() ?>" class="confirm" title="<?php _e("Delete Message", "buddypress"); ?>"><?php _e("Delete", "buddypress"); ?></a> 54 55 <a href="<?php bp_message_activate_deactivate_link() ?>" class="confirm"><?php bp_message_activate_deactivate_text() ?></a> 56 57 <a href="<?php bp_message_notice_delete_link() ?>" class="confirm" title="<?php esc_attr_e( 'Delete Message', 'buddypress' ) ?>"><?php _e( 'Delete', 'buddypress' ) ?></a> 58 47 59 </td> 60 48 61 </tr> 49 50 <?php endwhile; ?> 62 63 <?php endwhile ?> 64 51 65 </table> 52 66 53 67 <?php do_action( 'bp_after_messages_notices_list' ) ?> 54 68 55 <?php else : ?>56 69 <?php else : ?> 70 57 71 <div id="message" class="info"> 58 <p><?php _e("You have not sent any notices.", "buddypress"); ?></p> 72 73 <p><?php _e( 'You have not sent any notices.', 'buddypress' ) ?></p> 74 59 75 </div> 60 76 61 <?php endif ;?>77 <?php endif ?> 62 78 63 79 <?php do_action( 'bp_after_messages_notices_content' ) ?> 64 80 -
bp-themes/bp-sn-parent/messages/sentbox.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 <div class="messages-options"> 4 <div class="messages-options"> 5 5 <?php bp_messages_options() ?> 6 6 </div> 7 7 </div> 8 8 9 <div id="content"> 10 <h2><?php _e( "Sent Messages", "buddypress");?></h2>11 9 <div id="content"> 10 <h2><?php _e( 'Sent Messages', 'buddypress' ) ?></h2> 11 12 12 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 13 13 14 14 <?php do_action( 'bp_before_messages_sentbox_content' ) ?> 15 15 16 16 <?php if ( bp_has_message_threads() ) : ?> 17 17 18 18 <div class="pagination"> 19 19 20 20 <div class="pagination-links"> 21 21 22 <?php bp_messages_pagination() ?> 23 22 24 </div> 23 25 24 26 </div> 25 27 26 28 <?php do_action( 'bp_before_messages_sentbox_list' ) ?> 27 29 28 30 <table id="message-threads"> 29 <?php while ( bp_message_threads() ) : bp_message_thread(); ?> 30 31 <tr id="m-<?php bp_message_thread_id() ?>"> 31 32 <?php while ( bp_message_threads() ) : bp_message_thread() ?> 33 34 <tr<?php echo ( $i++ & 1 ? '' : ' class="alt"' ) ?> id="m-<?php bp_message_thread_id() ?>"> 35 36 <td width="1%"><!-- --></td> 37 32 38 <td width="1%"> 39 40 <?php bp_message_thread_avatar() ?> 41 33 42 </td> 34 <td width="1%"><?php bp_message_thread_avatar() ?></td> 43 35 44 <td width="27%"> 36 <p><?php _e("To:", "buddypress"); ?> <?php bp_message_thread_to() ?></p> 45 46 <p><?php printf( __( 'To: %s', 'buddypress' ), bp_get_message_thread_to() ) ?></p> 47 37 48 <p class="date"><?php bp_message_thread_last_post_date() ?></p> 49 38 50 </td> 51 39 52 <td width="40%"> 40 <p><a href="<?php bp_message_thread_view_link() ?>" title="<?php _e("View Message", "buddypress"); ?>"><?php bp_message_thread_subject() ?></a></p> 53 54 <p><a href="<?php bp_message_thread_view_link() ?>" title="<?php esc_attr_e( 'View Message', 'buddypress' ) ?>"><?php bp_message_thread_subject() ?></a></p> 55 41 56 <p><?php bp_message_thread_excerpt() ?></p> 57 42 58 </td> 43 59 44 60 <?php do_action( 'bp_messages_sentbox_list' ) ?> 45 61 46 62 <td width="10%"> 47 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>" class="delete confirm"><?php _e("Delete", "buddypress"); ?></a> 63 64 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php esc_attr_e( 'Delete Message', 'buddypress' ) ?>" class="delete confirm"><?php _e( 'Delete', 'buddypress' ) ?></a> 65 48 66 <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id() ?>" /> 67 49 68 </td> 69 50 70 </tr> 51 52 <?php endwhile; ?> 71 72 <?php endwhile ?> 73 53 74 </table> 54 75 55 76 <?php do_action( 'bp_after_messages_sentbox_list' ) ?> 56 57 <?php else : ?>58 77 78 <?php else : ?> 79 59 80 <div id="message" class="info"> 60 <p><?php _e("You have no sent messages.", "buddypress"); ?></p>61 </div>62 81 63 <?php endif;?>82 <p><?php _e( 'You have no sent messages.', 'buddypress' ) ?></p> 64 83 84 </div> 85 86 <?php endif ?> 87 65 88 <?php do_action( 'bp_after_messages_sentbox_content' ) ?> 66 89 67 90 </div> 68 91 69 92 <?php get_footer() ?> 93 No newline at end of file -
bp-themes/bp-sn-parent/messages/view.php
1 1 <?php get_header() ?> 2 2 3 <div class="content-header"> 4 5 </div> 3 <div class="content-header"><!-- --></div> 6 4 7 5 <div id="content"> 8 6 9 7 <?php do_action( 'template_notices' ) ?> 10 8 11 9 <?php do_action( 'bp_before_message_thread_content' ) ?> 12 10 13 11 <?php if ( bp_thread_has_messages() ) : ?> 14 12 15 13 <h2 id="message-subject"><?php bp_the_thread_subject() ?></h2> 16 17 <p id="message-recipients"> 18 <?php printf( __('Sent between %s and %s', 'buddypress'), bp_get_the_thread_recipients(), '<a href="' . bp_get_loggedin_user_link() . '" title="' . bp_get_loggedin_user_fullname() . '">' . bp_get_loggedin_user_fullname() . '</a>' ) ?> 19 </p> 20 14 15 <p id="message-recipients"><?php printf( __('Sent between %s and %s', 'buddypress'), bp_get_the_thread_recipients(), '<a href="' . bp_get_loggedin_user_link() . '" title="' . bp_get_loggedin_user_fullname() . '">' . bp_get_loggedin_user_fullname() . '</a>' ) ?></p> 16 21 17 <?php do_action( 'bp_before_message_thread_list' ) ?> 22 23 <?php while ( bp_thread_messages() ) : bp_thread_the_message() ;?>24 18 19 <?php while ( bp_thread_messages() ) : bp_thread_the_message() ?> 20 25 21 <div class="message-box<?php bp_the_thread_message_alt_class() ?>"> 26 22 27 23 <div class="message-metadata"> 28 24 29 25 <?php do_action( 'bp_before_message_meta' ) ?> 30 26 31 27 <?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ) ?> 28 32 29 <h3><a href="<?php bp_the_thread_message_sender_link() ?>" title="<?php bp_the_thread_message_sender_name() ?>"><?php bp_the_thread_message_sender_name() ?></a></h3> 33 34 <small> 35 <?php bp_the_thread_message_time_since() ?> 36 </small> 37 30 31 <small><?php bp_the_thread_message_time_since() ?></small> 32 38 33 <?php do_action( 'bp_after_message_meta' ) ?> 39 34 40 35 </div> 41 36 42 37 <?php do_action( 'bp_before_message_content' ) ?> 43 38 44 39 <div class="message-content"> 45 40 46 41 <?php bp_the_thread_message_content() ?> 47 42 48 43 </div> 49 44 50 45 <?php do_action( 'bp_after_message_content' ) ?> 51 46 52 47 <div class="clear"></div> 53 48 54 49 </div> 55 56 <?php endwhile ;?>57 50 51 <?php endwhile ?> 52 58 53 <?php do_action( 'bp_after_message_thread_list' ) ?> 59 54 60 55 <?php do_action( 'bp_before_message_thread_reply' ) ?> 61 56 62 57 <form id="send-reply" action="<?php bp_messages_form_action() ?>" method="post" class="standard-form"> 63 58 64 59 <div class="message-box"> 65 60 66 61 <div class="message-metadata"> 67 68 <?php do_action( 'bp_before_message_meta' ) ?> 69 62 63 <?php do_action( 'bp_before_message_meta' ) ?> 64 70 65 <div class="avatar-box"> 71 <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_loggedin_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30 ) ); ?>72 66 67 <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_loggedin_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30 ) ) ?> 68 73 69 <h3><?php _e( 'Reply: ', 'buddypress' ) ?></h3> 70 74 71 </div> 75 72 76 73 <?php do_action( 'bp_after_message_meta' ) ?> 77 74 78 75 </div> 79 76 80 77 <div class="message-content"> 81 78 82 79 <?php do_action( 'bp_before_message_reply_box' ) ?> 83 80 84 81 <textarea name="content" id="message_content" rows="15" cols="40"></textarea> 85 82 86 83 <?php do_action( 'bp_after_message_reply_box' ) ?> 87 88 <p class="submit">89 <input type="submit" name="send" value="<?php _e( 'Send Reply', 'buddypress' ) ?> →" id="send_reply_button"/>90 </p>91 84 92 <input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" /> 93 <input type="hidden" name="subject" id="subject" value="<?php _e( 'Re: ', 'buddypress' ); echo str_replace( 'Re: ', '', bp_get_the_thread_subject() ); ?>" /> 85 <p class="submit"><input type="submit" name="send" value="<?php _e( 'Send Reply →', 'buddypress' ) ?> " id="send_reply_button"/></p> 86 87 <input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id() ?>" /> 88 89 <input type="hidden" name="subject" id="subject" value="<?php printf( __( 'Re: %s', 'buddypress' ), str_replace( 'Re: ', '', bp_get_the_thread_subject() ) ) ?>" /> 90 94 91 <?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ) ?> 95 92 96 93 </div> 97 94 98 95 </div> 99 96 100 97 </form> 101 98 102 99 <?php do_action( 'bp_after_message_thread_reply' ) ?> 103 104 <?php endif; ?>105 100 101 <?php endif ?> 102 106 103 <?php do_action( 'bp_after_message_thread_content' ) ?> 107 104 108 105 </div> -
bp-themes/bp-sn-parent/optionsbar.php
1 1 <?php do_action( 'bp_before_options_bar' ) ?> 2 2 3 3 <div id="optionsbar"> 4 4 5 5 <h3><?php bp_get_options_title() ?></h3> 6 6 7 7 <?php do_action( 'bp_inside_before_options_bar' ) ?> 8 8 9 9 <?php if ( bp_has_options_avatar() ) : ?> 10 10 11 <p class="avatar"> 12 <?php bp_get_options_avatar() ?> 13 </p> 11 <p class="avatar"><?php bp_get_options_avatar() ?></p> 14 12 15 <?php endif; ?> 16 17 <ul id="options-nav"> 18 <?php bp_get_options_nav() ?> 19 </ul> 20 13 <?php endif ?> 14 15 <ul id="options-nav"> 16 17 <?php bp_get_options_nav() ?> 18 19 </ul> 20 21 21 <?php do_action( 'bp_inside_after_options_bar' ) ?> 22 22 23 23 </div> -
bp-themes/bp-sn-parent/page.php
1 <?php get_header() ;?>1 <?php get_header() ?> 2 2 3 3 <div id="content" class="narrowcolumn"> 4 4 5 5 <?php do_action( 'bp_before_blog_page' ) ?> 6 6 7 7 <div class="page" id="blog-page"> 8 9 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>10 11 <h2 class="pagetitle"><?php the_title(); ?></h2>12 8 13 <div class="post" id="post-<?php the_ID(); ?>"> 14 9 <?php if ( have_posts() ) : while ( have_posts() ) : the_post() ?> 10 11 <h2 class="pagetitle"><?php the_title() ?></h2> 12 13 <div <?php post_class() ?> id="post-<?php the_ID() ?>"> 14 15 15 <div class="entry"> 16 17 <?php the_content( __( '<p class="serif">Read the rest of this page »</p>', 'buddypress' ) ); ?>18 16 19 <?php wp_link_pages( array( 'before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?> 20 <?php edit_post_link( __( 'Edit this entry.', 'buddypress' ), '<p>', '</p>'); ?> 21 17 <?php the_content( '<p class="serif">' . __( 'Read the rest of this page »', 'buddypress' ) . '</p>' ) ?> 18 19 <?php wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'buddypress' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number') ) ?> 20 21 <?php edit_post_link( __( 'Edit this entry.', 'buddypress' ), '<p>', '</p>') ?> 22 22 23 </div> 23 24 24 25 </div> 25 26 <?php endwhile; endif ;?>27 26 27 <?php endwhile; endif ?> 28 28 29 </div> 29 30 30 31 <?php do_action( 'bp_after_blog_page' ) ?> 31 32 32 33 </div> 33 34 34 <?php get_sidebar();?>35 <?php get_sidebar() ?> 35 36 36 <?php get_footer(); ?> 37 <?php get_footer() ?> 38 No newline at end of file -
bp-themes/bp-sn-parent/plugin-template.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 <?php do_action('bp_template_content_header') ?> 6 5 7 </div> 6 8 7 9 <div id="content"> 10 8 11 <h2><?php do_action('bp_template_title') ?></h2> 9 12 10 13 <?php do_action('bp_template_content') ?> 14 11 15 </div> 12 16 13 17 <?php get_footer() ?> 18 No newline at end of file -
bp-themes/bp-sn-parent/profile/change-avatar.php
1 1 <?php get_header() ?> 2 2 3 <div class="content-header"> 3 <div class="content-header"><!-- --></div> 4 4 5 < /div>5 <div id="content"> 6 6 7 <div id="content">8 9 7 <h2><?php _e( 'Change Avatar', 'buddypress' ) ?></h2> 10 8 11 9 <?php do_action( 'template_notices' ) ?> 12 10 13 11 <?php do_action( 'bp_before_profile_avatar_upload_content' ) ?> 14 12 15 13 <p><?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?></p> 16 14 17 15 <form action="" method="post" id="avatar-upload-form" enctype="multipart/form-data"> 18 16 19 17 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 20 18 21 19 <h3><?php _e( 'Your Current Avatar', 'buddypress' ) ?></h3> 22 23 <p id="current-avatar"> 24 <?php bp_displayed_user_avatar( 'type=full') ?> 25 <?php bp_displayed_user_avatar( 'type=thumb' ) ?> 26 </p> 27 20 21 <p id="current-avatar"><?php bp_displayed_user_avatar( 'type=full') ?> 22 23 <?php bp_displayed_user_avatar( 'type=thumb' ) ?></p> 24 28 25 <?php if ( bp_get_user_has_avatar() ) : ?> 26 29 27 <div class="generic-button" id="delete-avatar-button"> 30 <a class="edit" href="<?php bp_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a> 28 29 <a class="edit" href="<?php bp_avatar_delete_link() ?>" title="<?php esc_attr_e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a> 30 31 31 </div> 32 <?php endif; ?> 33 32 33 <?php endif ?> 34 34 35 <h3><?php _e( 'Upload a New Avatar', 'buddypress' ) ?></h3> 35 36 36 <p><?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?></p> 37 38 <p id="avatar-upload"> 39 <input type="file" name="file" id="file" /> 40 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 41 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 42 </p> 37 <p><?php _e( "Click below to select a JPG, GIF or PNG format photo from your computer and then click 'Upload Image' to proceed.", 'buddypress' ) ?></p> 43 38 39 <p id="avatar-upload"><input type="file" name="file" id="file" /> 40 41 <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ) ?>" /> 42 43 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /></p> 44 44 45 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 45 46 <?php endif ;?>47 46 47 <?php endif ?> 48 48 49 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 49 50 50 51 <h3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3> 51 52 52 53 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> 53 54 54 55 <div id="avatar-crop-pane"> 55 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> 56 57 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php esc_attr_e( 'Avatar preview', 'buddypress' ) ?>" /> 58 56 59 </div> 57 60 58 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />59 61 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php esc_attr_e( 'Crop Image', 'buddypress' ) ?>" /> 62 60 63 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 61 64 <input type="hidden" id="x" name="x" /> 62 65 <input type="hidden" id="y" name="y" /> … … 64 67 <input type="hidden" id="h" name="h" /> 65 68 66 69 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?> 67 68 <?php endif ;?>69 70 71 <?php endif ?> 72 70 73 </form> 71 74 72 75 <?php do_action( 'bp_after_profile_avatar_upload_content' ) ?> 73 76 74 77 </div> 75 78 76 79 <?php get_footer() ?> 80 No newline at end of file -
bp-themes/bp-sn-parent/profile/edit.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 4 5 5 <ul class="content-header-nav"> 6 <?php bp_profile_group_tabs(); ?> 6 7 <?php bp_profile_group_tabs() ?> 8 7 9 </ul> 8 10 9 11 </div> 10 12 11 13 <div id="content"> 12 14 13 15 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 14 16 15 17 <?php do_action( 'bp_before_profile_edit_content' ) ?> 16 17 <?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>18 18 19 <?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group() ?> 20 19 21 <form action="<?php bp_the_profile_group_edit_form_action() ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug() ?>"> 20 22 21 23 <?php do_action( 'bp_before_profile_field_content' ) ?> 22 23 <h2><?php printf( __( "Editing '%s'", "buddypress" ), bp_get_the_profile_group_name() );?></h2>24 25 <?php while ( bp_profile_fields() ) : bp_the_profile_field() ;?>26 24 25 <h2><?php printf( __( "Editing '%s'", 'buddypress' ), bp_get_the_profile_group_name() ) ?></h2> 26 27 <?php while ( bp_profile_fields() ) : bp_the_profile_field() ?> 28 27 29 <div<?php bp_field_css_class( 'editfield' ) ?>> 28 30 29 31 <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> 30 31 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 32 33 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name(); 34 if ( bp_get_the_profile_field_is_required() ) 35 _e( ' (required)', 'buddypress' ) ?></label> 36 32 37 <input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" /> 33 34 <?php endif ;?>35 38 39 <?php endif ?> 40 36 41 <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> 37 38 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 42 43 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name(); 44 if ( bp_get_the_profile_field_is_required() ) 45 _e( ' (required)', 'buddypress' ) ?></label> 46 39 47 <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_edit_value() ?></textarea> 40 41 <?php endif; ?>42 48 49 <?php endif ?> 50 43 51 <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?> 44 52 45 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 53 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name(); 54 if ( bp_get_the_profile_field_is_required() ) 55 _e( ' (required)', 'buddypress' ) ?></label> 56 46 57 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"> 58 47 59 <?php bp_the_profile_field_options() ?> 60 48 61 </select> 49 50 <?php endif; ?>51 62 63 <?php endif ?> 64 52 65 <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?> 53 54 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 66 67 <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name(); 68 if ( bp_get_the_profile_field_is_required() ) 69 _e( ' (required)', 'buddypress' ) ?></label> 70 55 71 <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple"> 72 56 73 <?php bp_the_profile_field_options() ?> 74 57 75 </select> 58 59 <?php endif; ?>60 76 77 <?php endif ?> 78 61 79 <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?> 62 80 63 81 <div class="radio"> 64 <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span> 65 82 83 <span class="label"><?php bp_the_profile_field_name(); 84 if ( bp_get_the_profile_field_is_required() ) 85 _e( ' (required)', 'buddypress' ) ?></span> 86 66 87 <?php bp_the_profile_field_options() ?> 67 88 68 89 <?php if ( !bp_get_the_profile_field_is_required() ) : ?> 69 90 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a> 70 <?php endif; ?> 91 <?php endif ?> 92 71 93 </div> 72 73 <?php endif ; ?>74 94 95 <?php endif ?> 96 75 97 <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?> 76 98 77 99 <div class="checkbox"> 78 <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span> 79 100 101 <span class="label"><?php bp_the_profile_field_name(); 102 if ( bp_get_the_profile_field_is_required() ) 103 _e( ' (required)', 'buddypress' ) ?></span> 104 80 105 <?php bp_the_profile_field_options() ?> 81 </div>82 83 <?php endif; ?>84 106 107 </div> 108 109 <?php endif ?> 110 85 111 <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?> 86 112 87 113 <div class="datebox"> 88 <label for="<?php bp_the_profile_field_input_name() ?>_day"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> 89 114 <label for="<?php bp_the_profile_field_input_name() ?>_day"><?php bp_the_profile_field_name(); 115 if ( bp_get_the_profile_field_is_required() ) 116 _e( ' (required)', 'buddypress' ) ?></label> 117 90 118 <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day"> 119 91 120 <?php bp_the_profile_field_options( 'type=day' ) ?> 121 92 122 </select> 93 123 94 124 <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month"> 125 95 126 <?php bp_the_profile_field_options( 'type=month' ) ?> 127 96 128 </select> 97 129 98 130 <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year"> 131 99 132 <?php bp_the_profile_field_options( 'type=year' ) ?> 100 </select> 133 134 </select> 135 101 136 </div> 102 103 <?php endif ; ?>104 137 138 <?php endif ?> 139 105 140 <?php do_action( 'bp_custom_profile_edit_fields' ) ?> 106 141 107 142 <p class="description"><?php bp_the_profile_field_description() ?></p> 143 108 144 </div> 109 145 110 <?php endwhile ;?>146 <?php endwhile ?> 111 147 112 148 <?php do_action( 'bp_after_profile_field_content' ) ?> 113 149 114 150 <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?> " /> 115 151 116 152 <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_group_field_ids() ?>" /> 117 153 <?php wp_nonce_field( 'bp_xprofile_edit' ) ?> 118 154 119 155 </form> 120 121 <?php endwhile; endif ;?>122 156 157 <?php endwhile; endif ?> 158 123 159 <?php do_action( 'bp_after_profile_edit_content' ) ?> 124 160 125 161 </div> -
bp-themes/bp-sn-parent/profile/index.php
1 1 <?php get_header() ?> 2 2 3 <div class="content-header"> 4 <?php bp_last_activity() ?> 5 </div> 3 <div class="content-header"> 6 4 7 <div id="content" class="vcard">5 <?php bp_last_activity() ?> 8 6 9 <?php do_action( 'template_notices' ) // (error/success feedback) ?>10 11 <?php do_action( 'bp_before_profile_content' ) ?>12 13 <div class="left-menu">14 <!-- Profile Menu (Avatar, Add Friend, Send Message buttons etc) -->15 <?php locate_template( array( 'profile/profile-menu.php' ), true ) ?>16 7 </div> 17 8 18 <div class="main-column"> 19 <div class="inner-tube"> 20 21 <?php /* Profile Header (Name & Status) */ ?> 22 <?php locate_template( array( 'profile/profile-header.php' ), true ) ?> 23 24 <?php /* Profile Data Loop */ ?> 25 <?php locate_template( array( 'profile/profile-loop.php' ), true ) ?> 9 <div id="content" class="vcard"> 26 10 27 <?php do_action( 'bp_before_profile_activity_loop' ) ?> 28 29 <?php /* Latest Activity Loop */ ?> 30 <?php if ( function_exists( 'bp_activity_install')) : ?> 31 32 <?php do_action( 'bp_before_profile_activity_widget' ) ?> 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 33 12 34 <div class="bp-widget"> 35 <h4><?php echo bp_word_or_name( __( "My Latest Activity", 'buddypress' ), __( "%s's Latest Activity", 'buddypress' ), true, false ) ?> <span><a href="<?php echo bp_displayed_user_domain() . BP_ACTIVITY_SLUG ?>"><?php _e( 'See All', 'buddypress' ) ?> →</a></span></h4> 13 <?php do_action( 'bp_before_profile_content' ) ?> 36 14 37 <?php if ( bp_has_activities( 'type=personal&max=5' ) ) : ?>15 <div class="left-menu"> 38 16 39 <div id="activity-rss"> 40 <p><a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></p> 41 </div> 17 <!-- Profile Menu (Avatar, Add Friend, Send Message buttons etc) --> 18 <?php locate_template( array( 'profile/profile-menu.php' ), true ) ?> 42 19 43 <ul id="activity-list" class="activity-list item-list"> 44 <?php while ( bp_activities() ) : bp_the_activity(); ?> 45 <li class="<?php bp_activity_css_class() ?>"> 46 <div class="activity-avatar"> 47 <?php bp_activity_avatar() ?> 48