Changeset 11741
- Timestamp:
- 11/04/2017 05:56:39 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-admin.php
r11703 r11741 581 581 582 582 <div class="wrap"> 583 <h1><?php _e( 'Edit Group', 'buddypress' ); ?> 583 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 584 585 <h1 class="wp-heading-inline"><?php _e( 'Edit Group', 'buddypress' ); ?></h1> 584 586 585 587 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 586 <a class=" add-new-h2" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a>588 <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> 587 589 <?php endif; ?> 588 590 589 </h1> 591 <hr class="wp-header-end"> 592 593 <?php else : ?> 594 595 <h1><?php _e( 'Edit Group', 'buddypress' ); ?> 596 597 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 598 <a class="add-new-h2" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> 599 <?php endif; ?> 600 601 </h1> 602 603 <?php endif; ?> 590 604 591 605 <?php // If the user has just made a change to an group, display the status messages. ?> … … 753 767 754 768 <div class="wrap"> 769 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 770 771 <h1 class="wp-heading-inline"><?php _e( 'Groups', 'buddypress' ); ?></h1> 772 773 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 774 <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> 775 <?php endif; ?> 776 777 <?php if ( !empty( $_REQUEST['s'] ) ) : ?> 778 <span class="subtitle"><?php printf( __( 'Search results for “%s”', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span> 779 <?php endif; ?> 780 781 <hr class="wp-header-end"> 782 783 <?php else : ?> 784 755 785 <h1> 756 786 <?php _e( 'Groups', 'buddypress' ); ?> … … 764 794 <?php endif; ?> 765 795 </h1> 796 797 <?php endif; ?> 766 798 767 799 <?php // If the user has just made a change to an group, display the status messages. ?> -
trunk/src/bp-members/classes/class-bp-members-admin.php
r11723 r11741 947 947 948 948 <div class="wrap" id="community-profile-page"> 949 <h1><?php echo esc_html( $title ); ?> 949 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 950 951 <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> 950 952 951 953 <?php if ( empty( $this->is_self_profile ) ) : ?> … … 953 955 <?php if ( current_user_can( 'create_users' ) ) : ?> 954 956 955 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a>957 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 956 958 957 959 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 958 960 959 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a>961 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 960 962 961 963 <?php endif; ?> 962 964 963 965 <?php endif; ?> 964 </h1> 966 967 <hr class="wp-header-end"> 968 969 <?php else : ?> 970 971 <h1><?php echo esc_html( $title ); ?> 972 973 <?php if ( empty( $this->is_self_profile ) ) : ?> 974 975 <?php if ( current_user_can( 'create_users' ) ) : ?> 976 977 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 978 979 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 980 981 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 982 983 <?php endif; ?> 984 985 <?php endif; ?> 986 </h1> 987 988 <?php endif; ?> 965 989 966 990 <?php if ( ! empty( $user ) ) : … … 1925 1949 1926 1950 <div class="wrap"> 1927 <h1><?php _e( 'Users', 'buddypress' ); ?> 1951 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 1952 1953 <h1 class="wp-heading-inline"><?php _e( 'Users', 'buddypress' ); ?></h1> 1928 1954 1929 1955 <?php if ( current_user_can( 'create_users' ) ) : ?> 1930 1956 1931 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a>1957 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 1932 1958 1933 1959 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 1934 1960 1935 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a>1961 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 1936 1962 1937 1963 <?php endif; … … 1940 1966 printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'buddypress' ) . '</span>', esc_html( $usersearch ) ); 1941 1967 } 1942 1943 1968 ?> 1944 </h1> 1969 1970 <hr class="wp-header-end"> 1971 1972 <?php else : ?> 1973 1974 <h1><?php _e( 'Users', 'buddypress' ); ?> 1975 1976 <?php if ( current_user_can( 'create_users' ) ) : ?> 1977 1978 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> 1979 1980 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 1981 1982 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> 1983 1984 <?php endif; 1985 1986 if ( $usersearch ) { 1987 printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'buddypress' ) . '</span>', esc_html( $usersearch ) ); 1988 } 1989 1990 ?> 1991 </h1> 1992 1993 <?php endif; ?> 1945 1994 1946 1995 <?php // Display each signups on its own row. ?> -
trunk/src/bp-templates/bp-nouveau/includes/messages/classes.php
r11686 r11741 171 171 ?> 172 172 <div class="wrap"> 173 174 <h1> 175 <?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?> 176 <a id="add_notice" class="add-new-h2" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a> 177 </h1> 173 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 174 175 <h1 class="wp-heading-inline"><?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?></h1> 176 177 <a id="add_notice" class="page-title-action" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a> 178 179 <hr class="wp-header-end"> 180 181 <?php else : ?> 182 183 <h1> 184 <?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?> 185 <a id="add_notice" class="add-new-h2" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a> 186 </h1> 187 188 <?php endif; ?> 178 189 179 190 <form action=<?php echo esc_url( $this->url ); ?> method="post"> -
trunk/src/bp-xprofile/bp-xprofile-admin.php
r11675 r11741 134 134 135 135 <div class="wrap"> 136 137 <h1> 138 <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?> 139 <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> 140 </h1> 136 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> 137 138 <h1 class="wp-heading-inline"><?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?></h1> 139 140 <a id="add_group" class="page-title-action" href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> 141 142 <hr class="wp-header-end"> 143 144 <?php else : ?> 145 146 <h1> 147 <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?> 148 <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> 149 </h1> 150 151 <?php endif; ?> 141 152 142 153 <form action="" id="profile-field-form" method="post">
Note: See TracChangeset
for help on using the changeset viewer.