| @@ -1,19 +1,14 @@ | ||
| 1 | -<div class="tab-content" id="<?php | |
| 2 | -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. | |
| 3 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | - exit; | |
| 5 | -} | |
| 6 | -print( isset( $section['id'] ) ? esc_html( $section['id'] ) : 'default-nav' ); ?>"> | |
| 7 | - <table class="form-table" role="presentation"> | |
| 8 | - <tbody> | |
| 9 | - <?php | |
| 10 | - if ( isset( $section['fields'] ) && is_array( $section['fields'] ) ) { | |
| 11 | - foreach ( $section['fields'] as $field ) { | |
| 12 | - $methodName = 'callback_' . $field['type']; | |
| 13 | - $self::$methodName( $field ); | |
| 14 | - } | |
| 15 | - } | |
| 16 | - ?> | |
| 17 | - </tbody> | |
| 18 | - </table> | |
| 1 | +<div class="tab-content" id="<?php print( isset( $section['id'] ) ? $section['id'] : 'default-nav' );?>"> | |
| 2 | + <table class="form-table" role="presentation"> | |
| 3 | + <tbody> | |
| 4 | + <?php | |
| 5 | + if ( isset( $section['fields'] ) && is_array( $section['fields'] ) ) { | |
| 6 | + foreach ( $section['fields'] as $field ) { | |
| 7 | + $methodName = 'callback_' . $field['type']; | |
| 8 | + $self::$methodName( $field ); | |
| 9 | + } | |
| 10 | + } | |
| 11 | + ?> | |
| 12 | + </tbody> | |
| 13 | + </table> | |
| 19 | 14 | </div> |