Skip to content

Commit

Permalink
Don't show hidden cols button outside of printable view
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Dec 26, 2023
1 parent 4a07744 commit e662771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mt-reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function mt_reports_page() {
}
$back_url = admin_url( apply_filters( 'mt_printable_report_back', 'admin.php?page=mt-reports&mt-event-report=' . $report_type . '&event_id=' . $event_id ) );
$return = ( isset( $_GET['mt_print'] ) ) ? '<a class="mt-back button" href="' . esc_url( $back_url ) . '">' . __( 'Return to My Tickets Reports', 'my-tickets' ) . '</a>' : '';
$show = '<button class="button show-button">' . esc_html( __( 'Show Hidden Columns', 'my-tickets' ) ) . '</button>';
$show = ( isset( $_GET['mt_print'] ) ) ? '<button class="button show-button">' . esc_html( __( 'Show Hidden Columns', 'my-tickets' ) ) . '</button>' : '';
echo '<p><a class="button print-button" href="' . $print_report_url . '">' . __( 'Print this report', 'my-tickets' ) . '</a> ' . $return . ' ' . $show . '</p>';
}
?>
Expand Down

0 comments on commit e662771

Please sign in to comment.