Changeset 3810 for trunk/bp-themes/bp-default/blogs/index.php
- Timestamp:
- 01/22/2011 10:13:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/blogs/index.php
r3771 r3810 1 <?php get_header() ?> 1 <?php 2 3 /** 4 * BuddyPress - Blogs Directory 5 * 6 * @package BuddyPress 7 * @subpackage bp-default 8 */ 9 10 ?> 11 12 <?php get_header(); ?> 13 14 <?php do_action( 'bp_before_directory_blogs_content' ); ?> 2 15 3 16 <div id="content"> … … 6 19 <form action="" method="post" id="blogs-directory-form" class="dir-form"> 7 20 8 <h3><?php _e( 'Blogs Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> <a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ) ?></a><?php endif; ?></h3> 9 10 <?php do_action( 'bp_before_directory_blogs_content' ) ?> 21 <h3><?php _e( 'Blogs Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> <a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ); ?></a><?php endif; ?></h3> 11 22 12 23 <div id="blog-dir-search" class="dir-search" role="search"> 13 <?php bp_directory_blogs_search_form() ?> 24 25 <?php bp_directory_blogs_search_form(); ?> 26 14 27 </div><!-- #blog-dir-search --> 15 28 16 29 <div class="item-list-tabs" role="navigation"> 17 30 <ul> 18 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Blogs (%s)', 'buddypress' ), bp_get_total_blog_count() )?></a></li>31 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Blogs (%s)', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li> 19 32 20 33 <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?> 21 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/' ?>"><?php printf( __( 'My Blogs (%s)', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 34 35 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/' ?>"><?php printf( __( 'My Blogs (%s)', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 36 22 37 <?php endif; ?> 23 38 24 <?php do_action( 'bp_blogs_directory_blog_types' ) ?> 39 <?php do_action( 'bp_blogs_directory_blog_types' ); ?> 40 41 </ul> 42 </div><!-- .item-list-tabs --> 43 44 <div class="item-list-tabs" id="subnav" role="navigation"> 45 <ul> 46 47 <?php do_action( 'bp_blogs_directory_blog_sub_types' ); ?> 25 48 26 49 <li id="blogs-order-select" class="last filter"> 27 50 28 <?php _e( 'Order By:', 'buddypress' ) ?> 51 <?php _e( 'Order By:', 'buddypress' ); ?> 52 29 53 <select> 30 <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>31 <option value="newest"><?php _e( 'Newest', 'buddypress' ) ?></option>32 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>54 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 55 <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option> 56 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 33 57 34 <?php do_action( 'bp_blogs_directory_order_options' ) ?> 58 <?php do_action( 'bp_blogs_directory_order_options' ); ?> 59 35 60 </select> 36 61 </li> 37 62 </ul> 38 </div> <!-- .item-list-tabs -->63 </div> 39 64 40 <?php do_action( 'bp_before_directory_blogs_list' ) ?>65 <?php do_action( 'bp_before_directory_blogs_list' ); ?> 41 66 42 67 <div id="blogs-dir-list" class="blogs dir-list"> 43 <?php locate_template( array( 'blogs/blogs-loop.php' ), true ) ?> 68 69 <?php locate_template( array( 'blogs/blogs-loop.php' ), true ); ?> 70 44 71 </div><!-- #blogs-dir-list --> 45 72 46 <?php do_action( 'bp_directory_blogs_content' ) ?>73 <?php do_action( 'bp_directory_blogs_content' ); ?> 47 74 48 <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ) ?> 49 50 <?php do_action( 'bp_after_directory_blogs_content' ) ?> 75 <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?> 51 76 52 77 </form><!-- #blogs-directory-form --> … … 55 80 </div><!-- #content --> 56 81 57 <?php get_sidebar()?>82 <?php do_action( 'bp_after_directory_blogs_content' ); ?> 58 83 59 <?php get_footer() ?> 84 <?php get_sidebar(); ?> 85 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.