/** * Generates (echoes) content for a single row of the table * * @since 1.40 * * @param object the current item * * @return void Echoes the row HTML */ function single_row($item) { static $row_class = ''; $row_class = $row_class == '' ? ' class="alternate"' : ''; echo '<tr id="optional-upload-' . $item->ID . '"' . $row_class . '>'; echo parent::single_row_columns($item); echo '</tr>'; }
/** * Generates (echoes) content for a single row of the table * * @since .20 * * @param object the current item * * @return void Echoes the row HTML */ function single_row($item) { static $row_class = ''; // WP 4.2+ uses "striped" CSS styles to implement "alternate" if (version_compare(get_bloginfo('version'), '4.2', '<')) { $row_class = $row_class == '' ? ' class="alternate"' : ''; } echo '<tr id="attachment-' . $item->ID . '"' . $row_class . '>'; echo parent::single_row_columns($item); echo '</tr>'; }