Basic implementation event signup

This commit is contained in:
2024-05-27 16:59:30 +02:00
parent a66f2d2422
commit a69d83bc0a
321 changed files with 138376 additions and 644 deletions

View File

@ -0,0 +1,12 @@
<?php
function kompass_print_event_control_header(int $event_id, string $active_tab = 'tab1')
{
$baseUrl = 'admin.php?page=kompass-events&action=show-event&event-id=' . $event_id. '&tab=';
return '<h2 class="nav-tab-wrapper">'.
'<a href="' . $baseUrl . 'tab1" class="nav-tab ' . ( $active_tab == 'tab1' ? 'nav-tab-active' : '') . '">' .
__('Participants by groups', BDP_LV_PLUGIN_SLUG) .
'</a>'.
'<a href="' . $baseUrl . 'tab2" class="nav-tab ' . ( $active_tab == 'tab2' ? 'nav-tab-active' : '') . '">' .
__('Participants by tribes', BDP_LV_PLUGIN_SLUG) .
'</a></h2>';
}