Guest User

Untitled

a guest
Dec 7th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?php
  2. // Setting Field with multiple checkboxes
  3. function mamaduka_settings_field() {
  4. $options = get_option( 'georgian_keyboard_options' );
  5. ?>
  6. <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'] ); ?> />
  7. <span><?php _e( 'Use Georgian when writing in comment field', 'georgiankeyboard' ); ?></span>
  8. <br />
  9. <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'] ); ?> />
  10. <span><?php _e( 'Use Georgian when writing in author field', 'georgiankeyboard' ); ?></span>
  11. <br />
  12. <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'] ); ?> />
  13. <span><?php _e( 'Use Georgian when writing in search field', 'georgiankeyboard' ); ?></span>
  14.  
  15. <?php
  16. }
Add Comment
Please, Sign In to add comment