Changeset 11741 for trunk/src/bp-members/classes/class-bp-members-admin.php
- Timestamp:
- 11/04/2017 05:56:39 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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. ?>
Note: See TracChangeset
for help on using the changeset viewer.