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
fb420d39
Commit
fb420d39
authored
Aug 23, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADD]ACCES PRO
parent
35e17ce7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
9 deletions
+34
-9
main.css
wp-content/themes/nap/assets/css/main.css
+7
-1
responsive.css
wp-content/themes/nap/assets/css/responsive.css
+4
-1
main.js
wp-content/themes/nap/assets/js/main.js
+2
-2
footer.php
wp-content/themes/nap/footer.php
+5
-2
functions.php
wp-content/themes/nap/functions.php
+10
-1
simple.php
...mes/nap/woocommerce/single-product/add-to-cart/simple.php
+3
-1
variable.php
...s/nap/woocommerce/single-product/add-to-cart/variable.php
+3
-1
No files found.
wp-content/themes/nap/assets/css/main.css
View file @
fb420d39
...
@@ -831,6 +831,12 @@ nav ul ul{
...
@@ -831,6 +831,12 @@ nav ul ul{
.header
.footer
.acces
li
{
.header
.footer
.acces
li
{
padding-left
:
8px
;
padding-left
:
8px
;
}
}
.logout
{
font-style
:
italic
;
font-size
:
9px
;
padding-left
:
10px
;
opacity
:
0.8
}
/* ==========================================================================
/* ==========================================================================
VI/ FOOTER...............footer
VI/ FOOTER...............footer
========================================================================== */
========================================================================== */
...
@@ -1174,7 +1180,7 @@ aside.news-wrapper {
...
@@ -1174,7 +1180,7 @@ aside.news-wrapper {
.nav-slider
ul
{
.nav-slider
ul
{
position
:
absolute
;
position
:
absolute
;
left
:
100%
;
left
:
100%
;
z-index
:
999
9
;
z-index
:
999
;
display
:
table
;
display
:
table
;
margin-left
:
25px
;
margin-left
:
25px
;
}
}
...
...
wp-content/themes/nap/assets/css/responsive.css
View file @
fb420d39
...
@@ -192,6 +192,9 @@
...
@@ -192,6 +192,9 @@
#slides
{
#slides
{
height
:
auto
!important
;
height
:
auto
!important
;
}
}
.close-btn-mobile
{
display
:
none
!important
;
}
}
}
@media
screen
and
(
max-width
:
860px
)
{
@media
screen
and
(
max-width
:
860px
)
{
/* general */
/* general */
...
@@ -903,6 +906,6 @@
...
@@ -903,6 +906,6 @@
/* (landscape) ----------- */
/* (landscape) ----------- */
@media
screen
and
(
max-height
:
500px
)
{
@media
screen
and
(
max-height
:
500px
)
{
.news-btn
{
.news-btn
{
top
:
20
px
;
top
:
85
px
;
}
}
}
}
\ No newline at end of file
wp-content/themes/nap/assets/js/main.js
View file @
fb420d39
...
@@ -98,7 +98,7 @@ $('.footer-home-content').on('click','.home-down:not(.scrolled)',function(e){
...
@@ -98,7 +98,7 @@ $('.footer-home-content').on('click','.home-down:not(.scrolled)',function(e){
//$('.home-footer-nav .nav-wrapper').css('top','initial');
//$('.home-footer-nav .nav-wrapper').css('top','initial');
$
(
'.home-down-wrapper'
).
css
(
'top'
,
'initial'
);
$
(
'.home-down-wrapper'
).
css
(
'top'
,
'initial'
);
$
(
'.footer-home-content'
).
removeClass
(
'fixed'
);
$
(
'.footer-home-content'
).
removeClass
(
'fixed'
);
$
(
'.main'
).
height
(
$
(
window
).
height
()
-
$
(
'.nav-header'
).
outerHeight
()
);
$
(
'.main'
).
height
(
$
(
window
).
height
());
return
false
;
return
false
;
});
});
...
@@ -117,7 +117,7 @@ $('.footer-home-content').on('click','.home-down:not(.scrolled)',function(e){
...
@@ -117,7 +117,7 @@ $('.footer-home-content').on('click','.home-down:not(.scrolled)',function(e){
tlProduct
.
reverse
();
tlProduct
.
reverse
();
//$('.load-page').removeClass('fadeInUp').addClass('animated fadeOutUp');
//$('.load-page').removeClass('fadeInUp').addClass('animated fadeOutUp');
});
});
$
(
document
).
on
(
'click'
,
'.acces li'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'.acces li
.login
'
,
function
(
e
){
e
.
stopImmediatePropagation
();
e
.
stopImmediatePropagation
();
$
(
'.popup-container'
).
fadeIn
();
$
(
'.popup-container'
).
fadeIn
();
// $('#user_login').attr('placeholder', 'Identifiant');
// $('#user_login').attr('placeholder', 'Identifiant');
...
...
wp-content/themes/nap/footer.php
View file @
fb420d39
...
@@ -7,13 +7,16 @@
...
@@ -7,13 +7,16 @@
<div
class=
"footer font-small animated fadeInUp"
>
<div
class=
"footer font-small animated fadeInUp"
>
<div
class=
"row acces"
>
<div
class=
"row acces"
>
<ul>
<ul>
<li><
a
href=
"#"
>
accès pro
</a
></li>
<li>
<
?php
get_logged_user
();
?
>
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"row right footer-links"
>
<div
class=
"row right footer-links"
>
<ul>
<ul>
<li
class=
'nl'
><a
href=
"#"
>
newsletter
</a></li>
<li
class=
'nl'
><a
href=
"#"
>
newsletter
</a></li>
<li><a
href=
"
<?php
echo
get_permalink
(
260
)
?>
"
>
téléchargements
</a></li>
<?php
if
(
is_user_logged_in
()
)
{
?>
<li><a
href=
"
<?php
echo
get_permalink
(
260
)
?>
"
>
téléchargements
</a></li>
<?php
}
?>
<li><a
href=
"phototheque.php"
>
phototèque
</a></li>
<li><a
href=
"phototheque.php"
>
phototèque
</a></li>
<li><a
href=
"
<?php
echo
get_permalink
(
171
)
?>
"
>
mentions légales
</a></li>
<li><a
href=
"
<?php
echo
get_permalink
(
171
)
?>
"
>
mentions légales
</a></li>
</ul>
</ul>
...
...
wp-content/themes/nap/functions.php
View file @
fb420d39
...
@@ -645,7 +645,16 @@ function externe_referrer(){
...
@@ -645,7 +645,16 @@ function externe_referrer(){
}
}
return
$ref
;
return
$ref
;
}
}
function
get_logged_user
(){
if
(
is_user_logged_in
()
)
{
global
$current_user
;
get_currentuserinfo
();
echo
$current_user
->
user_lastname
.
' '
.
$current_user
->
user_firstname
;
echo
'<span class = "logout"><a href="'
.
wp_logout_url
(
get_permalink
())
.
'">déconnexion</a></span>'
;
}
else
{
echo
'<a class="login" href="#">accès pro</a>'
;
}
}
function
nap_attribute_by_category
(
$categorie
,
$attr
){
function
nap_attribute_by_category
(
$categorie
,
$attr
){
$args
=
array
(
$args
=
array
(
...
...
wp-content/themes/nap/woocommerce/single-product/add-to-cart/simple.php
View file @
fb420d39
...
@@ -98,7 +98,9 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -98,7 +98,9 @@ do_action('woocommerce_before_add_to_cart_form');
?>
?>
<article
class =
"row"
data-color =
"
<?php
echo
$value
;
?>
"
>
<article
class =
"row"
data-color =
"
<?php
echo
$value
;
?>
"
>
<a
class =
"download-btn"
href=
"
<?php
echo
$hd
[
0
];
?>
"
download
></a>
<?php
if
(
is_user_logged_in
()
)
{
?>
<a
class =
"download-btn"
href=
"
<?php
echo
$hd
[
0
];
?>
"
download
></a>
<?php
}
?>
<figure>
<figure>
<img
src=
"
<?php
echo
$attachment
[
0
];
?>
"
alt=
""
title=
""
>
<img
src=
"
<?php
echo
$attachment
[
0
];
?>
"
alt=
""
title=
""
>
</figure>
</figure>
...
...
wp-content/themes/nap/woocommerce/single-product/add-to-cart/variable.php
View file @
fb420d39
...
@@ -156,7 +156,9 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -156,7 +156,9 @@ do_action('woocommerce_before_add_to_cart_form');
?>
?>
<article
class =
"row"
data-color =
"
<?php
echo
$value
;
?>
"
>
<article
class =
"row"
data-color =
"
<?php
echo
$value
;
?>
"
>
<a
class =
"download-btn"
href=
"
<?php
echo
$hd
[
0
];
?>
"
download
></a>
<?php
if
(
is_user_logged_in
()
)
{
?>
<a
class =
"download-btn"
href=
"
<?php
echo
$hd
[
0
];
?>
"
download
></a>
<?php
}
?>
<figure>
<figure>
<img
src=
"
<?php
echo
$attachment
[
0
];
?>
"
alt=
""
title=
""
>
<img
src=
"
<?php
echo
$attachment
[
0
];
?>
"
alt=
""
title=
""
>
</figure>
</figure>
...
...
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