Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
6c46b2a2
Commit
6c46b2a2
authored
Aug 23, 2017
by
Nahla Shiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ne pas afficher des critères vide
parent
6204d4ad
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
290 additions
and
244 deletions
+290
-244
nap.js
wp-content/themes/nap/assets/js/nap.js
+18
-4
functions.php
wp-content/themes/nap/functions.php
+267
-240
archive-product.php
wp-content/themes/nap/woocommerce/archive-product.php
+5
-0
No files found.
wp-content/themes/nap/assets/js/nap.js
View file @
6c46b2a2
...
...
@@ -100,13 +100,27 @@ jQuery(document).ready(function() {
*/
});
/*
jQuery('.list-animation section').each(function() {
if
(
jQuery
.
urlParam
(
'pa_format'
)
!=
''
||
jQuery
.
urlParam
(
'pa_couleur'
)
!=
''
||
jQuery
.
urlParam
(
'pa_matiere'
)
!=
''
){
jQuery
(
'.list-animation section'
).
each
(
function
()
{
if
(
jQuery
(
this
).
find
(
'article.selected'
).
length
==
0
)
{
jQuery
(
this
).
hide
();
}
});*/
});
}
jQuery
(
'.filter-bloc '
).
each
(
function
()
{
if
(
jQuery
(
this
).
find
(
'.bloc-content'
).
length
==
0
)
{
jQuery
(
this
).
hide
();
}
});
});
jQuery
.
urlParam
=
function
(
name
){
var
results
=
new
RegExp
(
'[
\
?&]'
+
name
+
'=([^&#]*)'
).
exec
(
window
.
location
.
href
);
return
results
[
1
]
||
0
;
}
\ No newline at end of file
wp-content/themes/nap/functions.php
View file @
6c46b2a2
This diff is collapsed.
Click to expand it.
wp-content/themes/nap/woocommerce/archive-product.php
View file @
6c46b2a2
...
...
@@ -125,7 +125,12 @@ $child_category = get_terms('product_cat', array('parent' => $cateID, 'child_of'
</div>
<div
class=
"right-panel right"
>
<div
class=
"panel panel-content list-animation"
>
<?php
if
(
$_GET
[
'pa_couleur'
]
!=
''
||
$_GET
[
'pa_format'
]
!=
''
||
$_GET
[
'pa_matiere'
]
!=
''
)
:?>
<
span
style
=
" position: relative; display: block;top: 80px;font-size: 11px;"
class
="
search_result
">Résultat de votre recherche :</span>
<?php endif;?>
<?php foreach (
$child_category
as
$key
=>
$value
) : ?>
<section id = "
cat
<?
php
echo
$value
->
term_id
?>
">
<h2
class=
"crete small-title"
>
<?php
echo
$value
->
name
?>
</h2>
<div
class=
"cover-mobile display--only-mobile animated fadeInUp"
style =
"background-image: url('
<?php
echo
nap_category_image
(
$value
->
term_id
)
?>
')"
>
...
...
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