Skip to:
Content

BuddyPress.org

Ticket #5509: 5509-2.patch

File 5509-2.patch, 4.5 KB (added by hnla, 11 years ago)

re-factored, merged and refreshed patch

  • src/bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php

     
     1
    12<div class="left-menu">
    23
    34        <div id="invite-list">
     
    1112        </div>
    1213
    1314</div><!-- .left-menu -->
    14 
     15               
    1516<div class="main-column">
    1617
    1718        <?php do_action( 'bp_before_group_send_invites_list' ); ?>
    1819
    1920        <?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?>
    2021
     22                <h3 class="invite-list-heading"><?php _e('Your current invitations','buddypress'); ?></h3>
     23
    2124                <div id="pag-top" class="pagination">
    2225
    2326                        <div class="pag-count" id="group-invite-count-top">
     
    7477
    7578                </div>
    7679
    77         <?php else : ?>
    78                 <div id="message" class="info">
    79                         <p><?php _e( 'Select people to invite from your friends list.', 'buddypress' ); ?></p>
     80        <?php else: ?>
     81
     82                <div id="message">
     83                        <p class="info"><?php _e('Select members from your friends list to invite to this group.', 'buddypress'); ?></p>
    8084                </div>
     85
    8186        <?php endif; ?>
    8287
    8388<?php do_action( 'bp_after_group_send_invites_list' ); ?>
    8489
    8590</div><!-- .main-column -->
    8691
    87 <div class="clear"></div>
    88 
    8992<div class="submit">
    9093        <input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send Invites', 'buddypress' ); ?>" />
    9194</div>
  • src/bp-templates/bp-legacy/buddypress/groups/single/send-invites.php

     
     1<h2 class="manage-invites-heading"><?php _e( 'Manage your member invites for this group', 'buddypress' ); ?></h2>
     2
    13<?php do_action( 'bp_before_group_send_invites_content' ); ?>
    24
    3 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    45
     6<?php
     7        /* You may have friends but they may all be members of this group, invite list would then return false.
     8                                Check user has friends and check that 'bp_get_new_group_invite_friend_list' is true else skip to
     9                                the end and either say all your friends are group members or that you have no friends yet to invite. */
     10
     11        if ( bp_get_total_friend_count( bp_loggedin_user_id() ) && bp_get_new_group_invite_friend_list() ) : ?>
     12
    513        <?php /* 'send-invite-form' is important for AJAX support */ ?>
    614        <form action="<?php bp_group_send_invite_form_action(); ?>" method="post" id="send-invite-form" class="standard-form" role="main">
    715
     
    1624
    1725        </form><!-- #send-invite-form -->
    1826
     27<?php elseif( !bp_get_new_group_invite_friend_list() ): ?>
     28
     29        <div id="message-block">
     30                <p class="notice"><?php _e('Your friends are currently all members of this group.', 'buddypress'); ?></p>
     31                <p class="message-body"><?php _e('When you have any new friends you will be able to return to this screen to invite them to join this group.', 'buddypress'); ?></p>
     32        </div>
     33
     34<?php else: ?>
     35
     36        <div id="message-block">
     37                <p class="notice"><?php _e('You currently have no friends to invite.', 'buddypress'); ?></p>
     38                <p class="message-body"><?php _e('When you have built up a friends list you will be able to invite them to this group.', 'buddypress'); ?></p>
     39        </div>
     40
    1941<?php endif; ?>
    2042
     43
    2144<?php do_action( 'bp_after_group_send_invites_content' ); ?>
  • src/bp-templates/bp-legacy/css/buddypress.css

     
    514514        clear: both;
    515515        display: block;
    516516}
     517#buddypress div#message-block,
    517518#buddypress div#message p,
    518519#sitewide-notice p {
    519520        font-size: 90%;
    520521        display: block;
    521522        padding: 10px 15px;
    522523}
     524#buddypress div#message-block {
     525        margin: 20px 0;
     526        padding: .5em;
     527}
    523528#buddypress div#message.error p {
    524529        background-color: #fdc;
    525530        border: 1px solid #a00;
     
    13741379        overflow: auto;
    13751380        list-style: none;
    13761381}
    1377 
    1378 
     1382#buddypress .manage-invites-heading,
     1383#buddypress .invite-list-heading {
     1384        clear: none;   
     1385        margin: 20px 0;
     1386}
     1387#buddypress .manage-invites-heading {
     1388        font-size: 120%;
     1389}
     1390#buddypress .invite-list-heading {
     1391        font-size: 100%;
     1392}
    13791393/*--------------------------------------------------------------
    138013943.9 - Private Messaging Threads
    13811395--------------------------------------------------------------*/