Commit 8497309c authored by N. Peraldi's avatar N. Peraldi

add: index.php for news displaying

parent 9dba2417
* The main template file
* ce fichier a pour objectif d'afficher les actualités, malgré son nom "index.php" qui pourrait laisser penser
* que c'est la page d'accueil.
get_header(); ?>
<div class="wrap">
<?php /*if (is_home() && !is_front_page()) : ?>
<header class="page-header">
<h1 class="page-title"><?php single_post_title(); ?></h1>
<?php else : ?>
<header class="page-header">
<h2 class="page-title"><?php _e('Posts', 'twentyseventeen'); ?></h2>
<?php endif; */?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
if (have_posts()) :
global $post;
/* Start the Loop */
while (have_posts()) :
the_post(); //on charge le post dans la boucle.
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
//affiche le post avec le comportement wordpress par défaut. on peut supprimer cette ligne pour
//faire ca nous même.
get_template_part('content', "adullact");
'prev_text' => twentyseventeen_get_svg(array('icon' => 'arrow-left')) . '<span class="screen-reader-text">' . __('Previous page', 'twentyseventeen') . '</span>',
'next_text' => '<span class="screen-reader-text">' . __('Next page', 'twentyseventeen') . '</span>' . twentyseventeen_get_svg(array('icon' => 'arrow-right')),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'twentyseventeen') . ' </span>',
else :
get_template_part('template-parts/post/content', 'none');
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment