public static function getListHtml(Kwf_Component_Renderer_Abstract $renderer, Kwf_Component_Data $c, $level, $levels, $className)
    {
        $ret = '';
        $level++;
        $select = new Kwf_Component_Select();
        $select->whereShowInMenu(true);
        $ret .= '<ul class="' . self::getBemClass($className, 'sitemapListLevel'.$level) . '">' . "\n";
        $count = 1;
        foreach ($c->getChildPages($select) as $child) {
            $ret .= '<li class="' . self::getBemClass($className, 'sitemapListItemLevel'.$level);
            if ($count % 3 === 0) {
                $ret .= ' ' . self::getBemClass($className, '--third');
            }
            if ($count % 2 === 0) {
                $ret .= ' ' . self::getBemClass($className, '--second');
            }
            if (!$child->getChildPages($select)) {
                $ret .= ' ' . self::getBemClass($className, '--noChild');
            }
            $ret .= '">';
            $helper = new Kwf_Component_View_Helper_ComponentLink();
            $helper->setRenderer($renderer);
            $ret .= $helper->componentLink($child);
            $ret .= "\n";
            if ($level < $levels) {
                $ret .= self::getListHtml($renderer, $child, $level, $levels, $className);
            }
            $ret .= "</li>\n";
            $count++;
        }
        $ret .= "</ul>\n";
        return $ret;
    }
public static function getListHtml(Kwf_Component_Renderer_Abstract $renderer, Kwf_Component_Data $c, $level, $levels, $className)
    {
        $ret = '';
        $level++;
        $select = new Kwf_Component_Select();
        $select->whereShowInMenu(true);
        $ret .= '<ul class="' . self::getBemClass($className, 'sitemapListLevel'.$level) . '">' . "\n";
        $count = 1;
        foreach ($c->getChildPages($select) as $child) {
            $ret .= '<li class="' . self::getBemClass($className, 'sitemapListItemLevel'.$level);
            if ($count % 3 === 0) {
                $ret .= ' ' . self::getBemClass($className, '--third');
            }
            if ($count % 2 === 0) {
                $ret .= ' ' . self::getBemClass($className, '--second');
            }
            if (!$child->getChildPages($select)) {
                $ret .= ' ' . self::getBemClass($className, '--noChild');
            }
            $ret .= '">';
            $helper = new Kwf_Component_View_Helper_ComponentLink();
            $helper->setRenderer($renderer);
            $ret .= $helper->componentLink($child);
            $ret .= "\n";
            if ($level < $levels) {
                $ret .= self::getListHtml($renderer, $child, $level, $levels, $className);
            }
            $ret .= "</li>\n";
            $count++;
        }
        $ret .= "</ul>\n";
        return $ret;
    }
public static function getListHtml ( Kwf_Component_Renderer_Abstract $ renderer , Kwf_Component_Data $ c , $ level , $ levels , $ className ) { $ ret = '' ; $ level ++ ; $ select = new Kwf_Component_Select ( ) ; $ select -> whereShowInMenu ( true ) ; $ ret .= '<ul class="' . self :: getBemClass ( $ className , 'sitemapListLevel' . $ level ) . '">' . "\n" ; $ count = 1 ; foreach ( $ c -> getChildPages ( $ select ) as $ child ) { $ ret .= '<li class="' . self :: getBemClass ( $ className , 'sitemapListItemLevel' . $ level ) ; if ( $ count % 3 === 0 ) { $ ret .= ' ' . self :: getBemClass ( $ className , '--third' ) ; } if ( $ count % 2 === 0 ) { $ ret .= ' ' . self :: getBemClass ( $ className , '--second' ) ; } if ( ! $ child -> getChildPages ( $ select ) ) { $ ret .= ' ' . self :: getBemClass ( $ className , '--noChild' ) ; } $ ret .= '">' ; $ helper = new Kwf_Component_View_Helper_ComponentLink ( ) ; $ helper -> setRenderer ( $ renderer ) ; $ ret .= $ helper -> componentLink ( $ child ) ; $ ret .= "\n" ; if ( $ level < $ levels ) { $ ret .= self :: getListHtml ( $ renderer , $ child , $ level , $ levels , $ className ) ; } $ ret .= "</li>\n" ; $ count ++ ; } $ ret .= "</ul>\n" ; return $ ret ; }
public because for trl
public because for trl