Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 06:56:42 PM (17 years ago)
Author:
apeatling
Message:

Merging last few trunk changes and stripping all whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-themes/bp-sn-parent/groups/single/home.php

    r2014 r2076  
    44
    55        </div>
    6        
     6
    77        <div id="content">
    8                
     8
    99                <?php do_action( 'template_notices' ) // (error/success feedback) ?>
    1010
    … …  
    1212
    1313                        <?php do_action( 'bp_before_group_content' ) ?>
    14        
     14
    1515                        <div class="left-menu">
    1616                                <?php locate_template( array( 'groups/single/menu.php' ), true ) ?>
    … …  
    2121
    2222                                        <?php do_action( 'bp_before_group_name' ) ?>
    23                        
     23
    2424                                        <div id="group-name">
    2525                                                <h1><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></h1>
    2626                                                <p class="status"><?php bp_group_type() ?></p>
    2727                                        </div>
    28                                        
     28
    2929                                        <?php do_action( 'bp_after_group_name' ) ?>
    30                                        
     30
    3131                                        <?php if ( !bp_group_is_visible() ) : ?>
    32                                                
     32
    3333                                                <?php do_action( 'bp_before_group_status_message' ) ?>
    34                                                
     34
    3535                                                <div id="message" class="info">
    3636                                                        <p><?php bp_group_status_message() ?></p>
    3737                                                </div>
    38                                                
     38
    3939                                                <?php do_action( 'bp_after_group_status_message' ) ?>
    40                                                
    41                                         <?php endif; ?>
    42                
     40
     41                                        <?php endif; ?>
     42
    4343                                        <?php do_action( 'bp_before_group_description' ) ?>
    44                                
     44
    4545                                        <div class="bp-widget">
    4646                                                <h4><?php _e( 'Description', 'buddypress' ); ?></h4>
    4747                                                <p><?php bp_group_description() ?></p>
    4848                                        </div>
    49                                        
     49
    5050                                        <?php do_action( 'bp_after_group_description' ) ?>
    51                
     51
    5252                                        <?php if ( bp_group_is_visible() && bp_group_has_news() ) : ?>
    53                                                
     53
    5454                                                <?php do_action( 'bp_before_group_news' ) ?>
    55                                                
     55
    5656                                                <div class="bp-widget">
    5757                                                        <h4><?php _e( 'News', 'buddypress' ); ?></h4>
    5858                                                        <p><?php bp_group_news() ?></p>
    5959                                                </div>
    60                                                
     60
    6161                                                <?php do_action( 'bp_after_group_news' ) ?>
    62                                                
    63                                         <?php endif; ?>
    64                                        
     62
     63                                        <?php endif; ?>
     64
    6565                                        <?php if ( function_exists( 'bp_has_activities' ) && bp_group_is_visible() ) : ?>
    66                                                                                        
     66
    6767                                                <?php if ( bp_has_activities( 'object=groups&primary_id=' . bp_get_group_id() . '&max=150&per_page=5' ) ) : ?>
    6868
    … …  
    7171                                                        <div class="bp-widget">
    7272                                                                <h4><?php _e( 'Group Activity', 'buddypress' ); ?></h4>
    73                                                                
     73
    7474                                                                <div class="pagination">
    7575                                                                        <div class="pag-count" id="activity-count">
    7676                                                                                <?php bp_activity_pagination_count() ?>
    7777                                                                        </div>
    78                
     78
    7979                                                                        <div class="pagination-links" id="activity-pag">
    8080                                                                                &nbsp; <?php bp_activity_pagination_links() ?>
    … …  
    8888                                                                                        <?php bp_activity_avatar() ?>
    8989                                                                                </div>
    90                                                
     90
    9191                                                                                <?php bp_activity_content() ?>
    9292                                                                        </li>
    … …  
    9595
    9696                                                        </div>
    97                                                        
     97
    9898                                                        <?php do_action( 'bp_after_group_activity' ) ?>
    99                                                        
    100                                                 <?php endif; ?> 
    101                                                
    102                                         <?php endif; ?>
    103                        
     99
     100                                                <?php endif; ?>
     101
     102                                        <?php endif; ?>
     103
    104104                                        <?php if ( bp_group_is_visible() && bp_group_is_forum_enabled() && function_exists( 'bp_forums_setup') ) : ?>
    105                                                
     105
    106106                                                <?php do_action( 'bp_before_group_active_topics' ) ?>
    107                                                
     107
    108108                                                <div class="bp-widget">
    109109                                                        <h4><?php _e( 'Recently Active Topics', 'buddypress' ); ?> <span><a href="<?php bp_group_forum_permalink() ?>"><?php _e( 'See All', 'buddypress' ) ?> &rarr;</a></span></h4>
    110                                
     110
    111111                                                        <?php if ( bp_has_topics( 'no_stickies=true&max=5&per_page=5' ) ) : ?>
    112                                                                                                                                        
     112
    113113                                                                <ul id="forum-topic-list" class="item-list">
    114114                                                                        <?php while ( bp_topics() ) : bp_the_topic(); ?>
    115                                                                        
     115
    116116                                                                                <li>
    117117                                                                                        <a class="topic-avatar" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"><?php bp_the_topic_last_poster_avatar( 'width=30&height=30') ?></a>
    118                                                                                         <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"><?php bp_the_topic_title() ?></a> 
     118                                                                                        <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"><?php bp_the_topic_title() ?></a>
    119119                                                                                        <span class="small topic-meta">(<?php bp_the_topic_total_post_count() ?> &rarr; <?php bp_the_topic_time_since_last_post() ?> ago)</span>
    120120                                                                                        <span class="small latest topic-excerpt"><?php bp_the_topic_latest_post_excerpt() ?></span>
    121                                                                                
     121
    122122                                                                                        <?php do_action( 'bp_group_active_topics_item' ) ?>
    123123                                                                                </li>
    124                                                                        
     124
    125125                                                                        <?php endwhile; ?>
    126126                                                                </ul>
    127                                                                
     127
    128128                                                        <?php else: ?>
    129129
    … …  
    133133
    134134                                                        <?php endif;?>
    135                                        
    136                                                 </div>
    137                                                
     135
     136                                                </div>
     137
    138138                                                <?php do_action( 'bp_after_group_active_topics' ) ?>
    139                                                
    140                                         <?php endif; ?>
    141                
     139
     140                                        <?php endif; ?>
     141
    142142                                        <?php if ( bp_group_is_visible() ) : ?>
    143                                                
     143
    144144                                                <?php do_action( 'bp_before_group_member_widget' ) ?>
    145                                                
     145
    146146                                                <div class="bp-widget">
    147147                                                        <h4><?php printf( __( 'Members (%d)', 'buddypress' ), bp_get_group_total_members() ); ?> <span><a href="<?php bp_group_all_members_permalink() ?>"><?php _e( 'See All', 'buddypress' ) ?> &rarr;</a></span></h4>
    148148
    149149                                                        <?php if ( bp_group_has_members( 'max=5&exclude_admins_mods=0' ) ) : ?>
    150                                                
     150
    151151                                                                <ul class="horiz-gallery">
    152152                                                                        <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    153                                                                        
     153
    154154                                                                                <li>
    155155                                                                                        <a href="<?php bp_group_member_url() ?>"><?php bp_group_member_avatar_thumb() ?></a>
    … …  
    158158                                                                        <?php endwhile; ?>
    159159                                                                </ul>
    160                                                                
     160
    161161                                                        <?php endif; ?>
    162                                                        
    163                                                 </div>
    164                                                
     162
     163                                                </div>
     164
    165165                                                <?php do_action( 'bp_after_group_member_widget' ) ?>
    166                                                
    167                                         <?php endif; ?>
    168                        
     166
     167                                        <?php endif; ?>
     168
    169169                                        <?php do_action( 'groups_custom_group_boxes' ) ?>
    170                
     170
    171171                                        <?php if ( bp_group_is_visible() && bp_group_is_wire_enabled() ) : ?>
    172                                                
     172
    173173                                                <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
    174                                                        
     174
    175175                                                        <?php do_action( 'bp_before_group_wire_widget' ) ?>
    176                                                        
     176
    177177                                                        <?php bp_wire_get_post_list( bp_get_group_id(), __( 'Group Wire', 'buddypress' ), sprintf( __( 'There are no wire posts for %s', 'buddypress' ), bp_get_group_name() ), bp_group_is_member(), true ) ?>
    178                                                
     178
    179179                                                        <?php do_action( 'bp_after_group_wire_widget' ) ?>
    180                                                        
     180
    181181                                                <?php endif; ?>
    182                                        
    183                                         <?php endif; ?>
    184                
     182
     183                                        <?php endif; ?>
     184
    185185                                </div>
    186                                
     186
    187187                        </div>
    188188
    … …  
    190190
    191191                <?php endwhile; else: ?>
    192                        
     192
    193193                        <div id="message" class="error">
    194194                                <p><?php _e("Sorry, the group does not exist.", "buddypress"); ?></p>
    195195                        </div>
    196                        
     196
    197197                <?php endif;?>
    198198
Note: See TracChangeset for help on using the changeset viewer.