Jump to content

Question

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
1 hour ago, Sebastian C. said:

Postează aici codul folosit pentru aranjare sub-forumurilor pe categorie.

          {{if $forum->hasChildren()}}
				<ol class='ipsList_inline ipsType_small subforums2'>
{{foreach $forum->children() as $subforum}}</ol>
<ol class='ipsList_inline ipsType_small subforums3'>
{{if \IPS\forums\Topic::containerUnread( $subforum )}}
<li class='unread'>
{{endif}}
{{if !\IPS\forums\Topic::containerUnread( $subforum )}}
<li>
{{endif}}
{{endforeach}}
</ol>
<ol class='ipsList_inline ipsType_small subforums'>
{{foreach $forum->children() as $subforum}}</ol>
<ol class='ipsList_inline ipsType_small subforums1'>
{{if \IPS\forums\Topic::containerUnread( $subforum )}}
  <li class='unread'>
{{endif}}
{{if !\IPS\forums\Topic::containerUnread( $subforum )}}
<li >
{{endif}}
<a style='{{if \IPS\forums\Topic::containerUnread( $subforum )}}
font-weight: bold;{{endif}}' href="{$subforum->url()}">{$subforum->_title}</a>
  

EDIT: acum mi-am dat seama singur cum sa fac asta, mersi :)

Edited by sp33ddinamo

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.