Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/22/2011 10:13:25 AM (14 years ago)
Author:
johnjamesjacoby
Message:

First pass at normalizing bp-default template files. This includes:

A ton of code cleanup
Using new functions found in BP 1.3
Template header documentation
Improve pagination style and position on root component templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/blogs/blogs-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_blogs_loop' ) ?>
     3/**
     4 * BuddyPress - Blogs Loop
     5 *
     6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     7 *
     8 * @package BuddyPress
     9 * @subpackage bp-default
     10 */
     11
     12?>
     13
     14<?php do_action( 'bp_before_blogs_loop' ); ?>
    415
    516<?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?>
     
    819
    920        <div class="pag-count" id="blog-dir-count-top">
    10             <?php bp_blogs_pagination_count() ?>
     21            <?php bp_blogs_pagination_count(); ?>
    1122        </div>
    1223
    1324        <div class="pagination-links" id="blog-dir-pag-top">
    14             <?php bp_blogs_pagination_links() ?>
     25            <?php bp_blogs_pagination_links(); ?>
    1526        </div>
    1627
    1728    </div>
    1829
    19     <?php do_action( 'bp_before_directory_blogs_list' ) ?>
     30    <?php do_action( 'bp_before_directory_blogs_list' ); ?>
    2031
    2132    <ul id="blogs-list" class="item-list" role="main">
     33
    2234    <?php while ( bp_blogs() ) : bp_the_blog(); ?>
    2335
    2436        <li>
    2537            <div class="item-avatar">
    26                 <a href="<?php bp_blog_permalink() ?>"><?php bp_blog_avatar('type=thumb') ?></a>
     38                <a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( 'type=thumb' ); ?></a>
    2739            </div>
    2840
    2941            <div class="item">
    30                 <div class="item-title"><a href="<?php bp_blog_permalink() ?>"><?php bp_blog_name() ?></a></div>
    31                 <div class="item-meta"><span class="activity"><?php bp_blog_last_active() ?></span></div>
     42                <div class="item-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></div>
     43                <div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div>
    3244
    33                 <?php do_action( 'bp_directory_blogs_item' ) ?>
     45                <?php do_action( 'bp_directory_blogs_item' ); ?>
    3446            </div>
    3547
    3648            <div class="action">
    3749
    38                 <?php do_action( 'bp_directory_blogs_actions' ) ?>
     50                <?php do_action( 'bp_directory_blogs_actions' ); ?>
    3951
    4052                <div class="meta">
    41                     <?php bp_blog_latest_post() ?>
     53
     54                    <?php bp_blog_latest_post(); ?>
     55
    4256                </div>
    4357
     
    4862
    4963    <?php endwhile; ?>
     64
    5065    </ul>
    5166
    52     <?php do_action( 'bp_after_directory_blogs_list' ) ?>
     67    <?php do_action( 'bp_after_directory_blogs_list' ); ?>
    5368
    54     <?php bp_blog_hidden_fields() ?>
     69    <?php bp_blog_hidden_fields(); ?>
    5570
    5671    <div id="pag-bottom" class="pagination">
    5772
    5873        <div class="pag-count" id="blog-dir-count-bottom">
    59             <?php bp_blogs_pagination_count() ?>
     74
     75            <?php bp_blogs_pagination_count(); ?>
     76
    6077        </div>
    6178
    6279        <div class="pagination-links" id="blog-dir-pag-bottom">
    63             <?php bp_blogs_pagination_links() ?>
     80
     81            <?php bp_blogs_pagination_links(); ?>
     82
    6483        </div>
    6584
     
    6988
    7089    <div id="message" class="info">
    71         <p><?php _e( 'Sorry, there were no blogs found.', 'buddypress' ) ?></p>
     90        <p><?php _e( 'Sorry, there were no blogs found.', 'buddypress' ); ?></p>
    7291    </div>
    7392
    7493<?php endif; ?>
    7594
    76 <?php do_action( 'bp_after_blogs_loop' ) ?>
     95<?php do_action( 'bp_after_blogs_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.