sections as $section ) { $tab = $section['tab']; if ( ! isset( $sections[ $tab ] ) ) { $sections[ $tab ] = array(); } $sections[ $tab ][] = $section; } ?>

$active_tab, 'section' => $page ), admin_url( 'admin.php?page=aiovg_settings' ) ); if ( ! isset( $section_links[ $page ] ) ) { $section_links[ $page ] = sprintf( '%s', esc_url( $url ), ( $section['id'] == $active_section ? 'current' : '' ), ( isset( $section['menu_title'] ) ? esc_html( $section['menu_title'] ) : esc_html( $section['title'] ) ) ); } } if ( count( $section_links ) > 1 ) : ?>
', ( 0 === $i ? ' open' : '' ) ); if ( '' !== $section['before_section'] ) { if ( '' !== $section['section_class'] ) { echo wp_kses_post( sprintf( $section['before_section'], esc_attr( $section['section_class'] ) ) ); } else { echo wp_kses_post( $section['before_section'] ); } } if ( $section['title'] ) { echo sprintf( ' %s', esc_html( $section['title'] ) ); } if ( $section['callback'] ) { call_user_func( $section['callback'], $section ); } if ( isset( $wp_settings_fields[ $page_hook ][ $section['id'] ] ) ) { echo '
'; echo ''; do_settings_fields( $page_hook, $section['id'] ); echo ''; echo '
'; } if ( '' !== $section['after_section'] ) { echo wp_kses_post( $section['after_section'] ); } echo ''; ++$i; } } submit_button( __( 'Save Changes', 'all-in-one-video-gallery' ), 'primary button-hero' ); ?>