­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­

{$section['title']}

\n"; call_user_func($section['callback'], $section); if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) ) { echo '
'; continue; } echo '
'; custom_do_settings_fields($page, $section['id']); echo "
"; echo '
'; } } function custom_do_settings_fields($page, $section) { global $wp_settings_fields; if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section]) ) { return; } $count = count($wp_settings_fields[$page][$section]); $i = 0; $k = 0; $column = 0; foreach ((array)$wp_settings_fields[$page][$section] as $field) { $subsection = !empty($field['args']['subsection']) ? $field['args']['subsection'] : ''; if (!empty($field['args']['column'])) { $column = $field['args']['column']; } if (!empty($field['args']['chapter'])) { if ($column > $i && $column > 1) { echo ''; } if ($column > $i) { echo '
'; $i++; } $chapter = $field['args']['chapter']; echo '

'.$chapter.'

'; } echo '
'; if (!empty($field['args']['label_for'])) { echo '
'; } else { echo '

'.$field['title'].'

'; } call_user_func($field['callback'], $field['args']); echo '
'; if (++$k === $count && $column > 0) { echo '
'; } } } //screen_icon(); ?>

Superfly Settings

Superfly v. | Documentation | Awesome plugins