Ticket #7721: 7721.patch
| File 7721.patch, 8.4 KB (added by , 8 years ago) |
|---|
-
src/bp-core/admin/css/common-rtl.css
18 18 2.1 Top level menus 19 19 2.2 Settings - Components 20 20 2.3 Tools 21 3.0 User's Lists 21 3.0 Users 22 3.1 Users List 23 3.2 All Members Notices 22 24 4.0 Emails - Edit page 23 25 5.0 Tools - BuddyPress 24 26 6.0 Plugins page … … 569 571 570 572 571 573 /*------------------------------------------------------------------------------ 572 * 3.0 User 's Lists574 * 3.0 Users 573 575 *----------------------------------------------------------------------------*/ 576 577 /* 578 * 3.1 Users List 579 */ 574 580 body.site-users-php th#role, 575 581 body.users-php th#role, 576 582 body.users_page_bp-signups th#count_sent { … … 607 613 font-weight: 700; 608 614 } 609 615 616 /* 617 * 3.2 All Members Notices 618 */ 619 .bp-new-notice-panel { 620 background: #fff; 621 border: 1px solid #e5e5e5; 622 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); 623 font-size: 13px; 624 line-height: 2.1; 625 margin: 16px 0; 626 overflow: auto; 627 padding: 25px; 628 position: relative; 629 } 630 631 .bp-new-notice-panel label { 632 clear: both; 633 float: right; 634 margin-left: 3%; 635 width: 20%; 636 } 637 638 .bp-new-notice-panel input, 639 .bp-new-notice-panel textarea { 640 clear: none; 641 margin-bottom: 1em; 642 width: 75%; 643 } 644 645 .bp-new-notice-panel input[type="text"]:after, 646 .bp-new-notice-panel textarea:after { 647 clear: both; 648 content: " "; 649 display: table; 650 } 651 652 .bp-new-notice-panel input.cancel { 653 background: #fafafa; 654 border: 1px solid #ccc; 655 float: right; 656 font-size: 13px; 657 line-height: 26px; 658 margin-right: 23%; 659 padding: 0 10px 1px; 660 vertical-align: top; 661 } 662 663 .bp-new-notice-panel input.cancel:focus, 664 .bp-new-notice-panel input.cancel:hover { 665 border: 1px solid #ccc; 666 color: #222; 667 padding: 0 10px 1px; 668 } 669 670 .bp-new-notice-panel .button-primary { 671 margin-left: 2%; 672 width: auto; 673 } 674 675 @media screen and (max-width: 782px) { 676 677 .bp-new-notice-panel input, 678 .bp-new-notice-panel textarea { 679 margin-right: 0; 680 width: 100%; 681 } 682 683 .bp-new-notice-panel input.cancel { 684 margin-right: 0; 685 padding: 5px 10px; 686 } 687 688 .bp-new-notice-panel input.cancel:focus, 689 .bp-new-notice-panel input.cancel:hover { 690 margin-right: 0; 691 padding: 5px 10px; 692 } 693 694 .bp-new-notice-panel .button-primary { 695 margin-left: 0; 696 width: auto; 697 } 698 699 .bp-new-notice-panel .button { 700 max-width: 45%; 701 word-wrap: break-word; 702 } 703 } 704 610 705 /*------------------------------------------------------------------------------ 611 706 * 4.0 Emails - Edit Page 612 707 *----------------------------------------------------------------------------*/ -
src/bp-core/admin/css/common.css
18 18 2.1 Top level menus 19 19 2.2 Settings - Components 20 20 2.3 Tools 21 3.0 User's Lists 21 3.0 Users 22 3.1 Users List 23 3.2 All Members Notices 22 24 4.0 Emails - Edit page 23 25 5.0 Tools - BuddyPress 24 26 6.0 Plugins page … … 569 571 570 572 571 573 /*------------------------------------------------------------------------------ 572 * 3.0 User 's Lists574 * 3.0 Users 573 575 *----------------------------------------------------------------------------*/ 576 577 /* 578 * 3.1 Users List 579 */ 574 580 body.site-users-php th#role, 575 581 body.users-php th#role, 576 582 body.users_page_bp-signups th#count_sent { … … 607 613 font-weight: 700; 608 614 } 609 615 616 /* 617 * 3.2 All Members Notices 618 */ 619 .bp-new-notice-panel { 620 background: #fff; 621 border: 1px solid #e5e5e5; 622 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); 623 font-size: 13px; 624 line-height: 2.1; 625 margin: 16px 0; 626 overflow: auto; 627 padding: 25px; 628 position: relative; 629 } 630 631 .bp-new-notice-panel label { 632 clear: both; 633 float: left; 634 margin-right: 3%; 635 width: 20%; 636 } 637 638 .bp-new-notice-panel input, 639 .bp-new-notice-panel textarea { 640 clear: none; 641 margin-bottom: 1em; 642 width: 75%; 643 } 644 645 .bp-new-notice-panel input[type="text"]:after, 646 .bp-new-notice-panel textarea:after { 647 clear: both; 648 content: " "; 649 display: table; 650 } 651 652 .bp-new-notice-panel input.cancel { 653 background: #fafafa; 654 border: 1px solid #ccc; 655 float: left; 656 font-size: 13px; 657 line-height: 26px; 658 margin-left: 23%; 659 padding: 0 10px 1px; 660 vertical-align: top; 661 } 662 663 .bp-new-notice-panel input.cancel:focus, 664 .bp-new-notice-panel input.cancel:hover { 665 border: 1px solid #ccc; 666 color: #222; 667 padding: 0 10px 1px; 668 } 669 670 .bp-new-notice-panel .button-primary { 671 margin-right: 2%; 672 width: auto; 673 } 674 675 @media screen and (max-width: 782px) { 676 677 .bp-new-notice-panel input, 678 .bp-new-notice-panel textarea { 679 margin-left: 0; 680 width: 100%; 681 } 682 683 .bp-new-notice-panel input.cancel { 684 margin-left: 0; 685 padding: 5px 10px; 686 } 687 688 .bp-new-notice-panel input.cancel:focus, 689 .bp-new-notice-panel input.cancel:hover { 690 margin-left: 0; 691 padding: 5px 10px; 692 } 693 694 .bp-new-notice-panel .button-primary { 695 margin-right: 0; 696 width: auto; 697 } 698 699 .bp-new-notice-panel .button { 700 max-width: 45%; 701 word-wrap: break-word; 702 } 703 } 704 610 705 /*------------------------------------------------------------------------------ 611 706 * 4.0 Emails - Edit Page 612 707 *----------------------------------------------------------------------------*/ -
src/bp-messages/classes/class-bp-messages-notices-admin.php
36 36 * @var object 37 37 */ 38 38 public $list_table = ''; 39 40 39 40 41 41 /** 42 42 * Create a new instance or access the current instance of this class. 43 43 * … … 154 154 case 'delete': 155 155 $notice = new BP_Messages_Notice( $notice_id ); 156 156 $success = $notice->delete(); 157 break; 157 break; 158 158 } 159 159 if ( $success ) { 160 160 $redirect_to = add_query_arg( 'success', 'update', $this->url ); … … 200 200 201 201 <?php endif; ?> 202 202 203 <form action=<?php echo esc_url( wp_nonce_url( $this->url, 'new-notice', 'ns-nonce' ) ); ?> method="post"> 204 <table class="widefat"> 205 <tr> 206 <td><label for="bp_notice_subject"><?php esc_html_e( 'Subject', 'buddypress' ); ?></label></td> 207 <td><input type="text" class="widefat" id="bp_notice_subject" name="bp_notice[subject]"/></td> 208 </tr> 209 <tr> 210 <td><label for="bp_notice_content"><?php esc_html_e( 'Content', 'buddypress' ); ?></label></td> 211 <td><textarea class="widefat" id="bp_notice_content" name="bp_notice[content]"></textarea></td> 212 </tr> 213 <tr class="submit"> 214 <td> </td> 215 <td style="float:right"> 216 <input type="reset" value="<?php esc_attr_e( 'Cancel Notice', 'buddypress' ); ?>" class="button-secondary"> 217 <input type="submit" value="<?php esc_attr_e( 'Save Notice', 'buddypress' ); ?>" name="bp_notice[send]" class="button-primary"> 218 </td> 219 </tr> 220 </table> 221 <form> 203 <div class="bp-new-notice-panel"> 222 204 205 <!-- Add h2-Add New Notice-/h2 here if empty link is removed --> 206 207 <form action="<?php echo esc_url( wp_nonce_url( $this->url, 'new-notice', 'ns-nonce' ) ); ?>" method="post"> 208 209 <div> 210 211 <label for="bp_notice_subject"><?php esc_html_e( 'Subject', 'buddypress' ); ?></label> 212 <input type="text" class="bp-panel-input" id="bp_notice_subject" name="bp_notice[subject]"/> 213 214 <label for="bp_notice_content"><?php esc_html_e( 'Content', 'buddypress' ); ?></label> 215 <textarea class="bp-panel-textarea" id="bp_notice_content" name="bp_notice[content]"></textarea> 216 </div> 217 218 <input type="reset" value="<?php esc_attr_e( 'Cancel Notice', 'buddypress' ); ?>" class="button cancel button-secondary alignleft"> 219 <input type="submit" value="<?php esc_attr_e( 'Save Notice', 'buddypress' ); ?>" name="bp_notice[send]" class="button button-primary save alignright"> 220 221 </form> 222 223 </div> 224 223 225 <?php if ( isset( $_GET['success'] ) || isset( $_GET['error'] ) ) : ?> 224 226 225 227 <div id="message" class="<?php echo isset( $_GET['success'] ) ? 'updated' : 'error'; ?>"> … … 230 232 if ( 'create' === $_GET['error'] ) { 231 233 esc_html_e( 'Notice was not created. Please try again.', 'buddypress' ); 232 234 } else { 233 esc_html_e( 'Notice was not updated. Please try again.', 'buddypress' ); 235 esc_html_e( 'Notice was not updated. Please try again.', 'buddypress' ); 234 236 } 235 237 } else { 236 238 if ( 'create' === $_GET['success'] ) {