Commit d961bb0d authored by Nathan Peraldi's avatar Nathan Peraldi

add: tags display, on posts page

parent 368a5a90
......@@ -56,9 +56,14 @@ $max_member_numero = ($page * $maxMembersPerPage);
</div>
</div>
<?php echo "<div class='adullact-members-list'>";
$members_page = get_page_by_title("membres");
$args = array('child_of' => $members_page->ID, 'sort_order' => $order);
$mypages = get_pages($args);
$args = array(
"post_type" => "page",
"order" => $order,
"category_name" => $category,
"orderby" => "title",
"posts_per_page" => -1);
$mypages = get_posts($args);
$number_of_total_posts = count($mypages); //pour les pages
if (($number_of_total_posts == 0) || ($number_of_total_posts < $min_member_numero)) {
......
......@@ -4,7 +4,8 @@
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="float:none;">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="float:none;width:100%;"> <!-- il est visiblement
nécessaire d'appliquer le style directement comme cela car je n'arrive pas à faire de même en passant par style.css-->
<?php
if (is_sticky() && is_home()) :
echo twentyseventeen_get_svg(array('icon' => 'thumb-tack'));
......@@ -51,6 +52,10 @@
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'),
......
......@@ -24,11 +24,11 @@
}
.entry-title {
color:#4891bf;
color: #4891bf;
}
.entry-title p strong{
color:#4891bf;
.entry-title p strong {
color: #4891bf;
}
/*************************************************************/
......@@ -193,16 +193,15 @@
float: right;
}
.eventless-pre{
color:white;
.eventless-pre {
color: white;
}
#adullact-display-mask
{
#adullact-display-mask {
display: inline-block;
margin: 7px;
padding:5px;
background-color:white;
padding: 5px;
background-color: white;
box-sizing: inherit;
font-size: 1rem;
font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
......@@ -213,6 +212,7 @@
color: grey;
transition: background-color 0.2s ease;
}
#adullact-display-mask:hover {
background-color: lightgrey;
color: dimgrey;
......@@ -222,10 +222,35 @@
/*Affichage actualité(s)*/
/*************************************************************/
.adullact-read-more{
color:#4891bf;
float:right;
.adullact-read-more {
color: #4891bf;
float: right;
}
.adullact-read-more:hover{
.adullact-read-more:hover {
text-decoration: underline;
}
.adullact-post-image{
max-width:200px;
max-height:200px;
}
.adullact-tag{
border-radius: 3px;
border: 1px solid grey;
color: grey;
transition: background-color 0.2s ease,color 0.2s ease;
padding: 5px;
margin-right:10px;
}
.adullact-sort-button:hover {
background-color: lightgrey;
color: dimgrey;
}
#content
{
padding-top:20px;
}
\ 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