Commit 9cf4f560 authored by Nathan Peraldi's avatar Nathan Peraldi

add single post's date & footer functions

parent 9546e3d1
......@@ -27,6 +27,12 @@
} else {
the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
}
if ( is_single() ) {
twentyseventeen_posted_on();
} else {
echo twentyseventeen_time_link();
twentyseventeen_edit_link();
};
?>
</header><!-- .entry-header -->
......@@ -52,20 +58,9 @@
);
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
//affichage des tags
$tag_list = get_the_tag_list('', '');
$tag_array = get_the_tags(get_the_id());
$search="<a";
$replace="<a class='adullact-tag' ";
echo str_replace($search,$replace,$tag_list);
//bouton modifier;
twentyseventeen_edit_link();
<?php
twentyseventeen_entry_footer()
?>
?>
</footer>
</article><!-- #post-<?php the_ID(); ?> -->
......@@ -18,13 +18,6 @@ get_header(); ?>
/* Start the Loop */
while (have_posts()) :
the_post(); //on charge le post dans la boucle.
//var_dump($post);
/*
* 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");
......
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