Esempio n. 1
0
                            <form method="post">
                                <button id="ub_admin_bar_start_ordering" class="button-secondary"><?php _e("Reorder Menus", "ub"); ?></button>
                                <button type="submit" class="button-secondary" name="ub_admin_bar_restore_default_order"><?php _e("Restore Default Order", 'ub'); ?></button>
                            </form>
                            <p class="description">
                                <?php _e("Select 'Reorder Menus' then drag and drop to reorder your menu items. 'Restore Default Order' reverts them back to their original order, overriding any ordering you have set up.", "ub"); ?>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">
                            <?php  _e('Admin Bar CSS Styles', 'ub') ?>
                        </th>
                        <td>
                            <textarea style="display: none" type="text" name="ub_admin_bar_style" id="ub_admin_bar_style_input"><?php echo UB_Admin_Bar::styles( true );  ?></textarea>
                            <div id="ub_admin_bar_style_editor" data-input="#ub_admin_bar_style_input"  class="ub_css_editor"><?php echo UB_Admin_Bar::styles( true );  ?></div>
                            <p class="description">
                                <?php _e("Styles defined here only apply to the admin bar, no other part of WordPress will be affected. Leave empty if no change to the default style is being made. Please don't use more than one selector for each set of rules", "ub"); ?>

                            </p>
                            <p class="description">
                                <?php _e("Style <code>.ub_admin_bar_image</code> to change styling of images in the admin bar", "ub"); ?>
                            </p>
                            <p class="description">
                                <?php _e("Style <code>#wpadminbar</code> to change color or other styling of the admin bar", "ub"); ?>
                            </p>
                            <p class="description">
                                <?php _e("Style <code>.ab-label</code> and <code>.ab-item</code> to change font  or other styling of the links in admin bar", "ub"); ?>
                            </p>
                        </td>
                    </tr>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">
                            <?php 
_e('Admin Bar CSS Styles', 'ub');
?>
                        </th>
                        <td>
                            <textarea style="display: none" type="text" name="ub_admin_bar_style" id="ub_admin_bar_style_input"><?php 
echo UB_Admin_Bar::styles(true);
?>
</textarea>
                            <div id="ub_admin_bar_style_editor" data-input="#ub_admin_bar_style_input"  class="ub_css_editor"><?php 
echo UB_Admin_Bar::styles(true);
?>
</div>
                            <p class="description">
                                <?php 
_e("Styles defined here only apply to the admin bar, no other part of WordPress will be affected. Leave empty if no change to the default style is being made.", "ub");
?>

                            </p>
                            <p class="description">
                                <?php 
_e("Style <code>.ub_admin_bar_image</code> to change styling of images in the admin bar", "ub");
?>
                            </p>
                            <p class="description">
                                <?php 
Esempio n. 3
0
	/**
	 * Renders before admin bad renderer
	 *
	 * @hook wp_before_admin_bar_render
	 *
	 * @since 1.6
	 * @access public
	 */
	function before_admin_bar_render(){
		?>
		<style type="text/css">
			<?php echo UB_Admin_Bar::styles();?>
		</style>

		<div id='ub_admin_bar_wrap'>

	<?php
	}