_catChildren.php 679 Bytes
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

    if ($childrens && count($childrens) > 0)
    {
        echo '<div class="childrenList">';

        $count = 1;
        foreach ($childrens as $children)
        {
            $active_class = "";
            if ($children->getAlias() == $alias)
            {
                $active_class = 'active';
            }


            if ($count % 10 == 0)
            {
                echo '<br />';
            }
            $count++;
            echo '<a class="'. $active_class .'" href="' . url_for('@catalog_show_cat?alias='. $children->getAlias()) . '">'. Page::niceTitleView($children->getTitle()) .'</a>';
        }

        echo '</div><i class="br20"></i>';
    }