# formidable/5.0/classes/views/shared/form-nav.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 5.0. 31 lines.

- Page: https://pluginprobe.com/plugins/formidable/5.0/code/classes/views/shared/form-nav.php
- Raw: https://pluginprobe.com/plugins/formidable/5.0/raw/classes/views/shared/form-nav.php
- Modified: 2020-12-07T20:56:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/5.0/code/classes/views/shared/form-nav.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

FrmFormsHelper::form_switcher( $form );
?>

<ul class="frm_form_nav">
<?php

foreach ( $nav_items as $nav_item ) {
	if ( current_user_can( $nav_item['permission'] ) ) {
		?>
		<li>
			<a href="<?php echo esc_url( $nav_item['link'] ); ?>"
				<?php FrmAppHelper::select_current_page( $nav_item['page'], $current_page, $nav_item['current'] ); ?>
				<?php
				if ( isset( $nav_item['atts'] ) ) {
					echo FrmAppHelper::array_to_html_params( $nav_item['atts'] ); // WPCS: XSS ok.
				}
				?>>
				<?php echo esc_html( $nav_item['label'] ); ?>
			</a>
		</li>
		<?php
	}
}
?>
</ul>

```
