Bug – empty avatar div shows as a tiny dot
Bug - empty avatar div shows as a tiny dot
If the avatar is set not to display, its 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
<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.