Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Admin_AddOns::output_navigation()
Output the navigation bar
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.addons.php
private function output_navigation() { $curr_section = $this->get_current_section(); ?> <nav class="llms-nav-tab-wrapper llms-nav-text"> <ul class="llms-nav-items"> <?php do_action( 'lifterlms_before_addons_nav', $curr_section ); ?> <li class="llms-nav-item<?php echo ( 'all' === $curr_section ) ? ' llms-active' : ''; ?>"><a class="llms-nav-link" href="<?php echo esc_url( admin_url( 'admin.php?page=llms-add-ons§ion=all' ) ); ?>"><?php _e( 'All', 'lifterlms' ); ?></a></li> <?php foreach ( $this->data['categories'] as $name => $title ) : $name = sanitize_title( $name ); $title = sanitize_text_field( $title ); $active = ( $this->get_current_section() === $name ) ? ' llms-active' : ''; ?> <li class="llms-nav-item<?php echo $active; ?>"><a class="llms-nav-link" href="<?php echo esc_url( admin_url( 'admin.php?page=llms-add-ons§ion=' . $name ) ); ?>"><?php echo $title; ?></a></li> <?php endforeach; ?> <?php do_action( 'lifterlms_after_addons_nav', $curr_section ); ?> </ul> </nav> <?php }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |