/* |
section key |
Key to each option in the array.Suggests using the key value as the “id” parameter(section_id) |
title |
Displays title of the section. |
section id('id') |
Unique ID identifying the section. Must be different from all other section IDs. |
fields |
Blocks of arrays that represent the individual options within a specific options panel, set via a Sections array |
field id('id') |
Unique ID identifying the field. Must be different from all other field IDs. |
label |
Displays title of the field. |
info |
Description of the option, appearing beneath the field control. |
type |
Can use types like: text,textarea,checkbox,select,image,color,font, |
default |
Default value of the field. |
fields() |
Nested blocks of arrays, set via a field array |
description |
An additional informative field for checkbox |
imagetype |
An additional data-imagetype for image(upload_btn) |
box-title |
An additional informative field nested blocks |
Example custom section with fields
function child_options($sections) { |
A safe way of getting values for a named option from the options database table is use function fruitful_get_theme_options()
For example:
$theme_options = fruitful_get_theme_options(); |
Result:
Default value |