26 lines
922 B
PHP
26 lines
922 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();
|
|
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>
|