Commit fb420d39 authored by imac's avatar imac

[ADD]ACCES PRO

parent 35e17ce7
...@@ -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: 9999; z-index: 999;
display: table; display: table;
margin-left: 25px; margin-left: 25px;
} }
......
...@@ -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: 20px; top: 85px;
} }
} }
\ No newline at end of file
...@@ -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');
......
...@@ -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>
......
...@@ -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(
......
...@@ -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>
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment