29 lines
1,000 B
PHP
29 lines
1,000 B
PHP
<div class="navbar-area">
|
|
<?php
|
|
$categories = get_categories( array(
|
|
'orderby' => 'name',
|
|
'order' => 'ASC'
|
|
) );
|
|
|
|
foreach( $categories as $category ) {
|
|
if ($category->slug == "blog") {
|
|
echo '<a class="btn btn-navbar" href="' . get_category_link($category->term_id) . '">' . $category->name . '</a>';
|
|
}
|
|
}
|
|
$pages = get_pages( array(
|
|
"sort_column" => 'menu_order',
|
|
'sort_order' => 'ASC'
|
|
));
|
|
if ( $pages ) {
|
|
foreach( $pages as $page ) {
|
|
if ($page->post_name != "home") {
|
|
echo '<a class="btn btn-navbar" href="'. get_page_link( $page->ID ) . '">'. $page->post_title .'</a>';
|
|
}
|
|
}
|
|
}?>
|
|
|
|
<!-- <a href="/blog.html" class="btn btn-navbar">Blog</a> -->
|
|
<!-- <a href="/crea.html" class="btn btn-navbar">Romans</a> -->
|
|
<!-- <a href="/apropos.html" class="btn btn-navbar">A propos</a> -->
|
|
<a href="<?php bloginfo('rss2_url'); ?>" class="btn btn-navbar"><i class="fa fa-rss"></i></a>
|
|
</div>
|