2022-12-17 19:46:29 +01:00
|
|
|
<?php get_header(); ?>
|
2022-12-18 10:53:58 +01:00
|
|
|
<main class="fullwidth">
|
2022-12-17 19:46:29 +01:00
|
|
|
<?php include(TEMPLATEPATH . '/components/globalflag.php'); ?>
|
|
|
|
|
|
|
|
<!-- Recuperation de la page de home -->
|
|
|
|
<?php if ( !is_paged() ) {
|
|
|
|
$page = get_page_by_path( 'home' );
|
|
|
|
if ($page != null) {
|
2023-05-02 09:23:01 +02:00
|
|
|
echo '<section aria-labelledby="title-description">';
|
|
|
|
echo '<h1 class="page-title" id="title-description">' . get_the_title( $page ) . '</h1>';
|
2022-12-17 19:46:29 +01:00
|
|
|
echo '<div>' . $page->post_content . '</div>';
|
2023-05-02 09:23:01 +02:00
|
|
|
echo '</section>';
|
2022-12-17 19:46:29 +01:00
|
|
|
}
|
2023-05-02 09:23:01 +02:00
|
|
|
echo '<section aria-labelledby="title-featured">';
|
|
|
|
echo '<h1 class="page-title" id="title-featured"><i class="fa fa-fw fa-star" aria-hidden="true"></i> À la une</h1>';
|
2022-12-17 19:46:29 +01:00
|
|
|
include(TEMPLATEPATH . '/components/featured.php');
|
2023-05-02 09:23:01 +02:00
|
|
|
echo '</section>';
|
2022-12-17 19:46:29 +01:00
|
|
|
}
|
|
|
|
?>
|
2023-05-02 09:23:01 +02:00
|
|
|
<section aria-labelledby="title-publications">
|
|
|
|
<h1 class="page-title" id="title-publications"><i class="fa fa-fw fa-clock-o" aria-hidden="true"></i> Publications</h1>
|
|
|
|
<?php include(TEMPLATEPATH . '/components/preview-grid.php'); ?>
|
|
|
|
</section>
|
2022-12-18 16:10:12 +01:00
|
|
|
<?php if ( !is_paged() ) {
|
|
|
|
?>
|
2022-12-18 16:41:18 +01:00
|
|
|
<div class="toast mb-1 bg-blue home-toast"><strong class="m-0"><i class="fa fa-fw fa-info"></i> Note :</strong> Si vous êtes intéressé pour découvrir plus
|
2022-12-18 16:10:12 +01:00
|
|
|
de contenus trouvé sur internet, vous pouvez aussi regarder mon <a href="http://shaarli.kazhnuz.space/">Shaarli</a>, qui sert plus à
|
|
|
|
partager des petites découverte rigolote ou intéressantes.</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2022-12-18 16:41:18 +01:00
|
|
|
<nav class="container menu bg-light fg-dark categories d-block d-none-sm">
|
2023-05-02 09:23:01 +02:00
|
|
|
<h1 class="sr-only">Menu des catégories</h1>
|
2022-12-18 16:41:18 +01:00
|
|
|
<ul class="f-around">
|
|
|
|
<?php
|
|
|
|
$categories = get_categories( array(
|
|
|
|
'orderby' => 'name',
|
|
|
|
'order' => 'ASC'
|
|
|
|
) );
|
|
|
|
|
|
|
|
foreach( $categories as $category ) {?>
|
|
|
|
<li>
|
|
|
|
<a class="menu-item" href="<?php echo get_category_link($category->term_id) ?>"><span><i class="fa fa-fw fa-folder"></i> <?php echo $category->name ?></span></a>
|
|
|
|
</li>
|
|
|
|
<?php }
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
2022-12-17 19:46:29 +01:00
|
|
|
</main>
|
|
|
|
<?php get_footer(); ?>
|