%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/beta/64801_wp-content/themes/intosai/templates/sections/
Upload File :
Create Path :
Current File : /var/www/pn/beta/64801_wp-content/themes/intosai/templates/sections/archive_nav-news.php

<?php
    $currentCatID = get_queried_object()->term_id;

    $args = array(
        'hide_empty'  	=> 		0,
        'exclude'		=>		1,
        'parent'  		=> 		0,
        'orderby' 		=> 		'name',
        'order'   		=> 		'ASC'
    );
    $cats = get_categories($args);
?>
<div class="wrapper">
    <nav id="category_nav" role="navigation">
        <ul>
            <li class="<?php if(!is_front_page() && is_home()){ echo 'current-menu-item'; } ?>">
                <a href="<?php echo get_permalink(get_option('page_for_posts')); ?>" title="View all news">
                    All News
                </a>
            </li>

            <?php foreach($cats as $cat){ ?>

                <?php $catLink = get_category_link($cat->term_id); ?>

                <li class="<?php echo 'cat-'.$cat->term_id.' '.$cat->slug; ?><?php ?><?php if($currentCatID == $cat->term_id){ echo ' current-menu-item'; } ?>">
                    <a href="<?php echo $catLink; ?>" title="View all news in category: <?php echo $cat->name; ?>">
                        <?php echo $cat->name; ?>
                    </a>
                </li>

            <?php } ?>
        </ul>
    </nav>
</div>

Zerion Mini Shell 1.0