Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
3. Edit cheezcap/config.php
4. Sprinkle theme options around your code, like this:

if ($cap->my_boolean_option) {
// do stuff
}
if ($cap->my_boolean_option) {
// do stuff
}

5. Enjoy!

Expand Down Expand Up @@ -77,6 +77,7 @@ are three types of Options available to create:
1. Boolean Option
2. Text Option
3. Dropdown Option
4. MediaOption

## 1. Boolean Option
The simplest form of option...creates a true or false dropdown that can be used to turn features on or off.
Expand Down Expand Up @@ -112,6 +113,16 @@ Allows you to create a dropdown with custom values by passing the constructor an
DefaultIndex = an integer identifying the item in the array that is the default value; if not specified,
the default is 0.

## 4. Media Option
Allows you to open a media library modal and get the URL for an item. If it's an image, a preview will display

new MediaOption(Name, Description, OptionID, Default )

Name = a human readable name for the option.
Description = a human readable description for the option.
OptionID = a machine readable option identifier, cannot have spaces and must be unique
Default = a string as the default value for the option; if not specified, the default is ""

##
## Usage
##
Expand Down
Loading