Skip to:
Content

BuddyPress.org

Changeset 2069


Ignore:
Timestamp:
11/01/2009 09:35:03 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Group avatar upload adjustments. Fix empty avatar src by checking for uploaded avatar first, and show gravatar (or no_grav) if no upload exists.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r2025 r2069  
    9393    $avatar_folder_url = apply_filters( 'bp_core_avatar_folder_url', get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . '/' . basename( WP_CONTENT_DIR ) . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
    9494    $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );   
    95    
     95
     96    /****
     97     * Look for uploaded avatar first. Use it if it exists.
     98     * Set the file names to search for, to select the full size
     99     * or thumbnail image.
     100     */
     101    $avatar_name = ( 'full' == $type ) ? '-bpfull' : '-bpthumb';
     102    $legacy_user_avatar_name = ( 'full' == $type ) ? '-avatar2' : '-avatar1';
     103    $legacy_group_avatar_name = ( 'full' == $type ) ? '-groupavatar-full' : '-groupavatar-thumb';
     104
     105    if ( file_exists( $avatar_folder_dir ) ) {
     106        if ( $av_dir = opendir( $avatar_folder_dir ) ) {
     107            while ( false !== ( $avatar_file = readdir($av_dir) ) ) {
     108                if ( preg_match( "/{$avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_user_avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_group_avatar_name}/", $avatar_file ) )
     109                    $avatar_url = $avatar_folder_url . '/' . $avatar_file;
     110            }
     111        }
     112        closedir($av_dir);
     113
     114        if ( $avatar_url )
     115            return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
     116    }
     117
    96118    /* If no avatars have been uploaded for this item, display a gravatar */   
    97     if ( !file_exists( $avatar_folder_dir ) && !$no_grav ) {
     119    if ( !file_exists( $avatar_url ) && !$no_grav ) {
    98120       
    99121        if ( empty( $bp->grav_default->{$object} ) )
     
    120142        return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
    121143   
    122     } else if ( !file_exists( $avatar_folder_dir ) && $no_grav )
    123         return false;
    124    
    125     /* Set the file names to search for to select the full size or thumbnail image. */
    126     $avatar_name = ( 'full' == $type ) ? '-bpfull' : '-bpthumb';   
    127     $legacy_user_avatar_name = ( 'full' == $type ) ? '-avatar2' : '-avatar1';   
    128     $legacy_group_avatar_name = ( 'full' == $type ) ? '-groupavatar-full' : '-groupavatar-thumb';   
    129    
    130     if ( $av_dir = opendir( $avatar_folder_dir ) ) {
    131         while ( false !== ( $avatar_file = readdir($av_dir) ) ) {
    132             if ( preg_match( "/{$avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_user_avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_group_avatar_name}/", $avatar_file ) )
    133                 $avatar_url = $avatar_folder_url . '/' . $avatar_file;
    134         }
    135     }
    136     closedir($av_dir);
    137 
    138     return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
     144    } else if ( !file_exists( $avatar_url ) && $no_grav )
     145        return false;
     146   
    139147}
    140148
  • trunk/bp-core/bp-core-cssjs.php

    r2025 r2069  
    147147?>
    148148    <style type="text/css">
    149         .jcrop-holder { text-align: left; }
     149        .jcrop-holder { float: left; margin: 0 20px 20px 0; text-align: left; }
    150150        .jcrop-vline, .jcrop-hline { font-size: 0; position: absolute; background: white top left repeat url( <?php echo BP_PLUGIN_URL ?>/bp-core/images/Jcrop.gif ); }
    151151        .jcrop-vline { height: 100%; width: 1px !important; }
     
    157157        #avatar-crop-pane { width: <?php echo BP_AVATAR_FULL_WIDTH ?>px; height: <?php echo BP_AVATAR_FULL_HEIGHT ?>px; overflow: hidden; }
    158158        #avatar-crop-submit { margin: 20px 0; }
    159         #avatar-upload-form img { border: none !important; }
     159        #avatar-upload-form img, #create-group-form img, #group-settings-form img { border: none !important; }
    160160    </style>
    161161<?php
  • trunk/bp-themes/bp-default/_inc/css/screen.css

    r1991 r2069  
    88}
    99
    10 a { 
    11     color: #f7740a; 
     10a {
     11    color: #f7740a;
    1212    text-decoration: underline;
    1313}
    1414
    1515a:hover {
    16     color: #555; 
     16    color: #555;
    1717    text-decoration: none;
    1818}
    1919
    20 a.selected { 
    21     color: #555; 
     20a.selected {
     21    color: #555;
    2222    text-decoration: none;
    2323}
     
    6565        padding: 7px 20px;
    6666    }
    67    
     67
    6868    #logout-link img {
    6969        vertical-align: middle;
    7070    }
    71    
     71
    7272    #search-login-bar #rememberme { display: none; }
    7373
     
    8787    }
    8888
    89     #header h1#logo { 
     89    #header h1#logo {
    9090        float: left;
    9191        margin: 20px 0 15px 20px;
    9292        padding: 15px 0;
    9393    }
    94    
     94
    9595    #header h1#logo a {
    9696        font-size: 2em;
     
    100100        display: block;
    101101        text-decoration: none;
    102     } 
    103    
     102    }
     103
    104104    #header ul {
    105105        float: right;
     
    121121                text-decoration: none;
    122122            }
    123            
     123
    124124            #header ul li.selected a {
    125125                background: #fff9df;
     
    154154
    155155/*** Content Header *************************************************************/
    156    
     156
    157157div.content-header {
    158158    font: normal 1em "Georgia", Times, serif;
     
    186186                    text-decoration: none;
    187187                }
    188        
     188
    189189            ul.content-header-nav li span {
    190190                color: #999;
    191191            }
    192    
     192
    193193        ul.content-header-nav li.current {
    194194            background: url(../images/topoption_selected_back.gif) top center no-repeat;
     
    213213        list-style: none;
    214214    }
    215    
     215
    216216    #userbar h3 {
    217217        font: normal 1em "Georgia", Times, serif;
     
    238238        margin: 0.4em 0;
    239239        float: none;
    240     }   
    241    
     240    }
     241
    242242    #userbar p#login-text {
    243243        padding: 0.5em 1em 0 1em;
    244244    }
    245    
     245
    246246        p.avatar img {
    247247            border: 4px solid #fff;
    248248        }
    249249            img#avatar-to-crop { border: none !important; }
    250    
     250
    251251    #userbar form {
    252252        padding: 1em 1.5em 1em 1em;
     
    257257            #userbar form input#userbar_rememberme { width: auto; }
    258258            #userbar form input#wp-submit { width: auto; }
    259    
     259
    260260    #userbar ul#bp-nav {
    261261        width: 149px;
     
    278278                    color: #fff;
    279279                }
    280            
     280
    281281                li a#user-profile, li a#my-profile {
    282282                    background: url(../images/profile_bullet.gif) 88% 52% no-repeat;
     
    287287                li a#user-messages, li a#my-messages {
    288288                    background: url(../images/messages_bullet.gif) 89% 52% no-repeat;
    289                 }           
    290                
     289                }
     290
    291291                li a#user-blogs, li a#my-blogs {
    292292                    background: url(../images/blog_bullet.gif) 87% 52% no-repeat;
     
    294294                    margin-right: 0.85em !important;
    295295                }
    296                
     296
    297297                li a#user-friends, li a#my-friends {
    298298                    background: url(../images/friends_bullet.gif) 87% 52% no-repeat;
     
    300300                    margin-right: 0.85em !important;
    301301                }
    302                
     302
    303303                li a#user-groups, li a#my-groups {
    304304                    background: url(../images/groups_bullet.gif) 88% 52% no-repeat;
     
    306306                    margin-right: 0.85em !important;
    307307                }
    308                
     308
    309309                li a#user-wire, li a#my-wire {
    310310                    background: url(../images/wire_bullet.gif) 88% 52% no-repeat;
     
    318318                    margin-right: 0.85em !important;
    319319                }
    320                
     320
    321321                li a#user-settings, li a#my-settings {
    322                     background: url(../images/settings_bullet.gif) 88% 52% no-repeat;                   
     322                    background: url(../images/settings_bullet.gif) 88% 52% no-repeat;
    323323                }
    324                
     324
    325325                li a#wp-logout {
    326326                    background: url(../images/logout_bullet.gif) 87% 52% no-repeat;
    327327                }
    328                
     328
    329329                li a#group-home, li a#group-wire, li a#group-photos, li a#group-forum,
    330330                li a#group-members, li a#group-invite, li a#group-leave, li a#group-admin
     
    336336                }
    337337                    li a#group-forum {
    338                         background: url(../images/forum_bullet.gif) 88% 52% no-repeat; 
     338                        background: url(../images/forum_bullet.gif) 88% 52% no-repeat;
    339339                    }
    340340
    341341                    li a#group-members {
    342                         background: url(../images/friends_bullet.gif) 87% 52% no-repeat;   
     342                        background: url(../images/friends_bullet.gif) 87% 52% no-repeat;
    343343                    }
    344                    
     344
    345345                    li a#group-invite {
    346                         background: url(../images/invite_bullet.gif) 89% 52% no-repeat; 
     346                        background: url(../images/invite_bullet.gif) 89% 52% no-repeat;
    347347                    }
    348348
    349349                    li a#group-leave {
    350                         background: url(../images/cross_bullet.gif) 88% 52% no-repeat; 
     350                        background: url(../images/cross_bullet.gif) 88% 52% no-repeat;
    351351                    }
    352                    
     352
    353353                    li a#group-wire {
    354354                        background: url(../images/wire_bullet.gif) 88% 52% no-repeat;
    355                     }   
    356                    
     355                    }
     356
    357357                    li a#group-admin {
    358358                        background: url(../images/blogadmin_icon.gif) 87% 52% no-repeat;
    359359                    }
    360                    
     360
    361361                    li a#request-membership {
    362362                        background: url(../images/request_bullet.gif) 87% 25% no-repeat;
     
    373373}
    374374    #optionsbar a { text-decoration: none; }
    375    
     375
    376376    #optionsbar ul {
    377377        margin: 0;
     
    379379        list-style: none;
    380380    }
    381    
     381
    382382    #optionsbar ul li {
    383383        float: none;
    384384        margin-right: 0;
    385385    }
    386    
     386
    387387    #optionsbar p.avatar {
    388388        text-align: center !important;
     
    395395        float: none;
    396396    }
    397    
     397
    398398    #optionsbar h3 {
    399399        font: normal 1em "Georgia", Times, serif;
     
    404404        letter-spacing: 0.5px;
    405405    }
    406    
     406
    407407    #optionsbar ul#options-nav {
    408408        width: 148px;
     
    421421                text-align: right;
    422422            }
    423            
     423
    424424            #optionsbar ul.icons li a {
    425425                padding-right: 3.1em !important;
     
    428428
    429429/*** Internal Page Left Menu / Main Column **************************************/
    430        
     430
    431431.internal-page .left-menu {
    432432    position: relative;
     
    440440    }
    441441    .left-menu h5 { margin: 0; font-size: 1em; }
    442    
     442
    443443    .left-menu div.button-block {
    444444        margin: 20px 0;
    445445    }
    446    
     446
    447447    .left-menu input { width: 90%; }
    448448
     
    475475        .left-menu div.bp-widget h4 {
    476476            background: url(../images/leftmenu_group_header.gif) top left no-repeat;
    477             color: #555;               
     477            color: #555;
    478478        }
    479479
    480480        /* "See All" links in widget headers */
    481481        div.bp-widget h4 span { position: absolute; right: 10px; }
    482        
     482
    483483        div.bp-widget h4 a {
    484484            color: #fff;
    485485            font-weight: normal;
    486486        }
    487        
     487
    488488ul.horiz-gallery {
    489489    list-style: none;
     
    516516        overflow: hidden;
    517517    }
    518    
     518
    519519    ul.item-list img.avatar {
    520520        float: left;
    521521        margin-right: 10px;
    522522    }
    523    
    524     ul.item-list h4, ul.item-list h5, ul.item-list .item-title { 
     523
     524    ul.item-list h4, ul.item-list h5, ul.item-list .item-title {
    525525        font-size: 1em;
    526526        margin: 0 0 4px 0;
    527527    }
    528    
     528
    529529        ul.item-list li .field-data {
    530530            margin-left: 68px;
     
    533533            color: #888;
    534534        }
    535    
     535
    536536    ul.item-list li .desc {
    537537        font-size: 0.9em;
     
    548548}
    549549
    550 div#avatar-crop-pane {
    551     display: none;
    552 }
    553 
    554550div#avatar-crop-submit {
    555551    margin: 20px 0 0 0;
     
    567563        top: 45px;
    568564    }
    569    
     565
    570566.pagination-links {
    571567    text-align: right;
     
    587583        border-bottom: 2px solid #f28935;
    588584    }
    589    
     585
    590586.pag-count {
    591587    font-size: 0.9em;
     
    649645    .accept a { background-image: url(../images/accept_button_side.gif); }
    650646    .reject a { background-image: url(../images/reject_button_side.gif); }
    651    
     647
    652648    .generic-button a:hover {
    653649        color: #555;
    654650        text-decoration: none;
    655651    }
    656    
     652
    657653    .friendship-button a.add {
    658654        background: url(../images/add_button_side.gif) top right no-repeat;
     
    666662        background: url(../images/check_button_side.gif) top right no-repeat;
    667663    }
    668    
     664
    669665    .loading a {
    670         background: url(../images/loading_button_side.gif) top right no-repeat !important;     
     666        background: url(../images/loading_button_side.gif) top right no-repeat !important;
    671667    }
    672668
     
    674670        background: url(../images/add_button_side.gif) top right no-repeat;
    675671    }
    676    
     672
    677673    .group-button a.leave-group {
    678674        background: url(../images/remove_button_side.gif) top right no-repeat;
    679675    }
    680    
     676
    681677    .group-button a.membership-requested {
    682678        background: url(../images/check_button_side.gif) top right no-repeat;
    683679    }
    684    
     680
    685681    .main-column .button-block {
    686682        overflow: hidden;
     
    734730        margin: 10px 0 5px 0;
    735731    }
    736    
     732
    737733    form.standard-form input[type=text] {
    738734        width: 65%;
     
    742738        width: 65%;
    743739    }
    744    
     740
    745741    form.standard-form .checkbox label, form.standard-form .radio label {
    746742        font-weight: normal;
     
    788784        margin-top: 5px !important;
    789785    }
    790    
     786
    791787    .widget ul.item-list li .item-avatar img, img.avatar {
    792788        border: 3px solid #ddd;
    793789    }
    794    
     790
    795791    .widget ul.item-list li h4.item-title {
    796792        font: normal 1.4em "Georgia", Times, serif;
    797         margin: 0 0 7px 0; 
    798     }
    799    
     793        margin: 0 0 7px 0;
     794    }
     795
    800796    .widget_bp_blogs_widget_recent_posts img.avatar {
    801797        width: 50px !important;
    802798        height: 50px !important;
    803     }   
    804    
     799    }
     800
    805801    .widget ul.item-list li .item {
    806802        margin-left: 71px;
     
    809805            margin-left: 31px !important;
    810806        }
    811    
     807
    812808    .widget ul.item-list li .item-meta {
    813809        font: normal 1em "Georgia", Times, serif;
    814810        margin: 10px 0;
    815811    }
    816    
     812
    817813    .widget .item-options {
    818814        text-align: right;
     
    820816        margin: -15px 0 0 0;
    821817    }
    822    
     818
    823819    .widget_bp_core_widget_whos_online .item-avatar {
    824820        float: left;
     
    831827    text-align: right;
    832828}
    833    
     829
    834830.widget-error {
    835831    padding: 10px;
     
    845841    display: inline-block;
    846842    font: normal 0.9em "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif !important;
    847     max-width: 60%; 
     843    max-width: 60%;
    848844}
    849845
     
    881877        cursor: pointer;
    882878    }
    883    
     879
    884880    .widget table#wp-calendar td#today {
    885881        background: #fff9df;
    886882    }
    887    
     883
    888884    .widget table#wp-calendar td.pad {
    889885        background: none;
     
    903899        color: #fff;
    904900    }
    905    
     901
    906902    #second-section .widget h2 {
    907903        background: url(../images/centercol_header_back.gif) top left no-repeat;
     
    960956            padding: 3px 5px;
    961957        }
    962    
     958
    963959        ul#letter-list li a:hover {
    964960            font-weight: bold;
     
    966962            color: #f7740a;
    967963        }
    968        
     964
    969965        ul#letter-list li a.selected {
    970966            font-weight: bold;
     
    986982.post, #comments-template, #compose-reply {
    987983    background: url(../images/item_list_back.gif) top left repeat-x;
    988     padding: 20px 15px; 
     984    padding: 20px 15px;
    989985}
    990986    #comments-section, #compose-reply {
    991987        background: none;
    992988    }
    993    
    994     ol.commentlist { 
    995         list-style: none; 
     989
     990    ol.commentlist {
     991        list-style: none;
    996992        margin: 0;
    997993        padding: 0;
     
    10311027    margin: 10px 0;
    10321028}
    1033    
     1029
    10341030.post span.tags {
    10351031    background: url(../images/tag_icon.gif) center left no-repeat;
     
    11791175
    11801176        .commentlist li.alt { background: #f0f0f0; }
    1181         .commentlist li img.avatar { 
     1177        .commentlist li img.avatar {
    11821178            padding: 0;
    11831179            margin: 0 10px 10px 0;
    11841180            float: left;
    1185            
     1181
    11861182        }
    11871183        .commentlist li.alt img.avatar { border-color: #fff !important; }
    11881184
    1189     .commentmetadata { 
     1185    .commentmetadata {
    11901186        font-size: 0.9em;
    11911187        border-bottom: 1px solid #ddd;
     
    12291225}
    12301226
    1231 #basic-details-section input, #basic-details-section textarea, 
     1227#basic-details-section input, #basic-details-section textarea,
    12321228#profile-details-section input, #profile-details-section textarea,
    12331229input#signup_blog_title {
     
    12641260    font-size: 1.4em;
    12651261}
    1266    
     1262
    12671263
    12681264/*** Component Specific Styles ****************************************************/
     
    12821278}
    12831279    ul#activity-filter-links li#afilter-blogs a {
    1284         background: url(../images/blog_bullet.gif) 20px 4px no-repeat;     
    1285     }
    1286    
     1280        background: url(../images/blog_bullet.gif) 20px 4px no-repeat;
     1281    }
     1282
    12871283    ul#activity-filter-links li#afilter-profile a {
    12881284        background: url(../images/profile_bullet.gif) 0 4px no-repeat;
     
    12921288        background: url(../images/friends_bullet.gif) 0 4px no-repeat;
    12931289    }
    1294    
     1290
    12951291    ul#activity-filter-links li#afilter-groups a {
    12961292        background: url(../images/groups_bullet.gif) 0 4px no-repeat;
    12971293    }
    1298    
     1294
    12991295    ul#activity-filter-links li#afilter-wire a {
    13001296        background: url(../images/wire_bullet.gif) 0 4px no-repeat;
     
    13041300        background: url(../images/status_bullet.gif) 0 4px no-repeat;
    13051301    }
    1306    
     1302
    13071303    .activity-list li div.activity-avatar {
    13081304        position: absolute;
     
    13121308            border-width: 2px;
    13131309        }
    1314        
     1310
    13151311        .internal-page .activity-list li div.activity-avatar img.avatar {
    13161312            border-top-width: 3px !important;
     
    13681364            font-weight: bold;
    13691365        }
    1370        
     1366
    13711367        ul#activity-filter-links li#afilter-clear a {
    13721368            background: url(../images/error_icon.gif) 0 4px no-repeat;
     
    14141410
    14151411/**** BLOGS *****************/
    1416        
     1412
    14171413#blog-info {
    14181414    border-bottom: 1px solid #e1e1e1;
     
    14391435        font: italic 1em Georgia, times, serif;
    14401436    }
    1441    
     1437
    14421438.post span.tags {
    14431439    background: url(../images/tag_icon.gif) center left no-repeat;
     
    14571453    border-bottom: 1px solid #e1e1e1;
    14581454}
    1459        
    1460    
     1455
     1456
    14611457    /*---- Blog Signup Form --------*/
    14621458
     
    14691465            color: #fff;
    14701466        }
    1471    
     1467
    14721468        .suffix_address, .prefix_address {
    14731469            font-size: 1.4em;
     
    14801476            text-align: right;
    14811477        }
    1482    
     1478
    14831479    #setupform input#submit {
    14841480        font-size: 1.4em;
    14851481    }
    1486    
     1482
    14871483/***** FORUMS ***************/
    14881484
     
    14951491        background-image: url( ../images/message_thread_unread_back.gif ) !important;
    14961492    }
    1497    
     1493
    14981494    .closed a.topic-title {
    14991495        background: url( ../images/closed.png ) no-repeat center left;
    15001496        padding: 0 0 0 20px;
    15011497    }
    1502    
    1503     ul#forum-topic-list li span.latest { 
     1498
     1499    ul#forum-topic-list li span.latest {
    15041500        display: block;
    15051501        margin-left: 50px;
    15061502    }
    1507    
     1503
    15081504    ul#forum-topic-list li div.admin-links, ul#topic-post-list li div.admin-links {
    15091505        position: absolute;
     
    15801576        margin: 10px 0 3px 0;
    15811577    }
    1582    
     1578
    15831579    div#edit-post textarea {
    15841580        height: 150px;
     
    16351631        top: -25px;
    16361632    }
    1637    
     1633
    16381634table#global-forum-topic-list {
    16391635    width: 97%;
     
    16431639            background: url( ../images/message_thread_back.gif ) 0 -2px;
    16441640        }
    1645        
     1641
    16461642        table#global-forum-topic-list td {
    16471643            border-top: 1px solid #eee;
     
    16521648                font-size: 0.9em;
    16531649            }
    1654        
     1650
    16551651        table#global-forum-topic-list tr th, table#global-forum-topic-list td.td-postcount,
    1656         table#global-forum-topic-list td.td-freshness { 
     1652        table#global-forum-topic-list td.td-freshness {
    16571653            text-align: center;
    16581654        }
    16591655
    1660        
     1656
    16611657        table#global-forum-topic-list tr th#th-title, table#global-forum-topic-list tr th#th-poster,
    16621658        table#global-forum-topic-list tr th#th-group { text-align: left; }
    1663        
     1659
    16641660        table#global-forum-topic-list tr td, table#global-forum-topic-list tr th {
    16651661            padding: 5px 10px;
    16661662            vertical-align: middle;
    16671663        }
    1668        
     1664
    16691665        table#global-forum-topic-list td.td-freshness {
    16701666            font-size: 0.9em;
    16711667            color: #888;
    16721668        }
    1673        
     1669
    16741670        table#global-forum-topic-list td.td-poster, table#global-forum-topic-list td.td-group  {
    16751671            min-width: 130px;
    16761672        }
    1677        
     1673
    16781674        table#global-forum-topic-list img.avatar { float:left; }
    1679        
     1675
    16801676        table#global-forum-topic-list div.poster-name, table#global-forum-topic-list div.object-name {
    16811677            margin-left: 35px;
     
    16851681        width: 40%;
    16861682    }
    1687    
     1683
    16881684    table#global-forum-topic-list th#th-postcount {
    16891685        width: 1%;
    16901686    }
    1691    
     1687
    16921688    table#global-forum-topic-list td img {
    16931689        vertical-align: middle;
    16941690        margin-right: 4px;
    1695         border-width: 3px !important; 
     1691        border-width: 3px !important;
    16961692    }
    16971693
     
    17091705            float: left;
    17101706        }
    1711        
     1707
    17121708        div.group-forum div.item {
    17131709            margin-left: 70px;
     
    17171713                font-family: Georgia, times, serif;
    17181714            }
    1719            
     1715
    17201716            div.group-forum div.desc {
    17211717                font-size: 0.95em;
     
    17681764        margin-left: 0;
    17691765    }
    1770    
     1766
    17711767    #invite-list { margin-bottom: 25px; }
    1772    
     1768
    17731769    #invite-list ul, ul#friend-list {
    17741770        margin: 0;
    17751771    }
    17761772        #invite-list input { width: auto !important; }
    1777    
     1773
    17781774#create-group-form textarea, #group-settings-form textarea {
    17791775    height: 120px;
     
    18061802    }
    18071803        ul.item-list li.banned-user a { color: red; }
    1808    
     1804
    18091805#group-list li span.small, #member-list li span.small, #comment-list li span.small, ul.item-list li span.small {
    18101806    font-size: 0.95em;
     
    18461842        font-size: 0.9em;
    18471843    }
    1848    
     1844
    18491845    #random-groups-list .desc {
    1850         margin-left: 70px; 
    1851     }
    1852    
     1846        margin-left: 70px;
     1847    }
     1848
    18531849    #random-groups-list .action {
    18541850        text-align: right;
     
    18661862        width: auto;
    18671863    }
    1868    
     1864
    18691865    #previous-next input#group-creation-next, #previous-next input#group-creation-finish {
    18701866        width: auto;
     
    19101906            margin-bottom: 10px;
    19111907        }
    1912        
     1908
    19131909        div.message-box .message-metadata h3 {
    19141910            font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, Verdana, Arial, sans-serif;
     
    19161912            margin: 0 0 5px 0;
    19171913        }
    1918        
     1914
    19191915        div.message-box .message-metadata small {
    19201916            font-size: 0.9em;
    19211917            color: #888;
    19221918        }
    1923        
     1919
    19241920        div.message-box .message-metadata h3 {
    19251921            font-size: 1.1em;
     
    19441940        font-size: 0.95em;
    19451941    }
    1946            
    1947 .avatar-box { 
     1942
     1943.avatar-box {
    19481944    border: none !important;
    19491945}
     
    19521948        font: bold 1em "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, Verdana, Arial, sans-serif;;
    19531949    }
    1954    
     1950
    19551951    .avatar-box small {
    19561952        line-height: 1.5;
     
    19581954        color: #888;
    19591955    }
    1960    
     1956
    19611957#message_content_tbl { border: 1px solid #ddd; }
    19621958.mceToolbar, .mceStatusbar { background: #eee; }
    19631959.mceToolbar a { color: #bbb !important; }
    1964        
     1960
    19651961div.ajax_reply, div.error-box {
    19661962    text-align: center;
     
    19931989    font-weight: bold;
    19941990}
    1995    
     1991
    19961992form#send-reply textarea {
    19971993    width: 98%;
     
    20622058        padding: 0.5em 1em;
    20632059    }
    2064    
     2060
    20652061    table.profile-fields tr td.label, table.wp-profile-fields tr td.label {
    20662062        width: 130px;
     
    20912087        font-size: 0.9em;
    20922088    }
    2093    
     2089
    20942090    .wire-post-content {
    20952091        margin-left: 68px;
     
    21182114    }
    21192115
    2120     div#wire-post-new-avatar { 
     2116    div#wire-post-new-avatar {
    21212117        float: left;
    21222118    }
    2123    
     2119
    21242120    div#wire-post-new-metadata {
    21252121        position: absolute;
     
    21302126            display: none;
    21312127        }
    2132    
     2128
    21332129    div#wire-post-new-input {
    21342130        margin-left: 70px;
     
    21392135            margin: 5px 0 0 0;
    21402136        }
    2141        
    2142         input#wire-post-submit { 
     2137
     2138        input#wire-post-submit {
    21432139            margin-top: 10px;
    21442140        }
     
    21592155            font: normal 11px "Lucida Grande", "Lucida Sans Unicode", Arial, Tahoma, sans-serif;
    21602156        }
    2161        
     2157
    21622158        input#status-update-input, textarea#status-update-input {
    21632159            padding: 5px;
     
    21662162            color: #888;
    21672163        }
    2168    
     2164
    21692165        div#status-update-buttons {
    21702166            margin: 10px 0 0 0;
    2171         }   
     2167        }
    21722168            div#status-update-buttons input {
    21732169                width: auto;
    21742170            }
    2175    
     2171
    21762172        div#user-status label {
    21772173            display: block;
     
    21812177            padding: 0 0 5px 0;
    21822178        }
    2183    
     2179
    21842180        a#status-new-status, a#status-clear-status {
    21852181            padding-top: 2px;
     
    21872183        }
    21882184            a#status-clear-status { color: red; }
    2189    
     2185
    21902186        div#user-status span.time-since {
    21912187            color: #aaa;
     
    22162212        padding: 3px 0;
    22172213    }
    2218    
     2214
    22192215    table.notification-settings th.icon {
    22202216        width: 35px;
    22212217    }
    2222    
     2218
    22232219    table.notification-settings th.title {
    22242220        width: 80%;
    22252221    }
    2226    
     2222
    22272223    table.notification-settings .yes, table.notification-settings .no {
    22282224        width: 40px;
     
    22382234        font-weight: bold;
    22392235    }
    2240    
     2236
    22412237    table.notification-settings tr {
    22422238        border-bottom: 1px solid #eee;
    22432239    }
    2244    
     2240
    22452241    table.notification-settings th.icon {
    22462242        background: center center no-repeat;
  • trunk/bp-themes/bp-sn-parent/groups/create.php

    r1905 r2069  
    77    </div>
    88
    9     <div id="content"> 
     9    <div id="content">
    1010        <h2><?php _e( 'Create a Group', 'buddypress' ) ?> <?php bp_group_creation_stage_title() ?></h2>
    1111        <?php do_action( 'template_notices' ) // (error/success feedback) ?>
     
    1414
    1515        <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    16    
     16
    1717            <!-- Group creation step 1: Basic group details -->
    1818            <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    1919
    2020                <?php do_action( 'bp_before_group_details_creation_step' ); ?>
    21                
    22                 <label for="group-name"><?php _e('Group Name', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
     21
     22                <label for="group-name"><?php _e('* Group Name', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
    2323                <input type="text" name="group-name" id="group-name" value="<?php bp_new_group_name() ?>" />
    24    
    25                 <label for="group-desc"><?php _e('Group Description', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
     24
     25                <label for="group-desc"><?php _e('* Group Description', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
    2626                <textarea name="group-desc" id="group-desc"><?php bp_new_group_description() ?></textarea>
    27    
     27
    2828                <label for="group-news"><?php _e('Recent News', 'buddypress') ?></label>
    2929                <textarea name="group-news" id="group-news"><?php bp_new_group_news() ?></textarea>
    30        
     30
    3131                <?php do_action( 'bp_after_group_details_creation_step' ); /* Deprecated -> */ do_action( 'groups_custom_group_fields_editable' ); ?>
    3232
     
    3535            <?php endif; ?>
    3636
    37             <!-- Group creation step 2: Group settings -->     
     37            <!-- Group creation step 2: Group settings -->
    3838            <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
    3939
     
    4545                </div>
    4646                <?php endif; ?>
    47    
     47
    4848                <?php if ( function_exists('bp_forums_setup') ) : ?>
    4949                    <?php if ( bp_forums_is_installed_correctly() ) : ?>
     
    6363
    6464                <div class="radio">
    65                     <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 
     65                    <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    6666                        <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong>
    6767                        <ul>
     
    7171                        </ul>
    7272                    </label>
    73        
     73
    7474                    <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    7575                        <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong>
     
    8080                        </ul>
    8181                    </label>
    82        
     82
    8383                    <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    8484                        <strong><?php _e('This is a hidden group', 'buddypress') ?></strong>
     
    9494
    9595                <?php wp_nonce_field( 'groups_create_save_group-settings' ) ?>
    96    
    97             <?php endif; ?>
    98        
    99             <!-- Group creation step 3: Avatar Uploads --> 
     96
     97            <?php endif; ?>
     98
     99            <!-- Group creation step 3: Avatar Uploads -->
    100100            <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
    101101
    102102                <?php do_action( 'bp_before_group_avatar_creation_step' ); ?>
    103103
    104                 <div class="left-menu">
    105                     <?php bp_new_group_avatar() ?>
    106                 </div>
    107        
    108                 <div class="main-column">
    109                     <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
    110            
    111104                <?php if ( !bp_get_avatar_admin_step() ) : ?>
    112            
    113                     <p>
    114                         <input type="file" name="file" id="file" />
    115                         <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
    116                         <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    117                     </p>
    118 
    119                 <?php endif; ?>
    120            
     105
     106                    <div class="left-menu">
     107                        <?php bp_new_group_avatar() ?>
     108                    </div>
     109
     110                    <div class="main-column">
     111                        <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
     112
     113                        <p>
     114                            <input type="file" name="file" id="file" />
     115                            <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
     116                            <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
     117                        </p>
     118
     119                        <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>
     120                    </div>
     121
     122                <?php endif; ?>
     123
    121124                <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    122            
     125
    123126                    <h3><?php _e( 'Crop Group Avatar', 'buddypress' ) ?></h3>
    124                
     127
    125128                    <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
    126                
    127                     <div id="avatar-crop-pane" style="width:100px;height:100px;overflow:hidden;">
     129
     130                    <div id="avatar-crop-pane">
    128131                        <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
    129132                    </div>
    130133
    131134                    <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
    132                
     135
    133136                    <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
    134137                    <input type="hidden" name="upload" id="upload" />
     
    139142
    140143                <?php endif; ?>
    141                
    142                     <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>
    143                 </div>
    144144
    145145                <?php do_action( 'bp_after_group_avatar_creation_step' ); ?>
    146146
    147147                <?php wp_nonce_field( 'groups_create_save_group-avatar' ) ?>
    148        
    149             <?php endif; ?>
    150        
    151             <!-- Group creation step 4: Invite friends to group --> 
     148
     149            <?php endif; ?>
     150
     151            <!-- Group creation step 4: Invite friends to group -->
    152152            <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    153153
     
    155155
    156156                <div class="left-menu">
    157                
     157
    158158                    <div id="invite-list">
    159159                        <ul>
    160160                            <?php bp_new_group_invite_friend_list() ?>
    161161                        </ul>
    162                    
     162
    163163                        <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ) ?>
    164164                    </div>
    165                
     165
    166166                </div>
    167167
    168168                <div class="main-column">
    169        
     169
    170170                    <div id="message" class="info">
    171171                        <p><?php _e('Select people to invite from your friends list.', 'buddypress'); ?></p>
     
    175175                    <ul id="friend-list" class="item-list">
    176176                    <?php if ( bp_group_has_invites() ) : ?>
    177                    
     177
    178178                        <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    179179
    180180                            <li id="<?php bp_group_invite_item_id() ?>">
    181181                                <?php bp_group_invite_user_avatar() ?>
    182                            
     182
    183183                                <h4><?php bp_group_invite_user_link() ?></h4>
    184184                                <span class="activity"><?php bp_group_invite_user_last_active() ?></span>
    185                            
     185
    186186                                <div class="action">
    187                                     <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a> 
     187                                    <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a>
    188188                                </div>
    189189                            </li>
    190190
    191191                        <?php endwhile; ?>
    192                    
     192
    193193                        <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ) ?>
    194194                    <?php endif; ?>
    195195                    </ul>
    196    
     196
    197197                    <?php wp_nonce_field( 'groups_create_save_group-invites' ) ?>
    198                
     198
    199199                </div>
    200200
    201201                <?php do_action( 'bp_after_group_invites_creation_step' ); ?>
    202            
    203             <?php endif; ?>
    204        
     202
     203            <?php endif; ?>
     204
    205205            <?php do_action( 'groups_custom_create_steps' ) // Allow plugins to add custom group creation steps ?>
    206        
     206
    207207            <?php do_action( 'bp_before_group_creation_step_buttons' ); ?>
    208208
     
    217217                    <input type="submit" value="<?php _e('Next Step', 'buddypress') ?> &rarr;" id="group-creation-next" name="save" />
    218218                <?php endif;?>
    219        
     219
    220220                <!-- Create Button -->
    221221                <?php if ( bp_is_first_group_creation_step() ) : ?>
    222222                    <input type="submit" value="<?php _e('Create Group and Continue', 'buddypress') ?> &rarr;" id="group-creation-create" name="save" />
    223223                <?php endif; ?>
    224        
     224
    225225                <!-- Finish Button -->
    226226                <?php if ( bp_is_last_group_creation_step() ) : ?>
     
    228228                <?php endif; ?>
    229229            </div>
    230            
     230
    231231            <?php do_action( 'bp_after_group_creation_step_buttons' ); ?>
    232232
     
    236236
    237237        <?php do_action( 'bp_after_group_creation_content' ) ?>
    238    
     238
    239239    </div>
    240240
  • trunk/bp-themes/bp-sn-parent/groups/single/admin.php

    r1905 r2069  
    99        </div>
    1010
    11         <div id="content"> 
     11        <div id="content">
    1212
    1313                <?php do_action( 'template_notices' ) // (error/success feedback) ?>
     
    4040                            <input type="radio" name="group-notify-members" value="0" checked="checked" /> <?php _e( 'No', 'buddypress' ); ?>&nbsp;
    4141                        </p>
    42                
     42
    4343                        <?php do_action( 'bp_after_group_details_admin' ); ?>
    4444
     
    5656
    5757                        <?php if ( function_exists('bp_wire_install') ) : ?>
    58                    
     58
    5959                            <div class="checkbox">
    6060                                <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php bp_group_show_wire_setting() ?>/> <?php _e( 'Enable comment wire', 'buddypress' ) ?></label>
    6161                            </div>
    62                    
     62
    6363                        <?php endif; ?>
    6464
    6565                        <?php if ( function_exists('bp_forums_setup') ) : ?>
    66                    
     66
    6767                            <?php if ( bp_forums_is_installed_correctly() ) : ?>
    68                        
     68
    6969                                <div class="checkbox">
    7070                                    <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php bp_group_show_forum_setting() ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ) ?></label>
    7171                                </div>
    72                        
     72
    7373                            <?php endif; ?>
    74                    
    75                         <?php endif; ?>
    76    
     74
     75                        <?php endif; ?>
     76
    7777                        <h3><?php _e( 'Privacy Options', 'buddypress' ); ?></h3>
    7878
    7979                        <div class="radio">
    8080                            <label>
    81                                 <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> /> 
     81                                <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> />
    8282                                <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong>
    8383                                <ul>
     
    8787                                </ul>
    8888                            </label>
    89                
     89
    9090                            <label>
    9191                                <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting('private') ?> />
     
    9797                                </ul>
    9898                            </label>
    99                
     99
    100100                            <label>
    101101                                <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting('hidden') ?> />
     
    108108                            </label>
    109109                        </div>
    110                
     110
    111111                        <?php do_action( 'bp_after_group_settings_admin' ); ?>
    112                
     112
    113113                        <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?> &raquo;" id="save" name="save" /></p>
    114114                        <?php wp_nonce_field( 'groups_edit_group_settings' ) ?>
    115115
    116116                    <?php endif; ?>
    117            
     117
    118118                    <?php /* Group Avatar Settings */ ?>
    119119                    <?php if ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?>
     
    121121                        <h2><?php _e( 'Group Avatar', 'buddypress' ); ?></h2>
    122122
    123                         <div class="left-menu">
    124                             <?php bp_group_avatar( 'type=full' ) ?>
    125                            
    126                             <?php if ( bp_get_group_has_avatar() ) : ?>
    127                                 <div class="generic-button" id="delete-group-avatar-button">
    128                                     <a class="edit" href="<?php bp_group_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a>
    129                                 </div>
    130                             <?php endif; ?>
    131                         </div>
    132                
    133                         <div class="main-column">
    134                
    135123                        <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    136    
    137                             <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
    138        
    139                             <p>
    140                                 <input type="file" name="file" id="file" />
    141                                 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
    142                                 <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    143                             </p>       
    144 
    145                             <?php wp_nonce_field( 'bp_avatar_upload' ) ?>
    146                
    147                         <?php endif; ?>
    148            
     124
     125                            <div class="left-menu">
     126                                <?php bp_group_avatar( 'type=full' ) ?>
     127
     128                                <?php if ( bp_get_group_has_avatar() ) : ?>
     129                                    <div class="generic-button" id="delete-group-avatar-button">
     130                                        <a class="edit" href="<?php bp_group_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a>
     131                                    </div>
     132                                <?php endif; ?>
     133                            </div>
     134
     135                            <div class="main-column">
     136
     137                                <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
     138
     139                                <p>
     140                                    <input type="file" name="file" id="file" />
     141                                    <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
     142                                    <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
     143                                </p>
     144
     145                                <?php wp_nonce_field( 'bp_avatar_upload' ) ?>
     146
     147                            </div>
     148                        <?php endif; ?>
     149
    149150                        <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    150            
     151
    151152                            <h3><?php _e( 'Crop Avatar', 'buddypress' ) ?></h3>
    152                
     153
    153154                            <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
    154                
     155
    155156                            <div id="avatar-crop-pane">
    156157                                <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
     
    158159
    159160                            <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
    160                
     161
    161162                            <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
    162163                            <input type="hidden" id="x" name="x" />
     
    166167
    167168                            <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>
    168                
    169                         <?php endif; ?>
    170                
    171                         </div>
    172 
    173                     <?php endif; ?>
    174        
     169
     170                        <?php endif; ?>
     171
     172                    <?php endif; ?>
     173
    175174                    <?php /* Manage Group Members */ ?>
    176175                    <?php if ( bp_is_group_admin_screen( 'manage-members' ) ) : ?>
    177176
    178177                        <h2><?php _e( 'Manage Members', 'buddypress' ); ?></h2>
    179                            
     178
    180179                        <?php do_action( 'bp_before_group_manage_members_admin' ); ?>
    181                            
     180
    182181                        <div class="bp-widget">
    183182                            <h4><?php _e( 'Administrators', 'buddypress' ); ?></h4>
    184183                            <?php bp_group_admin_memberlist( true ) ?>
    185184                        </div>
    186        
     185
    187186                        <?php if ( bp_group_has_moderators() ) : ?>
    188187
     
    193192
    194193                        <?php endif; ?>
    195        
     194
    196195                        <div class="bp-widget">
    197196                            <h4><?php _e("Members", "buddypress"); ?></h4>
    198            
     197
    199198                            <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=false' ) ) : ?>
    200199
    201200                                <?php if ( bp_group_member_needs_pagination() ) : ?>
    202        
     201
    203202                                    <div class="pagination">
    204        
     203
    205204                                        <div id="member-count" class="pag-count">
    206205                                            <?php bp_group_member_pagination_count() ?>
     
    210209                                            <?php bp_group_member_admin_pagination() ?>
    211210                                        </div>
    212                                
     211
    213212                                    </div>
    214                                
     213
    215214                                <?php endif; ?>
    216            
     215
    217216                                <ul id="members-list" class="item-list single-line">
    218217                                    <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    219                            
     218
    220219                                        <?php if ( bp_get_group_member_is_banned() ) : ?>
    221                                
     220
    222221                                            <li class="banned-user">
    223222                                                <?php bp_group_member_avatar_mini() ?>
    224223
    225224                                                <h5><?php bp_group_member_link() ?> <?php _e( '(banned)', 'buddypress') ?> <span class="small"> &mdash; <a href="<?php bp_group_member_unban_link() ?>" class="confirm" title="<?php _e( 'Kick and ban this member', 'buddypress' ) ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a> </h5>
    226                        
     225
    227226                                        <?php else : ?>
    228                            
     227
    229228                                            <li>
    230229                                                <?php bp_group_member_avatar_mini() ?>
     
    232231
    233232                                        <?php endif; ?>
    234                            
     233
    235234                                                <?php do_action( 'bp_group_manage_members_admin_item' ); ?>
    236235                                            </li>
    237                                
     236
    238237                                    <?php endwhile; ?>
    239238                                </ul>
    240                        
     239
    241240                            <?php else: ?>
    242241
     
    246245
    247246                            <?php endif; ?>
    248                    
     247
    249248                        </div>
    250                
     249
    251250                        <?php do_action( 'bp_after_group_manage_members_admin' ); ?>
    252            
     251
    253252                    <?php endif; ?>
    254253
     
    257256
    258257                        <h2><?php _e( 'Membership Requests', 'buddypress' ); ?></h2>
    259                
     258
    260259                        <?php do_action( 'bp_before_group_membership_requests_admin' ); ?>
    261                
     260
    262261                        <?php if ( bp_group_has_membership_requests() ) : ?>
    263                    
     262
    264263                            <ul id="request-list" class="item-list">
    265264                                <?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?>
    266                        
     265
    267266                                    <li>
    268267                                        <?php bp_group_request_user_avatar_thumb() ?>
    269268                                        <h4><?php bp_group_request_user_link() ?> <span class="comments"><?php bp_group_request_comment() ?></span></h4>
    270269                                        <span class="activity"><?php bp_group_request_time_since_requested() ?></span>
    271                                
     270
    272271                                        <?php do_action( 'bp_group_membership_requests_admin_item' ); ?>
    273                                
     272
    274273                                        <div class="action">
    275                    
     274
    276275                                            <div class="generic-button accept">
    277                                                 <a href="<?php bp_group_request_accept_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 
     276                                                <a href="<?php bp_group_request_accept_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a>
    278277                                            </div>
    279                
    280                                          &nbsp; 
     278
     279                                         &nbsp;
    281280
    282281                                            <div class="generic-button reject">
    283                                                 <a href="<?php bp_group_request_reject_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 
     282                                                <a href="<?php bp_group_request_reject_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    284283                                            </div>
    285                                    
     284
    286285                                            <?php do_action( 'bp_group_membership_requests_admin_item_action' ); ?>
    287                    
     286
    288287                                        </div>
    289288                                    </li>
    290                        
     289
    291290                                <?php endwhile; ?>
    292291                            </ul>
    293                    
     292
    294293                        <?php else: ?>
    295294
     
    299298
    300299                        <?php endif; ?>
    301                
     300
    302301                        <?php do_action( 'bp_after_group_membership_requests_admin' ); ?>
    303                
    304                     <?php endif; ?>
    305            
     302
     303                    <?php endif; ?>
     304
    306305                    <?php do_action( 'groups_custom_edit_steps' ) // Allow plugins to add custom group edit screens ?>
    307            
     306
    308307                    <?php /* Delete Group Option */ ?>
    309308                    <?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
    310309
    311310                        <h2><?php _e( 'Delete Group', 'buddypress' ); ?></h2>
    312            
     311
    313312                        <?php do_action( 'bp_before_group_delete_admin' ); ?>
    314            
     313
    315314                        <div id="message" class="info">
    316315                            <p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p>
    317316                        </div>
    318            
     317
    319318                        <input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?>
    320                
     319
    321320                        <?php do_action( 'bp_after_group_delete_admin' ); ?>
    322                
     321
    323322                        <p><input type="submit" disabled="disabled" value="<?php _e( 'Delete Group', 'buddypress' ) ?> &raquo;" id="delete-group-button" name="delete-group-button" /></p>
    324        
     323
    325324                        <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" />
    326            
     325
    327326                        <?php wp_nonce_field( 'groups_delete_group' ) ?>
    328                
    329                     <?php endif; ?>
    330                            
     327
     328                    <?php endif; ?>
     329
    331330                    <?php /* This is important, don't forget it */ ?>
    332331                    <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" />
    333                        
     332
    334333                </form>
    335        
     334
    336335                <?php do_action( 'bp_after_group_admin_content' ) ?>
    337336        </div>
Note: See TracChangeset for help on using the changeset viewer.