Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Adullact
Theme-WordPress-Adullact-org
Commits
0282107c
Commit
0282107c
authored
Jul 29, 2019
by
N. Peraldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix minor bugs in css visuals
parent
9cd50791
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
37 deletions
+33
-37
category-adherent.php
category-adherent.php
+30
-26
style.css
style.css
+3
-11
No files found.
category-adherent.php
View file @
0282107c
...
...
@@ -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>
...
...
style.css
View file @
0282107c
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment