
Выделение опросов из общей массы тем, внешне по аналогии с движком ipb 3.2.3. Автор: Romych
в html-верх:
Код:
<style type="text/css">
.green {
border-radius: 4px 4px 4px 4px;
color: #FFFFFF;
display: inline-block;
font-size: 9px;
font-weight: bold;
height: 16px;
line-height: 16px;
padding: 0 5px;
text-transform: uppercase;
background: none repeat scroll 0 0 #7BA60D;
}
</style>в html-низ:
Код:
<!-- опросы -->
<script type="text/javascript">
$('#pun-viewforum .tclcon').map(function () {
var Opros=$(this).find('a').attr('href');var self=$(this);
$.get(Opros,'',proOpros);function proOpros(data){$(data).find('div#poll-special').each(function(){ self.prepend('<span class="green">Опрос</span> '); }); } });
</script>