function ghatb_admin_bar_page() { ?> <div class="wrap"> <h2 class="nav-tab-wrapper"> <a href="?page=global-hide-admin-tool-bar-plugin" class="nav-tab <?php echo $active_tab == 'wp_optimize_settings' ? 'nav-tab-active' : ''; ?> "><?php _e('Settings', 'global-hide-remove-toolbar-plugin'); ?> </a> <?php _e('Global Hide Admin Tool Bar', 'global-hide-remove-toolbar-plugin'); if (defined('GHATB_VERSION')) { echo ' - ' . GHATB_VERSION; } ?> </h2> <form method="post" action="options.php"> <?php settings_fields('global-admin-bar-group'); ?> <table class="form-table"> <tr valign="top"> <td style="text-align:left;vertical-align:top" colspan="2"> <?php _e('This plugin is designed to turn off the <strong>FRONT END</strong> Toolbar that is displayed for logged in users in WordPress 3.1+ or later.', 'global-hide-remove-toolbar-plugin'); ?> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> <input type="checkbox" name="global-admin-bar-plugin-setting" value="1" <?php if (get_option('global-admin-bar-plugin-setting') == '1') { echo 'checked="checked"'; } ?> /> </td> <td style="text-align:left;vertical-align:top;line-height:14px"> <strong> <?php _e('Hide Toolbar on Front End for Logged In Users', 'global-hide-remove-toolbar-plugin'); ?> </strong> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> </td> <td style="text-align:left; vertical-align: top;line-height:14px"> <div style="margin:-10px 0 8px 15px;font-style:italic"> <?php _e('Hide only for the following roles:', 'global-hide-remove-toolbar-plugin'); ?> <br><br> </div> <?php $uroles = get_usable_roles(); echo implode("\n", $uroles); ?> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> <input type="checkbox" name="global-admin-bar-plugin-user-setting" value="1" <?php if (get_option('global-admin-bar-plugin-user-setting') == '1') { echo 'checked="checked"'; } ?> /> </td> <td style="text-align:left;vertical-align:top;line-height:14px"> <strong> <?php _e('Hide "Show Toolbar when viewing site" on <a href="' . admin_url('profile.php') . '">Your Profile</a> user page - <strong>(Beta Testing Option Not for Production Sites)</strong>', 'global-hide-remove-toolbar-plugin'); ?> </strong> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> </td> <td style="text-align:left;vertical-align:top;line-height:14px"> <div style="margin:-10px 0 8px 15px;font-style:italic"> <?php _e('Hide only for the following roles:', 'global-hide-remove-toolbar-plugin'); ?> <br><br> </div> <?php $uroles = get_usable_roles('profiles'); echo implode("\n", $uroles); ?> </td> </tr> <tr valign="top"> <td style="text-align:left;vertical-align:top" colspan="2"> <?php _e('<strong>REMEMBER THAT</strong>: it may become obsolete if Core Team ever decides to add their own global option, <a title="WordPress features are being developed plugins first" href="//make.wordpress.org/core/features-as-plugins/">features are being developed plugins first</a>, but for now it is very helpful to have a way to turn it off or on since WordPress 3.3+ or later.', 'global-hide-remove-toolbar-plugin'); ?> </td> </tr> </table> <p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes', 'global-hide-remove-toolbar-plugin'); ?> "/></p> </form> </div> <?php }
function ghatb_admin_bar_page() { ?> <div class="wrap"> <h2 class="nav-tab-wrapper"> <a href="?page=global-hide-toolbar" class="nav-tab"><?php _e('Settings'); ?> </a> <?php global $wp_version; if ($wp_version < 3.3) { _e('Global Hide Admin Bar - 1.6.1.1'); } global $wp_version; if ($wp_version >= 3.3) { _e('Global Hide Toolbar - 1.6.1.1'); } ?> </h2> <form method="post" action="options.php"> <?php settings_fields('global-admin-bar-group'); ?> <table class="form-table"> <tr valign="top"> <td style="text-align:left;vertical-align:top" colspan="2"> <?php _e('This plugin turn off the <strong>FRONT END</strong> Toolbar that is displayed for logged in users in WordPress 3.1+ or later.'); ?> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> <input type="checkbox" name="global-admin-bar-plugin-setting" value="1" <?php if (get_option('global-admin-bar-plugin-setting') == '1') { echo 'checked="checked"'; } ?> /> </td> <td style="text-align:left;vertical-align:top;line-height:14px"> <strong> <?php _e('Hide Toolbar on Front End for Logged In Users'); ?> </strong> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> </td> <td style="text-align:left; vertical-align: top;line-height:14px"> <div style="margin:-10px 0 8px 15px;font-style:italic"> <?php _e('Hide only for the following roles:'); ?> <br><br> </div> <?php $uroles = get_usable_roles(); echo implode("\n", $uroles); ?> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> <input type="checkbox" name="global-admin-bar-plugin-user-setting" value="1" <?php if (get_option('global-admin-bar-plugin-user-setting') == '1') { echo 'checked="checked"'; } ?> /> </td> <td style="text-align:left;vertical-align:top;line-height:14px"> <strong> <?php _e('Hide "Show Toolbar when viewing site" on <a href="' . admin_url('profile.php') . '">Your Profile</a> users page - <strong>(Beta Option Not for Production Sites)</strong>'); ?> </strong> </td> </tr> <tr valign="top"> <td style="text-align:right;vertical-align:top;width:25px"> </td> <td style="text-align:left;vertical-align:top;line-height:14px"> <div style="margin:-10px 0 8px 15px;font-style:italic"> <?php _e('Hide only for the following roles:'); ?> <br><br> </div> <?php $uroles = get_usable_roles('profiles'); echo implode("\n", $uroles); ?> </td> </tr> <tr valign="top"> <td style="text-align:left;vertical-align:top" colspan="2"> <?php _e('It may become obsolete when <strong>Core Team</strong> add their own global option <a title="WordPress features are being developed plugins first" href="https://make.wordpress.org/core/features-as-plugins/">features are being developed plugins first</a>.'); ?> </td> </tr> </table> <p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes'); ?> "/></p> </form> </div> <?php }
function gabrhp_admin_bar_page() { ?> <div class="wrap"> <div class="icon32" style="<?php echo 'background: url(' . plugins_url() . '/global-admin-bar-hide-or-remove/settings-32-icon.png) no-repeat transparent;'; ?> "><br /></div> <h2>Global Hide/Remove Toolbar Plugin Options</h2> <form method="post" action="options.php"> <?php settings_fields('global-admin-bar-group'); ?> <table class="form-table"> <tr valign="top"> <td style="text-align: left; vertical-align: top;" colspan="2">This plugin is designed to turn off the Toolbar that is displayed for logged in users in WordPress 3.1+. It may become obsolete if WordPress ever decides to add their own global option - but for now it is very helpful to have a way to turn it off or on.<br/><br/></td> </tr> <tr valign="top"> <td style="text-align: right; vertical-align: top;width:25px;"><input type="checkbox" name="global-admin-bar-plugin-setting" value="1" <?php if (get_option('global-admin-bar-plugin-setting') == '1') { echo 'checked="checked"'; } ?> /></td><td style="text-align:left; vertical-align: top;line-height:14px;"><strong>Hide/Remove Toolbar on front end for logged in users?</strong></td> </tr> <tr valign="top"> <td style="text-align: right; vertical-align: top;width:25px;"> </td> <td style="text-align:left; vertical-align: top;line-height:14px;"> <div style="margin:-10px 0 8px 15px;font-style: italic;">Hide only for the following user roles:</div> <?php $uroles = get_usable_roles(); echo implode("\n", $uroles); ?> </td> </tr> <tr valign="top"> <td style="text-align: right; vertical-align: top;width:25px;"><input type="checkbox" name="global-admin-bar-plugin-user-setting" value="1" <?php if (get_option('global-admin-bar-plugin-user-setting') == '1') { echo 'checked="checked"'; } ?> /></td><td style="text-align:left; vertical-align: top;line-height:14px;"><strong>Hide/Remove "Show Toolbar when viewing site" option on Profile Page?</strong></td> </tr> <tr valign="top"> <td style="text-align: right; vertical-align: top;width:25px;"> </td> <td style="text-align:left; vertical-align: top;line-height:14px;"> <div style="margin:-10px 0 8px 15px;font-style: italic;">Hide only for the following user roles:</div> <?php $uroles = get_usable_roles('profiles'); echo implode("\n", $uroles); ?> </td> </tr> </table> <p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes'); ?> " /></p> </form> </div> <?php }