Commit 3c80a197 authored by Nathan Peraldi's avatar Nathan Peraldi

edit: single post visual with html / css

parent 0a4b9f45
......@@ -45,17 +45,17 @@ nécessaire d'appliquer le style directement comme cela car je n'arrive pas à f
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content("<span class='adullact-read-more'>Lire la suite...</span>");
$the_content = get_the_content("<span class='adullact-read-more'>Lire la suite...</span>");
$search = "class=\"more-link\"";
$replace = $search . " title=\"Lire la suite de " . get_the_title() . "\"";
echo str_replace($search, $replace, $the_content);
/*
* sprintf(
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
get_the_title()
)
*/
$tag_array = get_the_tags(get_the_id());
foreach ($tag_array as $e) {
echo "<span class='adullact-tag'>" . $e->name . "</span>";
}
wp_link_pages(
array(
'before' => '<div class="page-links">' . __('Pages:', 'twentyseventeen'),
......@@ -66,11 +66,20 @@ nécessaire d'appliquer le style directement comme cela car je n'arrive pas à f
);
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
<?php
if (is_single()) {
twentyseventeen_entry_footer();
}
?>
//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();
?>
</footer>
</article><!-- #post-<?php the_ID(); ?> -->
......@@ -220,11 +220,20 @@
.adullact-read-more {
color: #4891bf;
float: right;
}
.adullact-read-more:hover {
.entry-content .more-link {
display: inline;
}
.entry-content .more-link::before {
display: inline;
}
.adullact-read-more:hover::before, .adullact-read-more:focus::before {
text-decoration: underline;
box-shadow: none;
}
.adullact-post-image {
......@@ -239,7 +248,13 @@
transition: background-color 0.2s ease, color 0.2s ease;
padding: 5px;
margin-right: 10px;
display:inline-block;
display: inline-block;
text-decoration: none;
}
.entry-footer .adullact-tag:hover, .entry-footer .adullact-tag:focus {
box-shadow: none;
-webkit-box-shadow: none;
}
.adullact-sort-button:hover {
......@@ -253,4 +268,10 @@
.entry-content p {
text-align: justify;
}
article .entry-footer
{
border-top:none;
margin-top:0;
}
\ No newline at end of file
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