Changeset 10066
- Timestamp:
- 08/26/2015 03:48:22 PM (9 years ago)
- Location:
- branches/2.3/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/src/bp-activity/admin/css/admin.css
r9819 r10066 79 79 width: 12%; 80 80 } 81 82 @media screen and (max-width: 782px) { 83 body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { 84 display: table-cell; 85 } 86 } -
branches/2.3/src/bp-activity/bp-activity-admin.php
r10007 r10066 1411 1411 1412 1412 <?php 1413 } 1414 1415 /** 1416 * Override WP_List_Table::row_actions(). 1417 * 1418 * Basically a duplicate of the row_actions() method, but removes the 1419 * unnecessary <button> addition. 1420 * 1421 * @since 2.3.3 1422 * @access protected 1423 * 1424 * @param array $actions The list of actions 1425 * @param bool $always_visible Whether the actions should be always visible 1426 * @return string 1427 */ 1428 protected function row_actions( $actions, $always_visible = false ) { 1429 $action_count = count( $actions ); 1430 $i = 0; 1431 1432 if ( !$action_count ) 1433 return ''; 1434 1435 $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">'; 1436 foreach ( $actions as $action => $link ) { 1437 ++$i; 1438 ( $i == $action_count ) ? $sep = '' : $sep = ' | '; 1439 $out .= "<span class='$action'>$link$sep</span>"; 1440 } 1441 $out .= '</div>'; 1442 1443 return $out; 1413 1444 } 1414 1445 -
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.