Commit fb420d39 authored by imac's avatar imac

[ADD]ACCES PRO

parent 35e17ce7
......@@ -831,6 +831,12 @@ nav ul ul{
.header .footer .acces li{
padding-left: 8px;
}
.logout{
font-style: italic;
font-size: 9px;
padding-left: 10px;
opacity: 0.8
}
/* ==========================================================================
VI/ FOOTER...............footer
========================================================================== */
......@@ -1174,7 +1180,7 @@ aside.news-wrapper {
.nav-slider ul {
position: absolute;
left: 100%;
z-index: 9999;
z-index: 999;
display: table;
margin-left: 25px;
}
......
......@@ -192,6 +192,9 @@
#slides{
height: auto !important;
}
.close-btn-mobile{
display: none !important;
}
}
@media screen and (max-width: 860px) {
/* general */
......@@ -903,6 +906,6 @@
/* (landscape) ----------- */
@media screen and (max-height : 500px) {
.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){
//$('.home-footer-nav .nav-wrapper').css('top','initial');
$('.home-down-wrapper').css('top','initial');
$('.footer-home-content').removeClass('fixed');
$('.main').height($(window).height() - $('.nav-header').outerHeight());
$('.main').height($(window).height());
return false;
});
......@@ -117,7 +117,7 @@ $('.footer-home-content').on('click','.home-down:not(.scrolled)',function(e){
tlProduct.reverse();
//$('.load-page').removeClass('fadeInUp').addClass('animated fadeOutUp');
});
$(document).on('click','.acces li',function(e){
$(document).on('click','.acces li .login',function(e){
e.stopImmediatePropagation();
$('.popup-container').fadeIn();
// $('#user_login').attr('placeholder', 'Identifiant');
......
......@@ -7,13 +7,16 @@
<div class="footer font-small animated fadeInUp">
<div class="row acces">
<ul>
<li><a href="#">accès pro</a></li>
<li><?php get_logged_user(); ?></li>
</ul>
</div>
<div class="row right footer-links">
<ul>
<li class='nl'><a href="#">newsletter</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="<?php echo get_permalink(171)?>">mentions légales</a></li>
</ul>
......
......@@ -645,7 +645,16 @@ function externe_referrer(){
}
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){
$args = array(
......
......@@ -98,7 +98,9 @@ do_action('woocommerce_before_add_to_cart_form');
?>
<article class = "row" data-color = "<?php echo $value; ?>">
<?php if ( is_user_logged_in() ) { ?>
<a class = "download-btn" href="<?php echo $hd[0]; ?>" download></a>
<?php } ?>
<figure>
<img src="<?php echo $attachment[0]; ?>" alt="" title="">
</figure>
......
......@@ -156,7 +156,9 @@ do_action('woocommerce_before_add_to_cart_form');
?>
<article class = "row" data-color = "<?php echo $value; ?>">
<?php if ( is_user_logged_in() ) { ?>
<a class = "download-btn" href="<?php echo $hd[0]; ?>" download></a>
<?php } ?>
<figure>
<img src="<?php echo $attachment[0]; ?>" alt="" title="">
</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