</tr>
 <?php if( $enable_hiding_default_bars ): ?>
 <tr>
     <th scope="row">
         <?php  _e('Hide WordPress Menu Items', 'ub') ?>
     </th>
     <td>
         <?php UB_Admin_Bar_Forms::create_disable_box() ?>
     </td>
 </tr>
 <tr>
     <th scope="row">
         <?php _e('Select User Roles affected by above', 'ub') ?>
     </th>
     <td>
         <?php UB_Admin_Bar_Forms::create_roles_box('wp_menu_roles') ?>
     </td>
 </tr>
 <?php endif; ?>
 <tr>
     <th scope="row">
         <?php  _e('Reorder Admin Bar Menus', 'ub') ?>
     </th>
     <td>
         <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>
UB_Admin_Bar_Forms::create_enabled_box();
?>
                        </td>
                    </tr>
                    <?php 
if ($enable_hiding_default_bars) {
    ?>
                    <tr>
                        <th scope="row">
                            <?php 
    _e('Hide WordPress Menu Items', 'ub');
    ?>
                        </th>
                        <td>
                            <?php 
    UB_Admin_Bar_Forms::create_disable_box();
    ?>
                        </td>
                    </tr>
                    <?php 
}
?>
                    <tr>
                        <th scope="row">
                            <?php 
_e('Reorder Admin Bar Menus', 'ub');
?>
                        </th>
                        <td>
                            <form method="post">
                                <button id="ub_admin_bar_start_ordering" class="button-secondary"><?php 
Example #3
0
                            <input id="<?php echo $menu->get_field_id( "title_link-url-type-url" ); ?>" class="title_link-this_url-switch title_link-url-type" class="title_link-this_url-switch title_link-url-type" data-value="<?php echo $menu->link_url; ?>" type="radio" name="ub_ab_prev[<?php echo $menu->id ?>][url]" value="url"  <?php checked( $menu->link_type, "url" ); ?>>
                            <label for="<?php echo $menu->get_field_id( "title_link-url-type-url" ); ?>"><?php _e("This URL:", "ub"); ?></label>

                            <input type="text" class="title_link-this_url"  size="48" name="ub_ab_prev[<?php echo $menu->id ?>][url]" value="<?php echo $menu->link_url ?>" <?php echo in_array($menu->link_type, array("site_url", "admin_url", "network_site_url") ) ? "disabled='disabled'" : ''; ?> ><br>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><?php _e("Open in new window?", "ub"); ?></th>
                        <td>
                            <input type="checkbox" name="ub_ab_prev[<?php echo $menu->id ?>][target]"  <?php  checked( $menu->target, "_blank" ); ?> >
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><?php _e("Select User Roles allowed to see menu", "ub"); ?></th>
                        <td>
                        <?php UB_Admin_Bar_Forms::create_submenu_roles( $menu ); ?>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><?php _e("Add new link", "ub"); ?></th>
                        <td>
                            <?php UltimateBrandingAdmin::render( UB_Admin_Bar::NAME, "_add_new_links", array(
                               'menu' => $menu
                            )); ?>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">
                            <?php _e("Configure Links", "ub"); ?>
                        </th>
                        <td>