';
echo sprintf( ' %s', $args['desc'] );
}
/**
* Get the value of a settings field
*
* @param string $option settings field name
* @param string $section the section name this field belongs to
* @param string $default default text if it's not found
* @return string
*/
function get_option( $option, $section, $default = '' ) {
$options = get_option( $section );
if($option == 'embed' && !isset($options[$option]) ) {
return array(
'embed' => array(
)
);
}
if ( isset( $options[$option] ) ) {
return $options[$option];
}
return $default;
}
/**
* Show navigations as tab
*
* Shows all the settings section labels as tab
*/
function show_navigation() {
$html = '
';
echo $html;
}
/**
* Show the section settings forms
*
* This function displays every sections in a different form
*/
function show_forms() {
?>
settings_sections as $form ) { ?>
script();
}
/**
* Tabbable JavaScript codes
*
* This code uses localstorage for displaying active tabs
*/
function script() {
?>