Skip to content

Commit

Permalink
Add js tooltips for profile box (#4905)
Browse files Browse the repository at this point in the history
  • Loading branch information
betteryouthanme authored and 810 committed Nov 1, 2016
1 parent 53a5dcf commit 791afb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/libraries/kunena/integration/private.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function showIcon($userid)
}

// We should offer the user a PM link
return '<a class="' . $class . '" href="' . $url . '"' . $onclick . ' title="' . JText::_('COM_KUNENA_VIEW_PMS') . '">' . KunenaIcons::pm() .'</a>';
return '<a class="' . $class . '" href="' . $url . '""' . $onclick . '">' . KunenaIcons::pm() .'</a>';
}

/**
Expand Down
12 changes: 6 additions & 6 deletions src/libraries/kunena/user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ public function profileIcon($name)
$gender = 'unknown';
}
$title = JText::_ ( 'COM_KUNENA_MYPROFILE_GENDER' ) . ': ' . JText::_ ( 'COM_KUNENA_MYPROFILE_GENDER_' . $gender );
return '<span class="kicon-profile kicon-profile-gender-' . $gender . '" title="' . $title . '"></span>';
return '<span class="kicon-profile kicon-profile-gender-' . $gender . '" data-toggle="tooltip" data-placement="right" title="' . $title . '"></span>';
break;
case 'birthdate' :
if ($this->birthdate)
Expand All @@ -1398,13 +1398,13 @@ public function profileIcon($name)
{
break;
}
return '<span class="kicon-profile kicon-profile-birthdate" title="' . JText::_( 'COM_KUNENA_MYPROFILE_BIRTHDATE' ) . ': ' . $this->birthdate->toKunena('date', 'GMT') . '"></span>';
return '<span class="kicon-profile kicon-profile-birthdate" data-toggle="tooltip" data-placement="right" title="' . JText::_( 'COM_KUNENA_MYPROFILE_BIRTHDATE' ) . ': ' . $this->birthdate->toKunena('date', 'GMT') . '"></span>';
}
break;
case 'location' :
if ($this->location)
{
return '<span title="' . $this->escape($this->location) . '">' . KunenaIcons::location() . '</span>';
return '<span data-toggle="tooltip" data-placement="right" title="' . $this->escape($this->location) . '">' . KunenaIcons::location() . '</span>';
}
break;
case 'website' :
Expand All @@ -1423,15 +1423,15 @@ public function profileIcon($name)
}
if ($this->websiteurl)
{
return '<a href="' . $this->escape($url) . '" target="_blank"><span title="' . $websitename . '">' . KunenaIcons::globe() .'</span></a>';
return '<a href="' . $this->escape($url) . '" target="_blank"><span data-toggle="tooltip" data-placement="right" title="' . $websitename . '">' . KunenaIcons::globe() .'</span></a>';
}
break;
case 'private' :
$pms = KunenaFactory::getPrivateMessaging();
return $pms->showIcon($this->userid);
return '<span data-toggle="tooltip" data-placement="right" title="' . JText::_( 'COM_KUNENA_VIEW_PMS' ) . '" >' . $pms->showIcon($this->userid) . '</span>';
break;
case 'email' :
return '<span title="' . $this->email . '">' . KunenaIcons::email() . '</span>';
return '<span data-toggle="tooltip" data-placement="right" title="' . $this->email . '">' . KunenaIcons::email() . '</span>';
break;
case 'profile' :
if (! $this->userid)
Expand Down

0 comments on commit 791afb5

Please sign in to comment.