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

fix minor bugs in css visuals

parent 9cd50791
...@@ -25,41 +25,45 @@ get_header(); ...@@ -25,41 +25,45 @@ get_header();
$order = "asc"; $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); $myposts = get_posts($args);
echo "<br>"; echo "<br>";
$count = 0; //va servir pour les retour à la ligne lorsqu'on a affiché le max d'éléments par ligne $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"); childrens_of_member_category("$category");
echo "<div class='adullact-members-list'>"; ?>
</ul>
echo "<div class='adullact-line'>"; <?php
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 class='adullact-members-list'>";
echo "</div></div>";
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> </main>
</div> </div>
</div> </div>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
border-radius: 3px; border-radius: 3px;
border: 1px solid grey; border: 1px solid grey;
color: grey; color: grey;
margin: 7px;
} }
.adullact-selected { .adullact-selected {
...@@ -39,24 +38,17 @@ ...@@ -39,24 +38,17 @@
border: 1px solid black; border: 1px solid black;
} }
.adullact-sort-button a{
color:grey;
}
.adullact-selected a{
color: black;
}
.adullact-required { .adullact-required {
color: red; color: red;
} }
#adullact-member-list{ #adullact-member-list {
list-style: none; list-style: none;
} }
#adullact-member-list li{ #adullact-member-list li {
display: inline-block; display: inline-block;
margin: 7px;
} }
/* formulaire d'adhésion */ /* 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