Skip to:
Content

BuddyPress.org

Changeset 8426


Ignore:
Timestamp:
05/16/2014 10:23:57 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Groups Admin:

  • Update post-row verbiage from "Visit" to "View".
  • Move "View" link to end.
  • Wrap Group name in strong tag.
  • Link Group name to the Group edit screen.

See #5645.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-admin.php

    r8425 r8426  
    13771377    function column_comment( $item = array() ) {
    13781378
    1379         // Preorder items: Visit | Edit | Delete
     1379        // Preorder items: Edit | Delete | View
    13801380        $actions = array(
    1381             'visit'  => '',
    13821381            'edit'   => '',
    13831382            'delete' => '',
     1383            'view'   => '',
    13841384        );
    13851385
     
    13911391        $delete_url = wp_nonce_url( $base_url . "&action=delete", 'bp-groups-delete' );
    13921392        $edit_url   = $base_url . '&action=edit';
    1393         $visit_url  = bp_get_group_permalink( $item_obj );
     1393        $view_url   = bp_get_group_permalink( $item_obj );
    13941394
    13951395        // Rollover actions
    13961396
    1397         // Visit
    1398         $actions['visit'] = sprintf( '<a href="%s">%s</a>', esc_url( $visit_url ), __( 'Visit', 'buddypress' ) );
    1399 
    14001397        // Edit
    1401         $actions['edit'] = sprintf( '<a href="%s">%s</a>', esc_url( $edit_url ), __( 'Edit', 'buddypress' ) );
     1398        $actions['edit']   = sprintf( '<a href="%s">%s</a>', esc_url( $edit_url   ), __( 'Edit',  'buddypress' ) );
    14021399
    14031400        // Delete
    14041401        $actions['delete'] = sprintf( '<a href="%s">%s</a>', esc_url( $delete_url ), __( 'Delete', 'buddypress' ) );
     1402
     1403        // Visit
     1404        $actions['view']   = sprintf( '<a href="%s">%s</a>', esc_url( $view_url   ), __( 'View',   'buddypress' ) );
    14051405
    14061406        // Other plugins can filter which actions are shown
     
    14191419        ) );
    14201420
    1421         $content = apply_filters_ref_array( 'bp_get_group_name', array( $item['name'], $item ) );
     1421        $content = apply_filters_ref_array( 'bp_get_group_name', array( sprintf( '<strong><a href="%s">%s</a></strong>', esc_url( $edit_url ), $item['name'] ), $item ) );
    14221422
    14231423        echo $avatar . ' ' . $content . ' ' . $this->row_actions( $actions );
Note: See TracChangeset for help on using the changeset viewer.