<?php bp_get_displayed_user_nav(); ?> <?php do_action('bp_member_options_nav'); ?> </ul> </div> </div><!-- #item-nav --> </div> <?php // BEGIN Added by Sam if (!is_super_admin() && member_is_in_translation_group()) { locate_template(array('translation-header.php'), true); ?> <div class="col-md-9 col-sm-8"> <div class="padder"> <div id="item-body"> <? } else { //default ?> <div class="col-md-9 col-sm-8"> <div class="padder"> <div id="item-body"> <div class="member-courses-header"><img src="<?php echo get_stylesheet_directory_uri(); ?>
function translation_group_admin_bar_tweaks() { if (!is_super_admin() && (is_translation_group() || member_is_in_translation_group())) { global $wp_admin_bar; // add WordPress logo $wp_admin_bar->remove_menu('my-sites'); $wp_admin_bar->remove_menu('site-name'); $wp_admin_bar->remove_menu('updates'); $wp_admin_bar->remove_menu('comments'); $wp_admin_bar->remove_menu('new-content'); $wp_admin_bar->remove_menu('group-admin'); $args = array('id' => 'wcn-help', 'title' => __('Help', 'wcn'), 'href' => '/translation-help/', 'parent' => 'top-secondary'); $wp_admin_bar->add_menu($args); $args = array('id' => 'wpmudev-chat-container', 'parent' => 'top-secondary'); $wp_admin_bar->add_menu($args); } }