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.
qdouze2-wordpress-theme/home.php

30 lines
1.2 KiB
PHP
Raw Normal View History

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) {
echo '<h1 class="page-title">' . get_the_title( $page ) . '</h1>';
echo '<div>' . $page->post_content . '</div>';
}
2022-12-18 15:17:25 +01:00
echo '<h1 class="page-title"><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');
}
?>
2022-12-18 15:17:25 +01:00
<h1 class="page-title"><i class="fa fa-fw fa-clock-o" aria-hidden="true"></i> Publications</h1>
2022-12-18 13:48:49 +01:00
<?php include(TEMPLATEPATH . '/components/preview-grid.php'); ?>
2022-12-17 19:46:29 +01:00
2022-12-18 16:10:12 +01:00
<?php if ( !is_paged() ) {
?>
<div class="toast mb-1 bg-blue" style="width:800px;margin:auto;"><strong class="m-0"><i class="fa fa-fw fa-info"></i> Note :</strong> Si vous êtes intéressé pour découvrir plus
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-17 19:46:29 +01:00
</main>
<?php get_footer(); ?>