| 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> |
| 19 |
</div> |
| 20 |
|