lifterlms_template_student_dashboard_select_mobile_navigation( string $current )

Output the student dashboard mobile navigation


Parameters Parameters

$current

(string) (Required) The current tab slug.


Top ↑

Return Return

(void)


Top ↑

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
	}


Top ↑

Changelog Changelog

Changelog
Version Description
9.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.