PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.4
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.4
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/shared/form-nav.php +14 -16 6.345.4 View file →
@@ -9,24 +9,22 @@
9 9 <ul class="frm_form_nav">
10 10 <?php
11 11
12 12 foreach ( $nav_items as $nav_item ) {
13 - if ( ! current_user_can( $nav_item['permission'] ) ) {
14 - continue;
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
15 27 }
16 -
17 - ?>
18 - <li>
19 - <a href="<?php echo esc_url( $nav_item['link'] ); ?>"
20 - <?php FrmAppHelper::select_current_page( $nav_item['page'], $current_page, $nav_item['current'] ); ?>
21 - <?php
22 - if ( isset( $nav_item['atts'] ) ) {
23 - FrmAppHelper::array_to_html_params( $nav_item['atts'], true );
24 - }
25 - ?>>
26 - <?php echo esc_html( $nav_item['label'] ); ?>
27 - </a>
28 - </li>
29 - <?php
30 28 }
31 29 ?>
32 30 </ul>