Changeset 10066 for branches/2.3/src/bp-groups/bp-groups-admin.php
- Timestamp:
- 08/26/2015 03:48:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/src/bp-groups/bp-groups-admin.php
r10007 r10066 1479 1479 1480 1480 /** 1481 * Override WP_List_Table::row_actions(). 1482 * 1483 * Basically a duplicate of the row_actions() method, but removes the 1484 * unnecessary <button> addition. 1485 * 1486 * @since 2.3.3 1487 * @access protected 1488 * 1489 * @param array $actions The list of actions 1490 * @param bool $always_visible Whether the actions should be always visible 1491 * @return string 1492 */ 1493 protected function row_actions( $actions, $always_visible = false ) { 1494 $action_count = count( $actions ); 1495 $i = 0; 1496 1497 if ( !$action_count ) 1498 return ''; 1499 1500 $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">'; 1501 foreach ( $actions as $action => $link ) { 1502 ++$i; 1503 ( $i == $action_count ) ? $sep = '' : $sep = ' | '; 1504 $out .= "<span class='$action'>$link$sep</span>"; 1505 } 1506 $out .= '</div>'; 1507 1508 return $out; 1509 } 1510 1511 /** 1481 1512 * Markup for the Checkbox column. 1482 1513 *
Note: See TracChangeset
for help on using the changeset viewer.