lifterlms_template_student_dashboard_select_mobile_navigation( string $current )
Output the student dashboard mobile navigation
Parameters Parameters
- $current
-
(string) (Required) The current tab slug.
Return Return
(void)
Source Source
File: includes/functions/llms.functions.templates.dashboard.php
function lifterlms_template_student_dashboard_select_mobile_navigation( $current ) {
?>
<select onChange="window.location.replace(this.options[this.selectedIndex].value)">
<?php foreach ( LLMS_Student_Dashboard::get_tabs_for_nav() as $var => $data ) : ?>
<option value="<?php echo esc_attr( esc_url( $data['url'] ) ); ?>" <?php selected( $var, $current ); ?>>
<?php echo esc_html( $data['title'] ); ?>
</option>
<?php endforeach; ?>
</select>
<?php
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 9.0.0 | Introduced. |