- Timestamp:
- 11/02/2009 06:56:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-themes/bp-sn-parent/groups/single/home.php
r2014 r2076 4 4 5 5 </div> 6 6 7 7 <div id="content"> 8 8 9 9 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 10 10 … … 12 12 13 13 <?php do_action( 'bp_before_group_content' ) ?> 14 14 15 15 <div class="left-menu"> 16 16 <?php locate_template( array( 'groups/single/menu.php' ), true ) ?> … … 21 21 22 22 <?php do_action( 'bp_before_group_name' ) ?> 23 23 24 24 <div id="group-name"> 25 25 <h1><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></h1> 26 26 <p class="status"><?php bp_group_type() ?></p> 27 27 </div> 28 28 29 29 <?php do_action( 'bp_after_group_name' ) ?> 30 30 31 31 <?php if ( !bp_group_is_visible() ) : ?> 32 32 33 33 <?php do_action( 'bp_before_group_status_message' ) ?> 34 34 35 35 <div id="message" class="info"> 36 36 <p><?php bp_group_status_message() ?></p> 37 37 </div> 38 38 39 39 <?php do_action( 'bp_after_group_status_message' ) ?> 40 41 <?php endif; ?> 42 40 41 <?php endif; ?> 42 43 43 <?php do_action( 'bp_before_group_description' ) ?> 44 44 45 45 <div class="bp-widget"> 46 46 <h4><?php _e( 'Description', 'buddypress' ); ?></h4> 47 47 <p><?php bp_group_description() ?></p> 48 48 </div> 49 49 50 50 <?php do_action( 'bp_after_group_description' ) ?> 51 51 52 52 <?php if ( bp_group_is_visible() && bp_group_has_news() ) : ?> 53 53 54 54 <?php do_action( 'bp_before_group_news' ) ?> 55 55 56 56 <div class="bp-widget"> 57 57 <h4><?php _e( 'News', 'buddypress' ); ?></h4> 58 58 <p><?php bp_group_news() ?></p> 59 59 </div> 60 60 61 61 <?php do_action( 'bp_after_group_news' ) ?> 62 63 <?php endif; ?> 64 62 63 <?php endif; ?> 64 65 65 <?php if ( function_exists( 'bp_has_activities' ) && bp_group_is_visible() ) : ?> 66 66 67 67 <?php if ( bp_has_activities( 'object=groups&primary_id=' . bp_get_group_id() . '&max=150&per_page=5' ) ) : ?> 68 68 … … 71 71 <div class="bp-widget"> 72 72 <h4><?php _e( 'Group Activity', 'buddypress' ); ?></h4> 73 73 74 74 <div class="pagination"> 75 75 <div class="pag-count" id="activity-count"> 76 76 <?php bp_activity_pagination_count() ?> 77 77 </div> 78 78 79 79 <div class="pagination-links" id="activity-pag"> 80 80 <?php bp_activity_pagination_links() ?> … … 88 88 <?php bp_activity_avatar() ?> 89 89 </div> 90 90 91 91 <?php bp_activity_content() ?> 92 92 </li> … … 95 95 96 96 </div> 97 97 98 98 <?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 104 104 <?php if ( bp_group_is_visible() && bp_group_is_forum_enabled() && function_exists( 'bp_forums_setup') ) : ?> 105 105 106 106 <?php do_action( 'bp_before_group_active_topics' ) ?> 107 107 108 108 <div class="bp-widget"> 109 109 <h4><?php _e( 'Recently Active Topics', 'buddypress' ); ?> <span><a href="<?php bp_group_forum_permalink() ?>"><?php _e( 'See All', 'buddypress' ) ?> →</a></span></h4> 110 110 111 111 <?php if ( bp_has_topics( 'no_stickies=true&max=5&per_page=5' ) ) : ?> 112 112 113 113 <ul id="forum-topic-list" class="item-list"> 114 114 <?php while ( bp_topics() ) : bp_the_topic(); ?> 115 115 116 116 <li> 117 117 <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> 119 119 <span class="small topic-meta">(<?php bp_the_topic_total_post_count() ?> → <?php bp_the_topic_time_since_last_post() ?> ago)</span> 120 120 <span class="small latest topic-excerpt"><?php bp_the_topic_latest_post_excerpt() ?></span> 121 121 122 122 <?php do_action( 'bp_group_active_topics_item' ) ?> 123 123 </li> 124 124 125 125 <?php endwhile; ?> 126 126 </ul> 127 127 128 128 <?php else: ?> 129 129 … … 133 133 134 134 <?php endif;?> 135 136 </div> 137 135 136 </div> 137 138 138 <?php do_action( 'bp_after_group_active_topics' ) ?> 139 140 <?php endif; ?> 141 139 140 <?php endif; ?> 141 142 142 <?php if ( bp_group_is_visible() ) : ?> 143 143 144 144 <?php do_action( 'bp_before_group_member_widget' ) ?> 145 145 146 146 <div class="bp-widget"> 147 147 <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' ) ?> →</a></span></h4> 148 148 149 149 <?php if ( bp_group_has_members( 'max=5&exclude_admins_mods=0' ) ) : ?> 150 150 151 151 <ul class="horiz-gallery"> 152 152 <?php while ( bp_group_members() ) : bp_group_the_member(); ?> 153 153 154 154 <li> 155 155 <a href="<?php bp_group_member_url() ?>"><?php bp_group_member_avatar_thumb() ?></a> … … 158 158 <?php endwhile; ?> 159 159 </ul> 160 160 161 161 <?php endif; ?> 162 163 </div> 164 162 163 </div> 164 165 165 <?php do_action( 'bp_after_group_member_widget' ) ?> 166 167 <?php endif; ?> 168 166 167 <?php endif; ?> 168 169 169 <?php do_action( 'groups_custom_group_boxes' ) ?> 170 170 171 171 <?php if ( bp_group_is_visible() && bp_group_is_wire_enabled() ) : ?> 172 172 173 173 <?php if ( function_exists('bp_wire_get_post_list') ) : ?> 174 174 175 175 <?php do_action( 'bp_before_group_wire_widget' ) ?> 176 176 177 177 <?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 179 179 <?php do_action( 'bp_after_group_wire_widget' ) ?> 180 180 181 181 <?php endif; ?> 182 183 <?php endif; ?> 184 182 183 <?php endif; ?> 184 185 185 </div> 186 186 187 187 </div> 188 188 … … 190 190 191 191 <?php endwhile; else: ?> 192 192 193 193 <div id="message" class="error"> 194 194 <p><?php _e("Sorry, the group does not exist.", "buddypress"); ?></p> 195 195 </div> 196 196 197 197 <?php endif;?> 198 198
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)