Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*========================================================================================
- 01. name – This is the title that will be displayed on the options panel.
- 02. desc – Description for the option
- 03. id – A unique id for your option.
- 04. std – A standard value for the option.
- 05. type – The type of option
- =========================================================================================*/
- <?php
- $of_options[] = array(
- "name" => "Media Uploader",
- "desc" => "Upload images using native media uploader.",
- "id" => "your_option_id",
- "std" => "",
- "type" => "media"
- );
- ?>
- //Using Data
- <?php global $data; echo $data['your_option_id']; ?>
- //Using Conditional Data:
- <?php global $data; ?>
- <?php if($data['your_option_id']): ?>
- <?php echo $data['your_option_id']; ?>
- <?php endif; ?>
- //Using conditional Data with Default Data
- <?php global $data; ?>
- <?php if($data['your_option_id']): ?>
- <?php echo $data['your_option_id']; ?>
- <?php else: ?>
- My Default Data
- <?php endif; ?> ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement