Skip to:
Content

BuddyPress.org

Ticket #7540: patch7540bpdefault.diff

File patch7540bpdefault.diff, 852 bytes (added by Oelita, 3 years ago)

Patch for theme bp-default for using functions added

  • members/single/messages/single.php

    diff --git a/members/single/messages/single.php b/members/single/messages/single.php
    index 11c31b1..41e17f4 100644
    a b  
    2222                        </span>
    2323
    2424                        <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> &nbsp;
     25                       
     26                        <?php                     
     27                        if ( bp_get_thread_recipients_count() > 2 and bp_loggedin_user_id() != bp_get_thread_first_sender_id()) :
     28                                ?>
     29                                <a class="button confirm" href="<?php bp_the_quit_thread_link(); ?>" title="<?php _e( 'Quit conversation', 'buddypress' ); ?>"><?php _e( 'Quit conversation', 'buddypress' ); ?></a>
     30                        <?php endif; ?>
     31                       
    2532                </p>
    2633
    2734                <?php do_action( 'bp_before_message_thread_list' ); ?>