<?php

/**
 * View for Subscription Settings page header (tabs)
 */

// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}

?>

<h2 style="padding: 0; margin: 0; height: 0;">
    <!-- Fix for WordPress notices jumping in between header and settings area -->
</h2>

<h2 class="subscriptio_tabs_container nav-tab-wrapper">
    <?php foreach ($this->settings as $tab_key => $tab): ?>
        <a class="nav-tab <?php echo ($tab_key == $current_tab ? 'nav-tab-active' : ''); ?>" href="?post_type=subscription&page=subscriptio_settings&tab=<?php echo $tab_key; ?>"><?php echo (!empty($tab['icon']) ? $tab['icon'] . '&nbsp;' : '') . $tab['title']; ?></a>
    <?php endforeach; ?>
</h2>
