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
a2ac98e5
Commit
a2ac98e5
authored
Jul 04, 2019
by
N. Peraldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit: visibility improvement for displaying members category
parent
2b050611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
functions.php
functions.php
+15
-8
No files found.
functions.php
View file @
a2ac98e5
...
...
@@ -21,16 +21,22 @@ function childrens_of_member_category($category)
foreach
(
$childrens
as
$c
)
{
$temp_category
=
get_category
(
$c
);
//objet contenant les infos de la catégorie enfant
?>
$my_link
=
"<a href=
\"
?cat="
;
$my_link
.
=
$c
;
$my_link
.
=
"
\"
class=
\"
adullact-sort-button"
;
<a
href=
'?cat=
<?php
echo
$c
;
?>
'
class=
"adullact-sort-button
<?php
if
(
$temp_category
->
name
==
$category
)
{
echo
"adullact-selected"
;
}
?>
"
>
<?php
echo
$temp_category
->
name
;
?>
</a>
if
(
$temp_category
->
name
==
$category
)
{
//si on est en train d'afficher la catégorie sélectionnée
$my_link
.
=
" adullact-selected"
;
}
$my_link
.
=
"
\"
>"
;
$my_link
.
=
$temp_category
->
name
;
$my_link
.
=
"</a>"
;
echo
$my_link
;
<?php
}
sort_page
();
}
...
...
@@ -62,4 +68,5 @@ function sort_page()
<?php
}
}
?>
\ No newline at end of file
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