Skip to:
Content

BuddyPress.org

Changeset 541


Ignore:
Timestamp:
11/13/2008 11:21:58 PM (18 years ago)
Author:
apeatling
Message:

Theme updates to support revision 540.

Location:
trunk/buddypress-theme/buddypress-member
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/buddypress-member/groups/admin/manage-members.php

    r483 r541  
     1<?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
     2
     3<div class="content-header">
     4        <ul class="content-header-nav">
     5                <?php bp_group_admin_tabs(); ?>
     6        </ul>
     7</div>
     8
     9<div id="content">     
     10       
     11                <h2>Manage Members</h2>
     12               
     13                <?php do_action( 'template_notices' ) // (error/success feedback) ?>
     14                       
     15                        <div class="info-group">
     16                                <h4>Administrators</h4>
     17                                <?php bp_group_admin_memberlist( true ) ?>
     18                        </div>
     19                       
     20                        <?php if ( bp_group_has_moderators() ) : ?>
     21                        <div class="info-group">
     22                                <h4>Moderators</h4>
     23                                <?php bp_group_mod_memberlist( true ) ?>
     24                        </div>
     25                        <?php endif; ?>
     26                       
     27                        <div class="info-group">
     28                                <h4>Members</h4>
     29                               
     30                                <form action="<?php bp_group_admin_form_action('manage-members') ?>" name="group-members-form" id="group-members-form" class="standard-form" method="post">
     31                                <?php if ( bp_group_has_members( false, 5, true, false ) ) : ?>
     32                               
     33                                        <?php if ( bp_group_member_needs_pagination() ) : ?>
     34                                                <div id="member-count" class="pag-count">
     35                                                        <?php bp_group_member_pagination_count() ?>
     36                                                </div>
     37
     38                                                <div id="member-admin-pagination" class="pagination-links">
     39                                                        <?php bp_group_member_admin_pagination() ?>
     40                                                </div>
     41                                        <?php endif; ?>
     42                               
     43                                        <ul id="members-list" class="item-list single-line">
     44                                        <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
     45                                                <?php if ( bp_group_member_is_banned() ) : ?>
     46                                                        <li class="banned-user">
     47                                                                <?php bp_group_member_avatar_mini() ?>
     48
     49                                                                <h5><?php bp_group_member_link() ?> (banned) <span class="small"> &mdash; <a href="<?php bp_group_member_unban_link() ?>" title="Kick and ban this member">Remove Ban</a> </h5>
     50                                                <?php else : ?>
     51                                                        <li>
     52                                                                <?php bp_group_member_avatar_mini() ?>
     53                                                                <h5><?php bp_group_member_link() ?>  <span class="small"> &mdash; <a href="<?php bp_group_member_ban_link() ?>" title="Kick and ban this member">Kick &amp; Ban</a> | <a href="<?php bp_group_member_promote_link() ?>" title="Promote this member">Promote to Moderator</a></span></h5>
     54
     55                                                <?php endif; ?>
     56                                                        </li>
     57                                        <?php endwhile; ?>
     58                                        </ul>
     59                                <?php else: ?>
     60
     61                                        <div id="message" class="info">
     62                                                <p>This group has no members.</p>
     63                                        </div>
     64
     65                                <?php endif;?>
     66                       
     67                                <input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id() ?>" />
     68                                </form>
     69                        </div>
     70</div>
     71
     72<?php endwhile; endif; ?>
  • trunk/buddypress-theme/buddypress-member/groups/forum.php

    r395 r541  
    1010
    1111                <?php bp_group_join_button() ?>
    12 
     12               
    1313                <div class="info-group">
    1414                        <h4>Admins</h4>
    1515                        <?php bp_group_list_admins() ?>
    1616                </div>
     17               
     18                <?php if ( bp_group_has_moderators() ) : ?>
     19                <div class="info-group">
     20                        <h4>Mods</h4>
     21                        <?php bp_group_list_mods() ?>
     22                </div>
     23                <?php endif; ?>
    1724        </div>
    1825
    1926        <div class="main-column">
     27                <div class="inner-tube">
     28                       
     29                        <div id="group-name">
     30                                <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
     31                                <p class="status"><?php bp_group_type() ?></p>
     32                        </div>
    2033
    21                 <div id="group-name">
    22                         <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
    23                         <p class="status"><?php bp_group_type() ?></p>
     34                        <div class="info-group">
     35                                <h4>Forum</h4>
     36                                <h3>A bbPress forum for the group will go here in the next version.</h3>
     37                        </div>
     38               
    2439                </div>
    25 
    26                 <div class="info-group">
    27                         <h4>Forum</h4>
    28                         <h3>A bbPress forum for the group will go here in the next version.</h3>
    29                 </div>
    30                
    3140        </div>
    3241       
  • trunk/buddypress-theme/buddypress-member/groups/group-finder.php

    r537 r541  
    2323                </div>
    2424               
    25                 <div id="group-loop">
    2625                <?php load_template( TEMPLATEPATH . '/groups/group-loop.php') ?>
    27                 </div>
    2826               
    2927        </div>
  • trunk/buddypress-theme/buddypress-member/groups/group-home.php

    r503 r541  
    1717                        <?php bp_group_list_admins() ?>
    1818                </div>
     19               
     20                <?php if ( bp_group_has_moderators() ) : ?>
     21                <div class="info-group">
     22                        <h4>Mods</h4>
     23                        <?php bp_group_list_mods() ?>
     24                </div>
     25                <?php endif; ?>
    1926        </div>
    2027
    2128        <div class="main-column">
     29                <div class="inner-tube">
     30                       
     31                        <div id="group-name">
     32                                <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
     33                                <p class="status"><?php bp_group_type() ?></p>
     34                        </div>
    2235               
    23                 <div id="group-name">
    24                         <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
    25                         <p class="status"><?php bp_group_type() ?></p>
     36                        <?php if ( !bp_group_is_visible() ) : ?>
     37                                <div id="message" class="info">
     38                                        <p><?php bp_group_status_message() ?></p>
     39                                </div>
     40                        <?php endif;?>
     41               
     42                        <div class="info-group">
     43                                <h4>Description</h4>
     44                                <p><?php bp_group_description() ?></p>
     45                        </div>
     46               
     47                        <?php if ( bp_group_is_visible() ) : ?>
     48                                <div class="info-group">
     49                                        <h4>News</h4>
     50                                        <p><?php bp_group_news() ?></p>
     51                                </div>
     52                        <?php endif; ?>
     53               
     54                        <?php if ( bp_group_is_visible() ) : ?>
     55                                <div class="info-group">
     56                                        <h4>Members <a href="<?php bp_group_all_members_permalink() ?>">See All &raquo;</a></h4>
     57                                        <?php bp_group_random_members() ?>
     58                                </div>
     59                        <?php endif; ?>
     60               
     61                        <?php if ( bp_group_is_visible() ) : ?>
     62                                <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
     63                                        <?php bp_wire_get_post_list( bp_group_id(false), 'Group Wire', 'The are no wire posts for ' . bp_group_name(false), bp_group_is_member(), true ) ?>
     64                                <?php endif; ?>
     65                        <?php endif; ?>
     66               
    2667                </div>
    27                
    28                 <?php if ( !bp_group_is_visible() ) : ?>
    29                         <div id="message" class="info">
    30                                 <p><?php bp_group_status_message() ?></p>
    31                         </div>
    32                 <?php endif;?>
    33                
    34                 <div class="info-group">
    35                         <h4>Description</h4>
    36                         <p><?php bp_group_description() ?></p>
    37                 </div>
    38                
    39                 <?php if ( bp_group_is_visible() ) : ?>
    40                         <div class="info-group">
    41                                 <h4>News</h4>
    42                                 <p><?php bp_group_news() ?></p>
    43                         </div>
    44                 <?php endif; ?>
    45                
    46                 <?php if ( bp_group_is_visible() ) : ?>
    47                         <div class="info-group">
    48                                 <h4>Members <a href="<?php bp_group_all_members_permalink() ?>">See All &raquo;</a></h4>
    49                                 <?php bp_group_random_members() ?>
    50                         </div>
    51                 <?php endif; ?>
    52                
    53                 <?php if ( bp_group_is_visible() ) : ?>
    54                         <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
    55                                 <?php bp_wire_get_post_list( bp_group_id(false), 'Group Wire', 'The are no wire posts for ' . bp_group_name(false), bp_group_is_member(), true ) ?>
    56                         <?php endif; ?>
    57                 <?php endif; ?>
    58                
     68
    5969        <?php endwhile; else: ?>
    6070                <div id="message" class="error">
  • trunk/buddypress-theme/buddypress-member/groups/group-loop.php

    r537 r541  
     1<div id="group-loop">
    12<?php if ( bp_has_groups() ) : ?>
    23        <div class="pagination-links" id="<?php bp_group_pag_id() ?>">
     
    2930
    3031<?php endif;?>
     32</div>
  • trunk/buddypress-theme/buddypress-member/groups/leave-group-confirm.php

    r395 r541  
    1010
    1111                <?php bp_group_join_button() ?>
    12 
     12               
    1313                <div class="info-group">
    1414                        <h4>Admins</h4>
    1515                        <?php bp_group_list_admins() ?>
    1616                </div>
     17               
     18                <?php if ( bp_group_has_moderators() ) : ?>
     19                <div class="info-group">
     20                        <h4>Mods</h4>
     21                        <?php bp_group_list_mods() ?>
     22                </div>
     23                <?php endif; ?>
    1724        </div>
    1825
    1926        <div class="main-column">
     27                <div class="inner-tube">
    2028
    21                 <div id="group-name">
    22                         <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
    23                         <p class="status"><?php bp_group_type() ?></p>
     29                        <div id="group-name">
     30                                <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
     31                                <p class="status"><?php bp_group_type() ?></p>
     32                        </div>
     33
     34                        <div class="info-group">
     35                                <h4>Confirm Leave Group</h4>
     36                                <h3>Are you sure you want to leave this group?</h3>
     37       
     38                                <p>
     39                                        <a href="<?php bp_group_leave_confirm_link() ?>">Yes, I'd like to leave this group.</a> |
     40                                        <a href="<?php bp_group_leave_reject_link() ?>">No, I'll stay!</a>
     41                                </p>
     42                        </div>
     43               
    2444                </div>
    25 
    26                 <div class="info-group">
    27                         <h4>Confirm Leave Group</h4>
    28                         <h3>Are you sure you want to leave this group?</h3>
    29        
    30                         <p>
    31                                 <a href="<?php bp_group_leave_confirm_link() ?>">Yes, I'd like to leave this group.</a> |
    32                                 <a href="<?php bp_group_leave_reject_link() ?>">No, I'll stay!</a>
    33                         </p>
    34                 </div>
    35                
    3645        </div>
    3746       
  • trunk/buddypress-theme/buddypress-member/groups/list-members.php

    r533 r541  
    88        <div class="left-menu">
    99                <?php bp_group_avatar() ?>
    10 
     10               
    1111                <?php bp_group_join_button() ?>
    12 
     12               
    1313                <div class="info-group">
    1414                        <h4>Admins</h4>
    1515                        <?php bp_group_list_admins() ?>
    1616                </div>
     17               
     18                <?php if ( bp_group_has_moderators() ) : ?>
     19                <div class="info-group">
     20                        <h4>Mods</h4>
     21                        <?php bp_group_list_mods() ?>
     22                </div>
     23                <?php endif; ?>
    1724        </div>
    1825
    1926        <div class="main-column">
     27                <div class="inner-tube">
     28                       
     29                        <div id="group-name">
     30                                <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
     31                                <p class="status"><?php bp_group_type() ?></p>
     32                        </div>
     33               
     34                        <div class="info-group">
     35                                <h4>Administrators</h4>
     36                                <?php bp_group_admin_memberlist() ?>
     37                        </div>
     38               
     39                        <?php if ( bp_group_has_moderators() ) : ?>
     40                        <div class="info-group">
     41                                <h4>Moderators</h4>
     42                                <?php bp_group_mod_memberlist() ?>
     43                        </div>
     44                        <?php endif; ?>
    2045
    21                 <div id="group-name">
    22                         <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
    23                         <p class="status"><?php bp_group_type() ?></p>
    24                 </div>
     46                        <div class="info-group">
     47                                <h4>Group Members</h4>
     48                       
     49                                <form action="<?php bp_group_form_action('members') ?>" method="post" id="group-members-form">
     50                                <?php if ( bp_group_has_members() ) : ?>
     51                               
     52                                        <?php if ( bp_group_member_needs_pagination() ) : ?>
     53                                                <div id="member-count" class="pag-count">
     54                                                        <?php bp_group_member_pagination_count() ?>
     55                                                </div>
    2556
    26                 <div class="info-group">
    27                         <h4>Group Members</h4>
    28                        
    29                         <form action="<?php bp_group_form_action('members') ?>" method="post" id="group-members-form">
    30                         <?php if ( bp_group_has_members() ) : ?>
     57                                                <div id="member-pagination" class="pagination-links">
     58                                                        <?php bp_group_member_pagination() ?>
     59                                                </div>
     60                                        <?php endif; ?>
    3161                               
    32                                 <?php if ( bp_group_member_needs_pagination() ) : ?>
    33                                         <div id="member-count" class="pag-count">
    34                                                 <?php bp_group_member_pagination_count() ?>
     62                                        <ul id="member-list" class="item-list">
     63                                        <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
     64                                                <li>
     65                                                        <?php bp_group_member_avatar() ?>
     66                                                        <h5><?php bp_group_member_link() ?></h5>
     67                                                        <span class="activity"><?php bp_group_member_joined_since() ?></span>
     68                                               
     69                                                        <?php if ( function_exists( 'friends_install' ) ) : ?>
     70                                                                <div class="action">
     71                                                                        <?php bp_add_friend_button( bp_group_member_id() ) ?>
     72                                                                </div>
     73                                                        <?php endif; ?>
     74                                                </li>
     75                                        <?php endwhile; ?>
     76                                        </ul>
     77                                <?php else: ?>
     78
     79                                        <div id="message" class="info">
     80                                                <p>This group has no members.</p>
    3581                                        </div>
    3682
    37                                         <div id="member-pagination" class="pagination-links">
    38                                                 <?php bp_group_member_pagination() ?>
    39                                         </div>
    40                                 <?php endif; ?>
    41                                
    42                                 <ul id="member-list" class="item-list">
    43                                 <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    44                                         <li>
    45                                                 <?php bp_group_member_avatar() ?>
    46                                                 <h5><?php bp_group_member_link() ?></h5>
    47                                                 <span class="activity"><?php bp_group_member_joined_since() ?></span>
    48                                                
    49                                                 <?php if ( function_exists( 'friends_install' ) ) : ?>
    50                                                         <div class="action">
    51                                                                 <?php bp_add_friend_button( bp_group_member_id() ) ?>
    52                                                         </div>
    53                                                 <?php endif; ?>
    54                                         </li>
    55                                 <?php endwhile; ?>
    56                                 </ul>
    57                         <?php else: ?>
    58 
    59                                 <div id="message" class="info">
    60                                         <p>This group has no members.</p>
    61                                 </div>
    62 
    63                         <?php endif;?>
     83                                <?php endif;?>
    6484                       
    65                         <input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id() ?>" />
    66                         </form>
     85                                <input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id() ?>" />
     86                                </form>
     87                        </div>
     88               
    6789                </div>
    6890       
  • trunk/buddypress-theme/buddypress-member/groups/wire.php

    r488 r541  
    1212
    1313                <?php bp_group_join_button() ?>
    14 
     14               
    1515                <div class="info-group">
    1616                        <h4>Admins</h4>
    1717                        <?php bp_group_list_admins() ?>
    1818                </div>
     19               
     20                <?php if ( bp_group_has_moderators() ) : ?>
     21                <div class="info-group">
     22                        <h4>Mods</h4>
     23                        <?php bp_group_list_mods() ?>
     24                </div>
     25                <?php endif; ?>
    1926        </div>
    2027
    2128        <div class="main-column">
     29                <div class="inner-tube">
     30                       
     31                        <div id="group-name">
     32                                <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
     33                                <p class="status"><?php bp_group_type() ?></p>
     34                        </div>
    2235
    23                 <div id="group-name">
    24                         <h1><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h1>
    25                         <p class="status"><?php bp_group_type() ?></p>
     36                        <div class="info-group">
     37                                <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
     38                                        <?php bp_wire_get_post_list( bp_group_id(false), 'Group Wire', 'The are no wire posts for ' . bp_group_name(false), bp_group_is_member(), true ) ?>
     39                                <?php endif; ?>
     40                        </div>
     41                       
    2642                </div>
    27 
    28                 <div class="info-group">
    29                         <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
    30                                 <?php bp_wire_get_post_list( bp_group_id(false), 'Group Wire', 'The are no wire posts for ' . bp_group_name(false), bp_group_is_member(), true ) ?>
    31                         <?php endif; ?>
    32                 </div>
    33        
    3443        </div>
    3544       
  • trunk/buddypress-theme/buddypress-member/profile/index.php

    r447 r541  
    1515
    1616        <div class="main-column">
    17                 <?php bp_get_profile_header() ?>
     17                <div class="inner-tube">
     18                        <?php bp_get_profile_header() ?>
    1819               
    19                 <?php if ( function_exists('xprofile_get_profile') ) : ?>
    20                         <?php xprofile_get_profile() ?>
    21                 <?php else : ?>
    22                         <?php bp_core_get_wp_profile() ?>
    23                 <?php endif; ?>
     20                        <?php if ( function_exists('xprofile_get_profile') ) : ?>
     21                                <?php xprofile_get_profile() ?>
     22                        <?php else : ?>
     23                                <?php bp_core_get_wp_profile() ?>
     24                        <?php endif; ?>
    2425               
    25                 <?php if ( function_exists('bp_activity_get_list') ) : ?>
    26                         <?php bp_activity_get_list( bp_current_user_id(), bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ), bp_word_or_name( __( "You haven't done anything recently.", 'buddypress' ), __( "%s has not done anything recently.", 'buddypress' ), true, false ), 5 ) ?>
    27                 <?php endif; ?>
     26                        <?php if ( function_exists('bp_activity_get_list') ) : ?>
     27                                <?php bp_activity_get_list( bp_current_user_id(), bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ), bp_word_or_name( __( "You haven't done anything recently.", 'buddypress' ), __( "%s has not done anything recently.", 'buddypress' ), true, false ), 5 ) ?>
     28                        <?php endif; ?>
    2829               
    29                 <?php if ( function_exists('bp_groups_random_groups') ) : ?>
    30                         <?php bp_groups_random_groups() ?>
    31                 <?php endif; ?>
     30                        <?php if ( function_exists('bp_groups_random_groups') ) : ?>
     31                                <?php bp_groups_random_groups() ?>
     32                        <?php endif; ?>
    3233               
    33                 <?php if ( function_exists('bp_friends_random_friends') ) : ?>
    34                         <?php bp_friends_random_friends() ?>
    35                 <?php endif; ?>
     34                        <?php if ( function_exists('bp_friends_random_friends') ) : ?>
     35                                <?php bp_friends_random_friends() ?>
     36                        <?php endif; ?>
    3637
    37                 <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
    38                         <?php bp_wire_get_post_list( bp_current_user_id(), bp_word_or_name( __( "My Wire", 'buddypress' ), __( "%s's Wire", 'buddypress' ), true, false ), bp_word_or_name( __( "No one has posted to your wire yet.", 'buddypress' ), __( "No one has posted to %s's wire yet.", 'buddypress' ), true, false), bp_profile_wire_can_post() ) ?>
    39                 <?php endif; ?>
     38                        <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
     39                                <?php bp_wire_get_post_list( bp_current_user_id(), bp_word_or_name( __( "My Wire", 'buddypress' ), __( "%s's Wire", 'buddypress' ), true, false ), bp_word_or_name( __( "No one has posted to your wire yet.", 'buddypress' ), __( "No one has posted to %s's wire yet.", 'buddypress' ), true, false), bp_profile_wire_can_post() ) ?>
     40                        <?php endif; ?>
     41                </div>
    4042        </div>
    4143
  • trunk/buddypress-theme/buddypress-member/style.css

    r533 r541  
    5959}
    6060        .info-group div.clear {
    61                 clear: left;
     61                clear: both;
    6262        }
    6363
    6464input, select, textarea { width: 100%; }
     65
     66.inner-tube {
     67        float: right;
     68        width: 100%;
     69}
    6570
    6671/**************************
     
    324329
    325330        #main #content {
     331                position: relative;
    326332                padding: 2em 3em;
    327333        }
     
    343349                        float: left;
    344350                        width: 158px;
    345                         margin-bottom: 1em;
    346351                }
    347352       
     
    969974        }
    970975
    971         ul#group-list li, ul#member-list li, ul#blog-list li, ul#comment-list li {
     976        ul#group-list li, ul#member-list li, ul#blog-list li, ul#comment-list li, ul.item-list li {
    972977                position: relative;
    973978                background: url(images/message_thread_back.gif) top left repeat-x;
     
    975980                min-height: 60px;
    976981        }
    977                
    978         #group-list li img.avatar, #member-list li img.avatar {
     982                ul.item-list li.banned-user img.avatar {
     983                        border-color: red !important;
     984                }
     985                        ul.item-list li.banned-user a { color: red; }
     986               
     987        #group-list li img.avatar, #member-list li img.avatar, ul.item-list li img.avatar {
    979988                float: left;
    980989                margin: 0 1em 0 0;
    981990        }
    982                 #group-list li span.small, #member-list li span.small, #comment-list li span.small {
     991                #group-list li span.small, #member-list li span.small, #comment-list li span.small, ul.item-list li span.small {
    983992                        font-size: 0.95em;
    984993                        color: #888;
    985994                }
    986                
    987                 #group-list p.desc {
     995                        h5 span.small a { color: #888; text-decoration: underline; }
     996               
     997                #group-list p.desc, ul.item-list p.desc {
    988998                        margin-left: 70px;
    989999                        font-size: 0.9em;
     
    9911001                        .invites p.desc { width: 45%; }
    9921002               
    993                 #group-list .action, #member-list .action {
     1003                #group-list .action, #member-list .action, .item-list .action {
    9941004                        position: absolute;
    9951005                        top: 30%;
    9961006                        right: 1em;
    9971007                }
     1008       
     1009       
     1010       
     1011        .single-line li {
     1012                min-height: 35px !important;   
     1013        }
    9981014               
    9991015        #group-admins img.avatar {
     
    10131029                letter-spacing: 0.5px;
    10141030        }
    1015                
     1031       
     1032        .mods-list li {
     1033                padding-bottom: 15px;
     1034        }
    10161035               
    10171036/**** WIRE ***********************/
Note: See TracChangeset for help on using the changeset viewer.