categories() статический публичный Метод

static public categories ( $indexname = 'category-to-objs' )
Пример #1
0
    echo h($page->url());
    ?>
" <?php 
    echo $page->isCurrent() ? 'class="current"' : '';
    ?>
><?php 
    echo h($page->title);
    ?>
</a>
						</li>
					<?php 
}
?>
					<li class="divider"></li>
					<?php 
foreach (gb::categories() as $name => $objnames) {
    ?>
						<li class="category">
							<a href="<?php 
    echo gb::url_to('categories') . h($name);
    ?>
"
								<?php 
    echo gb::$is_categories && in_array($name, $categories) ? 'class="current"' : '';
    ?>
								><?php 
    echo h(ucfirst($name));
    ?>
</a>
						</li>
					<?php