$setting ) { $active = $i++ === 1 ? 'active ' : ''; $sections = isset( $setting['sections'] ) ? $setting['sections'] : []; $sections = BetterDocs_Helper::sorter( $sections, 'priority', 'ASC' ); $is_form = isset( $setting['form'] ) ? $setting['form'] : false; ?>
$setting['sections'] ) : [] ); } if( ! empty( $sections ) && ! isset( $setting['views'] ) ) : /** * Every Section of a tab * Rendering. */ foreach( $sections as $sec_key => $section ) : $fields = isset( $section['fields'] ) ? $section['fields'] : []; $fields = BetterDocs_Helper::sorter( $fields, 'priority', 'ASC' ); $sectionTabs = isset( $section['tabs'] ) ? $section['tabs'] : []; $sectionTabs = BetterDocs_Helper::sorter( $sectionTabs, 'priority', 'ASC' ); ?>
    ' . $value['title'] . ''; } ); ?>
'; array_walk( $fields, function( $field, $field_key ){ BetterDocs_Settings::render_field( $field_key, $field ); } ); echo '
'; } ); ?>
$section['fields'] ) : [] ); } /** * Every Section Field Rendering */ if( ! empty( $fields ) && ! isset( $section['views'] ) ) : ?> $field ) : BetterDocs_Settings::render_field( $field_key, $field ); endforeach; ?>