Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- array(
- 'id' => 'phase_2',
- 'label' => __( 'Phase 2', 'dom767'),
- 'type' => 'text',
- 'default' => '',
- 'placeholder' => __('Placeholder')
- ),
- array(
- 'id' => 'text_block',
- 'label' => __( 'A Text Block' , 'plugin_textdomain' ),
- 'description' => __( 'This is a standard text area.', 'plugin_textdomain' ),
- 'type' => 'textarea',
- 'default' => '',
- 'placeholder' => __( 'Placeholder text for this textarea', 'plugin_textdomain' )
- ),
- array(
- 'id' => 'single_checkbox',
- 'label' => __( 'An Option', 'plugin_textdomain' ),
- 'description' => __( 'A standard checkbox – if you save this option as checked then it will store the option as \'on\', otherwise it will be an empty string.', 'plugin_textdomain' ),
- 'type' => 'checkbox',
- 'default' => ''
- ),
- array(
- 'id' => 'select_box',
- 'label' => __( 'A Select Box', 'plugin_textdomain' ),
- 'description' => __( 'A standard select box.', 'plugin_textdomain' ),
- 'type' => 'select',
- 'options' => array( 'drupal' => 'Drupal', 'joomla' => 'Joomla', 'wordpress' => 'WordPress' ),
- 'default' => 'wordpress'
- ),
- array(
- 'id' => 'radio_buttons',
- 'label' => __( 'Some Options', 'plugin_textdomain' ),
- 'description' => __( 'A standard set of radio buttons.', 'plugin_textdomain' ),
- 'type' => 'radio',
- 'options' => array( 'superman' => 'Superman', 'batman' => 'Batman', 'ironman' => 'Iron Man' ),
- 'default' => 'batman'
- ),
- array(
- 'id' => 'multiple_checkboxes',
- 'label' => __( 'Some Items', 'plugin_textdomain' ),
- 'description' => __( 'You can select multiple items and they will be stored as an array.', 'plugin_textdomain' ),
- 'type' => 'checkbox_multi',
- 'options' => array( 'square' => 'Square', 'circle' => 'Circle', 'rectangle' => 'Rectangle', 'triangle' => 'Triangle' ),
- 'default' => array( 'circle', 'triangle' )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement