[ticket/12680] Adds alternative text to contact icon in viewtopic.php

PHPBB3-12680
This commit is contained in:
Crizzo 2014-06-09 22:55:13 +02:00
parent b6232aa9b2
commit f7f80a424f
2 changed files with 9 additions and 1 deletions

View file

@ -164,7 +164,7 @@
<div> <div>
<!-- ENDIF --> <!-- ENDIF -->
<a href="<!-- IF postrow.contact.U_CONTACT -->{postrow.contact.U_CONTACT}<!-- ELSE -->{postrow.contact.U_PROFILE_AUTHOR}<!-- ENDIF -->" title="{postrow.contact.NAME}"<!-- IF $S_LAST_CELL --> class="last-cell"<!-- ENDIF --><!-- IF postrow.contact.ID eq 'jabber' --> onclick="popup(this.href, 550, 320); return false;"<!-- ENDIF -->> <a href="<!-- IF postrow.contact.U_CONTACT -->{postrow.contact.U_CONTACT}<!-- ELSE -->{postrow.contact.U_PROFILE_AUTHOR}<!-- ENDIF -->" title="{postrow.contact.NAME}"<!-- IF $S_LAST_CELL --> class="last-cell"<!-- ENDIF --><!-- IF postrow.contact.ID eq 'jabber' --> onclick="popup(this.href, 550, 320); return false;"<!-- ENDIF -->>
<span class="contact-icon {postrow.contact.ID}-icon"></span> <span class="contact-icon {postrow.contact.ID}-icon"><span>{postrow.contact.NAME}</span></span>
</a> </a>
<!-- IF REMAINDER eq 3 or postrow.contact.S_LAST_ROW --> <!-- IF REMAINDER eq 3 or postrow.contact.S_LAST_ROW -->
</div> </div>

View file

@ -133,6 +133,14 @@ ul.linklist.bulletin li.small-icon:before {
clear: left; clear: left;
} }
.contact-icons span.contact-icon span{
display: block;
height: 0;
overflow: hidden;
position: absolute;
width: 1px;
}
/* Profile icons */ /* Profile icons */
.pm-icon { background-position: 0 0; } .pm-icon { background-position: 0 0; }
.email-icon { background-position: -21px 0; } .email-icon { background-position: -21px 0; }