bp_messages_options()
Output the markup for the message type dropdown.
Description
Source
File: bp-messages/bp-messages-template.php
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 | function bp_messages_options() { ?> <label for = "message-type-select" class = "bp-screen-reader-text" ><?php /* translators: accessibility text */ _e( 'Select:' , 'buddyboss' ); ?></label> <select name= "message-type-select" id= "message-type-select" > <option value= "" ><?php _e( 'Select' , 'buddyboss' ); ?></option> <option value= "read" ><?php _ex( 'Read' , 'Past Participle: Messages have been read' , 'buddyboss' ) ?></option> <option value= "unread" ><?php _e( 'Unread' , 'buddyboss' ) ?></option> <option value= "all" ><?php _e( 'All' , 'buddyboss' ) ?></option> </select> <?php if ( ! bp_is_current_action( 'notices' ) ) : ?> <a href= "#" id= "mark_as_read" ><?php _e( 'Mark as Read' , 'buddyboss' ) ?></a> <a href= "#" id= "mark_as_unread" ><?php _e( 'Mark as Unread' , 'buddyboss' ) ?></a> <?php wp_nonce_field( 'bp_messages_mark_messages_read' , 'mark-messages-read-nonce' , false ); ?> <?php wp_nonce_field( 'bp_messages_mark_messages_unread' , 'mark-messages-unread-nonce' , false ); ?> <?php endif ; ?> <a href= "#" id= "delete_<?php echo bp_current_action(); ?>_messages" ><?php _e( 'Delete Selected' , 'buddyboss' ); ?></a> <?php wp_nonce_field( 'bp_messages_delete_selected' , 'delete-selected-nonce' , false ); ?> <?php } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.