| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
FrmFormsHelper::form_switcher( $form ); |
| 7 |
?> |
| 8 |
|
| 9 |
<ul class="frm_form_nav"> |
| 10 |
<?php |
| 11 |
|
| 12 |
foreach ( $nav_items as $nav_item ) { |
| 13 |
if ( current_user_can( $nav_item['permission'] ) ) { |
| 14 |
?> |
| 15 |
<li> |
| 16 |
<a href="<?php echo esc_url( $nav_item['link'] ); ?>" |
| 17 |
<?php FrmAppHelper::select_current_page( $nav_item['page'], $current_page, $nav_item['current'] ); ?> |
| 18 |
<?php |
| 19 |
if ( isset( $nav_item['atts'] ) ) { |
| 20 |
FrmAppHelper::array_to_html_params( $nav_item['atts'], true ); |
| 21 |
} |
| 22 |
?>> |
| 23 |
<?php echo esc_html( $nav_item['label'] ); ?> |
| 24 |
</a> |
| 25 |
</li> |
| 26 |
<?php |
| 27 |
} |
| 28 |
} |
| 29 |
?> |
| 30 |
</ul> |
| 31 |
|