"; if ( scoper_get_option('display_hints') ) { echo '
'; echo '

'; _e('Note that only capabilities configured for filtering by Role Scoper are listed here.', 'scoper'); echo ' '; _e('These WordPress role definitions may be modified via the Capability Manager or Role Manager plugin.', 'scoper'); echo '

'; echo '

'; _e('To understand how your WordPress roles relate to type-specific RS Roles, see WP/RS Role Equivalence.', 'scoper'); echo '

'; echo '
'; } $roles = $scoper->role_defs->get_matching( 'wp', '', '' ); echo '

' . __('WordPress Roles', 'scoper'), '

'; ?> role_names; uasort($wp_role_names, "strnatcasecmp"); // sort by array values, but maintain keys // order WP roles by display name foreach ( array_keys($wp_role_names) as $wp_role_name ) { $role_handle = scoper_get_role_handle( $wp_role_name, 'wp' ); $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; if ( empty($scoper->role_defs->role_caps[$role_handle]) ) continue; $cap_names = array_keys($scoper->role_defs->role_caps[$role_handle]); sort($cap_names); $cap_display_names = array(); foreach($cap_names as $cap_name) $cap_display_names[] = ucwords( str_replace('_', ' ', $cap_name) ); $caplist = "
  • " . implode("
  • ", $cap_display_names) . "
  • "; echo "\n\t" . ""; } // end foreach role echo '
    " . $scoper->role_defs->get_display_name($role_handle) . "
      $caplist
    '; echo '

    '; echo ''; echo '

    ' . __('WP / RS Role Equivalence', 'scoper'), '

    '; ?> role_defs->get_contained_roles($role_handle, false, 'rs'); foreach( array_keys($contained_roles_handles) as $contained_role_handle ) { $role_def = $scoper->role_defs->get( $contained_role_handle ); if ( $role_def->object_type && post_type_exists( $role_def->object_type ) && ! isset( $use_post_types[$role_def->object_type] ) ) continue; $display_names[] = $scoper->role_defs->get_display_name($contained_role_handle); } $list = "
  • " . implode("
  • ", $display_names) . "
  • "; $note = ( 'administrator' == $wp_role_name ) ? '

    ' . __( 'note: Role Scoper also implicitly grants Administrators the Editor role for each enabled custom post type, and the Manager role for each enabled taxonomy.', 'scoper' ) : ''; echo "\n\t" . ""; } // end foreach role echo '
    " . $scoper->role_defs->get_display_name($role_handle) . $note . "
      $list
    '; echo '

    '; ?>