Guest User

Html Options Page Markup

a guest
Sep 14th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. function quadro_admin_options_page() { ?>
  2. <div class="wrap">
  3.  
  4. <h1>Minuscula Theme Options</h1>
  5. <?php quadro_admin_options_page_tabs(); ?>
  6.  
  7. <?php if ( isset( $_GET['settings-updated'] ) ) {
  8. echo "<div class='updated'><p>Cool! Theme settings updated successfully.</p></div>";
  9. } ?>
  10.  
  11. <form action="options.php" method="post">
  12.  
  13. <?php
  14. settings_fields('quadro_theme_options');
  15. do_settings_sections('quadro');
  16. ?>
  17.  
  18. <?php $tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'general' ); ?>
  19.  
  20. <input name="quadro_theme_options[submit-<?php echo $tab; ?>]" type="submit" class="button-primary" value="<?php esc_attr_e('Save Settings', 'quadro'); ?>" />
  21.  
  22. <input name="quadro_theme_options[reset-<?php echo $tab; ?>]" type="submit" class="button-secondary" value="<?php esc_attr_e('Reset Defaults', 'quadro'); ?>" />
  23.  
  24. </form>
  25. </div>
  26. <?php }
Advertisement
Add Comment
Please, Sign In to add comment