LLMS_Settings_Page::output_sections_nav()
Output settings sections as tabs and set post href
Return Return
(void)
Source Source
File: includes/admin/settings/class.llms.settings.page.php
public function output_sections_nav() { $sections = $this->get_sections(); if ( empty( $sections ) ) { return; } $curr = $this->get_current_section(); ?> <nav class="llms-nav-tab-wrapper llms-nav-text"> <ul class="llms-nav-items"> <?php foreach ( $sections as $key => $title ) : ?> <li class="llms-nav-item<?php echo ( $key === $curr ) ? ' llms-active' : ''; ?>"> <a class="llms-nav-link" href="<?php echo esc_url( admin_url( 'admin.php?page=llms-settings&tab=' . $this->id . '§ion=' . $key ) ); ?>"><?php echo $title; ?></a> </li> <?php endforeach; ?> </ul> </nav> <?php }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.5 | Introduced. |