parent = $framework;
}
/**
* Create the HTML interface for admin options page
*
* @since 1.0.0
* @return void
*/
public function admin_options_page() {
$section_ids = array_keys( $this->parent->sections );
$requested_tab = filter_input( INPUT_GET, 'tab', FILTER_UNSAFE_RAW );
$active_tab = is_string( $requested_tab ) ? sanitize_key( $requested_tab ) : $section_ids[0];
$base_url = menu_page_url( $this->parent->configs['page_slug'], false );
if ( ! isset( $this->parent->sections[ $active_tab ] ) ) {
echo '
' . esc_html__( 'The requested settings section does not exist.', 'adz-world' ) . '
';
return;
}
?>
parent->sections as $section ) {
$actived = ( $active_tab === $section['id'] ) ? 'nav-tab-active' : '';
if ( isset( $section['type'] ) && 'url' === $section['type'] ) {
printf(
'%4$s',
esc_url( $section['url'] ),
esc_attr( $section['title'] ),
esc_attr( $actived ),
esc_html( $section['title'] )
);
} else {
printf(
'%4$s',
esc_url( add_query_arg( 'tab', $section['id'], $base_url ) ),
esc_attr( $section['title'] ),
esc_attr( $actived ),
esc_html( $section['title'] )
);
}
}
?>
parent->sections[ $active_tab ]['type'] ) && 'blank' === $this->parent->sections[ $active_tab ]['type'] ) {
do_action( 'eof_options_page_' . $this->parent->configs['opt_name'] . '_' . $this->parent->sections[ $active_tab ]['id'] );
} else {
?>