diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2022-06-18 19:53:46 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2022-06-18 19:53:46 +0200 |
commit | 745ed40d46c18c683322b19939455deed52e94df (patch) | |
tree | a967df65a843d430630686cacaabfc87b50121c8 /includes | |
parent | 1fa1654de0527440d057c5ed05891bed6cc0b69c (diff) | |
download | gigologadmin-745ed40d46c18c683322b19939455deed52e94df.tar.gz gigologadmin-745ed40d46c18c683322b19939455deed52e94df.tar.bz2 gigologadmin-745ed40d46c18c683322b19939455deed52e94df.zip |
Fix ConcertTable tests and markup.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/admin/views/_concerts_table.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/admin/views/_concerts_table.php b/includes/admin/views/_concerts_table.php index ad7aebc..4f9b3c9 100644 --- a/includes/admin/views/_concerts_table.php +++ b/includes/admin/views/_concerts_table.php @@ -310,7 +310,7 @@ if ( ! class_exists( 'GiglogAdmin_ConcertsTable' ) ) { $content .= '<td><a target="_blank" href="' . esc_url( $concert->tickets() ) . '">Tickets</a></td>'; } - $content .= '<td> <a href="' . get_admin_url() . 'admin-ajax.php?action=giglog_export_ical&evid=' . $concert->id() . '">iCal</td>'; + $content .= '<td><a href="' . get_admin_url() . 'admin-ajax.php?action=giglog_export_ical&evid=' . $concert->id() . '">iCal</a></td>'; $content .= '</tr>'; $last_city = $concert->venue()->city(); } @@ -320,7 +320,7 @@ if ( ! class_exists( 'GiglogAdmin_ConcertsTable' ) ) { $content .= $this->render_pagination(); // from main form that includes filters - $content .= '</div></form></p>'; + $content .= '</div></form>'; // return the table return $content; @@ -329,7 +329,7 @@ if ( ! class_exists( 'GiglogAdmin_ConcertsTable' ) ) { private function render_filters() : string { global $wp_locale; - $select = '<p><form method="GET" action="" class="filterclass">FILTER DATA: '; + $select = '<form method="GET" action="" class="filterclass">FILTER DATA: '; foreach ( $_GET as $name => $val ) { if ( in_array( $name, self::FILTER_KEYS ) ) { @@ -372,8 +372,6 @@ if ( ! class_exists( 'GiglogAdmin_ConcertsTable' ) ) { 'Select month...' ); - $select .= '</select>'; - if ( is_admin() ) { // option to select own concerts only $select .= '<input name="only_mine" class="ownconc" type="checkbox" value="1"' |