Code: Select all
$('li.row').find('dl[class*="forum_unread"]').each(function() {
Code: Select all
/* grid pro */
$('a, i.icon').each(function() {
if ($('a i.icon').hasClass('unread-forum')) {
$('a i.icon').removeClass('unread-forum');
}
});
Code: Select all
<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a>
Code: Select all
<a href="{forumrow.U_VIEWFORUM}" class="forumtitle <!-- IF forumrow.S_UNREAD_FORUM -->unread-forum<!-- ENDIF -->;">{forumrow.FORUM_NAME}</a>
Code: Select all
a.forumtitle.unread-forum {
color: #AA0000;
}
Code: Select all
<a href="{forumrow.U_VIEWFORUM}" class="forumtitle<!-- IF forumrow.S_UNREAD_FORUM --> unread<!-- ENDIF -->">{forumrow.FORUM_NAME}</a>
Code: Select all
a.forumtitle.unread, a.subforum.unread { color: #AA0000; }
Code: Select all
a.forumtitle.unread, a.subforum.unread { color: #AA0000 !important; }
Code: Select all
// Mark subforums read
Code: Select all
$('a.forumtitle[class*="unread"]').removeClass('unread');
Code: Select all
a.forumtitle.unread::after {
content: "New";
display: inline-block;
font-size: 0.8em;
margin-left: 0.5em;
vertical-align: text-top;
background-color: #d31141;
color: white;
padding: 1px 4px;
float: right;
border-radius: 3px;
-webkit-animation: unreading 2s infinite;
-moz-animation: unreading 2s infinite;
animation: unreading 2s infinite;
}
@-webkit-keyframes unreading {
50% {
opacity: 0.25;
}
}
@keyframes unreading {
50% {
opacity: 0.25;
}
}