parent
77851a677b
commit
76efcfce70
2 changed files with 66 additions and 0 deletions
|
@ -31,6 +31,16 @@
|
|||
<section class="col-12 col-md-4" aria-labelledby="title-footer-section-3">
|
||||
<h2 class="sr-only" id="title-footer-section-3">Informations annexes</h2>
|
||||
<p>Toute critique, remarque, etc. est la bienvenue. Pour cela, vous pouvez me contacter à kazhnuz [at] kobold [point] cafe ou sur mes <a href="https://kazhnuz.space/links">réseaux sociaux</a></p>
|
||||
<ul>
|
||||
<h3 class="sr-only">Pages annexes</h3>
|
||||
<?php
|
||||
$listmenu = get_nav_menu_locations();
|
||||
$menu = wp_get_nav_menu_items($listmenu['footer-pages']);
|
||||
foreach ($menu as $menuElement) {
|
||||
echo '<li><a href="' . $menuElement->url . '" class="menu-item">'. $menuElement->title . '</a></li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
56
page-plan.php
Normal file
56
page-plan.php
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?php /* Template Name: page-plan */ ?>
|
||||
<?php get_header(); ?> <!-- ouvrir header,php -->
|
||||
<main id="skip">
|
||||
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
|
||||
|
||||
<article class="article-content" id="post-<?php the_ID(); ?>">
|
||||
<h1 class="page-title"><?php the_title(); ?></h1>
|
||||
|
||||
<div class="article-body">
|
||||
<section class="mb-1">
|
||||
<h2>Derniers articles</h2>
|
||||
<ul>
|
||||
<?php
|
||||
wp_get_archives( array(
|
||||
'type' => 'postbypost',
|
||||
'echo' => 1,
|
||||
'order' => 'ASC',
|
||||
'limit' => 12
|
||||
) );
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="mb-1">
|
||||
<h2>Pages</h2>
|
||||
<ul>
|
||||
<?php wp_list_pages( 'sort_column=menu_order&depth=1&title_li=' ) ?>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="mb-1">
|
||||
<h2>Catégories</h2>
|
||||
<ul>
|
||||
<?php
|
||||
$categories = get_categories( array(
|
||||
'orderby' => 'name',
|
||||
'order' => 'ASC'
|
||||
) );
|
||||
|
||||
foreach( $categories as $category ) {
|
||||
echo '<li><a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></li>';
|
||||
}?>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="mb-1">
|
||||
<h2>Archive des articles</h2>
|
||||
<ul>
|
||||
<?php wp_get_archives('type=yearly&format=html&show_post_count=0'); ?>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
</main>
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
Reference in a new issue