Fragen\GitHub_Updater\Settings::options_tabs PHP Метод

options_tabs() приватный Метод

Walks through the object's tabs array and prints them one by one. Provides the heading for the settings page.
private options_tabs ( )
    private function options_tabs()
    {
        $current_tab = isset($_GET['tab']) ? $_GET['tab'] : 'github_updater_settings';
        echo '<h2 class="nav-tab-wrapper">';
        foreach ($this->settings_tabs() as $key => $name) {
            $active = $current_tab == $key ? 'nav-tab-active' : '';
            echo '<a class="nav-tab ' . $active . '" href="?page=github-updater&tab=' . $key . '">' . $name . '</a>';
        }
        echo '</h2>';
    }