kompass/modules/KompassSettings/Views/tab-control.php

18 lines
797 B
PHP
Raw Normal View History

2024-03-16 14:21:57 +01:00
<?php
function kompass_settings_print_tab_header(string $activeTab = 'tab1')
{
$baseUrl = 'admin.php?page=bdp-kompass-Kompass-settings&tab=';
return '<h2 class="nav-tab-wrapper">'.
2024-07-31 17:53:07 +02:00
'<a href="' . $baseUrl . 'tab1" class="nav-tab ' . ($activeTab == 'tab1' ? 'nav-tab-active' : '') . '">' .
__('Kompass Settings', BDP_LV_PLUGIN_SLUG) .
'</a>'.
'<a href="' . $baseUrl . 'tab2" class="nav-tab ' . ($activeTab == 'tab2' ? 'nav-tab-active' : '') . '">' .
2024-03-16 14:21:57 +01:00
__('Calendar Settings', BDP_LV_PLUGIN_SLUG) .
'</a>'.
2024-07-31 17:53:07 +02:00
'<a href="' . $baseUrl . 'tab3" class="nav-tab ' . ($activeTab == 'tab3' ? 'nav-tab-active' : '') .'">' .
2024-03-16 14:21:57 +01:00
__('SEO', BDP_LV_PLUGIN_SLUG) .
'</a>'.
'</h2>';
}