Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/06/2010 03:18:19 AM (13 years ago)
Author:
johnjamesjacoby
Message:

First pass at user profiles and front-end user editing. Fixes #1364 props GautamGupta via Google Code-in. Split bbp-template.php into smaller files. Rename 'profile-' pages to 'user-'. (This is the Ultra Magnus of changesets.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/loop-bbp_topics.php

    r2679 r2688  
    77 */
    88
    9 if ( bbp_is_favorites() || bbp_has_topics() ) : ?>
     9if ( bbp_is_subscriptions() || bbp_is_favorites() || bbp_has_topics() ) : ?>
    1010
    1111    <?php get_template_part( 'pagination', 'bbp_topics' ); ?>
     
    1818                <th class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></th>
    1919                <th class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></th>
    20                 <?php if ( bbp_is_favorites() ) : ?><th class="bbp-topic-action"><?php _e( 'Favorite', 'bbpress' ); ?></th><?php endif; ?>
     20                <?php if ( ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ) : ?><th class="bbp-topic-action"><?php _e( 'Remove', 'bbpress' ); ?></th><?php endif; ?>
    2121            </tr>
    2222        </thead>
    2323
    2424        <tfoot>
    25             <tr><td colspan="<?php echo bbp_is_favorites() ? '5' : '4'; ?>">&nbsp</td></tr>
     25            <tr><td colspan="<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>">&nbsp</td></tr>
    2626        </tfoot>
    2727
     
    5151                    <td class="bbp-topic-freshness"><?php bbp_topic_freshness_link(); ?></td>
    5252
    53                     <?php if ( bbp_is_favorites() ) : ?>
     53                    <?php if ( bbp_is_user_home() ) : ?>
    5454
    55                         <td class="bbp-topic-action">
     55                        <?php if ( bbp_is_favorites() ) : ?>
    5656
    57                             <?php bbp_user_favorites_link( array( 'mid' => '+', 'post' => '' ), array( 'pre' => '', 'mid' => '&times;', 'post' => '' ) ); ?>
     57                            <td class="bbp-topic-action">
    5858
    59                         </td>
     59                                <?php bbp_user_favorites_link( array( 'mid' => '+', 'post' => '' ), array( 'pre' => '', 'mid' => '&times;', 'post' => '' ) ); ?>
     60
     61                            </td>
     62
     63                        <?php elseif ( bbp_is_subscriptions() ) : ?>
     64
     65                            <td class="bbp-topic-action">
     66
     67                                <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '&times;' ) ); ?>
     68
     69                            </td>
     70
     71                        <?php endif; ?>
    6072
    6173                    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.