categories() 정적인 공개 메소드

static public categories ( $indexname = 'category-to-objs' )
예제 #1
0
파일: index.php 프로젝트: rsms/gitblog
    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