| 1 |
<div id="titlediv"> |
| 2 |
<ul class="frm_form_nav"> |
| 3 |
<?php |
| 4 |
|
| 5 |
$class = ' class="first"'; |
| 6 |
foreach ( $nav_items as $nav_item ) { |
| 7 |
if ( current_user_can( $nav_item['permission'] ) ) { |
| 8 |
?> |
| 9 |
<li<?php echo $class ?>><a<?php FrmAppHelper::select_current_page( $nav_item['page'], $current_page, $nav_item['current'] ); ?> href="<?php echo esc_url( $nav_item['link'] ) ?>"><?php echo esc_html( $nav_item['label'] ) ?></a> </li> |
| 10 |
<?php |
| 11 |
$class = ''; |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
FrmFormsHelper::form_switcher(); |
| 16 |
?> |
| 17 |
</ul> |
| 18 |
|
| 19 |
<?php if ( $form && $title == 'show' ) { ?> |
| 20 |
<input id="title" type="text" value="<?php echo esc_attr( $form->name == '' ? __( '(no title)') : $form->name ) ?>" readonly="readonly" disabled="disabled" /> |
| 21 |
<?php } ?> |
| 22 |
</div> |
| 23 |
|