It can also be done for free. We really need to get rid of these posts where people offer to do jobs, this isn't the place for it. Use the appropriate channels if you're a developer, and use Upwork: http://www.oxwall.org/market/specialists
Download the attachment in Nickolay's post: http://www.oxwall.org/forum/topic/33216
I had to go right to the base:
.../ow_system_plugins/base/components/console_dropdown_hover.php
Replace _construct function with following (changes are in bold):
public function __construct($label, $key = null) { parent::__construct($label, $key);
$template = OW::getPluginManager()->getPlugin('BASE')->getCmpViewDir() . 'console_dropdown_hover.html'; $this->setTemplate($template);
$this->addClass('ow_console_dropdown_hover');
$avatarUrl = BOL_AvatarService::getInstance()->getAvatarUrl(OW::getUser()->getId());
$this->assign("avatarUrl", $avatarUrl);
}
.../ow_system_plugins/base/views/components/console_dropdown_hover.html
Replace content with following:
<a href="{$url}" class="ow_console_item ow_console_dropdown ow_avatar"><img class="" src="{$avatarUrl}" style="margin-left: -25px"></a>
<span class="ow_console_more"></span>
Note: This is not for production use. When admin - double avatar will be displayed. I am using Simplicity theme - adjust style as required.
Note: I did not check for case when user did not define avatar.
On the side note: I am not associated with PhpStorm, but after long search - I cannot imagine working without it. 70 USD (or about) is totally worth it. Thank you
Here is updated code for html part:
{if empty($avatarUrl)}<a href="{$url}" class="ow_console_item_link">{$label}</a>{else}<a href="{$url}" class="ow_console_item ow_console_dropdown ow_avatar" style="width: 50px"><img class="" src="{$avatarUrl}" style="margin-left: -14px"></a>{/if}
<span class="ow_console_more"></span>
Thank you.
Kind regards,
TY