function esplanade_admin_options_page() { ?> <div class="wrap"> <?php esplanade_admin_options_page_tabs(); ?> <?php if (isset($_GET['settings-updated'])) { ?> <div class='updated'><p><?php _e('Theme settings updated successfully.', 'esplanade'); ?> </p></div> <?php } ?> <form action="options.php" method="post"> <?php settings_fields('esplanade_theme_options'); ?> <?php do_settings_sections('esplanade_options'); ?> <p> </p> <?php $tab = isset($_GET['tab']) ? esc_attr($_GET['tab']) : 'general'; ?> <input name="esplanade_theme_options[submit-<?php echo $tab; ?> ]" type="submit" class="button-primary" value="<?php _e('Save Settings', 'esplanade'); ?> " /> <input name="esplanade_theme_options[reset-<?php echo $tab; ?> ]" type="submit" class="button-secondary" value="<?php _e('Reset Defaults', 'esplanade'); ?> " /> <script> jQuery(document).ready(function($) { $('.wp-color-picker').wpColorPicker(); }); </script> </form> </div> <?php }
function esplanade_admin_options_page() { ?> <div class="wrap"> <?php esplanade_admin_options_page_tabs(); ?> <?php if (isset($_GET['settings-updated'])) { ?> <div class='updated'><p><?php _e('Theme settings updated successfully.', 'esplanade'); ?> </p></div> <?php } ?> <form action="options.php" method="post"> <?php settings_fields('esplanade_theme_options'); ?> <?php do_settings_sections('esplanade_options'); ?> <p> </p> <?php $tab = isset($_GET['tab']) ? $_GET['tab'] : 'general'; ?> <input name="esplanade_theme_options[submit-<?php echo $tab; ?> ]" type="submit" class="button-primary" value="<?php _e('Save Settings', 'esplanade'); ?> " /> <input name="esplanade_theme_options[reset-<?php echo $tab; ?> ]" type="submit" class="button-secondary" value="<?php _e('Reset Defaults', 'esplanade'); ?> " /> </form> </div> <?php }