Commit 0282107c authored by Nathan Peraldi's avatar Nathan Peraldi

fix minor bugs in css visuals

parent 9cd50791
......@@ -25,41 +25,45 @@ get_header();
$order = "asc";
}
}
$args = array('posts_per_page' => 10, 'offset' => 0, 'category_name' => $category, 'orderby' => 'title', 'order' => $order);
$args = array('posts_per_page' => 10, 'offset' => 0, 'category_name' => $category, 'orderby' => 'title', 'order' => $order);
$myposts = get_posts($args);
echo "<br>";
$count = 0; //va servir pour les retour à la ligne lorsqu'on a affiché le max d'éléments par ligne
childrens_of_member_category("$category");
echo "<div class='adullact-members-list'>";
echo "<div class='adullact-line'>";
foreach ($myposts as $post) : setup_postdata($post);
$id = get_the_id();
$url = get_metadata("post", $id, "project_url")[0];
$count += 1;
?>
<a href="<?php echo $url; ?>" target="_blank" class="adullact-member">
<?php the_post_thumbnail(array("200", "200")); ?> <br>
<?php the_title(); ?> <br>
<?php the_tags($before = ''); ?>
</a>
<?php
if ($count >= $maxMembersPerLine) {
$count = 0;
echo "</div>";
echo "<div class='adullact-line'>";
}
?>
</ul>
<?php
endforeach;
echo "</div></div>";
echo "<div class='adullact-members-list'>";
echo "<div class='adullact-line'>";
foreach ($myposts as $post) : setup_postdata($post);
$id = get_the_id();
$url = get_metadata("post", $id, "project_url")[0];
$count += 1;
?>
<a href="<?php echo $url; ?>" target="_blank" class="adullact-member">
<?php the_post_thumbnail(array("200", "200")); ?> <br>
<?php the_title(); ?> <br>
<?php the_tags($before = ''); ?>
</a>
<?php
if ($count >= $maxMembersPerLine) {
$count = 0;
echo "</div>";
echo "<div class='adullact-line'>";
}
endforeach;
echo "</div></div>";
wp_reset_postdata(); ?>
wp_reset_postdata(); ?>
</ul>
</main>
</div>
</div>
......
......@@ -31,7 +31,6 @@
border-radius: 3px;
border: 1px solid grey;
color: grey;
margin: 7px;
}
.adullact-selected {
......@@ -39,24 +38,17 @@
border: 1px solid black;
}
.adullact-sort-button a{
color:grey;
}
.adullact-selected a{
color: black;
}
.adullact-required {
color: red;
}
#adullact-member-list{
#adullact-member-list {
list-style: none;
}
#adullact-member-list li{
#adullact-member-list li {
display: inline-block;
margin: 7px;
}
/* formulaire d'adhésion */
......
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