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
9793e0a0
Commit
9793e0a0
authored
Jul 04, 2019
by
N. Peraldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit: remove useless php tag
parent
77e8fd3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
functions.php
functions.php
+1
-14
No files found.
functions.php
View file @
9793e0a0
...
...
@@ -7,22 +7,17 @@ function my_theme_enqueue_styles()
}
function
childrens_of_member_category
(
$category
)
{
//cette fonction affiche la liste des catégories enfants de la catégorie mère Adhérent
$childrens
=
get_term_children
(
21
,
"category"
);
//contiendra les id de tous les enfants de adhérent
if
(
$category
==
"Adhérent"
||
$category
==
""
)
{
if
(
$category
==
"Adhérent"
||
$category
==
""
)
{
echo
" <a href='?cat=21' class='adullact-sort-button adullact-selected'>Tout</a>"
;
}
else
{
echo
" <a href='?cat=21' class='adullact-sort-button'>Tout</a>"
;
}
?>
<?php
foreach
(
$childrens
as
$c
)
{
$temp_category
=
get_category
(
$c
);
//objet contenant les infos de la catégorie enfant
...
...
@@ -35,17 +30,9 @@ function childrens_of_member_category($category)
<?php
echo
$temp_category
->
name
;
?>
</a>
<?php
}
sort_page
();
?>
<?php
}
...
...
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