<?php $online = ''; if($data->privacy && $data->privacy->show_online_status) if($data->isOnline()) { $online .= CHtml::image(Yum::register('images/green_button.png')); } ?> <?php printf('<h3>%s %s</h3>', $data->username, $online); ?> <?php echo CHtml::link($data->getAvatar(true), array( '//profile/profile/view', 'id' => $data->id)); ?> </div> <?php Y::script()->registerScript('tooltip_'.$data->id, " $('#user_{$data->id}').tooltip({ 'position': 'top', 'offset': [0, -50], 'tip': '#tooltip_{$data->id}', 'predelay': 100, 'fadeOutSpeed': 100, }); "); ?>