Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Setting Field with multiple checkboxes
- function mamaduka_settings_field() {
- $options = get_option( 'georgian_keyboard_options' );
- ?>
- <input name="georgian_keyboard_options[user-element-on-comment]" type="checkbox" id="georgian_keyboard_options[user-element-on-comment]" value="1" <?php checked( 1, $options['user-element-on-comment'] ); ?> />
- <span><?php _e( 'Use Georgian when writing in comment field', 'georgiankeyboard' ); ?></span>
- <br />
- <input name="georgian_keyboard_options[user-element-on-author]" type="checkbox" id="georgian_keyboard_options[user-element-on-author]" value="1" <?php checked( 1, $options['user-element-on-author'] ); ?> />
- <span><?php _e( 'Use Georgian when writing in author field', 'georgiankeyboard' ); ?></span>
- <br />
- <input name="georgian_keyboard_options[user-element-on-search]" type="checkbox" id="georgian_keyboard_options[user-element-on-search]" value="1" <?php checked( 1, $options['user-element-on-search'] ); ?> />
- <span><?php _e( 'Use Georgian when writing in search field', 'georgiankeyboard' ); ?></span>
- <?php
- }
Add Comment
Please, Sign In to add comment