You appear to be a bot. Output may be restricted
Description
Generate row actions div
Usage
$string = BW_List_Table::row_actions( $actions, $always_visible );
Parameters
- $actions
- ( array ) required – The list of actions
- $always_visible
- ( bool ) optional – Whether the actions should be always visible
Returns
stringSource
File name: oik/admin/class-bw-list-table.phpLines:
1 to 19 of 19
protected function row_actions( $actions, $always_visible = false ) { $action_count = count( $actions ); $i = 0; if ( !$action_count ) return ''; $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">'; foreach ( $actions as $action => $link ) { ++$i; ( $i == $action_count ) ? $sep = '' : $sep = ' | '; $out .= "<span class='$action'>$link$sep</span>"; } $out .= '</div>'; $out .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>'; return $out; }View on GitHub View on Trac