Bug - empty avatar div shows as a tiny dot

ABTOP
ABTOP
  • ABTOP
  • 12 months ago
If the avatar is set not to display, its div
<div class="avatar">'.CommunityQuizHelper::getUserAvatar($quiz->created_by, $config[CQ_AVATAR_SIZE]).'</div>

still shows as a tiny dot and takes a little space left of the hits number.

You need to bring this div inside the condition because there is no reason to show it if there is no avatar to show.
Like this

<?php echo ($config[CQ_SHOW_AVATAR_IN_LISTING] == '1') ? '<div class="avatar">'.CommunityQuizHelper::getUserAvatar($quiz->created_by, $config[CQ_AVATAR_SIZE]).'</div>' : '';?>

Access to viewing replies is restricted.
Showing 1 of 1 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai