This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
kspace-wordpress-theme/components/navbar-pages.php

27 lines
922 B
PHP
Raw Normal View History

2020-12-30 19:42:46 +01:00
<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>';
}
2021-01-03 09:10:54 +01:00
}
$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>';
}
}
}?>
2020-12-30 19:42:46 +01:00
<!-- <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>