false, 'use_link' => false, 'img_class' => 'photo u-photo', )); $icon = ""; // grab the actions and admin menu items from user hover $menu = elgg_trigger_plugin_hook('register', "menu:user_hover", array('entity' => $user), array()); $builder = new ElggMenuBuilder($menu); $menu = $builder->getMenu(); $menu = elgg_trigger_plugin_hook('prepare', "menu:user_hover", array( 'menu' => $menu, 'entity' => $user, 'username' => $user->username, 'name' => 'user_hover', ), $menu); $actions = elgg_extract('action', $menu, array()); $admin = elgg_extract('admin', $menu, array()); $profile_actions = ''; if (elgg_is_logged_in() && $actions) { $profile_actions = ''; } // if admin, display admin links $admin_links = ''; if (elgg_is_admin_logged_in() && elgg_get_logged_in_user_guid() != elgg_get_page_owner_guid()) { $text = elgg_echo('admin:options'); $admin_links = ''; } // content links $content_menu = elgg_view_menu('owner_block', array( 'entity' => elgg_get_page_owner_entity(), 'class' => 'profile-content-menu', )); echo <<
$icon $profile_actions $content_menu $admin_links
HTML;